Bug 10057 - REGRESSION: Rhapsody Player doesn't play in WebKit
Summary: REGRESSION: Rhapsody Player doesn't play in WebKit
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P1 Normal
Assignee: Nobody
URL: http://www.rhapsody.com/player?type=t...
Keywords: InRadar, NeedsReduction, Regression
Depends on: 10186
Blocks:
  Show dependency treegraph
 
Reported: 2006-07-21 19:58 PDT by Troy Brandt
Modified: 2007-02-07 04:44 PST (History)
2 users (show)

See Also:


Attachments
web archive of offending page (204.84 KB, application/octet-stream)
2006-08-01 19:06 PDT, David Carson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Troy Brandt 2006-07-21 19:58:29 PDT
The Real Rhapsody player doesn't seem to want to play in the WebKit nightlies. 

In Safari 2.0.4 the player loads and begins playing once fully loaded and the song has cached up some. With WebKit r15561 nothing ever happens beyond the player images loading, you see the player but the selected music never loads.
Comment 1 Alexey Proskuryakov 2006-07-22 00:31:27 PDT
Regression->P1, but I cannot confirm, because the site blocks non-U.S. users.
Comment 2 David Carson 2006-07-24 16:36:46 PDT
After installing the player, it never seems to load the music player. The Javascript console shows a whole host of issues, 14 errors in all. If there was a way to copy and paste the javascript console errors to the report, I would do so.
Comment 3 David Carson 2006-07-24 16:38:49 PDT
Found the console error messages. Here they are:
[3952] http://www.rhapsody.com/player?type=track&id=10648867&title=G.+Love&remote=false&page=null&pageregion=null&guid=null&from=undefined line 1376: ReferenceError: Can't find variable: onAuthenticateDone
[3952] http://www.rhapsody.com/player?type=track&id=10648867&title=G.+Love&remote=false&page=null&pageregion=null&guid=null&from=undefined line 1379: ReferenceError: Can't find variable: onTrackOpened
[3952] http://www.rhapsody.com/player?type=track&id=10648867&title=G.+Love&remote=false&page=null&pageregion=null&guid=null&from=undefined line 1382: ReferenceError: Can't find variable: onTrackClosed
[3952] http://www.rhapsody.com/player?type=track&id=10648867&title=G.+Love&remote=false&page=null&pageregion=null&guid=null&from=undefined line 1385: ReferenceError: Can't find variable: onBufferingProgress
[3952] http://www.rhapsody.com/player?type=track&id=10648867&title=G.+Love&remote=false&page=null&pageregion=null&guid=null&from=undefined line 1388: ReferenceError: Can't find variable: onDownloadProgress
[3952] http://www.rhapsody.com/player?type=track&id=10648867&title=G.+Love&remote=false&page=null&pageregion=null&guid=null&from=undefined line 1391: ReferenceError: Can't find variable: onPlayStateChanged
[3952] http://www.rhapsody.com/player?type=track&id=10648867&title=G.+Love&remote=false&page=null&pageregion=null&guid=null&from=undefined line 1394: ReferenceError: Can't find variable: onPositionChanged
[3952] http://www.rhapsody.com/player?type=track&id=10648867&title=G.+Love&remote=false&page=null&pageregion=null&guid=null&from=undefined line 1397: ReferenceError: Can't find variable: onDurationChanged
[3952] http://www.rhapsody.com/player?type=track&id=10648867&title=G.+Love&remote=false&page=null&pageregion=null&guid=null&from=undefined line 1400: ReferenceError: Can't find variable: onXmlMessageDone
[3952] http://www.rhapsody.com/player?type=track&id=10648867&title=G.+Love&remote=false&page=null&pageregion=null&guid=null&from=undefined line 1403: ReferenceError: Can't find variable: onServerError
[3952] http://www.rhapsody.com/player?type=track&id=10648867&title=G.+Love&remote=false&page=null&pageregion=null&guid=null&from=undefined line 1406: ReferenceError: Can't find variable: onError
[3952] http://www.rhapsody.com/player?type=track&id=10648867&title=G.+Love&remote=false&page=null&pageregion=null&guid=null&from=undefined line 1409: ReferenceError: Can't find variable: onIdle
[3952] http://www.rhapsody.com/player?type=track&id=10648867&title=G.+Love&remote=false&page=null&pageregion=null&guid=null&from=undefined line 1412: ReferenceError: Can't find variable: onMetadataReceived
[3952]  line 1: ReferenceError: Can't find variable: onPositionChanged
[3952]  line 1: ReferenceError: Can't find variable: onIdle
[3952]  line 1: ReferenceError: Can't find variable: onIdle
(event handler):Undefined value
[3952]  line 1: ReferenceError: Can't find variable: onIdle
[3952]  line 1: ReferenceError: Can't find variable: onIdle
[3952]  line 1: ReferenceError: Can't find variable: onIdle
[3952]  line 1: ReferenceError: Can't find variable: onIdle
[3952]  line 1: ReferenceError: Can't find variable: onIdle
[3952]  line 1: ReferenceError: Can't find variable: onIdle
[3952]  line 1: ReferenceError: Can't find variable: onIdle

Comment 4 David Carson 2006-07-24 16:44:43 PDT
Works fine in Safari 2.0.4 (419.3)
Problem seems to be in ToT. Errors listed above are from r 15608
Comment 5 David Carson 2006-07-26 15:32:07 PDT
with r 15639, the player now appears, and none of the 'line 1' errors listed at the end of comment #3 are shown.
Comment 6 David Carson 2006-08-01 11:31:22 PDT
Difficulty in debugging JS. If Drosera is attached, WebKit crashes. Below is the crash log. If you run WebKit in xCode, then Drosera can't find it to attach to it. If you run WebKit using the script gdb-webkit, you get a different stack trace.
-----
0   com.apple.WebCore        	0x01bb0d6f WTF::RefPtr<WebCore::StringImpl>::get() const + 9 (RefPtr.h:45)
1   com.apple.WebCore        	0x01bb0d85 WebCore::String::impl() const + 17 (PlatformString.h:130)
2   com.apple.WebCore        	0x01beecd9 WebCore::operator==(WebCore::String const&, WebCore::AtomicString const&) + 31 (ContainerNode.h:102)
3   com.apple.WebCore        	0x01aa664f KJS::Plugin::getOwnPropertySlot(KJS::ExecState*, KJS::Identifier const&, KJS::PropertySlot&) + 291 (kjs_navigator.cpp:462)
4   com.apple.JavaScriptCore 	0x010947f7 KJS::JSObject::getPropertySlot(KJS::ExecState*, KJS::Identifier const&, KJS::PropertySlot&) + 51 (property_slot.h:617)
5   com.apple.JavaScriptCore 	0x010346ba KJS::JSObject::get(KJS::ExecState*, KJS::Identifier const&) const + 38 (object.cpp:155)
6   com.apple.WebCore        	0x01b587bf +[WebScriptObject _convertValueToObjcValue:originExecutionContext:executionContext:] + 165 (WebScriptObject.mm:405)
7   com.apple.WebCore        	0x01b58436 -[WebScriptObject valueForKey:] + 672 (WebScriptObject.mm:289)
8   libobjc.A.dylib          	0x90a51c56 objc_msgSendv + 54
9   com.apple.Foundation     	0x92730407 -[NSInvocation invoke] + 1341
10  com.apple.Foundation     	0x9277d45f -[NSConnection dispatchInvocation:] + 487
11  com.apple.Foundation     	0x9277b861 -[NSConnection handleRequest:sequence:] + 1273
12  com.apple.Foundation     	0x9277b0be -[NSConnection handlePortCoder:] + 922
13  com.apple.Foundation     	0x9277acff -[NSConcretePortCoder dispatch] + 188
14  com.apple.Foundation     	0x9277a75c __NSFireMachPort + 307
15  com.apple.CoreFoundation 	0x90833773 __CFMachPortPerform + 136
16  com.apple.CoreFoundation 	0x90823a14 CFRunLoopRunSpecific + 2904
17  com.apple.CoreFoundation 	0x90822eb5 CFRunLoopRunInMode + 61
18  com.apple.Foundation     	0x92778559 -[NSConnection sendInvocation:] + 2126
19  com.apple.Foundation     	0x9272f324 -[NSObject(NSForwardInvocation) forward::] + 469
20  libobjc.A.dylib          	0x90a51ba1 _objc_msgForward + 49
21  com.apple.WebKit         	0x003a876a -[WebScriptDebugServer webView:exceptionWasRaised:sourceId:line:forWebFrame:] + 196 (WebScriptDebugServer.m:343)
22  com.apple.WebKit         	0x0039a72b -[WebScriptDebugger exceptionRaised:sourceId:line:] + 296 (WebScriptDebugDelegate.m:127)
Comment 7 David Carson 2006-08-01 19:06:27 PDT
Created attachment 9807 [details]
web archive of offending page

Plugin is also needed.
Comment 8 Mark Rowe (bdash) 2006-08-01 19:13:39 PDT
The web archive will let non-US users install the plugin too.  Thanks David!
Comment 9 Mark Rowe (bdash) 2006-08-02 00:24:22 PDT
Drosera and Safari deadlock while loading the attached web archive.  Filed as bug 10200.
Comment 10 Stephanie Lewis 2006-11-06 18:55:10 PST
radar 4822975
Comment 11 Alexey Proskuryakov 2007-01-20 01:22:22 PST
The Rhapsody home page crashes TOT on load now, filed bug 12342.
Comment 12 Maciej Stachowiak 2007-02-07 03:51:31 PST
REported as fixed in Radar.