Bug 109073 - Mobile Safari: canvas element created in a document made with createHTMLDocument does not render when added to main document
Summary: Mobile Safari: canvas element created in a document made with createHTMLDocum...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other Other
: P2 Normal
Assignee: Nobody
URL:
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2013-02-06 11:25 PST by Steve Orvell
Modified: 2022-07-22 11:29 PDT (History)
4 users (show)

See Also:


Attachments
Reduction of bug (529 bytes, text/html)
2013-02-06 11:25 PST, Steve Orvell
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Orvell 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.
Comment 1 Ahmad Saleem 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!
Comment 2 Alexey Proskuryakov 2022-07-22 11:29:33 PDT
Thank you for testing!