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

Unified Diff: third_party/WebKit/Source/core/inspector/browser_protocol.json

Issue 2132673002: Adding Navigation Throttles to DevTools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reduce number of delta lines in DevToolsProtocolTest Created 4 years, 5 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/Source/core/inspector/browser_protocol.json
diff --git a/third_party/WebKit/Source/core/inspector/browser_protocol.json b/third_party/WebKit/Source/core/inspector/browser_protocol.json
index 7de6c22abb781d2e7c0831c8983fcf2f1256fc4e..c4554836b031afb4cc3e4e02c8b4358c0cfc1393 100644
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json
@@ -174,6 +174,13 @@
{ "name": "column", "type": "integer", "description": "Error column." }
],
"hidden": true
+ },
+ {
+ "id": "NavigationResponse",
+ "description": "Proceed: allow the navigation; Cancel: cancel the navigation; CancelAndIgnore: cancels the navigation and makes the requester of the navigation acts like the request was never made.",
+ "type": "string",
+ "enum": ["Proceed", "Cancel", "CancelAndIgnore"],
+ "hidden": true
}
],
"commands": [
@@ -481,6 +488,25 @@
"parameters": [
{ "name": "threshold", "type": "number", "description": "If set to a positive number, specifies threshold in seconds for input event latency that will cause a console warning about blocked event to be issued. If zero or less, the warning is disabled." }
]
+ },
+ {
+ "name": "setControlNavigations",
+ "parameters": [
+ { "name": "enabled", "type": "boolean" }
+ ],
+ "description": "Toggles navigation throttling which allows programatic control over navigation and redirect response.",
+ "hidden": true,
+ "handlers": ["browser"]
+ },
+ {
+ "name": "processNavigation",
+ "parameters": [
+ { "name": "response", "$ref": "NavigationResponse" },
+ { "name": "navigationId", "type": "integer" }
+ ],
+ "description": "Should be sent in response to a navigationRequested or a redirectRequested event, telling the browser how to handle the navigation.",
+ "hidden": true,
+ "handlers": ["browser"]
}
],
"events": [
@@ -612,6 +638,18 @@
"description": "Fired when interstitial page was hidden",
"hidden": true,
"handlers": ["browser"]
+ },
+ {
+ "name": "navigationRequested",
+ "description": "Fired when a navigation is started if navigation throttles are enabled. The navigation will be deferred until processNavigation is called.",
+ "parameters": [
+ { "name": "isInMainFrame", "type": "boolean", "description": "Whether the navigation is taking place in the main frame or in a subframe." },
+ { "name": "isRedirect", "type": "boolean", "description": "Whether the navigation has encountered a server redirect or not." },
+ { "name": "navigationId", "type": "integer" },
+ { "name": "url", "type": "string", "description": "URL of requested navigation." },
+ { "name": "rendererInitiated", "type": "boolean", "description": "Whether the navigation was initated by the renderer process." }
nasko 2016/07/14 16:47:20 Let's remove this bit too. It shouldn't matter whe
alex clarke (OOO till 29th) 2016/07/14 17:26:17 Done.
+ ],
+ "handlers": ["browser"]
}
]
},

Powered by Google App Engine
This is Rietveld 408576698