Closed Bug 300863 Opened 19 years ago Closed 19 years ago

No history created for "unknown protocol" error page

Categories

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

defect

Tracking

()

VERIFIED FIXED
mozilla1.8beta4

People

(Reporter: minghong, Assigned: Biesinger)

References

()

Details

Attachments

(1 file, 2 obsolete files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b3) Gecko/20050712 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b3) Gecko/20050712 Firefox/1.0+

URL history is not created for XUL error pages, making it impossible to go back
to the previous page when the link followed has error.

Reproducible: Always

Steps to Reproduce:
1. Visit the URL provided in a new tab (to avoid the previous history that may
confuse you)
2. Click on one of the links
3. Look at the toolbar

Actual Results:  
Backward button is grayed out.

Expected Results:  
Allow me to go backward since I didn't have klik installed.

Workaround: reload the error page. It will bring you back to the "previous page".
Confirmed, but this happens without the bfcache too, so this doesn't block bug
274784.

Nominating 1.8b4 since XUL error pages are now enabled by default and the
changes required will probably need testing. 

Nominating 1.1 because this will be a fairly visible bug.
No longer blocks: blazinglyfastback
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking1.8b4?
Flags: blocking-aviary1.1?
My history is full of "Page Load Error"'s including the addresses. 
When I load a series of existing and non-existing pages I can navigate through
them back and forward. The existing pages are pulled from the cache but the
non-existing pages are requested once more.
So I assume I misunderstand the bug.

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b3) Gecko/20050714
Firefox/1.0+ ID:2005071422
Well, I tried the same again with the very latest build and a shining new
profile, but exactly the same result.
When I reload the error page it reloads the address that caused the error page.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b3) Gecko/20050715
Firefox/1.0+ ID:2005071501
hm... seems to only happen with "unknown protocol"?
Assignee: nobody → cbiesinger
OS: Windows XP → All
Priority: -- → P1
Hardware: PC → All
Target Milestone: --- → mozilla1.8beta4
Christian, you're right. Changed the summary.
Summary: No history created for error pages → No history created for "unknown protocol" error page
urg, I forgot that only newURI worked for unknown protocols, not newChannel...
Attached patch patch v0.5 (obsolete) — Splinter Review
this almost works, except that the urlbar is wrong in some cases
Flags: blocking1.8b4?
Flags: blocking1.8b4+
Flags: blocking-aviary1.5?
Comment on attachment 189617 [details] [diff] [review]
patch v0.5

ok, the urlbar issue will need a frontend patch, requesting review on this one
in the meantime
Attachment #189617 - Flags: review?(bzbarsky)
Attached patch xpfe patch (obsolete) — Splinter Review
OK, I think this is correct. If a user selects something from the dropdown, we
should use that as value, and not overwrite it with the part that the user
typed (nsBrowserStatusHandler would overwrite it with what they typed). this is
an issue because there is no onStateChange for this case.
Attachment #190251 - Flags: superreview?(jag)
Attachment #190251 - Flags: review?(neil.parkwaycc.co.uk)
Status: NEW → ASSIGNED
So this fires onLocationChange and such without a channel?  Isn't that a
violation of the nsIWebProgressListener API?  Do we need to just synthesize a
channel here?
http://lxr.mozilla.org/seamonkey/source/uriloader/base/nsIWebProgressListener.idl#305
sounds like this won't be a violation...

and there is no "and such", only onLocationChange is fired.
Comment on attachment 189617 [details] [diff] [review]
patch v0.5

Ah, ok.  If all we fire is OnLocationChange, then this is fine.
Attachment #189617 - Flags: review?(bzbarsky) → review+
Attachment #189617 - Flags: superreview?(darin)
Comment on attachment 189617 [details] [diff] [review]
patch v0.5

I think we should rename OnLoadingSite to OnNewChannel ;-)

sr=darin
Attachment #189617 - Flags: superreview?(darin) → superreview+
Comment on attachment 189617 [details] [diff] [review]
patch v0.5

makes error pages behave a lot better with shistory in the case of unknown
protocol errors.
Attachment #189617 - Flags: approval1.8b4?
Comment on attachment 190251 [details] [diff] [review]
xpfe patch

this patch is actually pointless given bug 286811
Attachment #190251 - Attachment is obsolete: true
Attachment #190251 - Flags: superreview?(jag)
Attachment #190251 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #189617 - Flags: approval1.8b4? → approval1.8b4+
Attached patch merged to trunkSplinter Review
Attachment #189617 - Attachment is obsolete: true
Checking in docshell/base/nsDocShell.cpp;
/cvsroot/mozilla/docshell/base/nsDocShell.cpp,v  <--  nsDocShell.cpp
new revision: 1.706; previous revision: 1.705
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Component: History: Session → Document Navigation
QA Contact: history.session → docshell
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: