Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: chrome/test/data/extensions/api_test/isolated_world2/a.js

Issue 262002: Make all content scripts from an extension run in the same (Closed)
Patch Set: Created 11 years, 2 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: chrome/test/data/extensions/api_test/isolated_world2/a.js
diff --git a/chrome/test/data/extensions/api_test/isolated_world2/a.js b/chrome/test/data/extensions/api_test/isolated_world2/a.js
new file mode 100644
index 0000000000000000000000000000000000000000..394feeedf340ec3650862a7aa1fbd7891873198d
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/isolated_world2/a.js
@@ -0,0 +1,3 @@
+// We should not be able to read the "num" variable which was defined in a.js
+// from the "isolated world 1" extension.
+chrome.extension.connect().postMessage(typeof num == "undefined");

Powered by Google App Engine
This is Rietveld 408576698