Bug 128336

Summary: window.print does not work
Product: WebKit Reporter: Niranjan Rao <nhrdls>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: bugs-noreply, mayurk.vk, mcatanzaro, webkit
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Linux   
Attachments:
Description Flags
Test case showing print problem none

Description Niranjan Rao 2014-02-06 15:02:13 PST
Created attachment 223386 [details]
Test case showing print problem

On Ubuntu 12.04/64bit, using webkit gtk release 2.2.4.

Visit any site in mini browser application. Open inspector, execute command window.print();. Nothing happens.

Attached file shows different variation of same problem. Load the file in mini browser, click on the print link. Nothing happens. Try clicking second time and you get the print dialog box as expected and then it works. It should be showing print dialog box after first click.

Based on some more experiments, it looks like its intialization problem. Something is getting initialized in first run that latter run uses. However first does not return at all.
Comment 1 Niranjan Rao 2014-02-06 17:13:05 PST
Experimented with version 2.2.3. Code works correctly with 2.2.3 but does not work with 2.2.4
Comment 2 Lionir 2019-05-17 13:51:49 PDT
Tested on :

Epiphany : 3.33.1-1375a8e6d
Webkit 2.24.1

The test case works.