Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Unified Diff: dart/tools/dom/templates/html/dart2js/impl_URL.darttemplate

Issue 14762008: Use "self" not "window" for Worker API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart/tests/html/worker_api_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
}
« no previous file with comments | « dart/tests/html/worker_api_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698