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

Unified Diff: third_party/WebKit/Source/devtools/front_end/common/ParsedURL.js

Issue 1924153002: DevTools: reorder items in the resources panel sidebar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/common/ParsedURL.js
diff --git a/third_party/WebKit/Source/devtools/front_end/common/ParsedURL.js b/third_party/WebKit/Source/devtools/front_end/common/ParsedURL.js
index edfcc5392c8c4f1157634167922196c9c284070d..7ceddc55bb5ff0f963af94ab17b9ca8ee84e81e5 100644
--- a/third_party/WebKit/Source/devtools/front_end/common/ParsedURL.js
+++ b/third_party/WebKit/Source/devtools/front_end/common/ParsedURL.js
@@ -263,12 +263,24 @@ WebInspector.ParsedURL.prototype = {
*/
domain: function()
{
+ if (this.isDataURL())
+ return "data:";
return this.host + (this.port ? ":" + this.port : "");
},
/**
* @return {string}
*/
+ securityOrigin: function()
+ {
+ if (this.isDataURL())
+ return "data:";
+ return this.scheme + "://" + this.domain();
+ },
+
+ /**
+ * @return {string}
+ */
urlWithoutScheme: function()
{
if (this.scheme && this.url.startsWith(this.scheme + "://"))

Powered by Google App Engine
This is Rietveld 408576698