Closed Bug 1912095 Opened 2 years ago Closed 1 year ago

Text-Fragments: User activation does not work when opening a new tab on Android

Categories

(Core :: DOM: Navigation, defect)

defect

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
firefox138 --- fixed

People

(Reporter: jjaschke, Assigned: m_kato)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

The same issue as described in bug 1911339 also occurs on Firefox for Android. Since there's a fix for desktop already, this is a follow-up to fix the issue on Android.

Hi Makoto, do you know where GeckoView handles opening links in a new tab from the context menu? We may need to update the code to propagate user activation for text fragments to ensure it works on Android. Thank you!

Flags: needinfo?(m_kato)

If from context menu, browser such as Fenix application will call GeckoSession.open and GeckoSession.load APIs when selecting menu.

I guess that we should add an parameter to GeckoSession.Loader and NavigationDelegate.LoadRequest.

Flags: needinfo?(m_kato)

Handle textDirectiveUserActivation for GeckoView (Bug 1888756).

When with referrer Gecko session, GeckoSession.load with text fragment
parameter won't scroll content even if URI has this parameter.

So I would like to add an API to set textDirectiveUserActivation for
external user activation such as context menu.

Assignee: nobody → m_kato
Status: NEW → ASSIGNED
Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/autoland/rev/5885a6a60ecc Part 1. Add an API to load Uri with text fragment actication. r=geckoview-reviewers,ohall,owlish
Keywords: leave-open
Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/autoland/rev/416a6701d255 Part 2. Set text directive flag when loading Url from context menu. r=android-reviewers,boek
Keywords: leave-open
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
See Also: → 1962776
See Also: → 1982109
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: