Bug 1587781 - Display correct context menu item for blocking URLs r=Honza
authorDavid Walsh <dwalsh@mozilla.com>
Fri, 11 Oct 2019 13:40:04 +0000
changeset 497268 9307e73941a7e4d7dae9c2ef3af5e8a4c80baaf0
parent 497267 a30f6255ffd4e0399ffa1369c1331b0b7517cd78
child 497269 4ec5e79bb310b77bfd1282aebfe9f81b68067751
push id36681
push usercbrindusan@mozilla.com
push dateFri, 11 Oct 2019 21:50:12 +0000
treeherdermozilla-central@c5e6477c3a24 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersHonza
bugs1587781
milestone71.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1587781 - Display correct context menu item for blocking URLs r=Honza Differential Revision: https://phabricator.services.mozilla.com/D48850
devtools/client/netmonitor/src/components/RequestListContent.js
--- a/devtools/client/netmonitor/src/components/RequestListContent.js
+++ b/devtools/client/netmonitor/src/components/RequestListContent.js
@@ -407,17 +407,19 @@ class RequestListContent extends Compone
         ) // end of requests-list-row-group">
       )
     );
   }
 }
 
 module.exports = connect(
   state => ({
-    blockedUrls: state.requestBlocking.blockedUrls.map(({ url }) => url),
+    blockedUrls: state.requestBlocking.blockedUrls
+      .map(({ enabled, url }) => (enabled ? url : null))
+      .filter(Boolean),
     columns: getColumns(state),
     networkDetailsOpen: state.ui.networkDetailsOpen,
     networkDetailsWidth: state.ui.networkDetailsWidth,
     networkDetailsHeight: state.ui.networkDetailsHeight,
     clickedRequest: state.requests.clickedRequest,
     displayedRequests: getDisplayedRequests(state),
     firstRequestStartedMs: state.requests.firstStartedMs,
     selectedRequest: getSelectedRequest(state),