Changeset 64565 in webkit


Ignore:
Timestamp:
Aug 3, 2010 10:54:19 AM (14 years ago)
Author:
apavlov@chromium.org
Message:

2010-08-03 Alexander Pavlov <apavlov@chromium.org>

Reviewed by Joseph Pecoraro.

Web Inspector: incorrect absolute protocol-less URLs in tooltips of links in the ElementsTreeOutline
https://bugs.webkit.org/show_bug.cgi?id=43246

  • inspector/front-end/inspector.js: (WebInspector.completeURL):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r64563 r64565  
     12010-08-03  Alexander Pavlov  <apavlov@chromium.org>
     2
     3        Reviewed by Joseph Pecoraro.
     4
     5        Web Inspector: incorrect absolute protocol-less URLs in tooltips of links in the ElementsTreeOutline
     6        https://bugs.webkit.org/show_bug.cgi?id=43246
     7
     8        * inspector/front-end/inspector.js:
     9        (WebInspector.completeURL):
     10
    1112010-08-03  Adam Roben  <aroben@apple.com>
    212
  • trunk/WebCore/inspector/front-end/inspector.js

    r64558 r64565  
    17881788            var basePath = match[4] || "/";
    17891789            path = basePath.substring(0, basePath.lastIndexOf("/")) + "/" + path;
     1790        } else if (path.length > 1 && path.charAt(1) === "/") {
     1791            // href starts with "//" which is a full URL with the protocol dropped (use the baseURL protocol).
     1792            return match[1] + ":" + path;
    17901793        }
    17911794        return match[1] + "://" + match[2] + (match[3] ? (":" + match[3]) : "") + path;
Note: See TracChangeset for help on using the changeset viewer.