Chromium Code Reviews| Index: dart/tools/dom/templates/html/dart2js/impl_URL.darttemplate |
| diff --git a/dart/tools/dom/templates/html/dart2js/impl_URL.darttemplate b/dart/tools/dom/templates/html/dart2js/impl_URL.darttemplate |
| index 1a02aa118fb7c2448baac021efda39c7c1c2bade..30c4161af506c3f30aac88a07e94bbf7d7bc5dc0 100644 |
| --- a/dart/tools/dom/templates/html/dart2js/impl_URL.darttemplate |
| +++ b/dart/tools/dom/templates/html/dart2js/impl_URL.darttemplate |
| @@ -8,11 +8,11 @@ $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
| static String createObjectUrl(blob_OR_source_OR_stream) => |
| JS('String', |
| - '(window.URL || window.webkitURL).createObjectURL(#)', |
| + '(self.URL || self.webkitURL).createObjectURL(#)', |
|
blois
2013/05/13 17:47:52
I believe it should probably be:
"(#.URL || #.web
ahe
2013/05/13 18:32:22
That doesn't seem to work. It generates this code
|
| blob_OR_source_OR_stream); |
| static void revokeObjectUrl(String objectUrl) => |
| JS('void', |
| - '(window.URL || window.webkitURL).revokeObjectURL(#)', objectUrl); |
| + '(self.URL || self.webkitURL).revokeObjectURL(#)', objectUrl); |
| $!MEMBERS |
| } |