[Webkit-unassigned] [Bug 243488] New: Why I create an iframe, but it affected promise microtasks in webkit

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 3 01:41:50 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=243488

            Bug ID: 243488
           Summary: Why I create an iframe, but it affected promise
                    microtasks in webkit
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: 993634344 at qq.com

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

-- 
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/20220803/0ab17cc6/attachment-0001.htm>


More information about the webkit-unassigned mailing list