Bug 223214
| Summary: | Likely copy/paste error in CSSProperty.js | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Michael Catanzaro <mcatanzaro> |
| Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | inspector-bugzilla-changes, nvasilyev, pangle, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | PC | ||
| OS: | Linux | ||
Michael Catanzaro
This looks pretty suspicious:
Error: COPY_PASTE_ERROR (CWE-398): [#def48]
webkitgtk-2.31.1/Source/WebInspectorUI/UserInterface/Models/CSSProperty.js:363: original: "styleTextRange.startLine" looks like the original copy.
webkitgtk-2.31.1/Source/WebInspectorUI/UserInterface/Models/CSSProperty.js:364: copy_paste_error: "startLine" in "styleTextRange.startLine" looks like a copy-paste error.
webkitgtk-2.31.1/Source/WebInspectorUI/UserInterface/Models/CSSProperty.js:364: remediation: Should it say "endLine" instead?
# 362|
# 363| var startLine = this._styleSheetTextRange.startLine - styleTextRange.startLine;
# 364|-> var endLine = this._styleSheetTextRange.endLine - styleTextRange.startLine;
# 365|
# 366| var startColumn = this._styleSheetTextRange.startColumn;
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/75707881>