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

Unified Diff: chrome/test/data/extensions/platform_apps/web_view/content_script_whitelisted/main.js

Issue 2633253002: Split content script injections into multiple tasks (Closed)
Patch Set: rebase Created 3 years, 10 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/platform_apps/web_view/content_script_whitelisted/main.js
diff --git a/chrome/test/data/extensions/platform_apps/web_view/content_script_whitelisted/main.js b/chrome/test/data/extensions/platform_apps/web_view/content_script_whitelisted/main.js
index 8003fbebdee7e785a6dfac52151bebed3740d3d4..f8749bc783c1c66fc349d066ae9bba62773af85f 100644
--- a/chrome/test/data/extensions/platform_apps/web_view/content_script_whitelisted/main.js
+++ b/chrome/test/data/extensions/platform_apps/web_view/content_script_whitelisted/main.js
@@ -3,7 +3,7 @@
// found in the LICENSE file.
// This test makes sure webview properly loads and content script is run.
-onload = function() {
+document.addEventListener("DOMContentLoaded", function() {
Devlin 2017/03/02 02:33:17 nit: prefer single quotes but also, why this chang
Kunihiko Sakamoto 2017/03/06 09:11:05 This test failed when content script is injected b
var contentScriptRan = false;
var webviewLoaded = false;
@@ -42,4 +42,4 @@ onload = function() {
webview.setAttribute(
'src', 'data:text/html,<html><body>tear down test</body></html>');
document.body.appendChild(webview);
-};
+});

Powered by Google App Engine
This is Rietveld 408576698