Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jan 31, 2019

Conversation

annevk
Copy link
Member

@annevk annevk commented Jan 25, 2019

Needed for whatwg/html#4284.

@annevk
Copy link
Member Author

annevk commented Jan 29, 2019

@foolip @domenic can you look at this?

@annevk
Copy link
Member Author

annevk commented Jan 29, 2019

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.
Copy link
Member

@domenic domenic left a comment

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
Copy link
Member Author

annevk commented Jan 31, 2019

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