mirror of
https://github.com/servo/servo.git
synced 2025-10-03 10:09:20 +01:00
Auto merge of #15120 - asajeffrey:script-windows-share-browsing-contexts, r=jdm
Allow windows to share browsing contexts. <!-- Please describe your changes on the following line: --> This PR allows different `Window` objects in the same browsing context to share a `BrowsingContext` object. SpiderMonkey requires a `WindowProxy` object to be in the same compartment as its `Window`, so when a `WindowProxy` changes `Window`, we have to brain-transplant it. In turn this requires the reflector of a `BrowsingContext` to be mutable. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13608 and #14843 - [X] These changes do not require tests because an existing test catches this (`/html/browsers/the-window-object/Window-document.html` is now `PASS`) <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15120) <!-- Reviewable:end -->
This commit is contained in:
commit
67c1826382
18 changed files with 177 additions and 121 deletions
|
@ -1,5 +0,0 @@
|
|||
[Window-document.html]
|
||||
type: testharness
|
||||
[Document in a browsing context]
|
||||
expected: FAIL
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue