Open
Bug 1351652
Opened 7 years ago
Updated 2 years ago
Object element sends extra requests
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
REOPENED
People
(Reporter: suva, Unassigned)
References
Details
(Keywords: testcase-wanted)
Attachments
(1 file)
94.27 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 Build ID: 20170323105023 Steps to reproduce: We have a popup to show a pdf document. When the user clicks the link the application updates the part of the page with object element. Actual results: The object element loads a pdf document and then makes extra get to the server to load xhtml. And the browser show the error dialog (see attachment). This functionality stopped working in 49.0 version. Expected results: The object element loads a pdf document without extra queries or no errors should be shown.
Updated•7 years ago
|
Component: General → XML
Sergiy, could you provide a reduced testcase, or a live testcase (on a testing server e.g.).
Flags: needinfo?(suva)
Keywords: testcase-wanted
Reporter | ||
Comment 2•7 years ago
|
||
(In reply to Loic from comment #1) > Sergiy, could you provide a reduced testcase, or a live testcase (on a > testing server e.g.). Sorry for not answering for a long time. Our testing server: http://dev1.isddesign.com:9080/jsf/billing/billing.xhtml Login: mozila@yopmail.com I will send to the password by email. Steps: 1. Select tab "Invoices" 2. Click on the last icon in a row and you will receive this error.
Flags: needinfo?(suva)
Ty for the testcase, I'm able to see the error with FF52. I'll try to narrow down a regression range if it regressed after FF49.
Well, the issue appears only with e10s (multiprocess) enabled. I can even reproduce it with FF42 and e10s on. Workaround: open the page about:config and set to false both strings browser.tabs.remote.autostart and browser.tabs.remote.autostart.2 (restart Firefox to apply). Error message: XML Parsing Error: no root element found Location: http://dev1.isddesign.com:9080/javax.faces.resource/dynamiccontent.properties.xhtml?ln=primefaces&v=6.0&pfdrid=8c69ebc4-0a18-4022-9193-f5333cbe553c&pfdrt=sc&pfdrid_c=true Line Number 1, Column 1: dynamiccontent.properties.xhtml:1:1 This error appears when clicking on tab "Invoices" and on the icon to display the PDF. No such error with e10s disabled.
Blocks: e10s
Component: XML → DOM
Summary: Object element sends extra requests → [e10s] Object element sends extra requests
Comment 5•7 years ago
|
||
The impact of this regression seems obvious... I apparently don't know who could help answer why enabling e10 triggers an extra loading for xhtml. Olli, do you have any ideas of what's up here or could you point me to the right person for this question? Thanks.
Flags: needinfo?(bugs)
Comment 6•7 years ago
|
||
mystor and qdot seem to have done some object element related stuff recently.
Flags: needinfo?(michael)
Flags: needinfo?(kyle)
Flags: needinfo?(bugs)
Comment 7•7 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #6) > mystor and qdot seem to have done some object element related stuff recently. I don't know very much about this logic - I imagine that qdot will have a better idea of what might have caused this.
Flags: needinfo?(michael)
Comment 8•7 years ago
|
||
I'm not sure how we'd just know to call into a Java EE UI library without context (the primefaces call listed in comment #4), so I'm guessing there may be something about how object tags are formed on this website. Can you email me the test login for the website so I can investigate further?
Flags: needinfo?(kyle) → needinfo?(suva)
Comment 9•7 years ago
|
||
Ok, checked this out on this test site, thanks for the login info. From what I can tell, the problem isn't that the object tag is sending extra requests, but rather that we're requesting an XHTML document as the data tag, which is handing back a null document. That's not valid XHTML, though firefox is the only ones that yell about that. If you just create a test.xhtml document with nothing in it and try to open it, safari/chrome/edge will just show either a blank page or try to display the XML tree, while firefox throws the same "missing root" error.
Comment 10•7 years ago
|
||
Unmarking e10s on this, as I can replicate this in both non-e10s and e10s. This is an XML parser handling issue, shouldn't have anything to do with multi-process. We're now trying figure out how we should deal with null blocks sent to the XML parser. Will update bug title and comments as we figure out if/where we want to go with this.
Assignee: nobody → kyle
Summary: [e10s] Object element sends extra requests → Object element sends extra requests
Updated•7 years ago
|
Flags: needinfo?(suva)
Comment 11•7 years ago
|
||
Per spec, for XML loaded in an iframe, UAs may, but are not required to, show parse errors. Empty document is _definitely_ a parse error, though, and UAs interoperably show it as such via DOMParser, for what it's worth....
Comment 12•7 years ago
|
||
Marking this as invalid. We can't help that we're getting back an invalid document that other browsers will accept.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Reporter | ||
Comment 13•7 years ago
|
||
(In reply to Kyle Machulis [:qdot] [:kmachulis] (PTO until May 30) (if a patch has no decent commit message, automatic r-) from comment #12) > Marking this as invalid. We can't help that we're getting back an invalid > document that other browsers will accept. The problem is not in an invalid document, the problem is that FF after loading document sends an extra wrong request to the server. Other browsers just load a document without any extra requests.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Comment 14•7 years ago
|
||
Kyle, could you check this again? In particular, why is the e10s vs non-e10s behavior different, per comment 4?
Flags: needinfo?(kyle)
Comment 15•7 years ago
|
||
See comment #10, where I did not experience the split e10s/non-e10s issue. That said, yeah, I'll try it one more time, but I don't remember seen an extra load when I tested this last time, which is why I invalidated it in the first place.
Updated•6 years ago
|
Priority: -- → P2
Updated•6 years ago
|
Flags: needinfo?(kyle)
Priority: P2 → P3
Assignee | ||
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
Updated•5 years ago
|
Assignee: kyle → nobody
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•