RESOLVED FIXED 162792
Inspector exception in `parseTextForRule()` when pasting into CSS rule selector
https://bugs.webkit.org/show_bug.cgi?id=162792
Summary Inspector exception in `parseTextForRule()` when pasting into CSS rule selector
Rob Brackett
Reported 2016-09-30 10:36:38 PDT
------- Inspected URL: http://localhost:8000/guides/anchor/index.html Loading completed: true Frontend User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/603.1.8+ (KHTML, like Gecko) Uncaught Exceptions: - TypeError: null is not an object (evaluating 'parseTextForRule(data)') (at CSSStyleDeclarationSection.js:437:49) _handleSelectorPaste @ CSSStyleDeclarationSection.js:437:49 _handleSelectorPaste @ [native code] ------- * STEPS TO REPRODUCE 1. In the Elements panel, select an element with several CSS rules applying to it 2. In the Styles sidebar, select part of the selector for one of the rules and copy it (via keyboard, cmd+c) 3. Paste (via keyboard, cmd+v) the selected text at the start of a different selector 4. Inspector immediately flips to the "Web Inspector encountered an internal error" screen
Attachments
Patch (1.96 KB, patch)
2016-10-01 23:31 PDT, Devin Rousso
no flags
Devin Rousso
Comment 1 2016-10-01 23:31:59 PDT
Radar WebKit Bug Importer
Comment 2 2016-10-01 23:32:09 PDT
Matt Baker
Comment 3 2016-10-04 16:55:24 PDT
I can't reproduce this with the steps provided. Devin, do you have a reduction?
Devin Rousso
Comment 4 2016-10-05 14:27:56 PDT
(In reply to comment #3) > I can't reproduce this with the steps provided. Devin, do you have a > reduction? The reproduction works just fine for me. Either way, the logic still doesn't work correctly with strings that contain newlines.
Matt Baker
Comment 5 2016-10-06 15:51:20 PDT
Comment on attachment 290463 [details] Patch Was able to repro, r=me.
WebKit Commit Bot
Comment 6 2016-10-06 16:13:32 PDT
Comment on attachment 290463 [details] Patch Clearing flags on attachment: 290463 Committed r206888: <http://trac.webkit.org/changeset/206888>
WebKit Commit Bot
Comment 7 2016-10-06 16:13:35 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.