New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 657860 link

Starred by 9 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Lazy attribute synchronization does not generate mutation records (MutationObserver) [or get reflected in DevTools]

Reported by bend...@fullstory.com, Oct 20 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.59 Safari/537.36

Steps to reproduce the problem:
1. Open test case
2. Inspect the blue svg shape in dev tools

What is the expected behavior?
The 'transform' attribute of the element should always reflect the change

What went wrong?
If the transformation happens asynchronously after a long enough delay, the dom attribute doesn't update. 

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 54.0.2840.59  Channel: stable
OS Version: OS X 10.11.6
Flash Version: Shockwave Flash 23.0 r0

It seems to always succeed after 1ms and always fail after 100ms, with some flakiness around 11ms.
 
index.html
679 bytes View Download

Comment 1 by f...@opera.com, Oct 20 2016

Components: Platform>DevTools
Status: Available (was: Unconfirmed)
To clarify, you mean that the DevTools "view" of the attribute does not update? That seems to be the only thing I can reproduce at least. (I.e the value applies visually and calling getAttribute yields the expected result.) I think this is related to synchronization of lazy attributes (which 'transform' is, and hence uses setSynchronizedLazyAttribute, which disables the will/didModify hooks. If this even goes that far...)
Also filed for webkit -- https://bugs.webkit.org/show_bug.cgi?id=163736
Thanks for the quick reply. Calling getAttribute works for me too -- I had forgotten to check it.

But besides the DevTools view, mutation observer records aren't triggered as expected -- see updated test case. This is true on page load as well as after a delay.
svgMutation.html
1.1 KB View Download

Comment 4 by f...@opera.com, Oct 20 2016

Yeah, that makes sense since they rely on the same set of hooks. Will need to look into what the MutationObserver expectations might be in this case.

Comment 5 by f...@opera.com, Oct 20 2016

Summary: Lazy attribute synchronization does not generate mutation records (MutationObserver) [or get reflected in DevTools] (was: Asyncronous SVG transformations aren't reflected in the dom)
Renaming. Based on the symptoms, this will not be restricted to transforms.

Comment 6 by f...@opera.com, Oct 20 2016

Components: -Platform>DevTools Blink>DOM

Comment 7 by f...@opera.com, Dec 15 2017

Cc: krajshree@chromium.org brajkumar@chromium.org ranjitkan@chromium.org pbomm...@chromium.org
 Issue 795174  has been merged into this issue.
Project Member

Comment 8 by sheriffbot@chromium.org, Dec 17

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Available (was: Untriaged)

Sign in to add a comment