Closed Bug 766757 Opened 14 years ago Closed 14 years ago

Can't use both REPLACE_HISTORY and BYPASS_CACHE flags when calling nsIWebNavigation::loadURI()

Categories

(Core :: DOM: Navigation, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: bnicholson, Assigned: bnicholson)

References

Details

Attachments

(2 files)

<bz> but in any case, the upshot is that there is no valid docshell loadtype that has both flags <bz> and docshell uses integer loadtypes instead of flag bits <bz> so it's all kinda broken <bz> any time you want to do a new flag combination, you have to explicitly allow it... <bz> And in particular, nsDocShell::DoChannelLoad does a switch, not a bit check
This patch works for me, but I had to guess on a few things: - whether this should be prefixed with LOAD_NORMAL or just LOAD - what nsIDOMPerformanceNavigation type this should be considered as This change is for the "Request Desktop Site" feature on mobile (bug 766406). If changing from a mobile->desktop version of a page, we want to make sure we aren't showing the cached mobile page, and we also don't want the same URL to be in the history twice.
Assignee: nobody → bnicholson
Attachment #635127 - Flags: review?(bzbarsky)
Comment on attachment 635127 [details] [diff] [review] Add LOAD_REPLACE_BYPASS_CACHE load type r=me
Attachment #635127 - Flags: review?(bzbarsky) → review+
Blocks: 766406
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: