Closed
Bug 1179772
Opened 10 years ago
Closed 10 years ago
"Enable Service Workers over HTTP (when toolbox is open)" setting is not working
Categories
(Core :: DOM: Service Workers, defect)
Core
DOM: Service Workers
Tracking
()
VERIFIED
FIXED
mozilla42
People
(Reporter: noemi, Assigned: bkelly)
References
Details
Attachments
(1 file)
1.98 KB,
patch
|
ehsan.akhgari
:
review+
ritu
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Tested on today's (7/2) master build
STR:
1- Active "Enable Service Workers over HTP (when toolbox is open)" flag in Advanced Settings
2- Try to register a sw over HTTP when toolbox is open
Actual result:
It is not possible to properly register the sw
Expected result:
The sw should be properly registered under those conditions
Please find below the corresponding traces:
http://jaoo.es/service-worker-testing/service.js
Execution context(): install event fired!
Client context: registration has an installing worker (installing)!
Execution context(): opening cache...
[Child 47828] WARNING: CacheStorage not supported on untrusted origins.: file /Users/noef/Documents/mozilla-central/dom/cache/CacheStorage.cpp, line 212
[Child 47828] WARNING: 'NS_FAILED(mStatus)', file /Users/noef/Documents/mozilla-central/dom/cache/CacheStorage.cpp, line 324
[Child 47828] WARNING: '!info', file /Users/noef/Documents/mozilla-central/dom/workers/ServiceWorkerManager.cpp, line 3275
[Child 47828] WARNING: '!info', file /Users/noef/Documents/mozilla-central/dom/workers/ServiceWorkerManager.cpp, line 3275
[Child 47828] WARNING: '!aInstallEventSuccess', file /Users/noef/Documents/mozilla-central/dom/workers/ServiceWorkerManager.cpp, line 1304
[Child 47828] WARNING: 'NS_FAILED(aStatus)', file /Users/noef/Documents/mozilla-central/dom/workers/ServiceWorkerManager.cpp, line 295
[Child 47828] WARNING: ServiceWorkerJob failed with error: NS_ERROR_DOM_ABORT_ERR
: file /Users/noef/Documents/mozilla-central/dom/workers/ServiceWorkerManager.cpp, line 301
JavaScript error: http://jaoo.es/service-worker-testing/service.js, line 44: SecurityError: The operation is insecure.
Reporter | ||
Updated•10 years ago
|
Summary: Enable Service Workers over HTTP (when toolbox is open) setting is not working → "Enable Service Workers over HTTP (when toolbox is open)" setting is not working
Reporter | ||
Comment 1•10 years ago
|
||
Hi Ben,
Would you mind to take a look at this?. It seems to be a regression maybe caused by some change in CacheStorage. Thanks!
Flags: needinfo?(bkelly)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → bkelly
Status: NEW → ASSIGNED
Flags: needinfo?(bkelly)
Assignee | ||
Comment 2•10 years ago
|
||
Related to the patches you reviewed for me last week. Cache needs to trust the origin on ServiceWorkers themselves in addition to trusting them during script load.
Attachment #8628814 -
Flags: review?(ehsan)
Comment 3•10 years ago
|
||
Comment on attachment 8628814 [details] [diff] [review]
Make Cache API honor devtools SW testing flag in SW itself. r=ehsan
Review of attachment 8628814 [details] [diff] [review]:
-----------------------------------------------------------------
We should probably uplift this to 41...
Attachment #8628814 -
Flags: review?(ehsan) → review+
Assignee | ||
Comment 5•10 years ago
|
||
Comment on attachment 8628814 [details] [diff] [review]
Make Cache API honor devtools SW testing flag in SW itself. r=ehsan
Approval Request Comment
[Feature/regressing bug #]: Regressed in bug 1175138
[User impact if declined]: Devtools SW testing option does not work properly. This will reduce the amount of testing of SW in firefox.
[Describe test coverage new/current, TreeHerder]: Devtools has a test for this option, but did not catch this particular issue.
[Risks and why]: Minimal. Its a one line change.
[String/UUID change made/needed]: None
Attachment #8628814 -
Flags: approval-mozilla-aurora?
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
Reporter | ||
Comment 7•10 years ago
|
||
Hi,
Checked with today's (7/3) master build and the sw under this scenario is properly registered. Please see the current traces below:
http://jaoo.es/service-worker-testing/service.js
Execution context(): install event fired!
Client context: registration has an installing worker (installing)!
Execution context(): opening cache...
Execution context(): opened cache so adding content!
[Child 43010] WARNING: '!info', file /Users/noef/Documents/mozilla-central/dom/workers/ServiceWorkerManager.cpp, line 3276
[Child 43010] WARNING: '!info', file /Users/noef/Documents/mozilla-central/dom/workers/ServiceWorkerManager.cpp, line 3276
Execution context(): activate event fired!
Thanks for fixing it so quickly!
Comment on attachment 8628814 [details] [diff] [review]
Make Cache API honor devtools SW testing flag in SW itself. r=ehsan
Approving for uplift to Aurora. The fix was verified on the nightly build and works.
Attachment #8628814 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Changing status to verified based on comment #7.
Status: RESOLVED → VERIFIED
Assignee | ||
Updated•10 years ago
|
status-firefox41:
--- → affected
Comment 10•10 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•