Bug 44023 - HTML applet elements should fire a 'beforeload' event
: HTML applet elements should fire a 'beforeload' event
Status: UNCONFIRMED
: WebKit
HTML DOM
: 528+ (Nightly build)
: All All
: P4 Enhancement
Assigned To:
: http://java.sun.com/applets/jdk/1.4/d...
: InRadar
:
:
  Show dependency treegraph
 
Reported: 2010-08-14 23:22 PST by
Modified: 2013-10-31 08:40 PST (History)


Attachments
Safari extension that preventDefault()s any beforeload event (4.96 KB, application/x-safari-extension)
2010-08-14 23:22 PST, Marc Hoyois
no flags Details


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2010-08-14 23:22:48 PST
Created an attachment (id=64439) [details]
Safari extension that preventDefault()s any beforeload event

Overview:
HTML <applet> elements do not fire a 'beforeload' event before the Java resource is fetched and executed.

Steps to reproduce:
1. Install the attached extension. It only has the following injected script:

document.addEventListener('beforeload', function(event) {event.preventDefault();}, true);

2. Navigate to any page with an <applet> tag, such as

http://java.sun.com/applets/jdk/1.4/demo/applets/ArcTest/example1.html

Actual result:
The Java applet loads and runs normally.

Desirable result:
The Java plugin should not run at all.

Additional information:
This would allow a Safari extension to conditionally prevent
the Java plugin from running, as is already possible with all other plugins.
------- Comment #1 From 2010-08-16 07:29:41 PST -------
<rdar://problem/8313471>