Bug 196556 - Web Inspector: DOMDebugger: "Attribute Modified" breakpoints pause after the modification occurs for the style attribute
Summary: Web Inspector: DOMDebugger: "Attribute Modified" breakpoints pause after the ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Devin Rousso
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-04-03 13:26 PDT by Devin Rousso
Modified: 2019-04-15 10:27 PDT (History)
5 users (show)

See Also:


Attachments
Patch (21.26 KB, patch)
2019-04-13 14:43 PDT, Devin Rousso
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.