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

Unified Diff: third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js

Issue 2807293004: [DevTools] Do not disable blocked URLs list when it's empty (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js b/third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js
index 70daa6ec5be8c64cde1380dda64886780d1b4268..35c0f7343074f1550dde39cf3dca7f500faeb0ad 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js
@@ -175,7 +175,7 @@ Network.BlockedURLsPane = class extends UI.VBox {
*/
_update() {
var enabled = this._manager.blockingEnabled();
- this._list.element.classList.toggle('blocking-disabled', !enabled);
+ this._list.element.classList.toggle('blocking-disabled', !enabled && !!this._manager.blockedPatterns().length);
this._enabledCheckbox.setChecked(enabled);
this._list.clear();
for (var pattern of this._manager.blockedPatterns())
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698