Closed
Bug 1303518
Opened 8 years ago
Closed 8 years ago
The ChromeFilePropertyBag versions of the File constructors are web-observable
Categories
(Core :: DOM: Core & HTML, defect, P3)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla52
People
(Reporter: bzbarsky, Assigned: baku)
References
Details
(Keywords: addon-compat, dev-doc-needed)
Attachments
(1 file)
32.02 KB,
patch
|
qdot
:
review+
|
Details | Diff | Splinter Review |
In particular, if I take a Blob and make it iterable and try to create a File from it, the chrome-only ctor will get called (and throw) instead of calling the right constructor...
Maybe this is not an issue in practice much, but I would be a lot happier if we used chromeonly factory methods instead of the current chrome-ish constructor setup.
Comment 1•8 years ago
|
||
(In reply to Boris Zbarsky [:bz] (TPAC) from comment #0)
> Maybe this is not an issue in practice much, but I would be a lot happier if
> we used chromeonly factory methods instead of the current chrome-ish
> constructor setup.
This makes me think P3 but if it's more urgent please change the priority accordingly.
Flags: needinfo?(amarchesini)
Priority: -- → P3
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → amarchesini
Flags: needinfo?(amarchesini)
Assignee | ||
Comment 2•8 years ago
|
||
Attachment #8809759 -
Flags: review?(kyle)
Updated•8 years ago
|
Attachment #8809759 -
Flags: review?(kyle) → review+
Pushed by amarchesini@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/938f7fd2ce2b
Remove the chrome only constructor for File, r=qdot
Comment 4•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
Updated•8 years ago
|
Keywords: addon-compat
Comment 5•8 years ago
|
||
Could you update the docs: https://developer.mozilla.org/en-US/docs/Extensions/Using_the_DOM_File_API_in_chrome_code
Keywords: dev-doc-needed
Congrats! Your changes - completed undocumented in FF 52 Release Notes - broke our add-on one more time. It took me several hours to figure out why our add-on is not working in FF 52 Beta anymore.
Other add-on authors might be affected too, so please be so kind and update Release Notes accordingly.
Reporter | ||
Comment 7•8 years ago
|
||
Wait, this bug has addon-compat marked. Why did that not result in relevant notes for addon developers?
Flags: needinfo?(jorge)
Reporter | ||
Comment 8•8 years ago
|
||
Though note that general release notes likely wouldn't include something like this anyway except in the general "here's a list of all the changes" way; the "for developers" or addon-developer specific ones might.
Comment 9•8 years ago
|
||
It was included in the compat blog post: https://blog.mozilla.org/addons/2016/12/15/compatibility-for-firefox-52/
Not all developers follow it, though, and we didn't do automatic validation for this particular issue.
Flags: needinfo?(jorge)
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•