Bug 14018 - REGRESSION (r22014-22026): Applet fails to start in ToT WebKit
Summary: REGRESSION (r22014-22026): Applet fails to start in ToT WebKit
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Java (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P1 Major
Assignee: Nobody
URL: http://anneli.dk/jnp/test/Java-JavaSc...
Keywords: InRadar, NeedsReduction, Regression
Depends on:
Blocks:
 
Reported: 2007-06-06 12:19 PDT by jørgen nørgaard
Modified: 2007-06-24 14:25 PDT (History)
3 users (show)

See Also:


Attachments
Activity viewer sample of webkit (18.36 KB, text/plain)
2007-06-06 12:32 PDT, jørgen nørgaard
no flags Details
Java crash log (17.58 KB, text/plain)
2007-06-07 11:14 PDT, jørgen nørgaard
no flags Details
Safari crash log (28.81 KB, text/plain)
2007-06-07 11:15 PDT, jørgen nørgaard
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description jørgen nørgaard 2007-06-06 12:19:25 PDT
Today webkit stalled whwn starting a signed applet.

Go to the URL, accept as ' Trusted'. A login form should appear, but does not.

When forced quit (or there about), the following appears in the console:

java.lang.NullPointerException
	at sun.plugin.viewer.WebKitPluginObject.getParameter(WebKitPluginObject.java:770)
	at sun.plugin.viewer.WebKitPluginObject.setWindow(WebKitPluginObject.java:427)
2007-06-06 21:09:55.172 WebKit[4357] WebKit failed to shut down cleanly.  Checking for Safari extensions.


This has worked before, probably a month ago or so is the last time I tried.
Comment 1 jørgen nørgaard 2007-06-06 12:32:50 PDT
Created attachment 14885 [details]
Activity viewer sample of webkit
Comment 2 David Kilzer (:ddkilzer) 2007-06-06 22:19:08 PDT
Hi Jørgen, thanks for filing this bug!  Can you confirm that this works with shipping Safari 2.0.4?

What are the steps to reproduce the bug?  I don't see an applet when opening the URL on this bug.
Comment 3 jørgen nørgaard 2007-06-07 00:54:18 PDT
Ah, sorry about that.


You will have to fill in "Brugernummer", for example 12345678912 (not a real account) and select "Jeg har anvendt Netbank før" before pressing "Næste".

This should bring you to a page that ask you to trust the applet being loaded.

This does work in the latest Safari. And has been working in webkit as well.
Comment 4 David Kilzer (:ddkilzer) 2007-06-07 06:00:06 PDT
The first time I tried the steps in Comment #3 I didn't get a "Trust this applet?" dialog, so I hit the browser Back button, turned off pop-up blocking (not sure if that's required yet or not), then hit the "Næste" button again.  After that I got the "Trust this applet?" dialog, hit "Trust", then got the following output on the console:

[4015] https://web47.prod.bec.dk/signon/servlet/Signon?ViewName=logonWebOldKey line 67: TypeError: Value undefined (result of expression signon.getAppletInfo) is not object.

Still investigating.

Comment 5 David Kilzer (:ddkilzer) 2007-06-07 10:27:22 PDT
* STEPS TO REPRODUCE
1. Launch Safari/WebKit.
2. Go to URL: https://www.skandiabanken.dk/netbank/default.asp
3. Fill in an account number ("Brugernummer") of "12345678912".
4. Click radio button for "Jeg har anvendt Netbank før".
5. Click "Næste" button.
6. Wait for all frames to load, then click Browser Back button.
7. Click "Næste" button again.
8. After Java applet starts, a "Trust this certificate?" dialog will appear.
9. Click "Trust" in the dialog.

* EXPECTED RESULTS

The Java applet should start up with a text field, two buttons ("Gennemse" and "OK") and some other text.

* ACTUAL RESULTS

Nothing happens (Java applet doesn't start) and the JavaScript error message in Comment #4 appears on the console.

* REGRESSION
This is a regression from shipping Safari 2.0.4 (419.3) on Mac OS X 10.4.9 (8P135).  Tested with a local debug build of WebKit r22026 with the above software.

Note that the applet works on a (randomly-chosen) WebKit Nightly r21834, so I believe a binary search of the nightlies for the regression is in order.  (I don't have time to do it now, so anyone else may feel free to do so.)
Comment 6 jørgen nørgaard 2007-06-07 11:14:21 PDT
Created attachment 14899 [details]
Java crash log
Comment 7 jørgen nørgaard 2007-06-07 11:15:52 PDT
Created attachment 14900 [details]
Safari crash log
Comment 8 jørgen nørgaard 2007-06-10 01:40:58 PDT
Changed URL, it seems that a much simpler applet is sufficient to crash webkit right now.

The applet displays some system information and fonts list.


(original URL https://www.skandiabanken.dk/netbank/default.asp)


Comment 9 Dave Hyatt 2007-06-10 01:48:15 PDT
Dup of 14037 maybe? (Which i just fixed.)
Comment 10 David Kilzer (:ddkilzer) 2007-06-10 04:18:32 PDT
(In reply to comment #9)
> Dup of 14037 maybe? (Which i just fixed.)

No, this is not bug Bug 14037.  I updated and recompiled, but this bug still occurs.

Comment 11 David Kilzer (:ddkilzer) 2007-06-10 04:21:31 PDT
This URL is not found when I tried it:

http://anneli.dk/jnp/test/Java-JavaScript/JavaScript/applet/info.htm

Switching back to original.  See Comment #5 for details on reproducing.


Comment 12 David Kilzer (:ddkilzer) 2007-06-10 04:22:37 PDT
(In reply to comment #11)
> This URL is not found when I tried it:
> 
> http://anneli.dk/jnp/test/Java-JavaScript/JavaScript/applet/info.htm
> 
> Switching back to original.  See Comment #5 for details on reproducing.

*sigh* Was missing "l" at the end of "html".  Switched back.

Comment 13 David Kilzer (:ddkilzer) 2007-06-10 04:41:51 PDT
A search of WebKit nightly builds (using the anneli.dk URL) shows the following:

Fails: r22026
Works: r22014

Comment 14 David Kilzer (:ddkilzer) 2007-06-21 17:50:33 PDT
<rdar://problem/5286583>
Comment 15 Alexey Proskuryakov 2007-06-22 06:33:42 PDT
FWIW, the steps from comment 5 lead to expected results for me with r23682 nightly. <http://anneli.dk/jnp/test/Java-JavaScript/JavaScript/applet/info.html> also loads just fine. Could be because I do not have the latest Java:

$ java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)
Comment 16 David Kilzer (:ddkilzer) 2007-06-22 09:57:42 PDT
(In reply to comment #15)
> FWIW, the steps from comment 5 lead to expected results for me with r23682
> nightly.

Yes, this works for me with a local debug build of WebKit r23728 with Safari 3.0 (522.11) on Mac OS X 10.4.10 (8R218).  Closing as RESOLVED/FIXED.

Jørgen, if this isn't fixed for you in a recently WebKit nightly, please re-open this bug.  Thanks!
Comment 17 David Kilzer (:ddkilzer) 2007-06-22 10:00:07 PDT
$ java -version
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode)

Comment 18 jørgen nørgaard 2007-06-24 14:25:31 PDT
Works for me with r23682.