Closed Bug 1904773 Opened 3 months ago Closed 3 months ago

Text-Fragments: Implement makeshift user-involvement

Categories

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

task

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: jjaschke, Assigned: jjaschke)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

After implementing user activation in bug 1888756, text fragments are not scrolled to anymore if initiated by browser chrome (eg. pasting a link that contains a fragment directive into the url bar and hitting enter).

Even though user involvement is not implemented (tracked in bug 1901045), it is fairly easy to check if the current load is triggered by browser chrome: If the triggering principal is the system principal, the load is triggered from browser chrome.

User involvement as defined in the spec is not implemented in Gecko yet.
Therefore, the changes introduced in Bug 1888756 disallowed scrolling to text directives if the load was triggered by the user, eg. by pasting a link with a text fragment into the url bar.

This patch checks if the triggering principal of the load is the system principal.
This is equivalent to the "browser UI" value of user involvement.

Pushed by jjaschke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dbe921345853 Text Fragments: Implemented makeshift user involvement check. r=edgar,dom-core,frontend-codestyle-reviewers
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
Blocks: 1901045
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: