Commit 14743b5
committed
fix: defer browser evaluations until DOM is ready in hover control
Ensure all JavaScript evaluations in FocusableBrowserInformationControl
only occur after `document.readyState === 'complete'` to prevent runtime
errors when accessing incomplete DOM elements, such as:
`org.eclipse.swt.SWTException: Cannot read properties of null (reading
'scrollWidth')`1 parent 8353819 commit 14743b5
1 file changed
Lines changed: 9 additions & 0 deletions
File tree
- org.eclipse.lsp4e/src/org/eclipse/lsp4e/operations/hover
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
95 | 99 | | |
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
100 | 109 | | |
101 | 110 | | |
102 | 111 | | |
| |||
0 commit comments