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

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

Issue 2633253002: Split content script injections into multiple tasks (Closed)
Patch Set: comments addressed Created 3 years, 9 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/test.js
diff --git a/chrome/test/data/extensions/api_test/content_scripts/about_blank_iframes/test.js b/chrome/test/data/extensions/api_test/content_scripts/about_blank_iframes/test.js
index 5d08ce0a68dd5d10f773dea4f73eff7770fbdd86..511f5d7173df34519dc2c472ffc386e94115ad32 100644
--- a/chrome/test/data/extensions/api_test/content_scripts/about_blank_iframes/test.js
+++ b/chrome/test/data/extensions/api_test/content_scripts/about_blank_iframes/test.js
@@ -45,9 +45,11 @@ chrome.test.getConfig(function(config) {
function testDocumentStartRunsInSameWorldAsDocumentEndOfJavaScriptUrl() {
var hasReceivedFirstMessage = false;
onRequest.addListener(function listener(request) {
- if (!hasReceivedFirstMessage) {
+ if (config.customArg == "YieldBetweenContentScriptRunsDisabled" &&
+ !hasReceivedFirstMessage) {
hasReceivedFirstMessage = true;
// Step one: Empty document where the JavaScript code was executed.
+ // This happens only if content script is injected synchronously.
checkFirstMessageEquals('jsresult/')(request);
} else {
onRequest.removeListener(listener);

Powered by Google App Engine
This is Rietveld 408576698