WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
273760
Uncaught Exception: Uncaught TypeError: Cannot read properties of null (reading 'collapseToEnd')
https://bugs.webkit.org/show_bug.cgi?id=273760
Summary
Uncaught Exception: Uncaught TypeError: Cannot read properties of null (readi...
elina.dzhelilova
Reported
2024-05-06 02:30:48 PDT
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
Comment 1
2024-05-13 02:31:16 PDT
<
rdar://problem/127991410
>
Razvan Caliman
Comment 2
2024-05-13 04:39:47 PDT
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
Comment 3
2024-05-13 04:45:00 PDT
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`.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug