Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

version <30, IE and Chrome all accept URL. Version 31 gives NS_ERROR_MALFORMED_URI.

more options

A URL like newWin.document.location = "ReportViewer.aspx?BGC=009F51&SecondsToWait=240&Src=../WebDataAccess/Exports/4b2c025f57df48ef843436cc3f33b941"; works fine in IE, Chrome and Firefox < 31 but fails with NS_ERROR_MALFORMED_URI in Firefox 31.

A URL like newWin.document.location = "ReportViewer.aspx?BGC=009F51&SecondsToWait=240&Src=../WebDataAccess/Exports/4b2c025f57df48ef843436cc3f33b941"; works fine in IE, Chrome and Firefox < 31 but fails with NS_ERROR_MALFORMED_URI in Firefox 31.

所有回覆 (3)

more options

The parsing of URLs could have changed.

Does the actual code have the protocol and host name in the URL, e.g.,

newWin.document.location = "http://www.example.com/ReportViewer.aspx?etc.";
more options

No, http://www.example.com is not part of the URL. The URL is being sent from the window that opened this one. The other browsers and the previous FF versions seemed to understand how to deal with that. I tried adding the protocol and host to the URL and now version 31 responds correctly. I guess I’ll have to modify my code to account for your improvement(?), or suggest my customers use another browser.

Your post was sort of helpful since I can correct the problem with FF's changes but I wonder how many other WEB sites were also broken.

more options

I tried to search for the source of this change last week but didn't find it in the bug tracking system. I'm assuming it was intentional, but if the pattern of using a relative URL is widespread, then you or someone else affected by the change, could file a new bug to address it.