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

Unified Diff: chrome/test/data/extensions/api_test/content_scripts/duplicate_script_injection/should_run_once.js

Issue 2213603002: Prevent duplicate content script injection defined in manifest.json (reland) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed lgtm nits Created 4 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
Index: chrome/test/data/extensions/api_test/content_scripts/duplicate_script_injection/should_run_once.js
diff --git a/ash/public/interfaces/ash_window_type.mojom b/chrome/test/data/extensions/api_test/content_scripts/duplicate_script_injection/should_run_once.js
similarity index 50%
copy from ash/public/interfaces/ash_window_type.mojom
copy to chrome/test/data/extensions/api_test/content_scripts/duplicate_script_injection/should_run_once.js
index 61f2c4d6435fb90668777035bb9cdeeb3fa4c3b7..081cb22bdb964bccc2b5a47c056721faa48b4e36 100644
--- a/ash/public/interfaces/ash_window_type.mojom
+++ b/chrome/test/data/extensions/api_test/content_scripts/duplicate_script_injection/should_run_once.js
@@ -2,12 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-module ash.mojom;
-
-enum AshWindowType {
- SHELF = 0,
- STATUS_AREA,
- COUNT
-};
-
-const string kAshWindowType_Property = "ash:window-type";
+var should_be_injected_once = document.createElement('div');
+should_be_injected_once.className = 'injected-once';
+document.body.appendChild(should_be_injected_once);

Powered by Google App Engine
This is Rietveld 408576698