Closed Bug 1411529 Opened 7 years ago Closed 7 years ago

Context menu functionality in GeckoView based components not working.

Categories

(GeckoView :: General, defect, P1)

56 Branch
defect

Tracking

(firefox58 verified)

VERIFIED FIXED
mozilla58
Tracking Status
firefox58 --- verified

People

(Reporter: cnevinchen, Assigned: droeh)

References

Details

Attachments

(1 file)

Please help advise:)
Flags: needinfo?(wehuang)
Flags: needinfo?(droeh)
Snorp, Dylan, this is the follow-up of bug 1409296 and should start with P1, and assume Dylan would be the one to resume the investigation here? Thanks.
Flags: needinfo?(wehuang) → needinfo?(snorp)
Yeah, Dylan, please see if you can figure out what's going on with this.
Assignee: nobody → droeh
Flags: needinfo?(snorp)
Yeah, I'm looking at this right now. It looks like maybe text selection is taking precedence over the context menu for some reason?
Flags: needinfo?(droeh)
It looks like the culprit is bug 1406224; Eugen's patch for context menu support (bug 1381983) uses nsIDOMHTMLImageElement, which is now removed.
This updates GeckoViewContent.js to avoid using nsIDOMHTMLImageElement (as well as nsIDOMHTMLMediaElement, which appears to be on the chopping block in bug 1407040); this should fix the issue.
Attachment #8921959 - Flags: review?(snorp)
Attachment #8921959 - Flags: review?(snorp) → review+
Target Milestone: --- → Firefox 58
Pushed by droeh@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/63b2340d7000 Remove nsIDOMHTMLImageElement usage from GeckoViewContent.js r=snorp
Verified as fixed in Nightly 58 (2017-10-26). The simplified context menu is working again.
Status: RESOLVED → VERIFIED
> getClassName(node) === "HTMLMediaElement" This never tests true, because HTMLMediaElement is abstract; the concrete classes are HTMLVideoElement and HTMLAudioElement. (Spotted by :adrian17.)
Flags: needinfo?(droeh)
Thanks for catching that! Filed as bug 1438342.
Flags: needinfo?(droeh)
Product: Firefox for Android → GeckoView
Target Milestone: Firefox 58 → mozilla58

Removing regressionwindow-wanted keyword because this bug has been resolved.

Removing regressionwindow-wanted keyword because this bug has been resolved.

Removing regressionwindow-wanted keyword because this bug has been resolved.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: