Closed
Bug 179983
Opened 22 years ago
Closed 22 years ago
prefetching is broken on the 1.0 branch
Categories
(Core :: Networking, defect, P1)
Core
Networking
Tracking
()
VERIFIED
FIXED
mozilla1.0.2
People
(Reporter: darin.moz, Assigned: darin.moz)
References
()
Details
Attachments
(1 file)
923 bytes,
patch
|
gordon
:
review+
dveditz
:
superreview+
brendan
:
approval+
|
Details | Diff | Splinter Review |
prefetching is broken on the 1.0 branch.
this is caused by bug 142135, which was fixed only on the trunk just after the
1.0 branch point.
the fix for bug 174984 caused prefetching to regress.
since the fix for bug 142135 affects core code (the cache), there might be some
value in fixing this bug by workaround bug 142135 in the prefetching code.
doing so isolates the fix to a non-core part of the codebase.
Assignee | ||
Updated•22 years ago
|
Severity: normal → blocker
Status: NEW → ASSIGNED
Keywords: adt1.0.2,
mozilla1.0.2
Priority: -- → P1
Target Milestone: --- → mozilla1.0.2
Assignee | ||
Comment 1•22 years ago
|
||
Assignee | ||
Updated•22 years ago
|
Attachment #106119 -
Flags: superreview?(dveditz)
Attachment #106119 -
Flags: review?(gordon)
Comment 2•22 years ago
|
||
Comment on attachment 106119 [details] [diff] [review]
workaround patch - touches only the prefetching code
sr=dveditz, can't hurt, but I'd rather fix the real cause bug 142135
Attachment #106119 -
Flags: superreview?(dveditz) → superreview+
Comment on attachment 106119 [details] [diff] [review]
workaround patch - touches only the prefetching code
r=gordon
Attachment #106119 -
Flags: review?(gordon) → review+
Comment 4•22 years ago
|
||
Comment on attachment 106119 [details] [diff] [review]
workaround patch - touches only the prefetching code
This seems ok too, but I'd rather the QI map were complete and correct on the
1.0 branch, soon.
/be
Attachment #106119 -
Flags: approval+
Comment 5•22 years ago
|
||
plussing for adt please land asap.
Assignee | ||
Comment 6•22 years ago
|
||
fixed1.0.2
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Keywords: mozilla1.0.2 → fixed1.0.2
Resolution: --- → FIXED
Comment 7•22 years ago
|
||
I spent a few hours with this patch applied to a current branch build of
Blackbird on Win2k. I added some additional PR_LOG calls to
nsPrefetchService.cpp and set FORCE_PR_LOG in that file, so I could check that
it was hitting the right code at the right time. I set up testcases on a
server where I could check the servers logs, and also looked at packet traces
with Ethereal.
The current branch build does the following (which are the correct actions
[or I believe these are all correct actions]):
1) Sends a referrer header for the current page when initiating a prefetch.
2) Sends 'X-Moz: prefetch' with a request initiated by the prefetch service.
3) Initiates prefetch for <link rel='...'> with either the value of 'next'
or 'prefetch'.
4) Will only initiate one prefetch when presented with multiple valid
keywords in the 'rel' attribute (i.e., for
<link rel="next prefetch foobar prefetch">).
5) Will abort a prefetch if the resource requested indicates that it cannot
be cached (e.g., 'Cache-control: no-cache' but what other headers should
I test, darin).
6) Will NOT perform a prefetch for a resource that is already present in the
cache.
7) Will NOT initiate a prefetch if the URI contains a query string.
8) Will abort all prefetches if another document load is initiated before
the prefetch queue has been emptied (and will then empty the queue when
the prefetch is aborted. Any partially cached resources will remain in
the cache and the next request for that URI will do a partial GET for the
remainder of the resource.
9) Will NOT do a prefetch if the HTML document is received by the mail
client.
10) If the corrent HTTP 'Link' header is sent (and no '<link rel="...">' is
contained in the document, a prefetch will be initiated for the resource
specified in the 'Link' header.
11) Will NOT do a prefetch for a '<link rel="...">' that is enclosed in
comments in the document.
12) Will initiate a prefetch for a properly formatted <META> element, e.g.,
<meta HTTP-EQUIV="link" CONTENT="<res/Screenshot4.png>; rel=next">
13) Will NOT do any prefetches if 'user_pref("network.prefetch-next", false);'
is set in the user's profile (which is the default in mozilla builds).
This still needs checking in the actual release builds tomorrow, but it all
looks good to me at this point.
Assignee | ||
Comment 8•22 years ago
|
||
jrgm: this looks really great!
as for #5, i don't think we need to worry too much about the other header
combinations. the decision not to prefetch a response w/ the 'cache-control:
no-cache' header is actually based on the effective cache expiration time, and
errors in that calculation would effect lots of other areas of the product.
Comment 9•22 years ago
|
||
verified fixed for the 11/14 1.0.2 blackbird branch candidate builds on
win2k, linux (6.1), mac osx 10.2, mac os9 10.2 per
http://jrgm.mcom.com/bugs/prefetch/test-cases.html
Status: RESOLVED → VERIFIED
Keywords: fixed1.0.2 → verified1.0.2
Comment 10•22 years ago
|
||
> win2k, linux (6.1), mac osx 10.2, mac os9 10.2
er, mac os9 9.2
You need to log in
before you can comment on or make changes to this bug.
Description
•