Closed
Bug 342439
Opened 18 years ago
Closed 18 years ago
printing certain urls (google groups and maps) from print preview shows the style/meta tags on paper
Categories
(Core :: Printing: Output, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.8.1
People
(Reporter: moco, Assigned: moco)
References
()
Details
(Keywords: fixed1.8.0.7, fixed1.8.1, regression, Whiteboard: [fixed on trunk, 1.8.1 branch, and 1.8.0 branch])
Attachments
(4 files, 1 obsolete file)
(deleted),
application/pdf
|
Details | |
(deleted),
application/pdf
|
Details | |
(deleted),
application/pdf
|
Details | |
(deleted),
patch
|
moco
:
review+
moco
:
superreview+
dveditz
:
approval1.8.0.7+
beltzner
:
approval1.8.1+
|
Details | Diff | Splinter Review |
[printing] printing (a google pages) shows the style tag on paper (but not in preview)
try it with http://groups.google.com/group/mozilla.dev.apps.firefox/msg/46e9754733d4a436
I have seen this on google maps, too. I'll get a test case
see attached pdf.
I'm using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1a3) Gecko/20060620 BonEcho/2.0a3
Assignee | ||
Comment 1•18 years ago
|
||
yes, print this: http://maps.google.com/maps?oi=map&q=51+Campbell+Avenue,+Campbell,+CA
I am using http://www.pdf995.com/ to print to pdf on windows.
here come two pdfs.
Assignee | ||
Comment 2•18 years ago
|
||
Assignee | ||
Comment 3•18 years ago
|
||
Assignee | ||
Updated•18 years ago
|
Summary: [printing] printing (a google pages) shows the style tag on paper (but → [printing] printing certain urls (google groups and maps) shows the style tag on paper (but not in preview)
Assignee | ||
Comment 4•18 years ago
|
||
here is the tag that is leaking:
<noscript><style type="text/css"><!--
.noscripthide { display:none; }
.noscriptinline { display:inline; }
.noscriptblock { display:block; }
//--></style></noscript>
Assignee | ||
Comment 5•18 years ago
|
||
Comment 6•18 years ago
|
||
See also (at least until it turned trainwreck) bug 334944
Assignee: nobody → printing
Component: General → Printing
Product: Firefox → Core
QA Contact: general
Summary: [printing] printing certain urls (google groups and maps) shows the style tag on paper (but not in preview) → printing certain urls (google groups and maps) shows the style tag on paper (but not in preview)
Version: 2.0 Branch → 1.8 Branch
Assignee | ||
Comment 7•18 years ago
|
||
thanks for the bug links, phil.
for test case, use http://maps.google.com/maps?oi=map&q=51+E+Campbell+Avenue,+Campbell,+CA (instead of my link in comment #1).
bz, this seems related to bugs #334944 and #340119.
Note, I've tried a recent trunk build (and recent branch build) on windows, and this issue remains.
updating summary.
to answer bug #334944 comment #4
> Are the people seeing this in printing just printing? Or printing from inside
> print preview?
yes, I only see this with print preview. print works fine.
Comment 8•18 years ago
|
||
So it doesn't appear in print preview, but does when you print from print preview?
If so, I'll need some help debugging here, since on Linux printing from inside print preview is impossible..
Updated•18 years ago
|
Flags: blocking1.9a1?
Flags: blocking1.8.1?
Flags: blocking1.8.0.6?
Assignee | ||
Comment 9•18 years ago
|
||
> So it doesn't appear in print preview, but does when you print from print
> preview?
yes, that is what I'm seeing.
> If so, I'll need some help debugging here, since on Linux printing from inside
> print preview is impossible..
I've got a debug win32 build, so I should be able to help you out. Any suggestions on where to start looking?
Comment 10•18 years ago
|
||
I'd probably start by breakpointing in TurnScriptingOn and seeing what it's called with... After the first time we've disabled scripting, breakpoint in PresShell::SetPrefNoScriptRule and see what happens there?
Updated•18 years ago
|
Flags: blocking1.8.1? → blocking1.8.1+
Assignee | ||
Comment 11•18 years ago
|
||
Assignee | ||
Comment 12•18 years ago
|
||
thanks again to bz for working with me over irc and for suggesting a fix.
I'll seek approval for 1.8.0x, 1.8 and trunk.
bz suggested that roc r+sr this bug.
Assignee: printing → sspitzer
Target Milestone: --- → mozilla1.8.1
Assignee | ||
Updated•18 years ago
|
Attachment #230074 -
Flags: review?(roc)
Assignee | ||
Updated•18 years ago
|
Assignee | ||
Updated•18 years ago
|
Whiteboard: [fix in hand] → [fix in hand, awaiting reviews]
Assignee | ||
Comment 13•18 years ago
|
||
Comment on attachment 230074 [details] [diff] [review]
patch suggested by bz
maybe dbaron can review?
I'd like to get this into the branch for 2.0b2, too.
Attachment #230074 -
Flags: review?(dbaron)
Comment 14•18 years ago
|
||
Comment on attachment 230074 [details] [diff] [review]
patch suggested by bz
r+sr=dbaron, although you might want to add a comment that you're checking print for the case where printing is done from the print preview window.
(Although I wonder if what we should really be doing is checking mDocument->GetShellAt(0)->GetPresContext()->Type == nsPresContext::eContext_PrintPreview . Except that might break if we made print preview work sensibly, although doing that would probably lead to tearing all this code out anyway.)
Attachment #230074 -
Flags: superreview+
Attachment #230074 -
Flags: review?(dbaron)
Attachment #230074 -
Flags: review+
Assignee | ||
Comment 15•18 years ago
|
||
Attachment #230074 -
Attachment is obsolete: true
Attachment #230525 -
Flags: superreview+
Attachment #230525 -
Flags: review+
Attachment #230525 -
Flags: approval1.8.1?
Attachment #230074 -
Flags: review?(roc)
Assignee | ||
Updated•18 years ago
|
Attachment #230525 -
Flags: approval1.8.0.6?
Assignee | ||
Comment 16•18 years ago
|
||
Comment on attachment 230525 [details] [diff] [review]
patch suggested by bz (with a comment, per dbaron)
note, I fixed this typo:
"// see bug #242439 for more details"
"// see bug #342439 for more details
Comment 17•18 years ago
|
||
Your editor let you insert a tab. Bad editor!
Comment 18•18 years ago
|
||
Comment on attachment 230525 [details] [diff] [review]
patch suggested by bz (with a comment, per dbaron)
a=drivers. Please land on the MOZILLA_1_8_BRANCH.
Attachment #230525 -
Flags: approval1.8.1? → approval1.8.1+
Assignee | ||
Comment 19•18 years ago
|
||
fixed on 1.8 branch, too.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [fix in hand, awaiting reviews] → [fixed on 1.8 branch and trunk, bz wanted me to seek approval for 1.8.0.6, too]
Assignee | ||
Updated•18 years ago
|
Keywords: fixed1.8.1
Whiteboard: [fixed on 1.8 branch and trunk, bz wanted me to seek approval for 1.8.0.6, too] → [fixed on 1.8.1 branch and trunk, bz wanted me to seek approval for 1.8.0.6, too]
Assignee | ||
Comment 20•18 years ago
|
||
I've verified that 1.5.0.x has this bug, and that applying this to the MOZILLA_1_8_0_BRANCH fixes it.
Is this worth taking for 1.5.0.6?
Assignee | ||
Comment 21•18 years ago
|
||
> Is this worth taking for 1.5.0.6?
I see that it is in the pipeline for the 1.8.0.7 (1.5.0.7) release and not the 1.8.0.6 release (1.5.0.6).
I'll wait for drivers to process the nomination.
Comment 22•18 years ago
|
||
Yeah, 1.8.0.6 is basically 1.8.0.5 with a major snafu fixed. This should go into 1.8.0.7...
Comment 23•18 years ago
|
||
Not blocking 1.8.0.x but we'll look at the patch
Flags: blocking1.8.0.7? → blocking1.8.0.7-
Comment 24•18 years ago
|
||
Comment on attachment 230525 [details] [diff] [review]
patch suggested by bz (with a comment, per dbaron)
approved for 1.8.0 branch, a=dveditz for drivers
Attachment #230525 -
Flags: approval1.8.0.7? → approval1.8.0.7+
Assignee | ||
Comment 25•18 years ago
|
||
I've checked in the fix to the 1.8.0 branch for 1.8.0.7.
thanks again to bz for the fix.
Keywords: fixed1.8.0.7
Whiteboard: [fixed on 1.8.1 branch and trunk, bz wanted me to seek approval for 1.8.0.6, too] → [fixed on trunk, 1.8.1 branch, and 1.8.0 branch]
Updated•18 years ago
|
Flags: blocking1.9a1?
You need to log in
before you can comment on or make changes to this bug.
Description
•