Bug 1151368 - Block requests by URL in DevTools. r=ochameau draft
authorJ. Ryan Stinnett <jryans@gmail.com>
Fri, 19 Apr 2019 18:25:19 +0000
changeset 11406 6fd71b7b9daf6d1fccaf02912216689e2c1a085e
parent 11405 f479726747e7de40dec4315f6aef4f37d12992c0
child 11407 c31abf9e3a99a5fa91dc9c1d7823e2e9e76eada8
push id204
push userflodolo@mozilla.com
push dateSat, 20 Apr 2019 10:10:46 +0000
reviewersochameau
bugs1151368
Bug 1151368 - Block requests by URL in DevTools. r=ochameau This is a very basic form of request blocking for the Network Monitor. It only supports blocking a request via right-click. This change adds the minimal UI and server support to block the request. There is no UI to indicate what happened to the request yet, so it will just look like a "confused" request that never started. Future patches will improve from here. Differential Revision: https://phabricator.services.mozilla.com/D26579 X-Channel-Repo: mozilla-central X-Channel-Converted-Revision: eaf2a199d4eaa2b991bb319bd6df919d793ccf8f X-Channel-Repo: releases/mozilla-beta X-Channel-Revision: 53da81e19127fb55bcbc00c86bd910751c5b56cd X-Channel-Repo: releases/mozilla-release X-Channel-Revision: 15f10287a218572a7fd47acabb40208645b4462d
devtools/client/netmonitor.properties
--- a/devtools/client/netmonitor.properties
+++ b/devtools/client/netmonitor.properties
@@ -1066,16 +1066,20 @@ netmonitor.context.resend.accesskey=n
 # on the context menu that opens a form to edit and resend the currently
 # displayed request
 netmonitor.context.editAndResend=Edit and Resend
 
 # LOCALIZATION NOTE (netmonitor.context.editAndResend.accesskey): This is the access key
 # for the "Edit and Resend" menu item displayed in the context menu for a request
 netmonitor.context.editAndResend.accesskey=E
 
+# LOCALIZATION NOTE (netmonitor.context.blockURL): This is the label displayed
+# on the context menu that blocks any requests matching the selected request's URL.
+netmonitor.context.blockURL=Block URL
+
 # LOCALIZATION NOTE (netmonitor.context.newTab):  This is the label
 # for the Open in New Tab menu item displayed in the context menu of the
 # network container
 netmonitor.context.newTab=Open in New Tab
 
 # LOCALIZATION NOTE (netmonitor.context.newTab.accesskey): This is the access key
 # for the Open in New Tab menu item displayed in the context menu of the
 # network container