Closed
Bug 1268954
Opened 8 years ago
Closed 8 years ago
Unable to register service worker due to Firefox profile
Categories
(Core :: DOM: Service Workers, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1267349
People
(Reporter: jasonpang2011, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36 Steps to reproduce: 1. Load a buggy Firefox profile that stopped registering service workers using: `/Applications/Firefox.app/Contents/MacOS/firefox-bin -P` and switching to the new profile. 2. With Firefox using the buggy profile, visit https://onesignal.com/serviceworker-subscribe.html for a test page to register a simple service worker script. 3. Click "Register Service Worker, Subscribe, and Unsubscribe". -------------- Actual results: On step 3, the notification permission prompt did not appear, and after a few seconds, this message appeared in the console: TypeError: ServiceWorker script at https://onesignal.com/empty-serviceworker.js for scope https://onesignal.com/ encountered an error during installation. Expected results: The service worker only contains: "console.info('From ServiceWorker: Empty service worker registered!');" So the script should have successfully registered. Creating a new Firefox profile (using the Profile manager described above) causes the service worker registration to proceed.
Reporter | ||
Comment 1•8 years ago
|
||
91 MB 2 buggy Firefox profiles, 1 working Firefox profile ZIP file here: https://drive.google.com/file/d/0B_Ip8ngbCOnid196Zld1cm4xVlk/view?usp=sharing
Comment 2•8 years ago
|
||
At first glance, this seems related to bug 1242056, or maybe a duplicate.
See Also: → 1242056
Updated•8 years ago
|
Status: UNCONFIRMED → NEW
Component: Activity Streams: General → DOM: Service Workers
Ever confirmed: true
Product: Firefox → Core
Comment 3•8 years ago
|
||
Probably a profile opened in FF47+ where we have a newer cache database schema.
Flags: needinfo?(bkelly)
Comment 4•8 years ago
|
||
I've verified that both of the problem profiles have a database schema version of 20. This means they were used in FF47+ and won't work in FF46 any more. I also verified that the profile with "dev edition" in its name does indeed work in dev edition FF48. We should report to console when we detect this. Duping to bug 1267349.
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(bkelly)
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•