Bug 207942 - allow-top-navigation-by-user-activation doesn't work with XHR
Summary: allow-top-navigation-by-user-activation doesn't work with XHR
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Frames (show other bugs)
Version: Other
Hardware: iPhone / iPad iOS 12
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-02-19 08:56 PST by Mustaq Ahmed
Modified: 2020-03-16 05:56 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mustaq Ahmed 2020-02-19 08:56:33 PST
It seems WebKit doesn't allow a subframe with the sandbox flag "allow-top-navigation-by-user-activation" to navigate the top frame away even with user activation.  The problem seems to occur only with XHR.  Async calls through setTimeout works fine.

We (Chrome) have an internal client blocked by this behavior.

Repro: http://mustaqahmed.github.io/web/top-nav-by-user-activation/
Comment 1 Radar WebKit Bug Importer 2020-02-19 23:03:00 PST
<rdar://problem/59620231>