Summary: | [Web Inspector][WinCairo] Selecting an error message in Console causes "TypeError: selection.focusNode.closest is not a function." | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Fujii Hironori <Hironori.Fujii> | ||||||
Component: | Web Inspector | Assignee: | Fujii Hironori <Hironori.Fujii> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | hi, inspector-bugzilla-changes, stephan.szabo, webkit-bug-importer | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=198594 | ||||||||
Attachments: |
|
Description
Fujii Hironori
2020-02-04 20:09:29 PST
Hmm, Devin Rousso seems to have reported similar for mac at https://bugs.webkit.org/show_bug.cgi?id=198594 Looks a same issue. Thanks. But surprisingly Mac port doesn't reproduce the issue even this Bug 198594's test case on my Mac. 🤔 selection.focusNode is a Text node at the time. closest is a method of Element. The code was added by r242174 (Bug 173747). Created attachment 389941 [details]
Patch
Comment on attachment 389941 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=389941&action=review r=me > Source/WebInspectorUI/UserInterface/Views/LogContentView.js:552 > + var focusElement = selection.focusNode; Style: we prefer using `let` Created attachment 390037 [details]
Patch for landing
Thank you for the reveiw.
Committed r256006: <https://trac.webkit.org/changeset/256006> |