| 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 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 886 | 886 |
| 887 var domain = request.parsedURL.domain(); | 887 var domain = request.parsedURL.domain(); |
| 888 if (domain && blockedSetting.get().indexOf(domain) === -1) | 888 if (domain && blockedSetting.get().indexOf(domain) === -1) |
| 889 contextMenu.appendItem(WebInspector.UIString.capitalize("Block ^
request ^domain"), addBlockedURL.bind(null, domain)); | 889 contextMenu.appendItem(WebInspector.UIString.capitalize("Block ^
request ^domain"), addBlockedURL.bind(null, domain)); |
| 890 | 890 |
| 891 function addBlockedURL(url) | 891 function addBlockedURL(url) |
| 892 { | 892 { |
| 893 var list = blockedSetting.get(); | 893 var list = blockedSetting.get(); |
| 894 list.push(url); | 894 list.push(url); |
| 895 blockedSetting.set(list); | 895 blockedSetting.set(list); |
| 896 WebInspector.inspectorView.showViewInDrawer("network.blocked-url
s"); | 896 WebInspector.viewManager.showView("network.blocked-urls"); |
| 897 } | 897 } |
| 898 } | 898 } |
| 899 | 899 |
| 900 if (request && request.resourceType() === WebInspector.resourceTypes.XHR
) { | 900 if (request && request.resourceType() === WebInspector.resourceTypes.XHR
) { |
| 901 contextMenu.appendSeparator(); | 901 contextMenu.appendSeparator(); |
| 902 contextMenu.appendItem(WebInspector.UIString("Replay XHR"), request.
replayXHR.bind(request)); | 902 contextMenu.appendItem(WebInspector.UIString("Replay XHR"), request.
replayXHR.bind(request)); |
| 903 contextMenu.appendSeparator(); | 903 contextMenu.appendSeparator(); |
| 904 } | 904 } |
| 905 | 905 |
| 906 contextMenu.show(); | 906 contextMenu.show(); |
| (...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1729 return false; | 1729 return false; |
| 1730 return true; | 1730 return true; |
| 1731 } | 1731 } |
| 1732 | 1732 |
| 1733 WebInspector.NetworkLogView.EventTypes = { | 1733 WebInspector.NetworkLogView.EventTypes = { |
| 1734 RequestSelected: "RequestSelected", | 1734 RequestSelected: "RequestSelected", |
| 1735 SearchCountUpdated: "SearchCountUpdated", | 1735 SearchCountUpdated: "SearchCountUpdated", |
| 1736 SearchIndexUpdated: "SearchIndexUpdated", | 1736 SearchIndexUpdated: "SearchIndexUpdated", |
| 1737 UpdateRequest: "UpdateRequest" | 1737 UpdateRequest: "UpdateRequest" |
| 1738 }; | 1738 }; |
| OLD | NEW |