Skip to main content
Home Forums Silverlight Programming Report a Silverlight Bug Problem with Fullscreen and Firefox (SL2)
28 replies. Latest Post by Terry M on August 7, 2008.
(0)
boena
Member
4 points
3 Posts
03-29-2008 2:12 PM |
Hi!
I have been experimenting with creating an own media player with Silverlight 2. However, I have stumbled upon a bug/problem when trying to expand the window to full screen mode.
I am running Firefox version 2.0.0.13 and Silverlight version 2.0.30226.2 on my computer.
There is no problem at all when I am using IE7.
I’m including the most crucial parts of the code from Page.xaml.cs:
--- In Page(): // Applying handler for fullscreen App.Current.Host.Content.FullScreenChanged += new EventHandler(Content_FullScreenChanged);
--- And here is the handler... void Content_FullScreenChanged(object sender, EventArgs e) {
if (App.Current.Host.Content.IsFullScreen == true)
{
double targetWidth = (double)App.Current.Host.Content.ActualWidth;
double targetHeight = (double)App.Current.Host.Content.ActualHeight;
Width = targetWidth;
Height = targetHeight;
Holder.Width = targetWidth;
Holder.Height = targetHeight;
clip.Width = targetWidth;
clip.Height = targetHeight;
}
else
Holder.Width = (double)320.0;
Holder.Height = (double)280.0;
clip.Width = (double)320.0;
clip.Height = (double)240.0;
Can anyone spot any error I've done or can anyone confirm the possible bug with SL2 and FF?
Cheers,
Björn "boena" Lennartsson
DZaK
192 points
70 Posts
03-30-2008 4:54 PM |
I have the same, FF & FullScreen dosen't work but it is because FF block it.
Hovewer, It worked in SL1.1
03-31-2008 3:39 AM |
DZaK: I have the same, FF & FullScreen dosen't work but it is because FF block it.Hovewer, It worked in SL1.1
That is strange. Is it possible to unblock it in FF somehow?
I just tried on my other computer which has FF v. 2.0.0.12 and it worked there, is it only the newest version of FF which has this problem?
I have uploaded my application to Silverlight Streaming, please check if you have the same error in FF as me on the following link : http://www.palooza.se/silverlight/ex02/
/// .b
Yi-Lun L...
All-Star
25052 points
2,747 Posts
04-01-2008 6:09 AM |
Hello, your sample works fine for me with FireFox 2.0.0.13. Maybe you have some configurations on your FireFox?
ccchai
194 points
76 Posts
04-05-2008 3:27 AM |
I am using FF 2.0.0.13 too.....the full screen modes does not work.......the same code works in IE7.
it seems when I click on Full screen button..there is a new FF window appears on my task bar and then disappear immediately....
I tried to change my FF settings...even turn off all the add-ons..but still doesn't work
CoderX
154 points
89 Posts
04-09-2008 5:27 PM |
My co-worker and I have both noticed that Full-screen quit working with SL2 B1. It worked fine before with SL 1.x. I see the same thing as above, full-screen in FFox 2 is broken, but typically works in IE7. So something was broken between SL 1.1 and SL2 B1 and needs to be fixed.
Sergey V...
Participant
788 points
98 Posts
04-10-2008 3:45 PM |
Are you referring to this sample: http://www.palooza.se/silverlight/ex02/ ?
It works for me on FF 2.0.0.13
If you are trying to create your own sample, then please note that you can only toggle full-screen mode from user-initiated actions (e.g. from MouseLeftButtonDown / MouseLeftButtonUp handlers)
04-10-2008 11:02 PM |
The sample at http://www.palooza.se/silverlight/ex02/ does not work in my Firefox 2.0.0.13.
I setup a test project again, trying to invoke the full screen through button click event and user control MouseLeftButtonUp event. They just don't work.
My code:
Dim contentObject As System.Windows.Interop.Content = Application.Current.Host.Content contentObject.IsFullScreen = Not contentObject.IsFullScreen
04-11-2008 1:51 AM |
I have tried the sample which I created on 7 different computers with FF 2.0.0.13. Out of these seven it has only worked on one.
There is some strange bug that allows it to open on some computers but doesn't allow it on the most. I have also tried with Silverligt 1.1 and here it worked on all 7 so there must have been some change to SL2 B1 that has made the error occure.
ideal_ai...
54 points
33 Posts
04-14-2008 2:42 PM |
Has anyone ever come up with a solution to this? I'm having the same problem.
tomtaylo...
379 points
114 Posts
04-14-2008 3:51 PM |
ideal_airsoft:Has anyone ever come up with a solution to this? I'm having the same problem.
04-14-2008 7:43 PM |
1) I get the same behavior with add-ins enabled or disabled.
2) It does not work for the fox demo either. Some background UI elements to flash, but nothing happens.
04-15-2008 1:50 PM |
CoderX: 1) I get the same behavior with add-ins enabled or disabled. 2) It does not work for the fox demo either. Some background UI elements to flash, but nothing happens.
OK, thanks for checking. We are investigating this as a bug at this point.
- TomTom TaylorMicrosoft Silverlight
d2consul...
2 points
1 Posts
04-26-2008 4:17 AM |
Hi Tom
Is there any news on your investigations?
Dom
Global-MIX
softlion
28 points
11 Posts
05-03-2008 4:21 PM |
Exactly same problem there.I uninstalled 2.0 beta 1, reinstalled 1.0, and it's working again nicely.
05-12-2008 10:20 PM |
d2consulting: Hi Tom Is there any news on your investigations?
I don't have anything that I can share at this point - we are tracking this as a bug but we don't yet know why it affects some people running Firefox and not others. - TomTom Taylor | Microsoft Silverlight
05-13-2008 6:45 AM |
I'm using Firebug 1.1b12, maybe it is causing problems.
I run into others bug of latest Silverlight 1.0 (without any 2.0 installed) in firefox only:- the downloader is at least 10 times slower in firefox than in IE (I tested on a 250Mb file).- when using image.SetSource in the completed event of a downloader object, and a very short time after / nearly simultaneously using anotherImage.source = "URL" where URL is the url of a jpg file previously completely loaded using another downloader instance, the displayed image (ie: anotherImage) flickers to black before going back to the the jpg file. This occurs only in FF and only if image.SetSource is used in another downloader instance. I will create a short Xaml/js to show this as it is reproductible each time.
- ah a last one, also in FF only: the SL plugin does not initialize itself correctly randomly when refreshing the page. The plugin always starts and renders but the loaded event is not fired. As I attach all the event handlers in the loaded event, the UI stays useless.Bug found : it is because of the way the HTML host page is build by the silverlight wizard. The wizard creates something like:<div id="hostId"><script>createSIlverlightObject("hostId");</script></div>
Instead, what works correctly (ie: every time, not randomly as in the version over this text) with firefox is:<div id="hostId"></div><script>createSIlverlightObject("hostId");</script>
I still get the same bug when I press F5 on a working page though. But I found the cause. The first time the SL object works correctly on the page. Press F5 => the SL js object does not receive the resize event. In my case this is a big problem as my main canvas gets the default size of 1x1 but this size should be 100% x 100% ...
scommisso
84 points
44 Posts
06-20-2008 5:14 PM |
Has there been any movement on this? Seems to still be broken in Beta 2 in FF2 and FF3. For me, the SL app flickers for a split second (the frame never resizes, but you can see the elements resize) and then goes back to normal.
For an example -- load this up in FF2 or FF3:
The Bragosphere
CTRL-click somewhere on the SL app in the middle and choose "Enter Full Screen Mode". The SL app should flickr for a sec and then go back to normal.
06-20-2008 5:24 PM |
scommisso:Has there been any movement on this? Seems to still be broken in Beta 2 in FF2 and FF3.
Yes, we have confirmed that this is an issue that is affecting some Firefox users. We are able to reproduce it on one of our machines in house and are tracking it as a bug for Silverlight 2.
- Tom
Tom Taylor | Microsoft Silverlight
06-20-2008 5:41 PM |
Thanks Tom!
TeflonDon
07-22-2008 2:52 PM |
Thank you Tom.
But, when could we expect this to be fixed? The problem is, that all our applications out there, even made with SL1, are now not working if the end user downloads the SL2 Beta2 combined with Firefox 2.0.0.13+ ....
We have now many customers calling in...
Manuel
07-22-2008 10:43 PM |
I am using SL2b2, after upgrading my Firefox to version 2.0.016, the full screen problem gone mysteriously.
07-22-2008 10:56 PM |
Yeah it's a pretty random problem... I've had it appear and disappear on the same machine without changing browser versions. I'm currently using FF3.
Vinoo Ch...
16 points
07-29-2008 4:57 PM |
To fix this, delete npctrl.1.0.30401.0UI.dll from the Silverlight install directory.
- Vinoo Cherian | Microsoft Silverlight Development
07-29-2008 4:59 PM |
Sorry, I meant delete npctrl.1.0.30401.0.dll from the Silverlight install directory.
07-30-2008 9:48 AM |
You are asking us to tell clients to delete a dll in the install directory as a solution?
iamaelep...
07-31-2008 10:16 PM |
Can someone confirm this is a safe solution? I'm not too keen to go deleting .dll files to fix this problem if I don't have to. Is there an ETA on a new version of Silverlight or a hotfix to solve this?
08-01-2008 4:49 AM |
Sorry for any confusion - Vinoo's suggestion to manually delete the file is a workaround for people that are affected. We expect to fix this in the final release of Silverlight 2. - Tom
Terry M
4 Posts
08-07-2008 5:48 AM |
FYI: This workaround did work for me.
I renamed: C:\Program Files\Microsoft Silverlight\2.0.30523.8\npctrl.1.0.30401.0.DLL to .OLD and restarted firefox. My code now works.
Terry