Skip to content

Add spec for SharedClusterEnvironment.md#5633

Open
Navdeep-ss wants to merge 9 commits into
SharedClusterEnvironmentfrom
SharedClusterEnvironment-draft
Open

Add spec for SharedClusterEnvironment.md#5633
Navdeep-ss wants to merge 9 commits into
SharedClusterEnvironmentfrom
SharedClusterEnvironment-draft

Conversation

@Navdeep-ss

@Navdeep-ss Navdeep-ss commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

This is a review for the new Shared WebView2 Cluster Environment API.

API proposal for a shared WebView2 cluster environment using the symmetric Create + synchronous Get model (Approach 2).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Navdeep-ss Navdeep-ss added the API Proposal Review WebView2 API Proposal for review. label Jul 1, 2026
Navdeep Singh and others added 8 commits July 1, 2026 15:44
- (1.7) Rename PerExeProfileIsolation -> PerHostProfileIsolation for OS-neutrality
- (1.6) Document per-Id persisted state in the Get reference doc-comment
- (1.10) Add API-shape decisions section: new options type vs extending ICoreWebView2EnvironmentOptions, and WinRT mismatch-surfacing (result/status enum vs COMException)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Per repo spec conventions (template: 'talk about behavior, not implementation'), replace the storage/locking pseudocode (registry paths, AcquireLock/WriteRecord, WAIT_ABANDONED) with observable behavior guarantees, and condense the alternatives-considered section.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Top-level sections now exactly match the spec template (Background, Conceptual, Examples, API Details, Appendix). Remove the 'Open questions' section (no other spec has one) and the reviewer-facing 'API-shape decisions'/'Behavior guarantees' Appendix subsections; keep a lean 'Alternatives considered' and 'Relationship to existing options', matching how other specs use the Appendix. Also fix the C++ example's Get error handling and add Id constraints.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
CreateCoreWebView2ClusterEnvironment -> CreateOrJoinCoreWebView2ClusterEnvironment, the handler and the .NET/WinRT async method renamed to match.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The GUIDs were fabricated placeholders; real IIDs are allocated at implementation time. Matches specs like CustomDataPartition.md that omit uuid in the review IDL.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
No WebView2 spec exposes an HRESULT constant as API. Match the convention (e.g. MultiProfile.md) of throwing a COMException and comparing ex.HResult against the HRESULT value with a comment naming the error.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API Proposal Review WebView2 API Proposal for review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant