Closed
Bug 438913
Opened 16 years ago
Closed 16 years ago
FF produces "no element found" error when fetching JavaScript files using XMLHttpRequest
Categories
(Core :: XML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 311724
People
(Reporter: godmar, Unassigned)
Details
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9) Gecko/2008061004 Firefox/3.0 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9) Gecko/2008061004 Firefox/3.0 We use XMLHttpRequest asynchronously from an extension to fetch a .js file. We use the "If-Modified-Since" header as described here: http://www.w3.org/TR/2006/WD-XMLHttpRequest-20060619/#xmlhttprequest We see the following error in the log: Error: no element found Source File: http://libx.org/libx/src/feeds/root.js Line: 1 The file itself is not an XML file; see: about:cache-entry?client=HTTP&sb=1&key=http://libx.org/libx/src/feeds/root.js key: http://libx.org/libx/src/feeds/root.js fetch count: 2 last fetched: 2008-06-12 15:16:55 last modified: 2008-06-12 12:44:10 expires: 2008-06-12 12:44:10 Data size: 2518 file on disk: none Security: This document does not have any security info associated with it. Client: HTTP request-method: GET response-head: HTTP/1.1 200 OK Date: Thu, 12 Jun 2008 16:44:09 GMT Server: Apache/2.2.8 (Fedora) Last-Modified: Thu, 12 Jun 2008 15:44:50 GMT Etag: "3f81da-9d6-44f7a0aa48080" Accept-Ranges: bytes Content-Length: 2518 Cache-Control: max-age=1,must-revalidate Content-Type: application/x-javascript --- The error is shown after the ".send" request before the readystate callback is shown. It's as if FF attempts to parse the document as XML. The error appears to be benign. Reproducible: Always Steps to Reproduce: 1. 2. 3. Expected Results: Don't show this message. This is a low-priority issue since the error appears to not cause any malfunctioning. I'm using FF3 RC3.
Reporter | ||
Comment 1•16 years ago
|
||
changed to minor
Severity: normal → minor
Version: unspecified → 3.0 Branch
Updated•16 years ago
|
Component: General → XML
Product: Firefox → Core
QA Contact: general → xml
Summary: FF produces "no element found" error when fetching javascript files → FF produces "no element found" error when fetching JavaScript files using XMLHttpRequest
Version: 3.0 Branch → unspecified
Updated•16 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 3•16 years ago
|
||
Can you explain what this has to do with bug 311724 ? We do not use overrideMimetype in our XMLHttpRequest, so we don't ask Firefox to parse it as XML.
Comment 4•16 years ago
|
||
Can you please point me to your code in that case? We only try to parse if the MIME type contains "xml".
You need to log in
before you can comment on or make changes to this bug.
Description
•