Closed Bug 234030 Opened 21 years ago Closed 21 years ago

Docshell needs to deal with failure to get prefs

Categories

(Core :: DOM: Navigation, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.7alpha

People

(Reporter: Biesinger, Assigned: Biesinger)

Details

Attachments

(2 files)

because as it is, this means that xul error pages accidentally default to on. see: http://bonsai.mozilla.org/cvsview2.cgi?diff_mode=context&whitespace_mode=show&file=nsDocShell.cpp&branch=&root=/cvsroot&subdir=mozilla/docshell/base&command=DIFF_FRAMESET&rev1=1.579&rev2=1.580 which was: 1.580 jst%mozilla.jstenback.com Feb 10 22:09 Fixing bug 68215. Adding support for the onbeforeunload event. r=peterv@propagandism.org, sr=brendan@mozilla.org that was bad in that the variable for xul error pages no longer defaults to false.
given how badly xul error pages work currently, I don't think they should be enabled in 1.7a.
Status: NEW → ASSIGNED
Flags: blocking1.7a?
Target Milestone: --- → mozilla1.7alpha
Attachment #141241 - Flags: superreview?(bzbarsky)
Comment on attachment 141241 [details] [diff] [review] patch sr=bzbarsky.
Attachment #141241 - Flags: superreview?(bzbarsky) → superreview+
Comment on attachment 141241 [details] [diff] [review] patch a=chofmann for 1.7a
Attachment #141241 - Flags: approval1.7a? → approval1.7a+
Checking in nsDocShell.cpp; /cvsroot/mozilla/docshell/base/nsDocShell.cpp,v <-- nsDocShell.cpp new revision: 1.582; previous revision: 1.581 done
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Flags: blocking1.7a?
Resolution: --- → FIXED
mValidateOrigin is currently uninitialised if the pref isn't set. Fix that. Also reorder some initialisers to match the declarations.
Attachment #141341 - Flags: superreview?(bzbarsky)
Attachment #141341 - Flags: review?(peterv)
Comment on attachment 141341 [details] [diff] [review] Fix unitialised member mValidateOrigin sr=bzbarsky; please ping me when this needs checking in.
Attachment #141341 - Flags: superreview?(bzbarsky) → superreview+
Comment on attachment 141341 [details] [diff] [review] Fix unitialised member mValidateOrigin is false the right default value here?
(In reply to comment #8) > is false the right default value here? Good question - I don't know. The preference doesn't seem to be defaulted in any existing .js files, or anywhere else. At the moment, it's probably random. Bug 13871 has some more details (and bug 13871 comment 45 says that it'll be off by default, though that comment is over three years old now).
Attachment #141341 - Flags: review?(peterv) → review+
Comment on attachment 141341 [details] [diff] [review] Fix unitialised member mValidateOrigin > please ping me when this needs checking in. bz: ping.
> At the moment, it's probably random. Actually, at the moment it's false. See http://lxr.mozilla.org/seamonkey/source/docshell/base/nsWebShell.h#59 Still worth checking in, but that can probably be removed once we merge webshell and docshell.
Checked in the mValidateOrigin change.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: