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

Unified Diff: chrome/test/data/extensions/api_test/content_scripts/about_blank_iframes/end.js

Issue 2633253002: Split content script injections into multiple tasks (Closed)
Patch Set: 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/api_test/content_scripts/about_blank_iframes/end.js
diff --git a/chrome/test/data/extensions/api_test/content_scripts/about_blank_iframes/end.js b/chrome/test/data/extensions/api_test/content_scripts/about_blank_iframes/end.js
index acef81491f0c03f29880c778e67256cc27a7ac84..de461537df4fe1b84c4f220e674202956f5aac42 100644
--- a/chrome/test/data/extensions/api_test/content_scripts/about_blank_iframes/end.js
+++ b/chrome/test/data/extensions/api_test/content_scripts/about_blank_iframes/end.js
@@ -6,5 +6,7 @@ if (typeof hasRunContentScriptAtDocumentStart == 'undefined') {
chrome.extension.sendRequest('document_start script has not run!');
} else if (window.parent !== window) {
// Assume iframe
- chrome.extension.sendRequest('jsresult/' + document.body.textContent.trim());
+ var bodyText = document.body.textContent.trim();
+ if (bodyText)
+ chrome.extension.sendRequest('jsresult/' + bodyText);
}

Powered by Google App Engine
This is Rietveld 408576698