Closed
Bug 1421137
Opened 7 years ago
Closed 1 year ago
Unexpected NS_ERROR_MALFORMED_API on document.open().
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: gomboc, Unassigned)
References
Details
Attachments
(1 obsolete file)
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36
Steps to reproduce:
Received error reports from browers indicating that NS_ERROR_MALFORMED_API sometimes occurs when document.open() is called from Firefox releases 56 and 57.
Actual results:
Under one or more unidentified conditions, JS code executing in Firefox 57, 56 (and very rarely, 52) throw an exception indicating that NS_ERROR_MALFORMED_API occurs at the point where document.open() is called. Such an error occurs only a small fraction of the time.
Expected results:
It was expected that an NS_ERROR_MALFORMED_API error would never be issued as a result of calling document.open(). https://developer.mozilla.org/en-US/docs/Web/API/Document/open does not indicate that this is even possible.
Naturally, this Mozilla-specific behaviour is not observed with other browsers, ever.
However, in addition, no other browser indicates any alternative kind of error when executing the same compiled code.
Please provide a testcase or URL of the broken site.
Reporter | ||
Comment 2•7 years ago
|
||
Within the past day or so, here are a few of the web pages for which error reports were relatively prominent:
http://beauty.pclady.com.cn/menskin/
http://beauty.pclady.com.cn/129/1299718.html
https://nowapoczta.wp.pl/d/#/mails/?label=152 (this appears to require login information that I do not have)
https://poczta.o2.pl/d/#/mails/?label=1 (same for this one)
https://poczta.o2.pl/wylogowano
Comment 3•7 years ago
|
||
(In reply to Dave Gomboc from comment #2)
> Within the past day or so, here are a few of the web pages for which error
> reports were relatively prominent:
>
> http://beauty.pclady.com.cn/menskin/
> http://beauty.pclady.com.cn/129/1299718.html
> https://nowapoczta.wp.pl/d/#/mails/?label=152 (this appears to require login
> information that I do not have)
> https://poczta.o2.pl/d/#/mails/?label=1 (same for this one)
> https://poczta.o2.pl/wylogowano
Did you mean to say "NS_ERROR_MALFORMED_URI"?
Comment 4•7 years ago
|
||
Assuming Hsin-Yi is correct, there are ~85 returns of such an error: https://searchfox.org/mozilla-central/search?q=return+NS_ERROR_MALFORMED_URI&path=
Boris, without other context here, do you have any thoughts about where to look further?
Flags: needinfo?(bzbarsky)
Priority: -- → P3
![]() |
||
Comment 5•7 years ago
|
||
Looks like a duplicate of bug 1368005 at first glance: calling document.open() on a srcdoc document will throw this exception right now. Per spec it's ... not clear what it should do; if following the spec steps directly you get into a state the spec expects to be unreachable (a non-srcdoc document with an "about:srcdoc" url), which is rather undesirable.
Depends on: 1368005
Flags: needinfo?(bzbarsky)
Reporter | ||
Comment 6•7 years ago
|
||
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #3)
> (In reply to Dave Gomboc from comment #2)
> > Within the past day or so, here are a few of the web pages for which error
> > reports were relatively prominent:
> >
> > http://beauty.pclady.com.cn/menskin/
> > http://beauty.pclady.com.cn/129/1299718.html
> > https://nowapoczta.wp.pl/d/#/mails/?label=152 (this appears to require login
> > information that I do not have)
> > https://poczta.o2.pl/d/#/mails/?label=1 (same for this one)
> > https://poczta.o2.pl/wylogowano
>
> Did you mean to say "NS_ERROR_MALFORMED_URI"?
Yes, I did mean NS_ERROR_MALFORMED_URI. Sorry for the delay in response (conference, then sick).
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
Hi,
Since URLs of broken sites have been provided I'm removing the testcase-wanted tag.
Regards,
Keywords: testcase-wanted
![]() |
||
Comment 8•5 years ago
|
||
I expect this is fixed now that bug 1368005 is fixed. Dave, can you confirm?
Flags: needinfo?(gomboc)
Updated•3 years ago
|
Severity: normal → S3
Updated•1 year ago
|
Attachment #9383631 -
Attachment is obsolete: true
Comment 10•1 year ago
|
||
Redirect a needinfo that is pending on an inactive user to the triage owner.
:mccr8, since the bug has recent activity, could you have a look please?
For more information, please visit BugBot documentation.
Flags: needinfo?(gomboc) → needinfo?(continuation)
Comment 11•1 year ago
|
||
Let's just assume this was fixed 3 years ago as Boris expected.
Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Flags: needinfo?(continuation)
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•