-
Notifications
You must be signed in to change notification settings - Fork 4
/
904.txt
43 lines (29 loc) · 1.58 KB
/
904.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[4] [CODE(DOMi)@en[[[window.URL]]]] [[オブジェクト]]の [DFN[[CODE(DOMm)@en[[[createObjectURL]]]]]]
[[メソッド]]は、与えられた [CODE(DOMi)@en[[[File]]]] を表す [[URL]]
を返します。
* 歴史
[6] [[Firefox]] 4 以降で [[prefix]] 無しで実装されています。
[REFS[
- [7] [CITE@en[Using files from web applications - MDN]] ([TIME[2011-09-19 19:56:34 +09:00]] 版) <https://developer.mozilla.org/en/Using_files_from_web_applications#Using_object_URLs>
]REFS]
[8] [[WebKit]] では [CODE(DOMi)@en[[[window.webkitURL]]]] で [[prefix]] 無しで実装されています。
* 実装
[1] [[Firefox]] ではこんな値になりました [TIME[2011-09-19T11:10:32.200Z]]:
[PRE(URI example code)[
moz-filedata:71f89f18-c11d-496c-83c9-f24da88689a5
]PRE]
[2] [[Chrome]] ではこんな値になりました [TIME[2011-09-19T11:10:59.500Z]]
[PRE(URI example code)[
blob:http://suika.fam.cx/6ff6e0e9-51d5-41e2-8752-411cbfc3fc7a
]PRE]
;; [[起源]]を [[URL]] 内に入れておきたいという意図かな。
* テスト・ケース
** デモ
[REFS[
- [3] [CITE[window.URL.createObjectURL]] ([TIME[2011-09-19 20:09:05 +09:00]] 版) <http://suika.fam.cx/~wakaba/-temp/test/dom/url/createobjecturl-1.html>
]REFS]
* 関連
[5] [[URL]] を破棄する [CODE(DOMm)@en[[[revokeURLObject]]]] [[メソッド]]もあります。
[9] [CITE@en[''''''[''''''FileAPI'''''']'''''' createObjectURL isReusable proposal]]
( ([[Adrian Bateman]] 著, [TIME[2011-12-14 09:52:04 +09:00]] 版))
<http://lists.w3.org/Archives/Public/public-webapps/2011OctDec/1499.html>