Support adding to native context menus from js

RESOLVED INACTIVE

Status

()

Firefox for Android
General
RESOLVED INACTIVE
6 years ago
16 hours ago

People

(Reporter: wesj, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
Created attachment 640886 [details]
WIP Proof of concept

While working on the helper apps stuff, seems like it would be nice to be able to also add the "Open in <> App" option to things like awesome screen results or the urlbar context menu. Because I don't want to duplicate all that code in Java, I'd like to find a way to make the same code work in both places.

For the urlbar, I think we can have a special "Native" selector. I'll attach a quick WIP that shows sorta how that would work. Since the currently location is mostly static, js could theoretically just add/remove the context menu item (and change its name to something relevant) at run time.

For the awesomescreen, where the url being long tapped isn't known until the long tap happens, it will be tougher.... I wonder if we can query js and add items to the menu dynamically after its shown?

Comment 1

16 hours ago
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Last Resolved: 16 hours ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.