-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Add ability to test with popup blocker enabled #3867
Comments
This is also a problem for whatwg/html#2616. cc @jugglinmike |
This makes several changes: * Stop throwing an exception in <a> and <area> activation behavior as a result of popup blocking as it doesn’t match implementations. Fixes #2616. Formal testing is not possible and tracked by web-platform-tests/wpt#3867. * Make matching for special names ASCII case-insensitive. Fixes #2443. * Centralize all user-configurable behavior instead of having it duplicated in various ways in all the caller algorithms. * Call out a known issue with browsing context name matching: #2126. It also modernizes the writing style and makes variables and what is returned much more explicit, including no longer relying on some out-of-band channel for communicating whether a new browsing context got created.
This makes several changes: * Stop throwing an exception in <a> and <area> activation behavior as a result of popup blocking as it doesn’t match implementations. Fixes web-platform-tests/wpt#3867. * Make matching for special names ASCII case-insensitive. Fixes #2443. * Centralize all user-configurable behavior instead of having it duplicated in various ways in all the caller algorithms. * Call out a known issue with browsing context name matching: #2126. It also modernizes the writing style and makes variables and what is returned much more explicit, including no longer relying on some out-of-band channel for communicating whether a new browsing context got created.
This makes several changes: * Stop throwing an exception in <a> and <area> activation behavior as a result of popup blocking as it doesn’t match implementations. Fixes web-platform-tests/wpt#3867. * Make matching for special names ASCII case-insensitive. Fixes #2443. * Centralize all user-configurable behavior instead of having it duplicated in various ways in all the caller algorithms. * Call out a known issue with browsing context name matching: #2126. It also modernizes the writing style and makes variables and what is returned much more explicit, including no longer relying on some out-of-band channel for communicating whether a new browsing context got created.
This makes several changes: * Stop throwing an exception in `<a>` and `<area>` activation behavior as a result of popup blocking as it doesn’t match implementations. Fixes #2616. Formal testing is not possible and tracked by web-platform-tests/wpt#3867. * Make matching for special names ASCII case-insensitive. Fixes #2443. * Centralize all user-configurable behavior instead of having it duplicated in various ways in all the caller algorithms. * Call out a known issue with browsing context name matching: #1440. It also modernizes the writing style and makes variables and what is returned much more explicit, including no longer relying on some out-of-band channel for communicating whether a new browsing context got created.
This makes several changes: * Stop throwing an exception in `<a>` and `<area>` activation behavior as a result of popup blocking as it doesn’t match implementations. Fixes whatwg#2616. Formal testing is not possible and tracked by web-platform-tests/wpt#3867. * Make matching for special names ASCII case-insensitive. Fixes whatwg#2443. * Centralize all user-configurable behavior instead of having it duplicated in various ways in all the caller algorithms. * Call out a known issue with browsing context name matching: whatwg#1440. It also modernizes the writing style and makes variables and what is returned much more explicit, including no longer relying on some out-of-band channel for communicating whether a new browsing context got created.
This makes several changes: * Stop throwing an exception in `<a>` and `<area>` activation behavior as a result of popup blocking as it doesn’t match implementations. Fixes whatwg#2616. Formal testing is not possible and tracked by web-platform-tests/wpt#3867. * Make matching for special names ASCII case-insensitive. Fixes whatwg#2443. * Centralize all user-configurable behavior instead of having it duplicated in various ways in all the caller algorithms. * Call out a known issue with browsing context name matching: whatwg#1440. It also modernizes the writing style and makes variables and what is returned much more explicit, including no longer relying on some out-of-band channel for communicating whether a new browsing context got created.
I'm labeling this as backlog (the lowest priority) because it seems like this will not affect any whole features, but rather a handful of cases spread around the platform. @JKereliuk, this might require some WebDriver APIs. If you're tracking feature requests somewhere, can you add this there? |
@foolip +1 :) |
Are there any existing manual tests that need this? |
There's examples linked in the issues above that could easily be turned into tests. |
@jstenback ran into this with https://wpt.fyi/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-non-integer-width.html, which fails on Edge and Safari because of the popup blocker, at least it seems like that in my manual testing. @kereliuk, do you know if ChromeDriver implicitly disables the popup blocker, or why this passes in Chrome? |
You need to disable the popup blocker to use web-platform-tests. That's why this issue is asking for the opposite. |
This is blocking tests for User Activation v2 consumption behavior: disabled popup blocker means activation consumption is invisible to the page. |
Thanks for reporting @mustaqahmed. Multiple teams are now using https://web-platform-tests.org/writing-tests/testdriver-tutorial.html to add their own testing APIs end-to-end, with help from @kereliuk. As you're implementing User Activation v2, is this an issue you'd consider owning? I believe the WebDriver extension API, if that makes sense, would have to go in either HTML or a standalone extension spec. How are you testing this internally, in LayoutTests? Is there an |
This makes several changes: * Stop throwing an exception in `<a>` and `<area>` activation behavior as a result of popup blocking as it doesn’t match implementations. Fixes whatwg#2616. Formal testing is not possible and tracked by web-platform-tests/wpt#3867. * Make matching for special names ASCII case-insensitive. Fixes whatwg#2443. * Centralize all user-configurable behavior instead of having it duplicated in various ways in all the caller algorithms. * Call out a known issue with browsing context name matching: whatwg#1440. It also modernizes the writing style and makes variables and what is returned much more explicit, including no longer relying on some out-of-band channel for communicating whether a new browsing context got created.
This is also a problem for full test coverage for whatwg/html#10547 |
See whatwg/html#1854
It would be good to be able to somehow test the behavior of window.open with the popup blocker enabled (not just for the return value, but also to test when the popup is being blocked, for cases that don't need to be manual).
The text was updated successfully, but these errors were encountered: