Bug 302803
| Summary: | Quora.com: New Post is not viewable unless disable popup blocker | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Vitor Roriz <vitor.roriz> |
| Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Vitor Roriz
Quora calls window.open on when resolving the promise for a fetch(…).then(), after user clicks a button to create a post. Basically they want to open this new post on a new tab.
Current behavior:
User clicks → fetch() called → response arrives → .then() runs → window.open(). However, window.open() is blocked due to the lack of user gesture.
The gesture token propagates via UserGestureInitiatedMicrotaskDispatcher, but the scope is hardcoded to MediaOnly at JSDOMWindowBase.cpp:267 (UserGestureToken::GestureScope::MediaOnly)
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Vitor Roriz
rdar://157791649
Vitor Roriz
Pull request: https://github.com/WebKit/WebKit/pull/54143
EWS
Committed 303733@main (a65fcfd58f65): <https://commits.webkit.org/303733@main>
Reviewed commits have been landed. Closing PR #54143 and removing active labels.