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

Unified Diff: lib/runtime/dart/html_common.js

Issue 1583943002: Fix for html_common (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | tool/input_sdk/lib/html/html_common/device.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/html_common.js
diff --git a/lib/runtime/dart/html_common.js b/lib/runtime/dart/html_common.js
index cd149ac0e21319bd9c9803a10e7ec2a459ecee48..6158a4e10b5d7818f5eb23d2de7f60813cfce5a0 100644
--- a/lib/runtime/dart/html_common.js
+++ b/lib/runtime/dart/html_common.js
@@ -618,7 +618,7 @@ dart_library.library('dart/html_common', null, /* Imports */[
dart.fn(convertNativePromiseToDartFuture, async.Future, [dart.dynamic]);
class Device extends core.Object {
static get userAgent() {
- return dart.as(dart.dload(html.window.navigator, 'userAgent'), core.String);
+ return dart.as(dart.dload(html.window.navigator.raw, 'userAgent'), core.String);
}
static get isOpera() {
if (Device._isOpera == null) {
« no previous file with comments | « no previous file | tool/input_sdk/lib/html/html_common/device.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698