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

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: Initial fix to bug 631247 Created 4 years, 4 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/blimp/common/blob_cache/mock_blob_cache.cc b/chrome/test/data/extensions/api_test/content_scripts/duplicate_script_injection/should_run_once.js
similarity index 50%
copy from blimp/common/blob_cache/mock_blob_cache.cc
copy to chrome/test/data/extensions/api_test/content_scripts/duplicate_script_injection/should_run_once.js
index 4cf10522588b680929bcbe0a751f6e8dbff32b4f..081cb22bdb964bccc2b5a47c056721faa48b4e36 100644
--- a/blimp/common/blob_cache/mock_blob_cache.cc
+++ 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.
-#include "blimp/common/blob_cache/mock_blob_cache.h"
-
-namespace blimp {
-
-MockBlobCache::MockBlobCache() {}
-
-MockBlobCache::~MockBlobCache() {}
-
-} // namespace blimp
+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