Confirmed users
716
edits
(Created page with "== Overview == ''Describe the goals and objectives of the feature here.'' [http://dev.w3.org/2006/webapi/FileUpload/publish/FileAPI.html File API spec] ;Background links * feat...") |
No edit summary |
||
| Line 4: | Line 4: | ||
[http://dev.w3.org/2006/webapi/FileUpload/publish/FileAPI.html File API spec] | [http://dev.w3.org/2006/webapi/FileUpload/publish/FileAPI.html File API spec] | ||
Allows getting a url for a file. When loading from the url, it loads from the contents of a file. | |||
== Security and Privacy == | == Security and Privacy == | ||
* What potential security issues in your feature have you already considered and addressed? | * What potential security issues in your feature have you already considered and addressed? | ||
URL has a origin and is subject so same origin checks. If origin A generates a url, then origin B can't load from it. Additionally, there is no way for B to get the url unless A explicitly hands it a copy. | |||
There is currently a bug that allows origin B to "revoke" a url that origin A has generated. But only if it somehow manages to guess the url. | |||
* Include a thorough description of the security assumptions, capabilities and any potential risks (possible attack points) being introduced by your project. | * Include a thorough description of the security assumptions, capabilities and any potential risks (possible attack points) being introduced by your project. | ||
That UUIDs can't be guessed (though there are extra layers of security). | |||
Possible bugs in how we get the origin for a given uri. | |||
* How are transitions in/out of Private Browsing mode handled? | * How are transitions in/out of Private Browsing mode handled? | ||
No effects. Maybe there should be? | |||
== Exported APIs == | == Exported APIs == | ||
* Please provide a table of exported interfaces (APIs, ABIs, protocols, UI, etc.) | * Please provide a table of exported interfaces (APIs, ABIs, protocols, UI, etc.) | ||
url = window.createBlobURL(file); | |||
window.revokeBlobURL(url); | |||
* Does it change any existing interfaces? | * Does it change any existing interfaces? | ||
nsIDOMWindow2 | |||
== Module interactions == | == Module interactions == | ||