WebKit Bugzilla
Attachment 369993 Details for
Bug 197696
: [iOS Debug] ASSERTION FAILED: !m_originalNode in WebCore::JSLazyEventListener::checkValidityForEventTarget(WebCore::EventTarget &)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Test that is a millions times better or more fun IMO
register-orientationchange-on-non-body-node.html (text/html), 829 bytes, created by
Daniel Bates
on 2019-05-15 14:35:18 PDT
(
hide
)
Description:
Test that is a millions times better or more fun IMO
Filename:
MIME Type:
Creator:
Daniel Bates
Created:
2019-05-15 14:35:18 PDT
Size:
829 bytes
patch
obsolete
><!DOCTYPE html> ><html> ><body> ><p>This tests that a non-<body> node that registers an orientationchange event listener isn't dispatched an Orientationchange event.</p> ><p>The following instructions assume the device is initially in portrait orientation (*).</p> ><ol> > <li>Rotate the device to landscape orientation.</li> ></ol> ><p>(*) Once you observe the issue you will find that you can take liberties with these instructions.</p> ><p>This test FAILed if the blue square (below) becomes yellow.</p> ><div id="square" style="background-color: blue; color: blue; width: 128px; height: 128px">FAIL</div> ><script> >var square = document.getElementById("square"); > >function testFailed() >{ > square.style.backgroundColor = "yellow"; >} > >square.addEventListener("orientationchange", testFailed, false); ></script> ></body> ></html>
<!DOCTYPE html> <html> <body> <p>This tests that a non-<body> node that registers an orientationchange event listener isn't dispatched an Orientationchange event.</p> <p>The following instructions assume the device is initially in portrait orientation (*).</p> <ol> <li>Rotate the device to landscape orientation.</li> </ol> <p>(*) Once you observe the issue you will find that you can take liberties with these instructions.</p> <p>This test FAILed if the blue square (below) becomes yellow.</p> <div id="square" style="background-color: blue; color: blue; width: 128px; height: 128px">FAIL</div> <script> var square = document.getElementById("square"); function testFailed() { square.style.backgroundColor = "yellow"; } square.addEventListener("orientationchange", testFailed, false); </script> </body> </html>
View Attachment As Raw
Actions:
View
Attachments on
bug 197696
:
369429
|
369448
| 369993