搜索 | 用户支持

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

详细了解

Javascript form submit / redirection not working after update to Firefox 56

  • 4 个回答
  • 42 人有此问题
  • 3 次查看
  • 最后回复者为 the-edmeister

more options

Hello, in a web site login form, that has been working on firefox and stills does work in Explorer and Chrome.

After updating to Firefox 56 , the form does not work anymore. It is on a HTTP site, the form submit is done by javascript by submitting the form from it.

Inspecting the network request, the web form (created by JS) sits at: "http://ip_address/" The action value of the form has a value like: "http://ip_address/login/indice/test" But submitting the form shows in the developer mode that the values sent (correct parameter names and correct values) , get send to "http://ip_address/" instead of "http://ip_address/login/indice/test"

If i log directly to "http://ip_address/login/indice/test" in Firefox and get the login page, and try to log in from there (having shown in the URL of the browser the ending "/login/indice/test"), the login does work.

This is not necessary in any other browser and in firefox 55 and below, when accessing to "http://ip_address/", and submitting the form, values get submitted to "http://ip_address/login/indice/test" and log in or have error message correctly shown.

So not sure if it is a problem with of javascript, or a problem following a redirect command from the server, or having the form submit to a different method from JS, any help is appreciated

Hello, in a web site login form, that has been working on firefox and stills does work in Explorer and Chrome. After updating to Firefox 56 , the form does not work anymore. It is on a HTTP site, the form submit is done by javascript by submitting the form from it. Inspecting the network request, the web form (created by JS) sits at: "http://ip_address/" The action value of the form has a value like: "http://ip_address/login/indice/test" But submitting the form shows in the developer mode that the values sent (correct parameter names and correct values) , get send to "http://ip_address/" instead of "http://ip_address/login/indice/test" If i log directly to "http://ip_address/login/indice/test" in Firefox and get the login page, and try to log in from there (having shown in the URL of the browser the ending "/login/indice/test"), the login does work. This is not necessary in any other browser and in firefox 55 and below, when accessing to "http://ip_address/", and submitting the form, values get submitted to "http://ip_address/login/indice/test" and log in or have error message correctly shown. So not sure if it is a problem with of javascript, or a problem following a redirect command from the server, or having the form submit to a different method from JS, any help is appreciated

被采纳的解决方案

This has been fixed, apparently the JS framework wrapper that sets the action method was being ignored in firefox 56.

Accessing the dom form element directly (no the JS framework element), and setting the action value to the URL wanted, before submitting the form using JS, solved the issue.

定位到答案原位置 👍 3

所有回复 (4)

more options

选择的解决方案

This has been fixed, apparently the JS framework wrapper that sets the action method was being ignored in firefox 56.

Accessing the dom form element directly (no the JS framework element), and setting the action value to the URL wanted, before submitting the form using JS, solved the issue.

more options

I upgraded to Firefox 56.0.1 for MacOS (10.12.3) this morning and now cannot log in to Qantas (the Australian flag carrier airline) because the login box does not appear in Firefox nor do any text links work (ie the pointer doesn't change to a hand and you can't click on it.) No problem with Safari. Based on above and viewing the website with "Inspector" I guess that <script defer="" src="https://cdn.services.qantasloyalty.com/assets/widgets/login/v2/login.bundle.js"></script> is the problem but I have no clue as to how to sort this out. The URL is https://www.qantas.com/au/en.html I have also recently had to switch my default browser to Safari because even in the previous Firefox, the Financial Times website wasn't working properly

more options

I am also getting redirection issue in Firefox, on certain OS same browser is working properly on others it is not. Are there any logs I can share?

more options

hgulati This thread is about an older version of Firefox which is no longer supported. Please start your own questions thread. https://support.mozilla.org/en-US/products/firefox