Bug 128336 - window.print does not work
Summary: window.print does not work
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Linux
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2014-02-06 15:02 PST by Niranjan Rao
Modified: 2019-05-17 14:03 PDT (History)
4 users (show)

See Also:

Test case showing print problem (158 bytes, text/html)
2014-02-06 15:02 PST, Niranjan Rao
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.