Closed Bug 157632 Opened 22 years ago Closed 22 years ago

window.print() not working (trunk only)

Categories

(Core :: DOM: Core & HTML, defect)

x86
All
defect
Not set
major

Tracking

()

VERIFIED FIXED
mozilla1.0.3

People

(Reporter: tever, Assigned: rods)

Details

(Keywords: regression, testcase)

Attachments

(3 files)

Overview Description:  Javascript url's do not appear to be working from within
href's.   

Steps to Reproduce:
1.)  Go to URL listed (internal only) 
2.)  click on the 'click here' link

Actual Results:  nothing happens 

Expected Results:  the text of the main window should be sent to your printer

Build Date & Platform Bug Found:  trunk builds - 07/12/2002  winNT4, linux rh6,
mac osX

Additional Information:  
- works on branch
- using the javascript alert function doesn't work from within href
- examples of this can be found at http://www.mapquest.com and http://www.401k.com
Attached file testcase
Keywords: testcase
Keywords: regression
This has nothing to do with javascript: URL's, window.print() seems broken. If I
replace the javascript: URL with javascript:alert("foo"); it works. Over to rods
who's the owner of window.print() and everything it does...
Assignee: jst → rods
Summary: javascript url's are not working from withing href (trunk only) → window.print() not working (trunk only)
Attached patch patchSplinter Review
My fault.. how I forgot to test this testcase is a mystery.
As it turns out clicking on a link makes the document "busy" with a "before
page load" flag. (who would have thought)

This check to make sure the document is busy with an actual page load.
I mis that test because I als check with an input button and forget about the
link case.
Comment on attachment 91502 [details] [diff] [review]
patch

r=dcone
Attachment #91502 - Flags: review+
Comment on attachment 91502 [details] [diff] [review]
patch

sr=jst
Attachment #91502 - Flags: superreview+
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.0.3
Comment on attachment 91502 [details] [diff] [review]
patch

a=scc for checkin to the mozilla trunk
Attachment #91502 - Flags: approval+
fixed
fixed again
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
this is working for me now on 07/26/02 trunk builds

verified
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: