Closed Bug 128489 Opened 23 years ago Closed 23 years ago

Back button does not work after Close in Print Preview

Categories

(Core :: Print Preview, defect)

defect
Not set
normal

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: sujay, Assigned: rods)

References

Details

using 3/1 trunk build 1) launch netscape 2) browse a couple sites 3) confirm that Back Button works in browser 4) Now hit Forward button to advance one web page 5) Print Preview that page 6) click Close on PP panel 7) click on Back button on browser Back does not work. Does not go back one page.
same problem with different scenario..I had filed a bug against radha for this issue. BACK stopped working for me after navigating thru newsgroup threads...
Using Build ID: 2002030403 OS: Windows XP Professional Back button does not work after close in Print Preview if you have navigated too many sites and used the forward and back buttons a number of times before invoking print preview on a particular page.
This only happens on pages with frames apparently. Over to Rod for a look. CC'ing Radha who may have some insight into this problem per a conversation with her.
Assignee: sgehani → rods
We appear to be calling nsDocShell::OnNewURI() once for each frame as an effect of exiting print preview. The front-end simply calls nsIWebBrowserPrint::exitPrintPreview() thus exempting itself.
OnNewURI() gets called only when pages are loaded on the docshell ie., nsDocShell::LoadURI() or nsDocShell::InternalLoad() gets called for the page. For PrintPreview, I suggest that nsIWebNavigation::LOAD_FLAGS_BYPASS_HISTORY be used so that what ever load the printPreview code does will not go into session history.
*** Bug 131511 has been marked as a duplicate of this bug. ***
In a similar problem, Mozilla crashes after performing the following tasks: Steps to reproduce: 1. Go to any page 2. Go to http://cube.ign.com/ 3. Reload if interstital ad appears 4. Go to print preview 5. Close print preview 6. Click drop-down arrow next to back button and choose page loaded in step 1 The page loads, and then Mozilla crashes after 1-2 seconds. Earlier tonight, I could consistently reproduce the crash, but then later I could not. I am now able to reproduce the crash again, even though I haven't changed anything. Here are the Talkback IDs: TB4125489X TB4125531W TB4125552H TB4127154Q TB4127812Y
I forgot to mention I'm using Mozilla 0.9.9 (build 2002031104) on Win98.
This should be fixed now.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
verified in 4/1 build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.