Join the Mozilla’s Test Days event from 9–15 Jan to test the new Firefox address bar on Firefox Beta 135 and get a chance to win Mozilla swag vouchers! 🎁

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. 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.