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

Unified Diff: chrome/test/data/extensions/api_test/sandboxed_pages/sandboxed.html

Issue 19783003: Rewrite ExtensionApiTest.SandboxedPages to catch exceptions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | « chrome/test/data/extensions/api_test/sandboxed_pages/main.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/sandboxed_pages/sandboxed.html
diff --git a/chrome/test/data/extensions/api_test/sandboxed_pages/sandboxed.html b/chrome/test/data/extensions/api_test/sandboxed_pages/sandboxed.html
index 78e79c1a121f7cf5714a5b7673f4810ea40eebaa..97a6372b41c4a9a7d698b41412265c32f82ee397 100644
--- a/chrome/test/data/extensions/api_test/sandboxed_pages/sandboxed.html
+++ b/chrome/test/data/extensions/api_test/sandboxed_pages/sandboxed.html
@@ -11,6 +11,10 @@ onload = function() {
}
var mainWindow = window.opener || window.top;
- mainWindow.postMessage(mainWindow.secret, '*');
+ var mainWindowSecret = undefined;
+ try {
+ mainWindowSecret = mainWindow.secret;
+ } catch(e) {}
+ mainWindow.postMessage(mainWindowSecret, '*');
};
</script>
« no previous file with comments | « chrome/test/data/extensions/api_test/sandboxed_pages/main.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698