Bug 198594 - Web Inspector: Uncaught Exception: TypeError: selection.focusNode.closest is not a function. (In 'selection.focusNode.closest("." + WI.LogContentView.ItemWrapperStyleClassName)', 'selection.focusNode.closest' is undefined)
Summary: Web Inspector: Uncaught Exception: TypeError: selection.focusNode.closest is ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: data:text/html,<html><body><script>co...
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-05 19:31 PDT by Devin Rousso
Modified: 2020-02-04 21:54 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Devin Rousso 2019-06-05 19:31:48 PDT
-------
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