| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 _parseNameAndPathFromURL: function() | 554 _parseNameAndPathFromURL: function() |
| 555 { | 555 { |
| 556 if (this._parsedURL.isDataURL()) { | 556 if (this._parsedURL.isDataURL()) { |
| 557 this._name = this._parsedURL.dataURLDisplayName(); | 557 this._name = this._parsedURL.dataURLDisplayName(); |
| 558 this._path = ""; | 558 this._path = ""; |
| 559 } else if (this._parsedURL.isAboutBlank()) { | 559 } else if (this._parsedURL.isAboutBlank()) { |
| 560 this._name = this._parsedURL.url; | 560 this._name = this._parsedURL.url; |
| 561 this._path = ""; | 561 this._path = ""; |
| 562 } else { | 562 } else { |
| 563 this._path = this._parsedURL.host + this._parsedURL.folderPathCompon
ents; | 563 this._path = this._parsedURL.host + this._parsedURL.folderPathCompon
ents; |
| 564 this._path = this._path.trimURL(this.target().resourceTreeModel.insp
ectedPageDomain()); | 564 |
| 565 this._path = this._path.trimURL(this.target().inspectedURL().asParse
dURL().host); |
| 565 if (this._parsedURL.lastPathComponent || this._parsedURL.queryParams
) | 566 if (this._parsedURL.lastPathComponent || this._parsedURL.queryParams
) |
| 566 this._name = this._parsedURL.lastPathComponent + (this._parsedUR
L.queryParams ? "?" + this._parsedURL.queryParams : ""); | 567 this._name = this._parsedURL.lastPathComponent + (this._parsedUR
L.queryParams ? "?" + this._parsedURL.queryParams : ""); |
| 567 else if (this._parsedURL.folderPathComponents) { | 568 else if (this._parsedURL.folderPathComponents) { |
| 568 this._name = this._parsedURL.folderPathComponents.substring(this
._parsedURL.folderPathComponents.lastIndexOf("/") + 1) + "/"; | 569 this._name = this._parsedURL.folderPathComponents.substring(this
._parsedURL.folderPathComponents.lastIndexOf("/") + 1) + "/"; |
| 569 this._path = this._path.substring(0, this._path.lastIndexOf("/")
); | 570 this._path = this._path.substring(0, this._path.lastIndexOf("/")
); |
| 570 } else { | 571 } else { |
| 571 this._name = this._parsedURL.host; | 572 this._name = this._parsedURL.host; |
| 572 this._path = ""; | 573 this._path = ""; |
| 573 } | 574 } |
| 574 } | 575 } |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1220 /** | 1221 /** |
| 1221 * @return {!WebInspector.NetworkManager} | 1222 * @return {!WebInspector.NetworkManager} |
| 1222 */ | 1223 */ |
| 1223 networkManager: function() | 1224 networkManager: function() |
| 1224 { | 1225 { |
| 1225 return this._networkManager; | 1226 return this._networkManager; |
| 1226 }, | 1227 }, |
| 1227 | 1228 |
| 1228 __proto__: WebInspector.SDKObject.prototype | 1229 __proto__: WebInspector.SDKObject.prototype |
| 1229 } | 1230 } |
| OLD | NEW |