Bug 109073

Summary: Mobile Safari: canvas element created in a document made with createHTMLDocument does not render when added to main document
Product: WebKit Reporter: Steve Orvell <sorvell>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ahmad.saleem792, ap, bfulgham, rniwa
Priority: P2 Keywords: HasReduction
Version: 528+ (Nightly build)   
Hardware: Other   
OS: Other   
Attachments:
Description Flags
Reduction of bug none

Steve Orvell
Reported 2013-02-06 11:25:43 PST
Created attachment 186880 [details] Reduction of bug If a canvas element is created in a document created with createHTMLDocument and then added to the main document, it will not render. This problem was observed only on mobile Safari (ios 6.1) and not on desktop Safari or Chrome. Example of creating and attaching a canvas element in a way that it will not render: var doc = document.implementation.createHTMLDocument('test'); doc.body.innerHTML = '<canvas></canvas>'; document.body.appendChild(doc.body.childNodes[0]); See attached reduction for a test that renders something.
Attachments
Reduction of bug (529 bytes, text/html)
2013-02-06 11:25 PST, Steve Orvell
no flags
Ahmad Saleem
Comment 1 2022-07-22 04:36:46 PDT
I am unable to reproduce this bug on iPhone 13 Pro Max (iOS 15.6) and loading the reduction does show triangle same as desktop. Thanks! If I am testing incorrectly, please test accordingly. Thanks!
Alexey Proskuryakov
Comment 2 2022-07-22 11:29:33 PDT
Thank you for testing!
Note You need to log in before you can comment on or make changes to this bug.