| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 * @param {string} url | 198 * @param {string} url |
| 199 * @param {boolean} isContentScript | 199 * @param {boolean} isContentScript |
| 200 */ | 200 */ |
| 201 appendBlackboxURLContextMenuItems: function(contextMenu, url, isContentScrip
t) | 201 appendBlackboxURLContextMenuItems: function(contextMenu, url, isContentScrip
t) |
| 202 { | 202 { |
| 203 var blackboxed = WebInspector.BlackboxSupport.isBlackboxed(url, isConten
tScript); | 203 var blackboxed = WebInspector.BlackboxSupport.isBlackboxed(url, isConten
tScript); |
| 204 var canBlackBox = WebInspector.BlackboxSupport.canBlackboxURL(url); | 204 var canBlackBox = WebInspector.BlackboxSupport.canBlackboxURL(url); |
| 205 if (!blackboxed && !isContentScript && !canBlackBox) | 205 if (!blackboxed && !isContentScript && !canBlackBox) |
| 206 return; | 206 return; |
| 207 | 207 |
| 208 contextMenu.appendSeparator(); | |
| 209 if (blackboxed) { | 208 if (blackboxed) { |
| 210 contextMenu.appendItem(WebInspector.UIString.capitalize("Stop ^black
boxing"), this._handleContextMenuBlackboxURL.bind(this, url, isContentScript, fa
lse)); | 209 contextMenu.appendItem(WebInspector.UIString.capitalize("Stop ^black
boxing"), this._handleContextMenuBlackboxURL.bind(this, url, isContentScript, fa
lse)); |
| 211 } else { | 210 } else { |
| 212 if (canBlackBox) | 211 if (canBlackBox) |
| 213 contextMenu.appendItem(WebInspector.UIString.capitalize("Blackbo
x ^script"), this._handleContextMenuBlackboxURL.bind(this, url, false, true)); | 212 contextMenu.appendItem(WebInspector.UIString.capitalize("Blackbo
x ^script"), this._handleContextMenuBlackboxURL.bind(this, url, false, true)); |
| 214 if (isContentScript) | 213 if (isContentScript) |
| 215 contextMenu.appendItem(WebInspector.UIString.capitalize("Blackbo
x ^all ^content ^scripts"), this._handleContextMenuBlackboxURL.bind(this, url, t
rue, true)); | 214 contextMenu.appendItem(WebInspector.UIString.capitalize("Blackbo
x ^all ^content ^scripts"), this._handleContextMenuBlackboxURL.bind(this, url, t
rue, true)); |
| 216 } | 215 } |
| 217 }, | 216 }, |
| 218 | 217 |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 */ | 431 */ |
| 433 _update: function(uiLocation) | 432 _update: function(uiLocation) |
| 434 { | 433 { |
| 435 var text = uiLocation.linkText(); | 434 var text = uiLocation.linkText(); |
| 436 this.setSubtitle(text.trimMiddle(30)); | 435 this.setSubtitle(text.trimMiddle(30)); |
| 437 this.subtitleElement.title = text; | 436 this.subtitleElement.title = text; |
| 438 }, | 437 }, |
| 439 | 438 |
| 440 __proto__: WebInspector.UIList.Item.prototype | 439 __proto__: WebInspector.UIList.Item.prototype |
| 441 } | 440 } |
| OLD | NEW |