[Webkit-unassigned] [Bug 198594] New: Web Inspector: Uncaught Exception: TypeError: selection.focusNode.closest is not a function. (In 'selection.focusNode.closest("." + WI.LogContentView.ItemWrapperStyleClassName)', 'selection.focusNode.closest' is undefined)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 5 19:31:48 PDT 2019


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

            Bug ID: 198594
           Summary: Web Inspector: Uncaught Exception: TypeError:
                    selection.focusNode.closest is not a function. (In
                    'selection.focusNode.closest("." +
                    WI.LogContentView.ItemWrapperStyleClassName)',
                    'selection.focusNode.closest' is undefined)
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
               URL: data:text/html,<html>%20%20%20%20%20<body>%20%20%20%20
                    %20%20%20%20%20<script>%20%20%20%20%20%20%20%20%20%20%
                    20%20%20console.log(new%20Error("Wrong%20style%20in%20
                    dark%20mode"));%20%20%20%20%20%20%20%20%20</script>%20
                    %20%20%20%20</body>%20</html>
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: drousso at apple.com
                CC: inspector-bugzilla-changes at group.apple.com

-------
Inspected URL:        data:text/html,<html>%20%20%20%20%20<body>%20%20%20%20%20%20%20%20%20<script>%20%20%20%20%20%20%20%20%20%20%20%20%20console.log(new%20Error("Wrong%20style%20in%20dark%20mode"));%20%20%20%20%20%20%20%20%20</script>%20%20%20%20%20</body>%20</html>
Loading completed:    true
Frontend User Agent:  Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko)

Uncaught Exceptions:
 - TypeError: selection.focusNode.closest is not a function. (In 'selection.focusNode.closest("." + WI.LogContentView.ItemWrapperStyleClassName)', 'selection.focusNode.closest' is undefined) (at LogContentView.js:552:54)
    _mousemove @ LogContentView.js:552:54
    handleEvent @ LogContentView.js:653:28
-------

* STEPS TO REPRODUCE
1. inspect `data:text/html,<html><body><script>console.log(new Error("Wrong style in dark mode"));</script></body></html>`
2. open the Console tab
3. mousedown on the "-" separating the "... mode - data: ..."
4. move your mouse up into the empty space above the log and console prompt

-- 
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/20190606/1b849678/attachment.html>


More information about the webkit-unassigned mailing list