Running Silverlight 2 on Google Chrome using the Chrome Dev Channel - Jon Galloway

Running Silverlight 2 on Google Chrome using the Chrome Dev Channel

When Google Chrome first came out and I read that it used Webkit, the same rendering engine that powers Safari, I tried browsing a few Silverlight 2 sites. It kind of worked, as long as the sites didn’t exclude browsers that weren’t on Microsoft’s official Silverlight support list. The controls loaded, but didn’t animate or update smoothly. While Microsoft still isn’t officially supporting Silverlight on Chrome, Chrome’s latest Dev Build (0.2.151.2) includes some specific fixes to support Silverlight 2 Beta 2. The information about the updates is in the release notes, specifically revision 1735:

The basic issue here was that the plugin would not paint correctly. The URLs mentioned in this bug load windowed silverlight plugin instances, which invoke the NPN_InvalidateRect API to paint. We send over the rects to the renderer, however these don't generate paints as the plugin is windowed. A peek at Safari's webkit implementation revealed that they merely invoke the InvalidateRect windows API in this context.

I followed the link in Jonas Follesø’s post over to the Chromium Developer instructions for running the Chrome developer build, which are really simple:

  1. Download and run the Google Chrome Channel Chooser (http://chromium.googlecode.com/files/chromechannel-1.0.exe).
  2. Click the circle next to Dev.
  3. Click Update to save your choice.
  4. Click Close.
  5. In Google Chrome, click the wrench menu and choose About Google Chrome. Note: On Windows Vista, updates from the About box require Service Pack 1. With 0.2.149.29 (the current release), on demand updates do not work in Vista SP1 if User Account Control is disabled.
  6. Click Update Now to install the current Dev channel release.
  7. Restart Google Chrome.

And yes, it really is that easy – I had it running in under 5 minutes. First, I ran the Chrome Channel Switcher. It’s a simple EXE, not an install. Select Dev, press the Update button, then press the Close button:

Google Chrome - Build Channel Switcher

Then open the about box (in the wrench menu) and click the Update Now button:

Google Chrome / About Menu

Google Chrome - Dev Build Update

The update runs:

Google Chrome - Updating

After the update finishes, close and reopen Chrome. If you want to verify you’ve updated, check the about box – you’ll see the version number is different:

Google Chrome 0.2.152.1

That’s it. The whole process took just a few minutes for me. Now, off to view some of my favorite Silverlight 2 Sites! First, the Hard Rock Memorabilia page. There’s a check to see if the browser is supported, but it still lets me in if it’s not on the list (which is a good policy anyways, since it allows Linux / Moonlight users to view the site):

Google Chrome / Silverlight / Hard Rock Memorabilia

I hit okay, and we’re in. The site is snappy and everything works just fine:

Google Chrome / Silverlight / Hard Rock

How about the Mojave Experiment site, which uses a fancy Deep Zoom / video cloud thing? Yep.

Google Chrome / Silverlight / Mojave Experiment

Jonas has some screenshots of other Silverlight sites, which also worked well for him, and it worked for Samiq as well. From the release notes, this Dev release also fixes issues with Flash, such as YouTube videos freezing when you use the slider. Go get it!

Note: All the computers I tested this on had Silverlight installed before upgrading Google Chrome to the dev build. One had Safari / Windows installed, the other didn’t. Google Chrome doesn’t include Silverlight; you’ll need to install Silverlight separately if you don’t already have it.

Published Wednesday, September 17, 2008 12:29 AM by Jon Galloway

Comments

# re: Running Silverlight 2 on Google Chrome using the Chrome Dev Channel

Hmmm...I already did this but I am still not finding *my* sites are working.  I wonder whether its Silverlight.js's hosting pattern (I tend to use this instead of the ASP.NET control).  Any suggestions?

Wednesday, September 17, 2008 4:59 AM by Shawn Wildermuth

# re: Running Silverlight 2 on Google Chrome using the Chrome Dev Channel

Its windowless=true that's not working...

Wednesday, September 17, 2008 5:35 AM by Shawn Wildermuth

# Shawn Wildermuth - Google Chrome, Silverlight 2 and Windowless Apps

Pingback from  Shawn Wildermuth - Google Chrome, Silverlight 2 and Windowless Apps

# Google Chrome, Silverlight 2 and Windowless Apps - Mirrored Blogs

Pingback from  Google Chrome, Silverlight 2 and Windowless Apps - Mirrored Blogs

# re: Running Silverlight 2 on Google Chrome using the Chrome Dev Channel

Great tutorial Jon, and thanks for the link backs.

@Shawn Hmm strange... But I think you're right, it's probably a JS problem. I noticed how my Webcam Proof of concept application didn't load, and that's the only one where I'm using the JavaScript file instead of the ASP.NET Service Side control to serve up Silverlight.

Wednesday, September 17, 2008 6:55 AM by Jonas Follesø

# re: Running Silverlight 2 on Google Chrome using the Chrome Dev Channel

@Shawn Read your post, and I think you're right. Quite a coincidence, but that Webcam POC app which is the only one where I use the JS to include the control, is also the only one where I'm using windowless=true (I'm showing Flash content on top of the Silverlight plugin).

Wednesday, September 17, 2008 6:58 AM by Jonas Follesø

# Running Silverlight 2 on Google Chrome using the Chrome Dev Channel « Rich Internet Applications

Pingback from  Running Silverlight 2 on Google Chrome using the Chrome Dev Channel « Rich Internet Applications

# re: Running Silverlight 2 on Google Chrome using the Chrome Dev Channel

Nice! Great post Jon.

Wednesday, September 17, 2008 7:56 PM by Greg

# Post: 185

Post: Approved at: Sep-18-2008 Silverlight Game: Diver While this Silverlight game can be entertaining

Thursday, September 18, 2008 8:04 AM by Mirrored Blogs

# re: Running Silverlight 2 on Google Chrome using the Chrome Dev Channel

Thanks for the post!

Thursday, September 18, 2008 10:40 PM by BChase

# re: Running Silverlight 2 on Google Chrome using the Chrome Dev Channel

it's funny, the more i use Chrome (for windows), the more unstable it seems to get... crashes a lot more, can't handle sites with flash, hangs every time i close a tab... all that to say, i'm switching back to Firefox

Saturday, September 20, 2008 6:51 PM by movie fan

# re: Running Silverlight 2 on Google Chrome using the Chrome Dev Channel

Jon, I'm curious.  Can you use your mouse wheel to zoom in and out on the Hardrock Memorabilia site when using Chrome as your browser?  After installing and verifying that I've got the dev version running, if I go the Hardrock site and use my mousewheel to zoom, CPU usage goes to 100% and Chrome pops the unresponsive sad face.

Tuesday, September 23, 2008 9:04 AM by George Kapsambelis

# Google Chrome Nightly Downloader - Phil Leggetter - Software Consultant

Pingback from  Google Chrome Nightly Downloader - Phil Leggetter - Software Consultant

# Running Silverlight 2 on Google Chrome using the Chrome Dev Channel

Your Story is Submitted - Trackback from DotNetShoutout

Wednesday, November 19, 2008 5:06 PM by DotNetShoutout

# re: Running Silverlight 2 on Google Chrome using the Chrome Dev Channel

Another reason not to use Silverlight.

Wednesday, December 03, 2008 4:08 PM by Scott White

# re: Running Silverlight 2 on Google Chrome using the Chrome Dev Channel

@Scott White -- or, another reason not to use Chrome...

Friday, December 19, 2008 3:25 PM by erikny

# re: Running Silverlight 2 on Google Chrome using the Chrome Dev Channel

Great post, Jon... but it still doesn't work for me running Vista 64... Chrome just crashes... seems to be normal for just about everything I want to run on this OS.

I've got a quad processor 64bit system, and it looks like I'll be going back to Vista 32... what a waste.

Sunday, March 01, 2009 7:49 PM by Bill Richardson

# re: Running Silverlight 2 on Google Chrome using the Chrome Dev Channel

It works!! Thank alot!!

Wednesday, April 01, 2009 2:31 AM by JT - Google Chrome Lover

# Book Commercials & Misanthropic Observations » Blog Archive » Google Chrome & Netflix

Pingback from  Book Commercials & Misanthropic Observations  » Blog Archive   » Google Chrome & Netflix

# re: Running Silverlight 2 on Google Chrome using the Chrome Dev Channel

Doesn't work anymore. Use version 2 of the Chrome Channel Chooser: chromium.googlecode.com/.../chromechannel-2.0.exe

Monday, October 05, 2009 11:42 AM by ayld

# re: Running Silverlight 2 on Google Chrome using the Chrome Dev Channel

Another great post.

Thanks for the tips and help.

Everyone, bookmark this site.

Friday, February 05, 2010 7:52 PM by Install Software

# re: Running Silverlight 2 on Google Chrome using the Chrome Dev Channel

<a href="www.absolute-media.com.ua/index.php на общественном транспорте.

Wednesday, December 01, 2010 7:21 AM by TarasShubin32

# re: Running Silverlight 2 on Google Chrome using the Chrome Dev Channel

"I think you've got considered about adding some video clips on your weblog posts to hold your readers a lot more entertained? I mean I just study through the entire web site here and it had been fine but considering that I'm much more of a visual learner, I located that to turn into much more helpful. Properly you ought to let me know how it turns out! I really like what you individuals are doing and up as well. Such great function and opinions! Hold up the fantastic work guys. I've additional this web site to my blogroll. This really is a cool webpage many thanks for sharing this useful data...! I will go to your web site regularly for some newest post."

--------------------------------------------

my website is <a href="zeroskateboards.org/.../skateboard-art.html">skateboard artwork</a> .Also welcome you!

Friday, December 03, 2010 2:10 PM by skateboards

# re: Running Silverlight 2 on Google Chrome using the Chrome Dev Channel

Great articles or blog posts & Wonderful a site…

--------------------------------------------

my website is  

http://womenssnowboard.org

Also welcome you!

Sunday, December 05, 2010 3:39 PM by Tech Deck Skateboards

# re: Running Silverlight 2 on Google Chrome using the Chrome Dev Channel

Nothing is impossible!

-----------------------------------

Tuesday, December 21, 2010 10:07 PM by ipad app blog

# re: Running Silverlight 2 on Google Chrome using the Chrome Dev Channel

-----------------------------------------------------------

"sometimes men and women right here the words world wide web promoting and so they believe, google or fb or myspace, but there's a ton of other strategies to basically market  a site or business enterprise and get your way up there like myspace did."

Monday, January 03, 2011 3:28 AM by best ipad accessories

Leave a Comment

(required) 
(required) 
(optional)
(required)