Closed Bug 817139 Opened 12 years ago Closed 3 years ago

plugins that open a system print dialog are killed

Categories

(Core Graveyard :: Plug-ins, defect, P3)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mozilla209, Unassigned)

References

Details

(Keywords: reproducible)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.20 (KHTML, like Gecko) Chrome/25.0.1337.0 Safari/537.20

Steps to reproduce:

in flash content that offers a "print" button
push the button
see print dialog
wait until plugin timeout period elapses


Actual results:

plugin is killed


Expected results:

browser should have a better response.  one possibility is to do what chrome does which is put up a dialog about a plugin not responding with a choice to continue to wait.  another possibility is to provide an NPAPI to display the print dialog, similarly to what is done when a plugin needs a context menu.  another possibility might be for the browser to detect when a plugin has raised the print dialog and refrain from killing the plugin.
Component: Untriaged → Plug-ins
Product: Firefox → Core
I don't know whether bug 805591 will stop the killing of the plugin or not and if the hang UI gets implemented on all platforms.
> in flash content that offers a "print" button

Please post a publicly accessible example.
BUG REPRO STEPS:

1.  Go to http://www.playercore.com/ATS/Serrano/ATS/ATS9AS3/Shipping/ATS.html
2.  Enter in "11172" in the "Test Case ID" field and hit "Enter"
3.  Click on the "Print As Bitmap" button in the test case
4.  Keep the print dialog opened and the browser will crash eventually
(In reply to Robert Kwon from comment #3)
> BUG REPRO STEPS:
> 
> 1.  Go to http://www.playercore.com/ATS/Serrano/ATS/ATS9AS3/Shipping/ATS.html
> 2.  Enter in "11172" in the "Test Case ID" field and hit "Enter"

The applet just responds with "Test id not found"

> 3.  Click on the "Print As Bitmap" button in the test case
> 4.  Keep the print dialog opened and the browser will crash eventually

comment 0 says the plugin will be killed, but in this case it's the browser? Could you post a corresponding bp-XXX link from about:crashes?
(In reply to Georg Fritzsche [:gfritzsche] from comment #4)
> (In reply to Robert Kwon from comment #3)
> > BUG REPRO STEPS:
> > 
> > 1.  Go to http://www.playercore.com/ATS/Serrano/ATS/ATS9AS3/Shipping/ATS.html
> > 2.  Enter in "11172" in the "Test Case ID" field and hit "Enter"
> 
> The applet just responds with "Test id not found"
> 
> Try this link instead: http://www.playercore.com/Users/rkwon/Bugs/Mozilla/SfcOpqEbdAlphaPrintAsBmp.swf

> > 3.  Click on the "Print As Bitmap" button in the test case
> > 4.  Keep the print dialog opened and the browser will crash eventually
> 
> comment 0 says the plugin will be killed, but in this case it's the browser?
> Could you post a corresponding bp-XXX link from about:crashes?
Thank you. Your report is a plugin hang (as initially reported, the plugin is getting killed for not having responded for 45sec), not a browser crash. 
Note that this hang report is with Firefox 16, please let's keep to current versions (17+).

I checked in 17-20, it's always the plugin getting killed after the hang timeout
Nightly hang report: bp-hr-20121214-3905dc58-8b9e-4dfb-abb8-2c3d8aa5a887
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: reproducible
Do we have any modal dialog handling in place at all yet on OSX? Or is this only implemented on Windows?
Native modal dialogs (like the print dialog) won't work properly on OS X until I've had a chance to finish my work on bug 729720.  It's hard to say when I'll have time for that.  But we're beginning to hire more Mac programmers, so things are looking up.

Bug 731307 helped, but wasn't enough by itself.
Depends on: 729720
Priority: -- → P3
Resolving as wont fix, plugin support deprecated in Firefox 85.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.