搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

If you reload with the resize event of the window, you will fall into the phenomenon of repeating reload forever.

  • 1 个回答
  • 0 人有此问题
  • 1 次查看
  • 最后回复者为 Paul

more options

Firefox for Android has a bug-like phenomenon that you can't see in other web browsers, Edge, Chrome, Opera, or Firefox for Win and Linux. This phenomenon occurs in Firefox for Android regardless of whether "desktop site" is "on" or "off" (*1).

  • 1: Not tested with browsers other than the above. I haven't tried Firefox for iOS either.

The phenomenon is a bug that if you reload in the resize event processing of the window, it will be reloaded permanently until you stop processing or close the browser. A simple code like the one below does this:

<script defer> window. addEventListener( "resize", () => { // The result is the same even if it is controlled by flags, etc. location.reload(); }, false ); </script>

RESIZE & RELOAD

Please improve!

Firefox for Android has a bug-like phenomenon that you can't see in other web browsers, Edge, Chrome, Opera, or Firefox for Win and Linux. This phenomenon occurs in Firefox for Android regardless of whether "desktop site" is "on" or "off" (*1). *1: Not tested with browsers other than the above. I haven't tried Firefox for iOS either. The phenomenon is a bug that if you reload in the resize event processing of the window, it will be reloaded permanently until you stop processing or close the browser. A simple code like the one below does this: <html> <head> <script defer> window. addEventListener( "resize", () => { // The result is the same even if it is controlled by flags, etc. location.reload(); }, false ); </script> </head> <body> <h1>RESIZE & RELOAD</h1> </body> </html> Please improve!

所有回复 (1)

more options

Hi,

The people who answer questions here, for the most part, are other users volunteering their time (like me), not Mozilla employees or developers. If you want to leave feedback for developers, you can go to the Firefox Help menu and select Share ideas and feedback…. Alternatively, you can use this link. Your feedback gets collected by a team of people who read it and gather data about the most common issues.

You can also file a bug report or feature request. See File a bug report or feature request for Mozilla products for details.