Closed Bug 1365885 Opened 8 years ago Closed 8 years ago

Web-extension functions correctly on Chrome and Opera but not FF?

Categories

(WebExtensions :: Compatibility, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: bugzilla, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; rv:53.0) Gecko/20100101 Firefox/53.0 Build ID: 20170504105526 Steps to reproduce: I recently converted my addon to web-extension, the addon works perfectly for the first page load or full-refresh on all browsers but when navigating to other videos on Youtube the download button is visible only on Opera and Chrome. Firefox - https://addons.mozilla.org/en-US/firefox/addon/easy-youtube-video-download/3 Chrome - https://chrome.google.com/webstore/detail/video-helper/gjeikcbjolkmbaaoloboeicaghbaflmj2 Opera - https://addons.opera.com/en/extensions/details/easy-youtube-video-downloader-for-opera/ Actual results: Download button not getting injected after the initial Youtube video page load, capturing the document.addEventListener("spfdone", start, false); seems to fix the issue but the web-extension works fine on Chrome and Opera without this 'SPF' event capture. Expected results: Button should get injected with window.addEventListener('DOMContentLoaded', start, false); event, like it used to be before migrating to Web-extension and still does on Chrome and Opera. Forum discussion - https://discourse.mozilla-community.org/t/web-extension-functions-correctly-on-chrome-and-opera-but-not-ff/15599/2
The bug title here isn't too helpful and I'm not to sure of the problem yet. The add-on you link to on AMO isn't visible. A better bug title and a concise use case, with maybe a small example add-on would help. Details like what version of Firefox you can reproduce the issue on would help.
Flags: needinfo?(contact)
Flags: needinfo?(contact)
Flags: needinfo?(aswan)
I installed the extension from comment 2 in a recent Nightly and followed the steps from comment 0 and saw the download button consistently.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Flags: needinfo?(aswan)
Resolution: --- → WORKSFORME
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.