Bug 8636 - REGRESSION: JavaScript access to Java applet causes hang (_webViewURL not implemented)
Summary: REGRESSION: JavaScript access to Java applet causes hang (_webViewURL not imp...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Java (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P1 Normal
Assignee: Anders Carlsson
URL: http://duckware.com/label/index.html
Keywords: InRadar, Regression
: 8635 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-27 16:10 PDT by Alex Taylor
Modified: 2006-06-27 16:54 PDT (History)
6 users (show)

See Also:


Attachments
ZIP Archive containing HTML and Java applet (75.47 KB, application/zip)
2006-04-27 16:13 PDT, Alex Taylor
no flags Details
Console output (1.99 KB, text/plain)
2006-04-27 16:28 PDT, Alex Taylor
no flags Details
Java log file (17.39 KB, text/plain)
2006-04-29 13:48 PDT, Alex Taylor
no flags Details
Crash Report (37.06 KB, text/plain)
2006-04-29 13:51 PDT, Alex Taylor
no flags Details
Patch (2.62 KB, patch)
2006-06-27 16:29 PDT, Anders Carlsson
ggaren: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Taylor 2006-04-27 16:10:57 PDT
In a page where an applet's method is envoked from Javascript, the method fails to execute and causes a subsequent page unload (navigating away from the page, closing the window) to crash WebKit.

Reduced test case below including the applet in question, URL for reference only.

Works fine in 417.9.2, haven't looked for the build where the regression occured.
Comment 1 Alex Taylor 2006-04-27 16:13:50 PDT
Created attachment 8009 [details]
ZIP Archive containing HTML and Java applet

Archive contains the applet (in case it is important) and an HTML page to repro the bug.
Comment 2 Alex Taylor 2006-04-27 16:15:29 PDT
Steps to reproduce: (After unarchiving reduced testcase)

1) Load page
2) Click hyperlink to execute javscript method on Applet
3) Navigate away from page or close window/tab

Actual Result: Crash
Expected Result: Java method envoked
Comment 3 Alex Taylor 2006-04-27 16:27:37 PDT
*** Bug 8635 has been marked as a duplicate of this bug. ***
Comment 4 Alex Taylor 2006-04-27 16:28:49 PDT
Created attachment 8010 [details]
Console output

Console output from page load until after crash.
Comment 5 Alex Taylor 2006-04-27 16:36:17 PDT
Setting P1 for reproducable Crash/Hang. Priority=norm for later triage.
Added Keyword 'Regression'.
Comment 6 Geoffrey Garen 2006-04-27 16:43:23 PDT
-[JavaWebKitView _webViewURL]: selector not recognized

Looks like we're calling a method that's not implemented by the Java Plug-In. Might be an SPI weening global replace gone awry. Tim?
Comment 7 Alex Taylor 2006-04-29 13:48:05 PDT
Created attachment 8039 [details]
Java log file

Java log file for crash
Comment 8 Alex Taylor 2006-04-29 13:51:08 PDT
Created attachment 8040 [details]
Crash Report

Safari/Webkit crash report
Comment 9 Alexey Proskuryakov 2006-05-03 05:02:24 PDT
Cannot confirm yet, since the test case just crashes (in freeWidthMap(), this is a known issue).
Comment 10 Alexey Proskuryakov 2006-05-06 00:23:05 PDT
With r14184, I'm getting the same stack trace as in bug 8717 (ATSUConvertCharToGlyphs at the top).
Comment 11 Darin Adler 2006-06-04 16:07:13 PDT
JavaScriptCore calls the method _webViewURL. This method was implemented in WebKit until revision 14302, on 2006-04-24, for bug 8562. The call to the method is still present in JavaScriptCore but we have removed the implementation of it.

I believe that may be the source of this bug and of bug 8717 as well.
Comment 12 Alice Liu 2006-06-06 06:59:56 PDT
<rdar://problem/4575074>
Comment 13 Anders Carlsson 2006-06-27 16:29:05 PDT
Created attachment 9070 [details]
Patch
Comment 14 Geoffrey Garen 2006-06-27 16:32:02 PDT
Comment on attachment 9070 [details]
Patch

r=me, assuming this passes the tests in <rdar://3863248>
Comment 15 Anders Carlsson 2006-06-27 16:54:33 PDT
Fixed in r15070