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

Unified Diff: chrome/test/data/extensions/platform_apps/web_view/legacy/content_script/content_script.js

Issue 78303005: ContentSettings API should not interact with <webview> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small cleanup/refactor Created 7 years, 1 month 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/platform_apps/web_view/legacy/content_script/content_script.js
diff --git a/chrome/test/data/extensions/platform_apps/web_view/legacy/content_script/content_script.js b/chrome/test/data/extensions/platform_apps/web_view/legacy/content_script/content_script.js
deleted file mode 100644
index a5d5b316ee2c0312149d452ccb11f13afb599daf..0000000000000000000000000000000000000000
--- a/chrome/test/data/extensions/platform_apps/web_view/legacy/content_script/content_script.js
+++ /dev/null
@@ -1,16 +0,0 @@
-// Copyright 2013 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.
-
-window.console.log('Hello world from content_script');
-
-// Signal back to the embedder via event and text content change.
-// If the embedder registers event after the event is fired, we can still
-// catch the fact that content script ran by inspecting the innerText of the
-// element.
-var element = document.getElementById('the-bridge-element');
-if (element) {
- window.console.log('Dispatching event');
- element.innerText = 'Mutated';
- element.dispatchEvent(new Event('bridge-event', {bubbles: true}));
-}

Powered by Google App Engine
This is Rietveld 408576698