WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 235322
243488
Why I create an iframe, but it affected promise microtasks in webkit
https://bugs.webkit.org/show_bug.cgi?id=243488
Summary
Why I create an iframe, but it affected promise microtasks in webkit
993634344
Reported
2022-08-03 01:41:50 PDT
I find an unexpected result when I created an iframe in my code, but it affected promise microtasks in webkit.eg: safari,iosApp webview. code: Promise.resolve(1).then(data => { console.log('>>>data') }) var node = document.createElement('iframe') node.style.display = 'none' node.src = 'www.baidu.com'; (document.body || document.documentElement).appendChild(node) console.log('>>>end') It‘s normal output is:
>>>end >>>data
But it‘s output in webkit is:
>>>data >>>end
Attachments
Add attachment
proposed patch, testcase, etc.
Ryosuke Niwa
Comment 1
2022-08-05 17:40:22 PDT
*** This bug has been marked as a duplicate of
bug 235322
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug