Open
Bug 718298
Opened 13 years ago
Updated 3 years ago
JS include requested twice if it results in an error page
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
NEW
People
(Reporter: kdevel, Unassigned)
References
()
Details
User Agent:
Steps to reproduce:
0. New Profile. Set HTTP-Proxy (e.g. squid)
1. Open Web Console (shift-ctrl-k).
2. Open Testcase.
Actual results:
2. URL 404.js is requested twice.
Expected results:
2. URL 404.js is requested once.
Testcase URL: http://www.vogtner.de/mozilla/718298/
Updated•13 years ago
|
Component: Untriaged → HTML: Parser
Product: Firefox → Core
QA Contact: untriaged → parser
![]() |
||
Comment 2•13 years ago
|
||
PrepareLoadedRequest returns an error for failed loads. At that point we remove the load from mPreloads. So if we get the 404 response before default.js finishes executing, we'll hit the 404 twice.
Perhaps we should move failed preloads (at least if they fail due to a non-2xx HTTP code) to a list that we check when the real load comes in?
Status: UNCONFIRMED → NEW
Component: HTML: Parser → DOM
Ever confirmed: true
QA Contact: parser → general
![]() |
||
Updated•13 years ago
|
Summary: JS include requested twice → JS include requested twice if it results in an error page
Sounds like the right solution yes.
Henri, you've been doing a lot of preload work lately. Could you take this?
Comment 4•13 years ago
|
||
(In reply to Jonas Sicking (:sicking) On leave waiting for visa from comment #3)
> Henri, you've been doing a lot of preload work lately. Could you take this?
OK.
Assignee: nobody → hsivonen
Status: NEW → ASSIGNED
Updated•7 years ago
|
Assignee: hsivonen → nobody
Status: ASSIGNED → NEW
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•