⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 94067 in webkit


Ignore:
Timestamp:
Aug 30, 2011, 3:57:11 AM (15 years ago)
Author:
yurys@chromium.org
Message:

Web Inspector: wrong script display name when there is a slash in its URL query parameters
https://bugs.webkit.org/show_bug.cgi?id=67120

Source/WebCore:

Fixed folder name computation in ScriptsPanel. Now search query is ignored
when searching for the script folder name.

Reviewed by Pavel Feldman.

  • inspector/front-end/ScriptsPanel.js:

(WebInspector.ScriptsPanel.prototype._folderAndDisplayNameForScriptURL):

LayoutTests:

Reviewed by Pavel Feldman.

  • inspector/debugger/scripts-sorting.html:
  • platform/chromium/inspector/debugger/scripts-sorting-expected.txt:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r94066 r94067  
     12011-08-29  Yury Semikhatsky  <yurys@chromium.org>
     2
     3        Web Inspector: wrong script display name when there is a slash in its URL query parameters
     4        https://bugs.webkit.org/show_bug.cgi?id=67120
     5
     6        Reviewed by Pavel Feldman.
     7
     8        * inspector/debugger/scripts-sorting.html:
     9        * platform/chromium/inspector/debugger/scripts-sorting-expected.txt:
     10
    1112011-08-30  Yury Semikhatsky  <yurys@chromium.org>
    212
  • trunk/LayoutTests/inspector/debugger/scripts-sorting.html

    r92958 r94067  
    1414    "i/xgemius.js",
    1515    "i/js/jquery-1.5.1.min.js",
    16     "i/js/jquery.cookie.js" ];
     16    "i/js/jquery.cookie.js",
     17    "foo/path/bar.js?file=bar/zzz.js",
     18    "foo/path/foo.js?file=bar/aaa.js" ];
    1719
    1820for (var i = 0; i < scripts.length; ++i)
  • trunk/LayoutTests/platform/chromium/inspector/debugger/scripts-sorting-expected.txt

    r92958 r94067  
    1313/_js/production
    1414    motor.js?1308927432
     15/foo/path
     16    bar.js?file=bar/zzz.js
     17    foo.js?file=bar/aaa.js
    1518/i
    1619    xgemius.js
     
    2124WebInspector.settings.showScriptFolders = false
    2225*Non*URL*path
     26bar.js?file=bar/zzz.js
    2327block.js?block=foo
     28foo.js?file=bar/aaa.js
    2429ga.js
    2530jquery-1.5.1.min.js
     
    4146/_js/production
    4247    motor.js?1308927432
     48/foo/path
     49    bar.js?file=bar/zzz.js
     50    foo.js?file=bar/aaa.js
    4351/i
    4452    xgemius.js
  • trunk/Source/WebCore/ChangeLog

    r94061 r94067  
     12011-08-29  Yury Semikhatsky  <yurys@chromium.org>
     2
     3        Web Inspector: wrong script display name when there is a slash in its URL query parameters
     4        https://bugs.webkit.org/show_bug.cgi?id=67120
     5
     6        Fixed folder name computation in ScriptsPanel. Now search query is ignored
     7        when searching for the script folder name.
     8
     9        Reviewed by Pavel Feldman.
     10
     11        * inspector/front-end/ScriptsPanel.js:
     12        (WebInspector.ScriptsPanel.prototype._folderAndDisplayNameForScriptURL):
     13
    1142011-08-29  Yury Semikhatsky  <yurys@chromium.org>
    215
  • trunk/Source/WebCore/inspector/front-end/ScriptsPanel.js

    r93977 r94067  
    352352        var displayName = url;
    353353
    354         var fromIndex = displayName.lastIndexOf("/", displayName.length - 2);
     354        var pathLength = displayName.indexOf("?");
     355        if (pathLength === -1)
     356            pathLength = displayName.length;
     357
     358        var fromIndex = displayName.lastIndexOf("/", pathLength - 2);
    355359        if (fromIndex !== -1) {
    356360            folderName = displayName.substring(0, fromIndex);
Note: See TracChangeset for help on using the changeset viewer.