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

Unified Diff: LayoutTests/fast/workers/resources/worker-navigator.js

Issue 22866014: Expose navigator.product and navigator.appCodeName constants to workers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 3 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 | LayoutTests/fast/workers/shared-worker-navigator-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/workers/resources/worker-navigator.js
diff --git a/LayoutTests/fast/workers/resources/worker-navigator.js b/LayoutTests/fast/workers/resources/worker-navigator.js
index d1972ba9a47e333f5dc7dc28408005ba518f2a94..9fe39359523d95d7ccc81a5c211926d1912de91d 100644
--- a/LayoutTests/fast/workers/resources/worker-navigator.js
+++ b/LayoutTests/fast/workers/resources/worker-navigator.js
@@ -16,6 +16,8 @@ worker.postMessage("eval navigator.appVersion.indexOf('WebKit') != 0");
worker.postMessage("eval typeof navigator.platform");
worker.postMessage("eval navigator.userAgent.indexOf('WebKit') != 0");
worker.postMessage("eval typeof navigator.onLine");
+worker.postMessage("eval navigator.appCodeName === 'Mozilla'");
+worker.postMessage("eval navigator.product === 'Gecko'");
worker.postMessage("eval foo//bar");
worker.onmessage = function(evt) {
« no previous file with comments | « no previous file | LayoutTests/fast/workers/shared-worker-navigator-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698