[Webkit-unassigned] [Bug 240954] <object> fails to load same PDF twice
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon May 30 19:38:32 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=240954
--- Comment #1 from Alexey Proskuryakov <ap at webkit.org> ---
This reproduces for me with macOS 12.5 beta.
Looks like <object> gets a zero length PDF every time except the first load.
document.getElementById("add").onclick = function () {
const pdf = document.getElementById("pdf");
if (pdf) {
pdf.parentNode.removeChild(pdf);
}
const newPdf = document.createElement("object");
newPdf.setAttribute("data", "/dummy.pdf");
newPdf.setAttribute("type", "application/pdf");
newPdf.setAttribute("id", "pdf");
document.body.appendChild(newPdf);
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220531/762ffa0f/attachment-0001.htm>
More information about the webkit-unassigned
mailing list