Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/CallStackSidebarPane.js

Issue 2376583002: DevTools: remove WI.NetworkMapping.networkURL (Closed)
Patch Set: do not blackbox fs uiSourceCodes Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 } 274 }
275 } 275 }
276 }, 276 },
277 277
278 /** 278 /**
279 * @param {!WebInspector.ContextMenu} contextMenu 279 * @param {!WebInspector.ContextMenu} contextMenu
280 * @param {!WebInspector.UISourceCode} uiSourceCode 280 * @param {!WebInspector.UISourceCode} uiSourceCode
281 */ 281 */
282 appendBlackboxURLContextMenuItems: function(contextMenu, uiSourceCode) 282 appendBlackboxURLContextMenuItems: function(contextMenu, uiSourceCode)
283 { 283 {
284 var binding = WebInspector.persistence.binding(uiSourceCode);
285 if (binding)
286 uiSourceCode = binding.network;
287 if (uiSourceCode.project().type() === WebInspector.projectTypes.FileSyst em)
288 return;
284 var canBlackbox = WebInspector.blackboxManager.canBlackboxUISourceCode(u iSourceCode); 289 var canBlackbox = WebInspector.blackboxManager.canBlackboxUISourceCode(u iSourceCode);
285 var isBlackboxed = WebInspector.blackboxManager.isBlackboxedUISourceCode (uiSourceCode); 290 var isBlackboxed = WebInspector.blackboxManager.isBlackboxedUISourceCode (uiSourceCode);
286 var isContentScript = uiSourceCode.project().type() === WebInspector.pro jectTypes.ContentScripts; 291 var isContentScript = uiSourceCode.project().type() === WebInspector.pro jectTypes.ContentScripts;
287 292
288 var manager = WebInspector.blackboxManager; 293 var manager = WebInspector.blackboxManager;
289 if (canBlackbox) { 294 if (canBlackbox) {
290 if (isBlackboxed) 295 if (isBlackboxed)
291 contextMenu.appendItem(WebInspector.UIString.capitalize("Stop ^b lackboxing"), manager.unblackboxUISourceCode.bind(manager, uiSourceCode)); 296 contextMenu.appendItem(WebInspector.UIString.capitalize("Stop ^b lackboxing"), manager.unblackboxUISourceCode.bind(manager, uiSourceCode));
292 else 297 else
293 contextMenu.appendItem(WebInspector.UIString.capitalize("Blackbo x ^script"), manager.blackboxUISourceCode.bind(manager, uiSourceCode)); 298 contextMenu.appendItem(WebInspector.UIString.capitalize("Blackbo x ^script"), manager.blackboxUISourceCode.bind(manager, uiSourceCode));
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 var uiLocation = liveLocation.uiLocation(); 489 var uiLocation = liveLocation.uiLocation();
485 if (!uiLocation) 490 if (!uiLocation)
486 return; 491 return;
487 var text = uiLocation.linkText(); 492 var text = uiLocation.linkText();
488 this.setSubtitle(text.trimMiddle(30)); 493 this.setSubtitle(text.trimMiddle(30));
489 this.subtitleElement.title = text; 494 this.subtitleElement.title = text;
490 }, 495 },
491 496
492 __proto__: WebInspector.UIList.Item.prototype 497 __proto__: WebInspector.UIList.Item.prototype
493 } 498 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698