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)

26 Branch
ARM
Android
defect
Not set
normal

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)

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)
Regression from bug 818987?
Flags: needinfo?(wjohnston)
Attached patch mediaSrcSplinter Review
Grr. Missed this in my last review.
Attachment #789159 - Flags: review?(margaret.leibovic)
Flags: needinfo?(wjohnston)
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+
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
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
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
Status: RESOLVED → VERIFIED
tracking-fennec: ? → ---
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: