Closed Bug 76657 Opened 24 years ago Closed 24 years ago

ViewSource protocol handler must use nsIRequest::LOAD_FROM_CACHE

Categories

(Core :: Networking, defect)

All
Windows NT
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: chak, Assigned: chak)

Details

(Whiteboard: important to mozilla0.9)

Attachments

(1 file)

In version 1.260 of nsDocShell we had: // "View source" always wants VALIDATE_NEVER. if ( mViewMode == viewSource ) { loadFlags |= nsIRequest::VALIDATE_NEVER; } } else { ... } With the view-source: changes to nsDocShell.cpp we no longer have the mViewMode. So this code moved to nsViewSourceChannel.cpp However, in 1.261 the above code became: // "View source" always wants the currently cached content. if ( mViewMode == viewSource ) { loadFlags |= nsIRequest::LOAD_FROM_CACHE; } else { .... } When the viewsource changes were checked in (as version 1.262 the "nsIRequest::LOAD_FROM_CACHE" never got into nsViewSourceChannel.cpp). nsViewSourceChannel.cpp must be updated to or with the "nsIRequest::LOAD_FROM_CACHE" in SetLoadFlags().
r=valeski.
sr=brendan@mozilla.org. I think we want this in 0.9, but I'll let blizzard or asa give that a= so as to get some drivers peer review. /be
Whiteboard: important to mozilla0.9
a=asa@mozilla.org for checkin to 0.9
Fix is in.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
QA Contact: tever → benc
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: