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

Issue 2692653003: [Devtools] Added Enable/Disable for request blocking in network (Closed)

Created:
3 years, 10 months ago by allada
Modified:
3 years, 9 months ago
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Devtools] Added Enable/Disable for request blocking in network * Added Enable/Disable button in network blocking drawer. * Persists the network blocking entries between devtools reloads. * Changed code to use setBlockedURLs instead of add/remove counterparts. * Moved icon notifier from main to network module. see: http://imgur.com/a/G0VFI R=pfeldman BUG=691164 Review-Url: https://codereview.chromium.org/2692653003 Cr-Commit-Position: refs/heads/master@{#455986} Committed: https://chromium.googlesource.com/chromium/src/+/01c043f5f744262981becd3d45a79981ad3f6b67

Patch Set 1 : Merge branch 'BLOCK_REQUEST_REMOVE_CONTEXT_MENU' into ADD_ENABLE_DISABLE_REQUEST_BLOCKINg #

Total comments: 8

Patch Set 2 : changes #

Total comments: 4

Patch Set 3 : changes #

Total comments: 4

Patch Set 4 : changes #

Total comments: 6

Patch Set 5 : Merge branch 'master' of https://chromium.googlesource.com/chromium/src into ADD_ENABLE_DISABLE_REQ… #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -100 lines) Patch
M headless/lib/headless_devtools_client_browsertest.cc View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/network/network-blocked-reason.html View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp View 1 2 3 4 1 chunk +7 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/browser_protocol.json View 1 2 3 4 1 chunk +2 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/main/Main.js View 1 2 3 2 chunks +0 lines, -29 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js View 1 2 3 4 1 chunk +22 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/devtools/front_end/sdk/NetworkManager.js View 1 2 3 4 chunks +16 lines, -36 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sdk/module.json View 1 2 3 4 2 chunks +19 lines, -1 line 0 comments Download

Messages

Total messages: 72 (48 generated)
allada
PTL
3 years, 10 months ago (2017-02-11 02:10:11 UTC) #2
pfeldman
You should not need changes to backend.
3 years, 10 months ago (2017-02-11 02:47:42 UTC) #5
allada
PTaL
3 years, 10 months ago (2017-02-11 04:52:40 UTC) #9
pfeldman
https://codereview.chromium.org/2692653003/diff/160001/third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js File third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js (right): https://codereview.chromium.org/2692653003/diff/160001/third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js#newcode122 third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js:122: } else if (SDK.multitargetNetworkManager.isRequestBlockingEnabled() && blockedURLsSetting.get().length) { You don't ...
3 years, 10 months ago (2017-02-13 18:24:26 UTC) #13
allada
PTL https://codereview.chromium.org/2692653003/diff/160001/third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js File third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js (right): https://codereview.chromium.org/2692653003/diff/160001/third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js#newcode122 third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js:122: } else if (SDK.multitargetNetworkManager.isRequestBlockingEnabled() && blockedURLsSetting.get().length) { On ...
3 years, 10 months ago (2017-02-16 21:42:03 UTC) #15
pfeldman
https://codereview.chromium.org/2692653003/diff/240001/third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js File third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js (right): https://codereview.chromium.org/2692653003/diff/240001/third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js#newcode120 third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js:120: function updateVisibility() { You need to call it immediately ...
3 years, 10 months ago (2017-02-22 00:02:46 UTC) #24
allada
PTaL https://codereview.chromium.org/2692653003/diff/240001/third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js File third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js (right): https://codereview.chromium.org/2692653003/diff/240001/third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js#newcode120 third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js:120: function updateVisibility() { On 2017/02/22 00:02:46, pfeldman wrote: ...
3 years, 9 months ago (2017-03-03 20:14:02 UTC) #25
pfeldman
https://codereview.chromium.org/2692653003/diff/260001/third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js File third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js (right): https://codereview.chromium.org/2692653003/diff/260001/third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js#newcode27 third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js:27: var enableRequestBlockingCheckbox = new UI.ToolbarCheckbox( You can now use ...
3 years, 9 months ago (2017-03-06 18:44:59 UTC) #26
allada
PTaL https://codereview.chromium.org/2692653003/diff/260001/third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js File third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js (right): https://codereview.chromium.org/2692653003/diff/260001/third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js#newcode27 third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js:27: var enableRequestBlockingCheckbox = new UI.ToolbarCheckbox( On 2017/03/06 18:44:59, ...
3 years, 9 months ago (2017-03-06 23:26:42 UTC) #30
pfeldman
lgtm % comments https://codereview.chromium.org/2692653003/diff/360001/third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js File third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js (right): https://codereview.chromium.org/2692653003/diff/360001/third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js#newcode28 third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js:28: Common.moduleSetting('requestBlockingEnabled'), Common.UIString('Enables request blocking'), If you ...
3 years, 9 months ago (2017-03-07 02:37:56 UTC) #31
allada
done. https://codereview.chromium.org/2692653003/diff/360001/third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js File third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js (right): https://codereview.chromium.org/2692653003/diff/360001/third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js#newcode28 third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js:28: Common.moduleSetting('requestBlockingEnabled'), Common.UIString('Enables request blocking'), On 2017/03/07 02:37:56, pfeldman ...
3 years, 9 months ago (2017-03-07 21:54:05 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2692653003/380001
3 years, 9 months ago (2017-03-07 21:55:31 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/404199)
3 years, 9 months ago (2017-03-07 22:39:43 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2692653003/400001
3 years, 9 months ago (2017-03-08 00:01:07 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/404354)
3 years, 9 months ago (2017-03-08 00:42:25 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2692653003/420001
3 years, 9 months ago (2017-03-08 02:39:18 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/380538)
3 years, 9 months ago (2017-03-08 02:47:06 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2692653003/420001
3 years, 9 months ago (2017-03-08 19:37:12 UTC) #49
allada
+alexclarke@ can I get a review of the headless test please?
3 years, 9 months ago (2017-03-08 19:39:03 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/246692) chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 9 months ago (2017-03-08 19:42:26 UTC) #53
alex clarke (OOO till 29th)
headless/ LGTM
3 years, 9 months ago (2017-03-09 08:34:10 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2692653003/460001
3 years, 9 months ago (2017-03-10 01:35:24 UTC) #66
commit-bot: I haz the power
Committed patchset #5 (id:460001) as https://chromium.googlesource.com/chromium/src/+/01c043f5f744262981becd3d45a79981ad3f6b67
3 years, 9 months ago (2017-03-10 04:10:50 UTC) #70
dgozman
3 years, 9 months ago (2017-03-20 18:05:47 UTC) #72
Message was sent while issue was closed.
https://codereview.chromium.org/2692653003/diff/460001/third_party/WebKit/Sou...
File third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js
(right):

https://codereview.chromium.org/2692653003/diff/460001/third_party/WebKit/Sou...
third_party/WebKit/Source/devtools/front_end/network/NetworkPanel.js:124:
function updateIconVisibility() {
Note this does not work in case you do throttling in Device Mode, Performance
panel or Application panel.

Powered by Google App Engine
This is Rietveld 408576698