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 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1111 } | 1111 } |
1112 copyMenu.appendItem(Common.UIString.capitalize('Copy ^all as HAR'), this._co
pyAll.bind(this)); | 1112 copyMenu.appendItem(Common.UIString.capitalize('Copy ^all as HAR'), this._co
pyAll.bind(this)); |
1113 | 1113 |
1114 contextMenu.appendSeparator(); | 1114 contextMenu.appendSeparator(); |
1115 contextMenu.appendItem(Common.UIString.capitalize('Save as HAR with ^content
'), this._exportAll.bind(this)); | 1115 contextMenu.appendItem(Common.UIString.capitalize('Save as HAR with ^content
'), this._exportAll.bind(this)); |
1116 | 1116 |
1117 contextMenu.appendSeparator(); | 1117 contextMenu.appendSeparator(); |
1118 contextMenu.appendItem(Common.UIString.capitalize('Clear ^browser ^cache'),
this._clearBrowserCache.bind(this)); | 1118 contextMenu.appendItem(Common.UIString.capitalize('Clear ^browser ^cache'),
this._clearBrowserCache.bind(this)); |
1119 contextMenu.appendItem(Common.UIString.capitalize('Clear ^browser ^cookies')
, this._clearBrowserCookies.bind(this)); | 1119 contextMenu.appendItem(Common.UIString.capitalize('Clear ^browser ^cookies')
, this._clearBrowserCookies.bind(this)); |
1120 | 1120 |
1121 if (request && Runtime.experiments.isEnabled('requestBlocking')) { // Disab
led until ready. | 1121 if (request) { |
1122 contextMenu.appendSeparator(); | 1122 contextMenu.appendSeparator(); |
1123 | 1123 |
1124 const maxBlockedURLLength = 20; | 1124 const maxBlockedURLLength = 20; |
1125 var manager = SDK.multitargetNetworkManager; | 1125 var manager = SDK.multitargetNetworkManager; |
1126 var patterns = manager.blockedPatterns(); | 1126 var patterns = manager.blockedPatterns(); |
1127 | 1127 |
1128 var urlWithoutScheme = request.parsedURL.urlWithoutScheme(); | 1128 var urlWithoutScheme = request.parsedURL.urlWithoutScheme(); |
1129 if (urlWithoutScheme && !patterns.find(pattern => pattern.url === urlWitho
utScheme)) { | 1129 if (urlWithoutScheme && !patterns.find(pattern => pattern.url === urlWitho
utScheme)) { |
1130 contextMenu.appendItem( | 1130 contextMenu.appendItem( |
1131 Common.UIString.capitalize('Block ^request URL'), addBlockedURL.bind
(null, urlWithoutScheme)); | 1131 Common.UIString.capitalize('Block ^request URL'), addBlockedURL.bind
(null, urlWithoutScheme)); |
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1809 * @return {?*} | 1809 * @return {?*} |
1810 */ | 1810 */ |
1811 groupForRequest(request) {}, | 1811 groupForRequest(request) {}, |
1812 | 1812 |
1813 /** | 1813 /** |
1814 * @param {!*} key | 1814 * @param {!*} key |
1815 * @return {string} | 1815 * @return {string} |
1816 */ | 1816 */ |
1817 groupName(key) {} | 1817 groupName(key) {} |
1818 }; | 1818 }; |
OLD | NEW |