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

Unified Diff: dart/sdk/lib/html/dart2js/html_dart2js.dart

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
Index: dart/sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/dart/sdk/lib/html/dart2js/html_dart2js.dart b/dart/sdk/lib/html/dart2js/html_dart2js.dart
index 107961528981c75dd7f9ad625c29bfcb507a9ebc..2e1e4ec2a1c7393d965383a86f44f98b09e40da5 100644
--- a/dart/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/dart/sdk/lib/html/dart2js/html_dart2js.dart
@@ -20495,12 +20495,12 @@ class Url native "URL" {
static String createObjectUrl(blob_OR_source_OR_stream) =>
JS('String',
- '(window.URL || window.webkitURL).createObjectURL(#)',
+ '(self.URL || self.webkitURL).createObjectURL(#)',
blob_OR_source_OR_stream);
static void revokeObjectUrl(String objectUrl) =>
JS('void',
- '(window.URL || window.webkitURL).revokeObjectURL(#)', objectUrl);
+ '(self.URL || self.webkitURL).revokeObjectURL(#)', objectUrl);
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
« no previous file with comments | « no previous file | dart/tests/html/html.status » ('j') | dart/tools/dom/templates/html/dart2js/impl_URL.darttemplate » ('J')

Powered by Google App Engine
This is Rietveld 408576698