[Webkit-unassigned] [Bug 185258] New: Web Inspector: Scripts imported by both main page and web worker are duplicated in debugger sources

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 3 10:09:19 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=185258

            Bug ID: 185258
           Summary: Web Inspector: Scripts imported by both main page and
                    web worker are duplicated in debugger sources
           Product: WebKit
           Version: Safari 11
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: webkit at owenpshaw.net
                CC: inspector-bugzilla-changes at group.apple.com

Created attachment 339422

  --> https://bugs.webkit.org/attachment.cgi?id=339422&action=review

Screenshot of duplicate debugger sources

Duplicate entries are shown in the debugger sources list when the same script is imported by both the HTML page and a web worker created by the page.

For example:

1. bug.html includes lib.js via a script tag
2. bug.html starts a new worker via new Worker('worker.js')
3. worker.js also imports lib.js via importScripts('lib.js')

lib.js will appear twice in the debugger sources list.  See attached screenshot.  The two entries seem to behave as if they are one (e.g., add a breakpoint to one of the duplicate entries, and that breakpoint will be there in the other duplicate).

Expected: A script should only show up once in the debugger sources list.

Chrome and Firefox inspectors basically have separate lists for each page/worker, so no list has two entries for the same script.

Safari 11.1 and Safari Technology Preview Release 55

bug.html
--------
<!DOCTYPE html>
<html>
<head>
    <script type="text/javascript" src="lib.js"></script>
    <script type="text/javascript">
        var worker = new Worker('./worker.js');
    </script>
</head>
<body>
</body>
</html>

worker.js
----------
importScripts('lib.js');

lib.js
------
function test(){
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180503/55392653/attachment.html>


More information about the webkit-unassigned mailing list