This repository was archived by the owner on Jun 24, 2022. It is now read-only.
File tree 4 files changed +17
-3
lines changed
4 files changed +17
-3
lines changed Original file line number Diff line number Diff line change
1
+ 2020-10-27 Devin Rousso <drousso@apple.com>
2
+
3
+ Web Inspector: truncate data URLs in the Resources sidebar and Headers panel
4
+ https://bugs.webkit.org/show_bug.cgi?id=218262
5
+
6
+ Reviewed by Darin Adler.
7
+
8
+ * UserInterface/Base/Main.js:
9
+ (WI.createResourceLink):
10
+ * UserInterface/Views/ResourceDetailsSidebarPanel.js:
11
+ (WI.ResourceDetailsSidebarPanel.prototype._refreshURL):
12
+ * UserInterface/Views/ResourceHeadersContentView.js:
13
+ (WI.ResourceHeadersContentView.prototype._refreshSummarySection):
14
+
1
15
2020-10-27 Devin Rousso <drousso@apple.com>
2
16
3
17
Web Inspector: Search: don't steal focus from the search field when shown
Original file line number Diff line number Diff line change @@ -3235,7 +3235,7 @@ WI.createResourceLink = function(resource, className)
3235
3235
let linkNode = document . createElement ( "a" ) ;
3236
3236
linkNode . classList . add ( "resource-link" , className ) ;
3237
3237
linkNode . title = resource . url ;
3238
- linkNode . textContent = ( resource . urlComponents . lastPathComponent || resource . url ) . insertWordBreakCharacters ( ) ;
3238
+ linkNode . textContent = ( resource . urlComponents . lastPathComponent || resource . displayURL ) . insertWordBreakCharacters ( ) ;
3239
3239
linkNode . addEventListener ( "click" , handleClick ) ;
3240
3240
return linkNode ;
3241
3241
} ;
Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ WI.ResourceDetailsSidebarPanel = class ResourceDetailsSidebarPanel extends WI.De
232
232
if ( ! this . _resource )
233
233
return ;
234
234
235
- this . _locationFullURLRow . value = this . _resource . url . insertWordBreakCharacters ( ) ;
235
+ this . _locationFullURLRow . value = this . _resource . displayURL . insertWordBreakCharacters ( ) ;
236
236
237
237
var urlComponents = this . _resource . urlComponents ;
238
238
if ( urlComponents . scheme ) {
Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ WI.ResourceHeadersContentView = class ResourceHeadersContentView extends WI.Cont
249
249
250
250
for ( let redirect of this . _resource . redirects )
251
251
this . _summarySection . appendKeyValuePair ( WI . UIString ( "URL" ) , redirect . url . insertWordBreakCharacters ( ) , "url" ) ;
252
- this . _summarySection . appendKeyValuePair ( WI . UIString ( "URL" ) , this . _resource . url . insertWordBreakCharacters ( ) , "url" ) ;
252
+ this . _summarySection . appendKeyValuePair ( WI . UIString ( "URL" ) , this . _resource . displayURL . insertWordBreakCharacters ( ) , "url" ) ;
253
253
254
254
let status = emDash ;
255
255
if ( ! isNaN ( this . _resource . statusCode ) )
You can’t perform that action at this time.
0 commit comments