[Webkit-unassigned] [Bug 249329] Safari cannot load a website
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Dec 14 12:01:35 PST 2022
https://bugs.webkit.org/show_bug.cgi?id=249329
Safwen <safwen.baroudi at contentsquare.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |https://disneycruise.disney
| |.go.com
--- Comment #1 from Safwen <safwen.baroudi at contentsquare.com> ---
I suspect that this is caused by zonejs, Promise is overridden by zonejs and the following code fixes the issue:
var iframe = document.createElement('iframe');
document.body.prepend(iframe);
window.addEventListener('pagehide', async () => {
const purePromise = iframe.contentWindow!.Promise;
const overriddenPromise = window.Promise;
window.Promise = purePromise; // this makes the promise returned by fetch pure in the sense it is not touched by zonejs
const r = await fetch(location.href);
console.log(r);
window.Promise = overriddenPromise;
});
--
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/20221214/8275cd47/attachment.htm>
More information about the webkit-unassigned
mailing list