OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> | 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> |
4 * Copyright (C) 2011 Google Inc. All rights reserved. | 4 * Copyright (C) 2011 Google Inc. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * | 9 * |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1292 } | 1292 } |
1293 contextMenu.appendItem(WebInspector.UIString.capitalize("Copy ^all as HA R"), this._copyAll.bind(this)); | 1293 contextMenu.appendItem(WebInspector.UIString.capitalize("Copy ^all as HA R"), this._copyAll.bind(this)); |
1294 | 1294 |
1295 contextMenu.appendSeparator(); | 1295 contextMenu.appendSeparator(); |
1296 contextMenu.appendItem(WebInspector.UIString.capitalize("Save as HAR wit h ^content"), this._exportAll.bind(this)); | 1296 contextMenu.appendItem(WebInspector.UIString.capitalize("Save as HAR wit h ^content"), this._exportAll.bind(this)); |
1297 | 1297 |
1298 contextMenu.appendSeparator(); | 1298 contextMenu.appendSeparator(); |
1299 contextMenu.appendItem(WebInspector.UIString.capitalize("Clear ^browser ^cache"), this._clearBrowserCache.bind(this)); | 1299 contextMenu.appendItem(WebInspector.UIString.capitalize("Clear ^browser ^cache"), this._clearBrowserCache.bind(this)); |
1300 contextMenu.appendItem(WebInspector.UIString.capitalize("Clear ^browser ^cookies"), this._clearBrowserCookies.bind(this)); | 1300 contextMenu.appendItem(WebInspector.UIString.capitalize("Clear ^browser ^cookies"), this._clearBrowserCookies.bind(this)); |
1301 | 1301 |
1302 if (request && Runtime.experiments.isEnabled("blockedURLs")) { | |
1303 function toggleRequestURLBlocked() | |
1304 { | |
1305 WebInspector.multitargetNetworkManager.toggleURLBlocked(request. url); | |
1306 } | |
1307 | |
1308 var blocked = WebInspector.multitargetNetworkManager.blockedURLs().h as(request.url); | |
1309 contextMenu.appendSeparator(); | |
1310 contextMenu.appendItem(blocked ? WebInspector.UIString.capitalize("U nblock ^request URL") : WebInspector.UIString.capitalize("Block ^request URL"), toggleRequestURLBlocked); | |
pfeldman
2015/08/21 22:05:33
How would I unblock? It would be missing.
| |
1311 } | |
1312 | |
1302 if (request && request.resourceType() === WebInspector.resourceTypes.XHR ) { | 1313 if (request && request.resourceType() === WebInspector.resourceTypes.XHR ) { |
1303 contextMenu.appendSeparator(); | 1314 contextMenu.appendSeparator(); |
1304 contextMenu.appendItem(WebInspector.UIString("Replay XHR"), request. replayXHR.bind(request)); | 1315 contextMenu.appendItem(WebInspector.UIString("Replay XHR"), request. replayXHR.bind(request)); |
1305 contextMenu.appendSeparator(); | 1316 contextMenu.appendSeparator(); |
1306 } | 1317 } |
1307 | 1318 |
1308 contextMenu.show(); | 1319 contextMenu.show(); |
1309 }, | 1320 }, |
1310 | 1321 |
1311 _harRequests: function() | 1322 _harRequests: function() |
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2061 return false; | 2072 return false; |
2062 return true; | 2073 return true; |
2063 } | 2074 } |
2064 | 2075 |
2065 WebInspector.NetworkLogView.EventTypes = { | 2076 WebInspector.NetworkLogView.EventTypes = { |
2066 RequestSelected: "RequestSelected", | 2077 RequestSelected: "RequestSelected", |
2067 SearchCountUpdated: "SearchCountUpdated", | 2078 SearchCountUpdated: "SearchCountUpdated", |
2068 SearchIndexUpdated: "SearchIndexUpdated", | 2079 SearchIndexUpdated: "SearchIndexUpdated", |
2069 UpdateRequest: "UpdateRequest" | 2080 UpdateRequest: "UpdateRequest" |
2070 }; | 2081 }; |
OLD | NEW |