Closed
Bug 1405552
Opened 7 years ago
Closed 7 years ago
Do not expose FileReaderSync to serviceworkers, to match the spec.
Categories
(Core :: DOM: File, defect, P2)
Core
DOM: File
Tracking
()
RESOLVED
FIXED
mozilla61
Tracking | Status | |
---|---|---|
firefox61 | --- | fixed |
People
(Reporter: wisniewskit, Assigned: wisniewskit)
References
(Blocks 1 open bug, )
Details
(Keywords: site-compat)
Attachments
(1 file)
The IDL for FileReaderSync no longer includes Service Workers (which the web platform tests FileAPI/historical.https.html confirms).
I have a trivial patch for this which passes try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=518fd1aa0bc5e97e0d397d56d51173e74794cfc0
Comment hidden (mozreview-request) |
Comment 2•7 years ago
|
||
Can you find why? I guess there was a discussion somewhere. It's also important to know what other browsers do. Can you check this too? Thanks.
Flags: needinfo?(wisniewskit)
Comment 3•7 years ago
|
||
Sync APIs were deliberately removed from the service worker spec because they can induce network jank, etc. They are a footgun in this kind of worker.
Blocks: ServiceWorkers-compat
Comment 4•7 years ago
|
||
mozreview-review |
Comment on attachment 8915010 [details]
Bug 1405552 - Do not expose FileReaderSync to serviceworkers, to match the spec;
https://reviewboard.mozilla.org/r/186278/#review191422
Stealing this. LGTM. Thanks!
Attachment #8915010 -
Flags: review+
Comment 5•7 years ago
|
||
BTW, here is the issue where it was removed 2 years ago:
https://github.com/w3c/ServiceWorker/issues/735
Flags: needinfo?(wisniewskit)
Comment 6•7 years ago
|
||
And this shows that chrome also does not ship FileReaderSync on service worker globals:
http://wpt.fyi/FileAPI/historical.https.html
Updated•7 years ago
|
Attachment #8915010 -
Flags: review?(amarchesini)
Updated•7 years ago
|
Priority: -- → P2
Comment 7•7 years ago
|
||
mozreview-review |
Comment on attachment 8915010 [details]
Bug 1405552 - Do not expose FileReaderSync to serviceworkers, to match the spec;
https://reviewboard.mozilla.org/r/186278/#review191318
Thomas, can you land this?
Attachment #8915010 -
Flags: review+
Assignee | ||
Comment 8•7 years ago
|
||
I'll try, but I'm swamped lately. At least for starters, I've rebased the patch and am doing a fresh try-run: https://treeherder.mozilla.org/#/jobs?repo=try&revision=55511f0d5cb59c59fdebb1d6bcfc638cc981543a
Assignee | ||
Comment 9•7 years ago
|
||
Well the try-run looks fine, so I might as well request check-in.
Keywords: checkin-needed
Comment 10•7 years ago
|
||
We're sorry, Autoland could not rebase your commits for you automatically. Please manually rebase your commits and try again.
hg error in cmd: hg rebase -s 448692db508292603ce83514957042363baf71b2 -d 07313b4db1d6: rebasing 462176:448692db5082 "Bug 1405552 - Do not expose FileReaderSync to serviceworkers, to match the spec; r=baku,bkelly" (tip)
local [dest] changed testing/web-platform/meta/FileAPI/historical.https.html.ini which other [source] deleted
use (c)hanged version, (d)elete, or leave (u)nresolved? u
merging dom/serviceworkers/test/test_serviceworker_interfaces.js and dom/workers/test/serviceworkers/test_serviceworker_interfaces.js to dom/serviceworkers/test/test_serviceworker_interfaces.js
unresolved conflicts (see hg resolve, then hg rebase --continue)
Comment hidden (mozreview-request) |
Assignee | ||
Comment 12•7 years ago
|
||
Ouch, I forgot to publish my rebased patch. Sorry for the churn! Re-requesting checkin.
Comment 13•7 years ago
|
||
Pushed by csabou@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/82f4604be112
Do not expose FileReaderSync to serviceworkers, to match the spec; r=baku,bkelly
Keywords: checkin-needed
Comment 14•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox61:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
Updated•7 years ago
|
Assignee: nobody → wisniewskit
Comment 15•7 years ago
|
||
Posted the site compatibility note: https://www.fxsitecompat.com/en-CA/docs/2018/filereadersync-is-no-longer-available-in-service-workers/
Keywords: site-compat
Updated•6 years ago
|
status-firefox58:
affected → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•