WebKit Bugzilla
Attachment 347527 Details for
Bug 188499
: Setting a frame src after appending it to the DOM makes the frame's load event be fired twice
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Test case
iframe.html (text/html), 277 bytes, created by
Ryosuke Niwa
on 2018-08-20 12:24:29 PDT
(
hide
)
Description:
Test case
Filename:
MIME Type:
Creator:
Ryosuke Niwa
Created:
2018-08-20 12:24:29 PDT
Size:
277 bytes
patch
obsolete
><!DOCTYPE html> ><html> ><body> ><script> >const root = document.body; >const frame = document.createElement('iframe'); >const href = 'https://bugs.webkit.org'; > >frame.onload = (evt) => console.log('Loaded', evt); >root.appendChild(frame); >frame.src = href; ></script> ></body> ></html>
<!DOCTYPE html> <html> <body> <script> const root = document.body; const frame = document.createElement('iframe'); const href = 'https://bugs.webkit.org'; frame.onload = (evt) => console.log('Loaded', evt); root.appendChild(frame); frame.src = href; </script> </body> </html>
View Attachment As Raw
Actions:
View
Attachments on
bug 188499
: 347527