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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/page-mock.js

Issue 2851913002: [DevTools] Do not expose agents on Target
Patch Set: storage and tests.js Created 3 years, 8 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: third_party/WebKit/LayoutTests/http/tests/inspector/page-mock.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/page-mock.js b/third_party/WebKit/LayoutTests/http/tests/inspector/page-mock.js
index f7f5e410d8199bbf848b5bf5a0dc32049e7a8f2f..8f5e7c98b285ebd90162e06e8d075a0f6653ae69 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/page-mock.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/page-mock.js
@@ -7,7 +7,8 @@ function nextId(prefix) {
}
InspectorTest.connectToPage = function(targetName, pageMock, makeMainTarget) {
- var mockTarget = SDK.targetManager.createTarget(nextId('mock-target-'), targetName, pageMock.capabilities(), params => pageMock.createConnection(params));
+ var dispatcher = new Protocol.Dispatcher(params => pageMock.createConnection(params));
+ var mockTarget = SDK.targetManager.createTarget(nextId('mock-target-'), targetName, pageMock.capabilities(), dispatcher);
if (makeMainTarget) {
SDK.targetManager._targets = SDK.targetManager._targets.filter(target => target !== mockTarget);
SDK.targetManager._targets.unshift(mockTarget);

Powered by Google App Engine
This is Rietveld 408576698