Skip to content

HTML: window.open() can set opener of a nested browsing context - #15078

Merged
annevk merged 1 commit into
masterfrom
annevk/embedded-opener
Jan 31, 2019
Merged

annevk merged 1 commit into
masterfrom
annevk/embedded-opener

Conversation

@annevk

@annevk annevk commented Jan 25, 2019

Copy link
Copy Markdown
Member

Needed for whatwg/html#4284.

@annevk

annevk commented Jan 29, 2019

Copy link
Copy Markdown
Member Author

@foolip @domenic can you look at this?

@annevk

annevk commented Jan 29, 2019

Copy link
Copy Markdown
Member Author

annevk added a commit to whatwg/html that referenced this pull request Jan 29, 2019
Some initial work to make introducing browsing context groups (see #4198) easier.

Fixes #2636 by making opener browsing context more generally applicable and making window.open() set it.

Fixes #2645 by removing creator browsing context and explicitly passing in the creator document.

Tests: web-platform-tests/wpt#15078.

@domenic domenic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests both seem reasonable, although I don't understand the relationship between them.

@annevk

annevk commented Jan 31, 2019

Copy link
Copy Markdown
Member Author

They're both named targeting, but one of them ends up setting opener and the other doesn't. This was one of the changes with browsing context refactoring, that window.open() now directly sets opener sometimes.

@annevk
annevk merged commit 5cf7f41 into master Jan 31, 2019
@annevk
annevk deleted the annevk/embedded-opener branch January 31, 2019 08:41
mustaqahmed pushed a commit to mustaqahmed/html that referenced this pull request Feb 15, 2019
Some initial work to make introducing browsing context groups (see whatwg#4198) easier.

Fixes whatwg#2636 by making opener browsing context more generally applicable and making window.open() set it.

Fixes whatwg#2645 by removing creator browsing context and explicitly passing in the creator document.

Tests: web-platform-tests/wpt#15078.
mustaqahmed pushed a commit to mustaqahmed/html that referenced this pull request Feb 15, 2019
Some initial work to make introducing browsing context groups (see whatwg#4198) easier.

Fixes whatwg#2636 by making opener browsing context more generally applicable and making window.open() set it.

Fixes whatwg#2645 by removing creator browsing context and explicitly passing in the creator document.

Tests: web-platform-tests/wpt#15078.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants