Bug 223214 - Likely copy/paste error in CSSProperty.js
Summary: Likely copy/paste error in CSSProperty.js
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-03-15 14:02 PDT by Michael Catanzaro
Modified: 2021-04-08 16:56 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Catanzaro 2021-03-15 14:02:04 PDT
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;
Comment 1 Radar WebKit Bug Importer 2021-03-22 14:03:12 PDT
<rdar://problem/75707881>