WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
44023
HTML applet elements should fire a 'beforeload' event
https://bugs.webkit.org/show_bug.cgi?id=44023
Summary
HTML applet elements should fire a 'beforeload' event
Marc Hoyois
Reported
2010-08-14 23:22:48 PDT
Created
attachment 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.
Attachments
Safari extension that preventDefault()s any beforeload event
(4.96 KB, application/x-safari-extension)
2010-08-14 23:22 PDT
,
Marc Hoyois
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Adam Roben (:aroben)
Comment 1
2010-08-16 07:29:41 PDT
<
rdar://problem/8313471
>
Ahmad Saleem
Comment 2
2022-09-16 23:39:09 PDT
rniwa & ap - I don't think HTMLAppletElement is supported by Safari and only reference is this in GTK:
https://github.com/WebKit/WebKit/blob/8afe31a018b11741abdf9b4d5bb973d7c1d9ff05/Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAppletElement.cpp
Is this bug still valid? Thanks!
Alexey Proskuryakov
Comment 3
2022-09-18 16:46:51 PDT
We still have a lot more code for the applet element, not just the Gtk file that you point out. Some of it is required per HTML5, as the spec requires processing it as a special case to prevent breaking legacy documents. But some looks like cruft that just hasn't been cleaned up. Anyway, it certainly won't be loading any resources any more.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug