Bug 273760
| Summary: | Uncaught Exception: Uncaught TypeError: Cannot read properties of null (reading 'collapseToEnd') | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | elina.dzhelilova |
| Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | inspector-bugzilla-changes, karlcow, rcaliman, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | All | ||
| OS: | All | ||
| URL: | https://www.ad-production-stage.com/1n4xzej6mf/current/index.html | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=218035 | ||
elina.dzhelilova
Uncaught Exception in Web Inspector.
Steps to Reproduce:
1. What were you doing? Include setup or other preparations to reproduce the exception.
2. Include explicit, accurate, and minimal steps taken. Do not include extraneous or irrelevant steps.
3. What did you expect to have happen? What actually happened?
Uncaught Exceptions:
-----------------------
- Uncaught TypeError: Cannot read properties of null (reading 'collapseToEnd') (at bs-webinspector-0ffb44a313.js:39:272090)
? @ TypeError: Cannot read properties of null (reading 'collapseToEnd')
? @ bs-webinspector-0ffb44a313.js:39:272090)
? @ bs-webinspector-0ffb44a313.js:39:268978)
? @ bs-webinspector-0ffb44a313.js:41:1788860)
? @ bs-webinspector-0ffb44a313.js:41:1813476)
-----------------------
Notes:
Inspected URL: https://www.ad-production-stage.com/1n4xzej6mf/current/index.html
Loading completed: true
Frontend User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/127991410>
Razvan Caliman
Steps to reproduce:
- Navigate to https://www.ad-production-stage.com/1n4xzej6mf/current/index.html
- Inspect any element
- In the Styles panel, click at the end of a CSS value to add a new CSS property
Exception in non-minified code:
```
[Error] TypeError: null is not an object (evaluating 'this._styleSheetTextRange.collapseToEnd')
_rangeAfterPropertyAtIndex (CSSStyleDeclaration.js:605)
newBlankProperty (CSSStyleDeclaration.js:439)
addBlankProperty (SpreadsheetCSSStyleDeclarationEditor.js:362)
_handleClick (SpreadsheetCSSStyleDeclarationSection.js:670)
```
The filename in the original report is strange: bs-webinspector-0ffb44a313.js.
Web Inspector on macOS does not minify to a file with that prefix and does not use a content hash(?) suffix. Was that WebKit built on another platform? (Not the cause for the bug, it occurs on WebKit built for macOS too).
Razvan Caliman
The issue is likely related to the CSSOM-generated styles on that page, particularly `<style data-styled="active" data-styled-version="5.3.10"></style>`
The source location of styles that trigger the issue is `index.html:1`.