Closed
Bug 904075
Opened 11 years ago
Closed 11 years ago
Regression: Unable to invoke a context menu on media source elements -- JS Error: mediaSrc is not defined
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox24 unaffected, firefox25 unaffected, firefox26 verified)
VERIFIED
FIXED
Firefox 26
Tracking | Status | |
---|---|---|
firefox24 | --- | unaffected |
firefox25 | --- | unaffected |
firefox26 | --- | verified |
People
(Reporter: aaronmt, Assigned: wesj)
References
()
Details
(Keywords: regression, reproducible)
Attachments
(1 file)
1014 bytes,
patch
|
Margaret
:
review+
|
Details | Diff | Splinter Review |
E/GeckoConsole(13074): [JavaScript Error: "ReferenceError: mediaSrc is not defined" {file: "chrome://browser/content/browser.js" line: 7624}] http://cd.pn/b; long-tap on the video -- Nightly (08/12) | LG Nexus 4 (Android 4.3)
Reporter | ||
Comment 1•11 years ago
|
||
Regression from bug 818987?
Reporter | ||
Updated•11 years ago
|
Flags: needinfo?(wjohnston)
Assignee | ||
Comment 2•11 years ago
|
||
Grr. Missed this in my last review.
Attachment #789159 -
Flags: review?(margaret.leibovic)
Flags: needinfo?(wjohnston)
Comment 3•11 years ago
|
||
Comment on attachment 789159 [details] [diff] [review] mediaSrc Review of attachment 789159 [details] [diff] [review]: ----------------------------------------------------------------- ::: mobile/android/chrome/content/browser.js @@ +7631,5 @@ > // extend _getLink to pickup html5 media links. > _getMediaLink: function(aElement) { > let uri = NativeWindow.contextmenus._getLink(aElement); > if (uri == null) { > + if (aElement.nodeType == Ci.nsIDOMNode.ELEMENT_NODE && (aElement instanceof Ci.nsIDOMHTMLMediaElement)) { Could you combine this with the (uri == null) check above? It feels odd to have an if statement that only contains another if statement. Also, you can get rid of the inner parens, now that you're not combining the instanceof check with a && check.
Attachment #789159 -
Flags: review?(margaret.leibovic) → review+
Assignee | ||
Comment 5•11 years ago
|
||
Grr. forgot there was a comment here. I'll push a follow up for it because its a good idea. https://hg.mozilla.org/integration/fx-team/rev/507578ef9f8b
Assignee | ||
Comment 6•11 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/94369a32a3ac
Comment 7•11 years ago
|
||
The regression window is: 1.mozilla-central good build: 08.08.2013 bad build: 09.08.2013 -pushlog: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=fd4cf30428b0&tochange=e33c2011643e 2.inbound good build:1376090740 bad build: 1376091041 -pushlog: http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=2904a317c74b&tochange=0c2ce8aaa005
Comment 8•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/507578ef9f8b https://hg.mozilla.org/mozilla-central/rev/94369a32a3ac
Assignee: nobody → wjohnston
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 26
Reporter | ||
Updated•11 years ago
|
Status: RESOLVED → VERIFIED
Reporter | ||
Updated•11 years ago
|
Keywords: regressionwindow-wanted
Updated•11 years ago
|
tracking-fennec: ? → ---
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•