[Webkit-unassigned] [Bug 129869] New: [GTK] Runtime error when page is closed while print operation is in progress

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 7 01:52:10 PST 2014


https://bugs.webkit.org/show_bug.cgi?id=129869

           Summary: [GTK] Runtime error when page is closed while print
                    operation is in progress
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Keywords: Gtk
          Severity: Normal
          Priority: P2
         Component: WebKit2
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: cgarcia at igalia.com


It doesn't always happen, but it can be easily reproduced running test /webkit2/WebKitPrintOperation/close-after-print

$ Programs/TestWebKitAPI/WebKit2Gtk/TestPrinting -p /webkit2/WebKitPrintOperation/close-after-print
/webkit2/WebKitPrintOperation/close-after-print: OK
pure virtual method called
terminate called without an active exception

This happens because the page is closed when the pages have been printed, but print job is still ongoing sending the data to the printer. When print job finishes, we try to notify the UI process sending the print callback message using WebPage::send(), but the web page object has been destroyed. The virtual method it complains about is probably MessageSender::messageSenderDestinationID() used by send(). Since our print operation is always asynchronous, we need a way to notify the web page when the print operation has actually finished to clean it up, but also notify the print operation when the page has been closed to not try to notify the UI process in that case.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list