Link to browser window in Print Preview mode results in "The document cannot change while Printing or in Print Preview." error

RESOLVED WORKSFORME

Status

()

RESOLVED WORKSFORME
14 years ago
2 years ago

People

(Reporter: christopher.vance, Unassigned)

Tracking

({testcase})

Trunk
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

14 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a2) Gecko/20040525
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a2) Gecko/20040525

New Web pages can be loaded into browser windows which are currently previewing
a Web page in Print Preview mode.  When the new page is loaded, the page is
rendered as it normally would, but the browser UI still shows the Print Preview
UI.  Visiting new pages in this browser window is also broken after executing
this bug.  Loading the page in Print Preview mode and the error might be two
separate bugs... triage this appropriately.

Reproducible: Always
Steps to Reproduce:
1. Click the link in the second attachment (creates a targeted link to the first
attachment to open it in a named window).
2. In this named window, enter Print Preview mode.
3. Click the link on the second attachment again.  This will open the first
attachment in the same named window that is currently previewing the previously
loaded page.  This page will load into the Print Preview, but is essentially the
screen rendering of the page, complete with right-mousebutton context menu and
background color, shown in the Print Preview browser wrappings.
4. Hit the Close button to close the Print Preview.  You will now see the screen
rendering of the Web page you clicked a link to in the real browser window.
5. Attempt to access another Web page in this window.  Try a bookmark or type a
URL into the address bar.
Actual Results:  
Browser window appears to forgot it's History: The Back button is not lit up,
and you cannot visit bookmarks and type in URLs to Web pages.  If you try to
visit another Web page (eg. Google.com), the error "The document cannot change
while Printing or in Print Preview." is displayed.

You CAN, however, visit new pages in a new tab created within that browser
window (but the original tab will still not load URLs).

Expected Results:  
The software should have handled the new Web page loaded while the previous page
was in Print Preview mode differently.  Perhaps by exiting Print Preview mode
and displaying the new page, or by prompting the user for action ("close Print
Preview?" or something similar).
(Reporter)

Comment 1

14 years ago
Created attachment 149318 [details]
Test page for link to named window

Background is irrelevant to the bug itself but helps show difference between
screen and print rendering of page.
(Reporter)

Comment 2

14 years ago
Created attachment 149319 [details]
Opens first attachment in targeted (named) window
(Reporter)

Comment 3

14 years ago
The browser's behavior seems to differ between Mozilla and Firefox.

With Firefox, following the steps, I cannot close the Print Preview screen (step
4).  The Close button does nothing.

In Mozilla, the Close button works fine.

Tested on Windows XP SP2 with:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a3) Gecko/20040824
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a3) Gecko/20040823
Firefox/0.9.1+
In Firefox 1.0.  Windows XP sp2

The first time the browser is opened, impossible to print on any printer,
spooler seems inactive. If printing is retried, symptom is "printer error    
not available"

No problem for the additional tabs opened, where printing is ok. 
For the first tab, that creates the symtom of "the document cannot change while
printing..."

Permanent and stable bug.
Confirmed, although I haven't really checked well for an eventuel duplicate.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase

Comment 6

12 years ago
(In reply to comment #5)
> Confirmed, although I haven't really checked well for an eventuel duplicate.

confirmed with firefox?
related to bug 148892?
OS: Windows XP → All
Hardware: PC → All
Assignee: printing → nobody
QA Contact: printing
This is fixed in recent versions of Firefox (tested on 50 beta, but I'm fairly sure this has been fixed for longer now).
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.