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

Unified Diff: chrome/test/data/extensions/api_test/webnavigation/crossProcessFragment/test_crossProcessFragment.js

Issue 1670673003: Refactor the implementation of the webNavigation extension API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Bug-532666-NavigationHandleAPI
Patch Set: Remove UI thread DCHECKs. Created 4 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/webnavigation/crossProcessFragment/test_crossProcessFragment.js
diff --git a/chrome/test/data/extensions/api_test/webnavigation/crossProcessFragment/test_crossProcessFragment.js b/chrome/test/data/extensions/api_test/webnavigation/crossProcessFragment/test_crossProcessFragment.js
index 8097753af2ac58869ebcb95fb44e6af1888f06c6..0fc0dd3237394348774832df888a7d41415310ae 100644
--- a/chrome/test/data/extensions/api_test/webnavigation/crossProcessFragment/test_crossProcessFragment.js
+++ b/chrome/test/data/extensions/api_test/webnavigation/crossProcessFragment/test_crossProcessFragment.js
@@ -12,6 +12,7 @@ onload = function() {
return url.replace(/PORT/g, config.testServer.port);
};
URL_TEST = fixPort(URL_TEST);
+ let areExtensionsIsolated = config.isolateExtensions;
chrome.test.runTests([
// Navigates to a different site, but then modifies the reference
@@ -22,7 +23,7 @@ onload = function() {
event: "onBeforeNavigate",
details: { frameId: 0,
parentFrameId: -1,
- processId: 0,
+ processId: -1,
tabId: 0,
timeStamp: 0,
url: getURL('f.html') }},
@@ -62,7 +63,7 @@ onload = function() {
event: "onBeforeNavigate",
details: { frameId: 0,
parentFrameId: -1,
- processId: 1,
+ processId: -1,
tabId: 0,
timeStamp: 0,
url: URL_TEST + "3" }},
@@ -107,7 +108,7 @@ onload = function() {
event: "onBeforeNavigate",
details: { frameId: 0,
parentFrameId: -1,
- processId: 0,
+ processId: -1,
tabId: 0,
timeStamp: 0,
url: getURL('g.html') }},
@@ -147,14 +148,14 @@ onload = function() {
event: "onBeforeNavigate",
details: { frameId: 1,
parentFrameId: 0,
- processId: 0,
+ processId: -1,
tabId: 0,
timeStamp: 0,
url: URL_TEST + "4" }},
{ label: "b-onCommitted",
event: "onCommitted",
details: { frameId: 1,
- processId: 0,
+ processId: (areExtensionsIsolated ? 1 : 0),
tabId: 0,
timeStamp: 0,
transitionQualifiers: [],
@@ -163,14 +164,14 @@ onload = function() {
{ label: "b-onDOMContentLoaded",
event: "onDOMContentLoaded",
details: { frameId: 1,
- processId: 0,
+ processId: (areExtensionsIsolated ? 1 : 0),
tabId: 0,
timeStamp: 0,
url: URL_TEST + "4" }},
{ label: "b-onCompleted",
event: "onCompleted",
details: { frameId: 1,
- processId: 0,
+ processId: (areExtensionsIsolated ? 1 : 0),
tabId: 0,
timeStamp: 0,
url: URL_TEST + "4" }}],

Powered by Google App Engine
This is Rietveld 408576698