Closed Bug 286811 Opened 19 years ago Closed 19 years ago

Invalid URLs get logged into global history when XUL error pages are enabled

Categories

(Core :: DOM: Navigation, defect, P2)

defect

Tracking

()

VERIFIED FIXED
mozilla1.8beta4

People

(Reporter: neil, Assigned: Biesinger)

Details

Attachments

(1 file, 1 obsolete file)

Steps to reproduce problem:
1. Turn on XUL error pages
2. Browse to an invalid URL e.g. https://www.domain.invalid/
3. Open history

Actual result: invalid URL is logged in global history

Expected results: global history is unchanged

Additional information: If your startup/new window/new tab preference specifies
the last loaded URL then that also includes those invalid URLs.
related to bug 9203
Attached patch patch (obsolete) — Splinter Review
sorry about the part from bug 300863 in this patch (the OnNewURI part in hunk
1), but there was really no way to avoid it...
Attachment #190283 - Flags: superreview?(darin)
Attachment #190283 - Flags: review?(bzbarsky)
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla1.8beta4
Comment on attachment 190283 [details] [diff] [review]
patch

r=bzbarsky
Attachment #190283 - Flags: review?(bzbarsky) → review+
Comment on attachment 190283 [details] [diff] [review]
patch

looks good, sr=darin
Attachment #190283 - Flags: superreview?(darin) → superreview+
Comment on attachment 190283 [details] [diff] [review]
patch

low risk patch to not store error pages in history
Attachment #190283 - Flags: approval1.8b4?
Attachment #190283 - Flags: approval1.8b4? → approval1.8b4+
Attached patch merged to trunkSplinter Review
merged to trunk after Bug 300863
Attachment #190283 - Attachment is obsolete: true
Checking in docshell/base/nsDocShell.cpp;
/cvsroot/mozilla/docshell/base/nsDocShell.cpp,v  <--  nsDocShell.cpp
new revision: 1.707; previous revision: 1.706
done
Checking in docshell/base/nsDocShell.h;
/cvsroot/mozilla/docshell/base/nsDocShell.h,v  <--  nsDocShell.h
new revision: 1.183; previous revision: 1.182
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: