Closed Bug 382383 Opened 17 years ago Closed 17 years ago

nsDocShell::LoadURI discards LOAD_FLAGS_FIRST_LOAD

Categories

(Core :: DOM: Navigation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: sdwilsh, Assigned: sdwilsh)

References

Details

Attachments

(1 file, 1 obsolete file)

ConvertLoadTypeToDocShellLoadInfo doesn't like it, but we need it later.  Patch coming.
Assignee: sdwilsh → nobody
Component: General → Embedding: Docshell
Product: Firefox → Core
QA Contact: general → docshell
Attached patch v1.0 (obsolete) — Splinter Review
Assignee: nobody → sdwilsh
Status: NEW → ASSIGNED
Attachment #266538 - Flags: superreview?(cbiesinger)
Attachment #266538 - Flags: review?
Attachment #266538 - Flags: review? → review?(bzbarsky)
Er... under what conditions is that flag actually needed here?  That is, who's passing it to the nsIWebNavigation method?  I'd really like to check in a regression test for this, because this code is _really_ fragile.

Also, if we do want to do this, I'd like a single constant for all the flags we want to pass in here instead of basically retyping it twice.
It came up while I was trying to work on Bug 346561.  So, nobody uses it yet, but I might have to, unless there's a better/easier way for me to accomplish that task.
Ah, I see.  Yeah, let's have a single constant, and looks reasonable... 
Comment on attachment 266538 [details] [diff] [review]
v1.0

For my own reference - make a constant that holds all the flags that are problematic, and just do one operation.
Attachment #266538 - Attachment is obsolete: true
Attachment #266538 - Flags: superreview?(cbiesinger)
Attachment #266538 - Flags: review?(bzbarsky)
Attached patch v1.1Splinter Review
OK, I believe this is what you are looking for.  I'll wait for requesting sr.
Attachment #267162 - Flags: review?(bzbarsky)
Comment on attachment 267162 [details] [diff] [review]
v1.1

I like!
Attachment #267162 - Flags: review?(bzbarsky) → review+
Attachment #267162 - Flags: superreview?(cbiesinger)
Attachment #267162 - Flags: superreview?(cbiesinger) → superreview+
OS: Mac OS X → All
Hardware: PC → All
Checking in docshell/base/nsDocShell.cpp;
new revision: 1.835; previous revision: 1.834
Checking in docshell/base/nsDocShellLoadTypes.h;
new revision: 1.5; previous revision: 1.4
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Flags: in-testsuite?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: