Bug 196556

Summary: Web Inspector: DOMDebugger: "Attribute Modified" breakpoints pause after the modification occurs for the style attribute
Product: WebKit Reporter: Devin Rousso <hi>
Component: Web InspectorAssignee: Devin Rousso <hi>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, hi, inspector-bugzilla-changes, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch none

Description Devin Rousso 2019-04-03 13:26:54 PDT
# STEPS TO REPRODUCE:
1. inspect any page
2. go to the Elements tab
3. context menu on the <body>
4. Break on... > Attribute Modified
5. evaluate `document.body.style.setProperty("--a", "0")` in the console
 => JavaScript should pause on a Console Evaluation with the above code highlighted
6. go to the Elements tab
 => the <body> has a `style="--a: 0;"` attribute
Comment 1 Radar WebKit Bug Importer 2019-04-03 13:27:12 PDT
<rdar://problem/49570681>
Comment 2 Devin Rousso 2019-04-03 13:30:45 PDT
This works as expected (e.g. the breakpoint pauses before the modification occurs) for any non-style attribute.
Comment 3 Devin Rousso 2019-04-13 14:43:48 PDT
Created attachment 367392 [details]
Patch
Comment 4 WebKit Commit Bot 2019-04-15 10:27:51 PDT
Comment on attachment 367392 [details]
Patch

Clearing flags on attachment: 367392

Committed r244269: <https://trac.webkit.org/changeset/244269>
Comment 5 WebKit Commit Bot 2019-04-15 10:27:52 PDT
All reviewed patches have been landed.  Closing bug.