Rename createBlobURL/revokeBlobURL

RESOLVED FIXED

Status

()

Core
DOM
RESOLVED FIXED
7 years ago
6 years ago

People

(Reporter: sheppy, Assigned: sicking)

Tracking

({dev-doc-complete})

Trunk
dev-doc-complete
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(blocking2.0 beta8+)

Details

Attachments

(1 attachment)

(Reporter)

Description

7 years ago
These were renamed to createObjectURL and revokeObjectURL in the most recent update to the spec. I know the File API guys know about this, but I wasn't able to find a bug so I'm filing it, if for no other reason than to track it for the purpose of making sure docs get updated when the change goes in.

Updated

7 years ago
blocking2.0: --- → ?
Over to sicking.
Assignee: nobody → jonas
blocking2.0: ? → beta8+

Comment 2

7 years ago
This would be an interface change, so should this go to b7?
Created attachment 491271 [details] [diff] [review]
Patch to fix

This updates our implementation to latest spec. (actually, to latest agreement, so fresh that it hasn't even been put into spec yet).

The new syntax is:

URL.createObjectURL(...);
URL.revokeObjectURL(...);

It also fixes the security related bug we had where if a different, cross-origin, window was able to guess a generated URL, it could unregister it.
Attachment #491271 - Flags: review?(jst)
Comment on attachment 491271 [details] [diff] [review]
Patch to fix

r=jst, but please send a note to the newsgroups about this API change (which should have been done before beta7, yes, but the spec wasn't finalized enough in time for beta7, so we're going to have to take this now instead).
Attachment #491271 - Flags: review?(jst) → review+
Checked in: http://hg.mozilla.org/mozilla-central/rev/bd5273da5263
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
(Reporter)

Comment 6

7 years ago
Documentation updated:

https://developer.mozilla.org/en/DOM/window.URL.createObjectURL (moved, updated)
https://developer.mozilla.org/en/DOM/window.URL.revokeObjectURL (moved, updated)
https://developer.mozilla.org/en/DOM/window.URL (new)
https://developer.mozilla.org/en/DOM/window (updated)

How-to material also updated:

https://developer.mozilla.org/en/Using_files_from_web_applications#Using_object_URLs
https://developer.mozilla.org/en/Using_files_from_web_applications#Example.3a_Using_object_URLs_to_display_images

Fx4 for developers also updated.
Keywords: dev-doc-needed → dev-doc-complete

Updated

7 years ago
Depends on: 617296

Updated

6 years ago
Depends on: 645336
You need to log in before you can comment on or make changes to this bug.