The following is a simple html when viewed in an android browser (nexus one), leads to a continuous chain of chainchange events when you change the orientation of the phone only once.
<html><body> <script type="text/javascript"> window.addEventListener("orientationchange",function(){alert("test");},false); </script> </body></html>
changechange : , . , , , - .
( - , while(1) alert("");). JavaScript? DoS , . Opera - , , , , .)
while(1) alert("");
, Falmarri , . , , . .
These devices seem to trigger the "changechange" event before the window is resized to reflect the new orientation.
How to fix this: github
Source: https://habr.com/ru/post/1771971/More articles:Delphi, IXMLDOMDocument2, Downloading failed due to invalid character - xmlOracle Job failed for no reason - oracleAm I missing something in my C ++ statement? - c ++Tabs on an aspx page - asp.netBrowser-based strategy in Django / GAE. Model Suggestions? - google-app-engineUsing Java generics in an interface to provide an implementation of a method with an implementation type as a parameter - javahow to find Wi-Fi location on iphone - iphoneRoR: POST to the page using raw form data. How? - ruby-on-railsTricky Regular Expression - c #detect obsolete and incorrect function prototypes using autoconf - c ++All Articles