Closed Bug 147364 Opened 23 years ago Closed 22 years ago

on Back browser loads about:blank (Trunk M1RC3)

Categories

(Core :: DOM: Navigation, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX
mozilla1.4beta

People

(Reporter: aha, Assigned: radha)

References

()

Details

Attachments

(1 file)

Repro: 1. go to URL 2. click on any headline in small IFRAME (-> article will be opened) 3. hit Back button or Alt + <- Actual: about:blank page appear. Expect: Previous page. 2002052508/trunk/W2K
I see it in Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0+) Gecko/20020527. pi
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 2000 → All
Hardware: PC → All
Summary: on Back browser loads about:blank → on Back browser loads about:blank (Trunk M1RC3)
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.2beta
This is probably the same problem as 148794.
Just visiting the above site creates 4 entries in session history. This is because the "about:blank" loaded in the iframes don't get registered in session history. This is what is going on: When the iframes are loaded with "about:blank", 1) nsDocShell::SetCurrentURI() is called once from CreateAboutBlankContentViewer() which sets mCurrentURI to "about:blank" . 2) The iframe then comes around for regular loading through nsDocShell::CreateContentViewer() and since mCurrentURI is already set, in step 1) nsDocShell::OnNewURI() decides that it is a repeat load of an existing document and changes the loadType of the iframe to LOAD_NORMAL_REPLACE. So no entries get created in session history for these iframes 3) Then when the onLoad Handler in the page, loads the actual url on the iframes, they get added to session history as top level documents. Thus simply visiting the apge creates 4 entries in session history. (One for the main page and 3 for the 3 iframes). This ofcourse causes further trouble for back/forward buttons when the user does subframe navigation in the site. looking to see if step 1) can be eliminated, which would allow proper creation of the session history entries and therefore any subframe navigations...
More comments about the patch that causes of misbehavior is in bug 104361.
Dan, can you take a look at comment 3? It seems we overlooked something when we fixed setting the URI for those "gotta show something" about:blank documents.
When loading this page in the latest trunk builds, I see several JS warnings and I don't see the iframe displayed at all. CSS Error (http://www.abicko.cz/css/clanek_plus.css :7.22): Unknown property 'sc rollbar-arrow-color'. Declaration dropped. CSS Error (http://www.abicko.cz/css/clanek_plus.css :8.21): Unknown property 'sc rollbar-face-color'. Declaration dropped. CSS Error (http://www.abicko.cz/css/clanek_plus.css :9.26): Unknown property 'sc rollbar-highlight-color'. Declaration dropped. CSS Error (http://www.abicko.cz/css/clanek_plus.css :10.24): Unknown property 's crollbar-3dlight-color'. Declaration dropped. CSS Error (http://www.abicko.cz/css/clanek_plus.css :11.23): Unknown property 's crollbar-shadow-color'. Declaration dropped. CSS Error (http://www.abicko.cz/css/clanek_plus.css :12.27): Unknown property 's crollbar-darkshadow-color'. Declaration dropped. CSS Error (http://www.abicko.cz/css/clanek_plus.css :13.22): Unknown property 's crollbar-track-color'. Declaration dropped. JavaScript strict warning: http://www.abicko.cz/pages/uvod.html line 33: assignment to undeclared variable pxDepth
Step 1 can be eliminated, patch coming up.
Jag, your attachement doesn't quite help me with this bug. The problem is not in calling SetCurrentURI() or firing onLocationChange. The problem is setting mCurrentURI to about:blank, which is again going to be set when about:blank comes for loading asynchronously. However, now per my previous comment, I'm not able to load the site properly. Let me see. If there are situations when about:blank is loaded only synchronously, I would like try them out. Let me know if you are aware of any such situations.
Target Milestone: mozilla1.2beta → mozilla1.4beta
Docshell recently changed behavior so that page loads to iframes are not recorded in session history. So, that changes the behavior of this website and I intend to keep it that way, since the widespread expectation is that, iframe loads should not go into session history.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → WONTFIX
Component: History: Session → Document Navigation
QA Contact: claudius → docshell
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: