Closed Bug 1901064 Opened 23 days ago Closed 3 days ago

Preserve user activation for window.open cases when fission is disabled

Categories

(Core :: DOM: Navigation, defect, P2)

defect

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: jjaschke, Assigned: jjaschke)

References

(Blocks 2 open bugs)

Details

Attachments

(2 files)

While implementing Bug 1888756 it became clear that window.open() calls do not preserve the user activation across process boundaries when fission is disabled.

Severity: -- → S3
Priority: -- → P2

The code path that was used for loading a document
with fission disabled did not take user activation into account.
This made almost all WPTs for Text Fragments fail,
since they depend on this flag to decide if
a text directive is allowed to be scrolled to.

This patch makes sure that the user activation is
also available for code paths that run through
CanonicalBrowsingContext::FixupAndLoadURIString()
to load a document.

This is done by adding a flag hasValidUserGestureActivation
to the nsIOpenWindowInfo, which carries it through
the JS stack for loading a document.

Here's a try run.

Pushed by jjaschke@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/992a876144a0
part 1 - Preserve user activation when Fission is disabled. r=edgar,dom-core,tabbrowser-reviewers,mak,geckoview-reviewers,ohall
https://hg.mozilla.org/integration/autoland/rev/0e582d262ca8
part 2 - Reactivate failing tests for Text Fragments that failed with Fission disabled. r=edgar,dom-core
Status: ASSIGNED → RESOLVED
Closed: 9 days ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch

Backed out for blocking the backout of Bug 1888756

Status: RESOLVED → REOPENED
Flags: needinfo?(jjaschke)
Resolution: FIXED → ---
Target Milestone: 129 Branch → ---
Pushed by jjaschke@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/25b39ff6f118
part 1 - Preserve user activation when Fission is disabled. r=edgar,dom-core,tabbrowser-reviewers,mak,geckoview-reviewers,ohall
https://hg.mozilla.org/integration/autoland/rev/3db9c60ad0a3
part 2 - Reactivate failing tests for Text Fragments that failed with Fission disabled. r=edgar,dom-core
Flags: needinfo?(jjaschke)
Status: REOPENED → RESOLVED
Closed: 9 days ago3 days ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: