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

Unified Diff: chrome/test/data/extensions/blocked_actions/content_scripts/script.js

Issue 1809813002: [Extensions] Show a "refresh" bubble when needed with click-to-script (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comment Created 4 years, 9 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/blocked_actions/content_scripts/manifest.json ('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/blocked_actions/content_scripts/script.js
diff --git a/chrome/test/data/extensions/blocked_actions/content_scripts/script.js b/chrome/test/data/extensions/blocked_actions/content_scripts/script.js
new file mode 100644
index 0000000000000000000000000000000000000000..c54b92cfee01158b92b1dc50845b05290d4cb241
--- /dev/null
+++ b/chrome/test/data/extensions/blocked_actions/content_scripts/script.js
@@ -0,0 +1,9 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// If the script was really injected at document_start, then document.body will
+// be null. If it's not null, then we didn't inject at document_start.
+// Store the result in window.localStorage so that it's accessible from the
+// main world script context in the browsertest.
+window.localStorage.setItem('extResult', document.body ? 'failure' : 'success');
« no previous file with comments | « chrome/test/data/extensions/blocked_actions/content_scripts/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698