Java applet is destroyed after hiding of an element containing an aplet

RESOLVED WONTFIX

Status

()

Core
Plug-ins
P3
normal
RESOLVED WONTFIX
9 years ago
a year ago

People

(Reporter: Siarhei, Unassigned)

Tracking

unspecified
x86
Windows Vista
Points:
---
Bug Flags:
firefox-backlog +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

9 years ago
Created attachment 368269 [details]
page with applet

Java applet is destroyed after hiding of an element containing an aplet.

I created an example page to show the problem.

<div id="appletDiv" style="display: block">
<applet code="InvisibleApplet.class">
</applet>
</div>

The applet div is displayed and an applet is running after loading page. The applet is destroyed after style of the div is changed to "display: none".

I don't think an applet should be destroyed in the case. It still exists on a page.


Steps to reproduce:

1) complile attached InvisibleApplet.java
2) save attached index.html and put compiled applet (InvisibleApplet.class) in the same folder
3) open the page in a browser (JavaScript should be enabled)
4) click "hide applet" link



Java console will show the following trace if you enable trace and run the scenario:

basic: Starting applet teardown
stop
destroy
basic: Finished applet teardown
(Reporter)

Comment 1

9 years ago
Created attachment 368271 [details]
Java applet code
Is this still an issue ?
Flags: needinfo?(mozilla_by)
(Reporter)

Comment 3

6 years ago
(In reply to Matthias Versen [:Matti] from comment #2)
> Is this still an issue ?

Yes, it is still an issue.
Flags: needinfo?(mozilla_by)
Component: General → Plug-ins
Product: Firefox → Core
Version: 3.5 Branch → unspecified
(In reply to Siarhei from comment #0)
> The applet is destroyed after style of the div is changed to "display: none".
> 
> I don't think an applet should be destroyed in the case. It still exists on
> a page.

Right, the whatwg spec says that applet should be unaffected by the display property:
http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#the-applet-element

Note that you should be using object or embed tags instead if at all possible, which are supposed to be stopped when going display:none.

Comment 5

6 years ago
I don't think we treat applet different from object/embed in this regard, and the behavior of stopping the plugin when it becomes display:none is required by web compat with other existing content. I think that unless there is a specific reason why Hixie made <applet> different from object/embed in the spec, we should try to get the spec changed and WONTFIX this bug.

gfritzsche, can you research and post to whatwg@whatwg.org if appropriate?
Assignee: nobody → georg.fritzsche
Note that we broke some situations of stopping display:none plugins that are already running, but this is unintentional and will be fixed in bug 788900
(In reply to John Schoenick [:johns] from comment #6)
> Note that we broke some situations of stopping display:none plugins that are
> already running, but this is unintentional and will be fixed in bug 788900

Sorry, bug 784131
Assignee: georg.fritzsche → nobody
Flags: firefox-backlog?

Updated

4 years ago
Flags: firefox-backlog? → firefox-backlog+
I'm marking this bug as WONTFIX per bug #1269807.

For more information see - https://blog.mozilla.org/futurereleases/2015/10/08/npapi-plugins-in-firefox/
Status: NEW → RESOLVED
Last Resolved: a year ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.