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

Unified Diff: runtime/bin/vmservice/observatory/deployed/web/packages/web_components/dart_support.js

Issue 474633002: Optional binary payloads in VM service events. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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: runtime/bin/vmservice/observatory/deployed/web/packages/web_components/dart_support.js
===================================================================
--- runtime/bin/vmservice/observatory/deployed/web/packages/web_components/dart_support.js (revision 39330)
+++ runtime/bin/vmservice/observatory/deployed/web/packages/web_components/dart_support.js (working copy)
@@ -7,7 +7,9 @@
var ShadowDOMPolyfill = window.ShadowDOMPolyfill;
if (!ShadowDOMPolyfill) return;
- if (navigator.userAgent.indexOf('(Dart)') !== -1) {
+ // TODO(sigmund): remove the userAgent check once 1.6 rolls as stable.
+ // See: dartbug.com/18463
+ if (navigator.dartEnabled || (navigator.userAgent.indexOf('(Dart)') !== -1)) {
console.error("ShadowDOMPolyfill polyfill was loaded in Dartium. This " +
"will not work. This indicates that Dartium's Chrome version is " +
"not compatible with this version of web_components.");

Powered by Google App Engine
This is Rietveld 408576698