LOAD_FLAGS_BYPASS_CACHE and LOAD_FLAGS_BYPASS_HISTORY combination leads to ignoring both

RESOLVED INACTIVE

Status

()

Core
Document Navigation
RESOLVED INACTIVE
10 years ago
3 days ago

People

(Reporter: Dmitry Dartz, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

10 years ago
User-Agent:       Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322)
Build Identifier: 1.9.0.5

if nsIWebNavigation::LoadURI() is invoked with LOAD_FLAGS_BYPASS_CACHE | LOAD_FLAGS_BYPASS_HISTORY flags, NS_NOTREACHED("Unexpected load type value") will be triggered in nsDocShell::ConvertLoadTypeToDocShellLoadInfo()


Reproducible: Always

Steps to Reproduce:
call LoadURI method with LOAD_FLAGS_BYPASS_CACHE | LOAD_FLAGS_BYPASS_HISTORY

Actual Results:  
NS_NOTREACHED("Unexpected load type value") triggered

Expected Results:  
-

I think that either flags should be independed and therefore you'd need to get rid of LoadType enum, or existing constraints on the flag combinations should be better documented.
Yeah, this should probably work.  Depends on the bug about the docshell load type being an enum, not a bitfield, which I can't find at the moment.

Comment 2

3 days ago
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 3 days ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.