First time here? Check out the site's "greatest hits" or read a post from the archives. Feel free to leave a comment or ask a question, and consider subscribing to the latest posts via RSS or e-mail. Thanks for visiting!
Do you Tweet? Follow me on Twitter @shanselman or learn how to use Twitter!
« Safari for Windows - First Impressions | Main | Video: Windows Browser Speed Shootout - ... »

After I installed Safari for Windows, the second thing I did was see if it would run Silverlight. I loaded up the Airline sample that I had running locally on my machine and got this.

Silverlight Airlines Demo

From this I glean that the JavaScript detection code isn't digging Safari on Windows. So...checking my HTTP UserAgent gives me:

Mozilla/5.0 (Windows; U; Windows NT 5.1; en) AppleWebKit/522.11.3 (KHTML, like Gecko) Version/3.0 Safari/522.11.3

...but on Mac it's usually:

Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/XX (KHTML, like Gecko) Safari/YY

...and since it's not Silverlight but rather the JavaScript that makes the decision on whether to try to load Silverlight (and considering that Flash and what-not worked in Safari without be needing to reinstall any plugins).

I opened up this app's Silverlight.js file and added an alert() around line 85:

var versionStr = detectAgControlVersion();
alert(versionStr);

...and it reported 0.8.5. That means that Safari can see the plugin on the system, but the version should be 0.95.

I figure that the Silverlight Team is already all over this, so rather than solving the problem for them, I added:

agVersion = "0.95.0";

...around line 65 to force the issue. This got Silverlight loaded into memory, as seen in the Process Explorer screenshot below...

Process Explorer - Sysinternals www.sysinternals.com [PDXSHanselm]

...but nothing showed up. Blank screen. No amount of windows jiggling or resizing (to force a paint) would get it going on my system.

UPDATE: Tim Heuer tried the same thing and says the Silverlight Team is on it and that Safari smells like Opera to Silverlight. He also says he was able to get a control to show while I was not.

If this browser is going to get some share (and it likely will with 1 million iTunes downloads a month - they'll likely bundle it virally) then Silverlight support is a must.

Technorati Tags: , , ,


Monday, June 11, 2007 4:09:20 PM (Pacific Standard Time, UTC-08:00)
I'm sure it won't be long before silverlight support is seamless in Safari for windows. They have some time to iron it out since Safari on Windows is still in Beta for a while.

I tried Safari today and wasn't impressed. Besides the annoying UI conventions (close tab button on the LEFT? This is Windows guys, thats just annoying), it didn't seem to add anything compelling. It did seem to be a bit faster but the text rendering was bad compared to IE and with 3 solid browsers on Windows already (IE, Firefox, Opera, all of which look and behave like Windows apps) I think it will be a tough sell for Safari. Of course, if there is an auto-checked option in the next iTunes update that goes something like "Install Safari and make it my default browser" they will likely get some major market share.
Nate
Monday, June 11, 2007 4:37:32 PM (Pacific Standard Time, UTC-08:00)
Hi Scott,

It seems to have worked for this guy.

http://turtle.net.nz/blog/post/SilverlightWindowsSafari

Cheers
Hemil
Monday, June 11, 2007 6:55:44 PM (Pacific Standard Time, UTC-08:00)
Hey Scott, I went on a similar quest. I didn't have a SL application local, so I didn't change the JS at all, I just went back and tried reinstalling both 1.0 and 1.1 beta. After restarting Safari, and trying some of the SilverLight showcases, I found that I could get it to run (the xbox campaign played sound for instance), but I just got a black box where visual content should be. I don't believe this is a simple javascript fix.
Tuesday, June 12, 2007 2:39:33 AM (Pacific Standard Time, UTC-08:00)
Whilst I'd love to see Silverlight in Safari/Windows too Silverlight just isn't important enough yet to be the make or break you imply.

[)amien
Tuesday, June 12, 2007 8:36:52 AM (Pacific Standard Time, UTC-08:00)
FYI, it is not permitted to alter the silverlight.js file itself...
Tuesday, June 12, 2007 8:51:09 AM (Pacific Standard Time, UTC-08:00)
clarifying: the silverlight.js file is specific to the detection/version checking of the browser/platform and then provides links to the installation points. altering these detection scripts isn't supported as the scripts do specific detection and point to specific, supported installation points. in creating/instantiating the control (i.e., what happens in createSilveright.js sample) you could specify a property that ignores the browser versions (ignoreBrowserVer) and doesn't do a supported browser check...
Tuesday, June 12, 2007 9:14:53 AM (Pacific Standard Time, UTC-08:00)
(rolling my eyes at timheuer)
Tuesday, June 12, 2007 12:46:57 PM (Pacific Standard Time, UTC-08:00)
It's sad how geeks think a like. I was running into the same issues and wonder...What Would Scott Do? (WWSD) ;-)

The fact that we're using Silverlight 1.0 Beta on Safari for Windows Beta 3 is sweet. I like to follow this mantra:
- Beta on Beta => Good
- Alpha on Beta => Iffy, but Good.
Tuesday, June 12, 2007 1:57:21 PM (Pacific Standard Time, UTC-08:00)
scott: rolling eyes...because i didn't clarify in the initial post? apologies :-)
Tuesday, June 12, 2007 3:25:42 PM (Pacific Standard Time, UTC-08:00)
hehehe, yeah that's it Tim.

I thought, "not ALLOWED to modify a javascript file?!" I didn't see the second one until after I posted.

The second explanation makes more sense.
Tuesday, June 12, 2007 4:05:15 PM (Pacific Standard Time, UTC-08:00)
okay cool, yeah -- giving a developer a text file and saying "don't do" is a lot like leaving a room with your 3 year old and a bar of chocolate in it...glad i could clarify though (and slapping my own hand for not doing it in the original comment)
Thursday, June 14, 2007 1:51:20 PM (Pacific Standard Time, UTC-08:00)
Tim: even though i might be mistaken, I'd say that Scott's alteration is necessary. If i recall correctly, setting the ignoreBrowserVer to true will suppress browser detection but it'll still check for the current version of Silverlight and it'll fail for the reasons mentioned by Scott (ie, you'll have no browser detection but the code for checking if the requested version is installed will run and it'll fail).
Thursday, June 14, 2007 4:05:27 PM (Pacific Standard Time, UTC-08:00)
luis: well, let's just remember we are dealing with a beta product on a beta product :-). we have to give both time to mature and get it right. silverlight will support major, released browsers. safari v3 is not released. perod. while it *may* work it is not even on the matrix for beta for silverlight. that aside, you can change the version parameter to 8 on the creation script and it will work as well...neither workaround of course is supported/recommended -- 'work' is a relative term of course...it should be 'render' -- whether all silverlight api's will 'work' is another question.

i was able to get it to 'render' without modifying silverlight.js -- again, let's give both platforms time to mature...i think the teams are aware of what the right things to do are.
Friday, June 15, 2007 1:38:12 AM (Pacific Standard Time, UTC-08:00)
Tim: agreed. And i believe that the point in having an early beta is getting feedback, which was what i was trying to do :) I wasn't complaining about Silverlight not working on Safari. I only said that ignoring browser detection wasn't enough for making it load on safari for windows. And your last work-around (changing the version) is better than Scott's so it's the one that should be used with the current bits

However, and this is only my opinion, maybe adding an extra parameter to the createObjectEx is a good idea. At least, that's what I'm proposing here:

http://msmvps.com/blogs/luisabreu/archive/2007/06/15/silverlight-extra-parameter-on-the-object-that-is-passed-to-the-createobjectex-method.aspx
Comments are closed.

Contact

Sponsors

Hosting By

Hot Topics

Tags

Calendar

<November 2009>
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

Archives

November, 2009 (5)
October, 2009 (19)
September, 2009 (11)
August, 2009 (12)
July, 2009 (21)
June, 2009 (26)
May, 2009 (16)
April, 2009 (13)
March, 2009 (17)
February, 2009 (17)
January, 2009 (18)
December, 2008 (32)
November, 2008 (17)
October, 2008 (22)
September, 2008 (16)
August, 2008 (14)
July, 2008 (25)
June, 2008 (19)
May, 2008 (17)
April, 2008 (17)
March, 2008 (26)
February, 2008 (21)
January, 2008 (28)
December, 2007 (19)
November, 2007 (17)
October, 2007 (31)
September, 2007 (39)
August, 2007 (37)
July, 2007 (43)
June, 2007 (37)
May, 2007 (32)
April, 2007 (38)
March, 2007 (29)
February, 2007 (46)
January, 2007 (31)
December, 2006 (27)
November, 2006 (31)
October, 2006 (32)
September, 2006 (39)
August, 2006 (34)
July, 2006 (40)
June, 2006 (18)
May, 2006 (31)
April, 2006 (34)
March, 2006 (30)
February, 2006 (38)
January, 2006 (44)
December, 2005 (19)
November, 2005 (34)
October, 2005 (24)
September, 2005 (37)
August, 2005 (20)
July, 2005 (24)
June, 2005 (33)
May, 2005 (16)
April, 2005 (22)
March, 2005 (34)
February, 2005 (15)
January, 2005 (37)
December, 2004 (28)
November, 2004 (30)
October, 2004 (34)
September, 2004 (22)
August, 2004 (34)
July, 2004 (18)
June, 2004 (64)
May, 2004 (49)
April, 2004 (21)
March, 2004 (29)
February, 2004 (29)
January, 2004 (36)
December, 2003 (25)
November, 2003 (24)
October, 2003 (59)
September, 2003 (42)
August, 2003 (24)
July, 2003 (44)
June, 2003 (29)
May, 2003 (21)
April, 2003 (30)
March, 2003 (27)
February, 2003 (47)
January, 2003 (50)
December, 2002 (31)
November, 2002 (38)
October, 2002 (44)
September, 2002 (15)
May, 2002 (2)
April, 2002 (4)

Google Ads