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

Side by Side Diff: Source/WebCore/inspector/front-end/NetworkPanel.js

Issue 10796093: Merge 122979 - Web Inspector: [Regression] Save as file is missing in Network panel preview/respons… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 5 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
« no previous file with comments | « Source/WebCore/inspector/front-end/NetworkItemView.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1431 matching lines...) Expand 10 before | Expand all | Expand 10 after
1442 }, 1442 },
1443 1443
1444 /** 1444 /**
1445 * @param {WebInspector.ContextMenu} contextMenu 1445 * @param {WebInspector.ContextMenu} contextMenu
1446 * @param {Object} target 1446 * @param {Object} target
1447 */ 1447 */
1448 appendApplicableItems: function(contextMenu, target) 1448 appendApplicableItems: function(contextMenu, target)
1449 { 1449 {
1450 if (!(target instanceof WebInspector.NetworkRequest)) 1450 if (!(target instanceof WebInspector.NetworkRequest))
1451 return; 1451 return;
1452 if (this.visibleView && this.visibleView.isShowing() && this.visibleView .request() === target)
1453 return;
1452 1454
1453 function reveal() 1455 function reveal()
1454 { 1456 {
1455 WebInspector.inspectorView.setCurrentPanel(this); 1457 WebInspector.inspectorView.setCurrentPanel(this);
1456 this.revealAndHighlightRequest(/** @type {WebInspector.NetworkReques t} */ target); 1458 this.revealAndHighlightRequest(/** @type {WebInspector.NetworkReques t} */ target);
1457 } 1459 }
1458 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMe nuTitles() ? "Reveal in network panel" : "Reveal in Network Panel"), reveal.bind (this)); 1460 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMe nuTitles() ? "Reveal in network panel" : "Reveal in Network Panel"), reveal.bind (this));
1459 } 1461 }
1460 } 1462 }
1461 1463
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
2136 var aValue = a._request[propertyName]; 2138 var aValue = a._request[propertyName];
2137 var bValue = b._request[propertyName]; 2139 var bValue = b._request[propertyName];
2138 if (aValue > bValue) 2140 if (aValue > bValue)
2139 return revert ? -1 : 1; 2141 return revert ? -1 : 1;
2140 if (bValue > aValue) 2142 if (bValue > aValue)
2141 return revert ? 1 : -1; 2143 return revert ? 1 : -1;
2142 return 0; 2144 return 0;
2143 } 2145 }
2144 2146
2145 WebInspector.NetworkDataGridNode.prototype.__proto__ = WebInspector.DataGridNode .prototype; 2147 WebInspector.NetworkDataGridNode.prototype.__proto__ = WebInspector.DataGridNode .prototype;
OLDNEW
« no previous file with comments | « Source/WebCore/inspector/front-end/NetworkItemView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698