Bug 141983

Summary: Shadow DOM document doesn't always match CSS document (for image generators)
Product: WebKit Reporter: Dean Jackson <dino>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description Dean Jackson 2015-02-24 14:00:44 PST
I hit this issue with the media controls on iOS.

They use a -webkit-canvas(name) for the background of an element. Later, when we want to paint into that, the reference to document is pointing to a different place than the context was created, even though the element is in the shadow DOM. I had to use ownerDocument to get it to work.

This is also not always reproducible. It seems that if you try to paint into the context BEFORE you've caused a layout, everything works.


See <rdar://problem/19923536> for more details.
Comment 1 Radar WebKit Bug Importer 2015-02-24 14:01:38 PST
<rdar://problem/19943135>
Comment 2 Simon Fraser (smfr) 2015-05-13 19:26:44 PDT
Fixing via the (ironically numbered) bug 144983
Comment 3 Simon Fraser (smfr) 2015-05-13 19:28:12 PDT

*** This bug has been marked as a duplicate of bug 144983 ***