Closed Bug 281126 Opened 20 years ago Closed 20 years ago

After closing Print Preview can't select text on web page (easy to reproduce)

Categories

(Core :: Layout, defect)

x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 176611

People

(Reporter: jbash, Unassigned)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

Please try this:
1. Go to any web site
2. Do a Print Preview
3. Close the Print Preview
4. Select/highlight text on the web page - you will notice that you won't be
able to.

Above description by SomeoneOrOther from
http://forums.mozillazine.org/viewtopic.php?p=1209132#1209132 But he didn't know
how to use Bugzilla. I confirmed bug on my machine (same OS) but thought it
could be an extension. He removed all extensions and says it still happens.

Extremely simple to confirm, even happens from this bugzilla page for me. I can
hightlight text, I do a print preview and then close it, I can no longer
highlight text. Not the worst bug in the world, but easy to reproduce!


Reproducible: Always

Steps to Reproduce:
1. Go to any web site
2. Do a Print Preview
3. Close the Print Preview
4. Select/highlight text on the web page - you will notice that you won't be
able to.
Actual Results:  
No longer can select text on the web page tab that was displayed in the print
preview. Selecting text still works in other tabs.

Expected Results:  
Continued to allow text to be selected for copy/paste or other right click options.

It seems that once this problem occurs in one tab it won't appear in others but
I haven't done extensive testing.

Easiest workaround for me seems to be to duplicate the tab and then in the dup
space select works again. Then I close original tab since the problem seems to
persist there.
I get 
###!!! ASSERTION: Unexpected ContentStatesChanged: '!mIsDocumentGone', file c:/m
ozwork/debugtree/mozilla/layout/base/nsPresShell.cpp, line 5152
whenever I move the mouse over the viewport after closing print preview.
Component: General → Layout
Product: Firefox → Core
Version: unspecified → Trunk
Severity: minor → normal
regression timeframe?
Assignee: firefox → nobody
QA Contact: general → layout
Flags: blocking1.8b2?
Does this still happen with current trunk? Bug 286869 looks very similar.
Severity: normal → minor
QA Contact: layout → general
I can't reproduce this with a build from today. Reporter, can you test with a
nightly build?
(In reply to comment #4)
> I can't reproduce this with a build from today. Reporter, can you test with a
> nightly build?

I'm not the reporter, but i can reproduce this with a build from yesterday,
28-3-05  :)
Reuven, branch or trunk?
Please ignore comment 4. I don't get the assertion any more, and I don't see the
bug everywhere, but I do see it e.g. on www.mozillazine.org.

We badly need a regression window.
The bug seems to exist since Mozilla 1.0, when Print Preview support was added.
from viewing the code at: http://www.mozillazine.org/ and
http://forums.mozillazine.org/viewtopic.php?p=1209132#1209132

the problem appears only when there is a <inline> or <object> tag, but there
maybe more. when removing those tags from the url's above the text selection is
fine.
Status: UNCONFIRMED → NEW
Ever confirmed: true
the testcase includes an "iframe" tag. the second thing is that if the mouse is
pointed over the "iframe" in print preview, the text inside the frame
disappears when returning to the page.
the text selection seems to be a duplicate of bug 176611. the second problem
with the content of 'iframe' disappearing after pointing the mouse over it in
print preview, seems to have been created from the fix for Bug 284664, i added a
comment there.

*** This bug has been marked as a duplicate of 176611 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Flags: blocking1.8b2?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: