Changeset 127437 in webkit


Ignore:
Timestamp:
Sep 3, 2012 7:09:42 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: the URL of worker inspector window sometimes is invalid
https://bugs.webkit.org/show_bug.cgi?id=95334

Patch by Peter Wang <peter.wang@torchmobile.com.cn> on 2012-09-03
Reviewed by Pavel Feldman.

In "_openInspectorWindow", before "&dedicatedWorkerId=" should have a '?' to make the whole URL valid.

No new tests case for this bug.

  • inspector/front-end/WorkerManager.js:

(WebInspector.WorkerManager.prototype._openInspectorWindow):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r127436 r127437  
     12012-09-03  Peter Wang  <peter.wang@torchmobile.com.cn>
     2
     3        Web Inspector: the URL of worker inspector window sometimes is invalid
     4        https://bugs.webkit.org/show_bug.cgi?id=95334
     5
     6        Reviewed by Pavel Feldman.
     7
     8        In "_openInspectorWindow", before "&dedicatedWorkerId=" should have a '?' to make the whole URL valid.
     9
     10        No new tests case for this bug.
     11
     12        * inspector/front-end/WorkerManager.js:
     13        (WebInspector.WorkerManager.prototype._openInspectorWindow):
     14
    1152012-09-03  Jinwoo Song  <jinwoo7.song@samsung.com>
    216
  • trunk/Source/WebCore/inspector/front-end/WorkerManager.js

    r124005 r127437  
    162162    _openInspectorWindow: function(workerId, workerIsPaused)
    163163    {
    164         var url = window.location.href + "&dedicatedWorkerId=" + workerId;
     164        var search = window.location.search;
     165        var hash = window.location.hash;
     166        var url = window.location.href;
     167        // Make sure hash is in rear
     168        url = url.replace(hash, "");
     169        url += (search ? "&dedicatedWorkerId=" : "?dedicatedWorkerId=") + workerId;
    165170        if (workerIsPaused)
    166171            url += "&workerPaused=true";
    167172        url = url.replace("docked=true&", "");
     173        url += hash;
    168174        // Set location=0 just to make sure the front-end will be opened in a separate window, not in new tab.
    169175        var workerInspectorWindow = window.open(url, undefined, "location=0");
Note: See TracChangeset for help on using the changeset viewer.