[Webkit-unassigned] [Bug 20200] New: (Windows only) Java Sound API throws AccessControlException opening URL when action initiated from Javascript.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jul 28 13:53:48 PDT 2008
https://bugs.webkit.org/show_bug.cgi?id=20200
Summary: (Windows only) Java Sound API throws
AccessControlException opening URL when action initiated
from Javascript.
Product: WebKit
Version: 526+ (Nightly build)
Platform: PC
URL: http://devel0.gcrc.carleton.ca/webkit_JSA_Windows_Access
ControlException/index.html
OS/Version: Windows XP
Status: UNCONFIRMED
Severity: Major
Priority: P2
Component: Java
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: gbrauen at connect.carleton.ca
CC: ahayes at polkaroo.net, bugzilla at fiset.ca
The above URL contains an applet that uses Java Sound API to open and play a
small .wav file that resides on the originating server of the HTML page (and
applet). The playing of the applet can be triggered through either of two
buttons: one implemented by the applet itself and another that invokes a
Javascript function that then invokes an applet function.
Running in Safari on windows, clicking the applet button works (the audio file
plays) but clicking the javascript button throws the following exception (they
execute the same code in the applet):
network: Connecting
http://devel0.gcrc.carleton.ca/webkit_JSA_Windows_AccessControlException/spacemusic2.wav
with proxy=DIRECT
java.security.AccessControlException: access denied (java.net.SocketPermission
devel0.gcrc.carleton.ca resolve)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkConnect(Unknown Source)
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getByName(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown
Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown
Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
at java.net.URL.openStream(Unknown Source)
at com.sun.media.sound.WaveFileReader.getAudioInputStream(Unknown
Source)
at javax.sound.sampled.AudioSystem.getAudioInputStream(Unknown Source)
at JavaSound_UrlPlayer_Thread.run(Unknown Source)
I have tested on Safari 3.1.2 and the latest webkit nightly (r35406).
Running in any of the following works (both buttons result in audio playing):
- Safari on Mac OS X (10.4)
- Firefox on Mac OS X (10.4)
- Firefox 2 on Windows XP
- Firefox 3 on Windows
- Internet Explorer on Windows
The applet source is linked off the HTML page but I will also attach all of the
following to this bug report:
- applet source
- ant build file
- html page
- wav file
If you want to test with this on another machine (the above URL may
occasionally be unavailable because it is a development machine), then dump the
attachments to a folder, run the ant build, and make the results available
through a web server.
Glenn
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list