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

Unified Diff: client/dom/scripts/template_wrapping_dom.js

Issue 8873011: Fix AudioContext constructor for Dartc. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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 | « client/dom/generated/wrapping_dom_externs.js ('k') | client/dom/scripts/template_wrapping_dom_externs.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/scripts/template_wrapping_dom.js
diff --git a/client/dom/scripts/template_wrapping_dom.js b/client/dom/scripts/template_wrapping_dom.js
index a5a2efb1192d12ab9dd3c5600e02b2bd4fe22880..e375a5b2559a105dc5a38eec4d1ee1e0166b97a3 100644
--- a/client/dom/scripts/template_wrapping_dom.js
+++ b/client/dom/scripts/template_wrapping_dom.js
@@ -51,7 +51,8 @@ function native__DOMWindowWrappingImplementation__get_localStorage(_this) {
function native__AudioContextFactoryProvider_create() {
try {
- return __dom_wrap(new AudioContext());
+ var constructor = window.AudioContext || window.webkitAudioContext;
+ return __dom_wrap(new constructor());
} catch (e) {
throw __dom_wrap_exception(e);
}
« no previous file with comments | « client/dom/generated/wrapping_dom_externs.js ('k') | client/dom/scripts/template_wrapping_dom_externs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698