[Mono-dev] IE7 RC1 and browsercaps.ini
Hubert FONGARNAND
informatique.internet at fiducial.fr
Fri Sep 1 09:25:30 EDT 2006
Hello
I've written a little aspx page that show a pb with IE7
public class Default : Page
{
protected System.Web.UI.HtmlControls.HtmlForm form1;
protected System.Web.UI.WebControls.Label textBox1;
protected override void OnInit(System.EventArgs a)
{
this.Load+=this.OnLoad;
Console.WriteLine("bonjour");
}
protected void OnLoad(object o,System.EventArgs a)
{
textBox1.Text="Version :"+Request.Browser.Version+"
"+Request.Browser.Browser;
}
}
When i load the page with IE7 : Mono show : Version: Unknown
With MS.NET 1.1 it show IE7
I've notified that browsercaps.ini has entries for IE7
([Mozilla/4.0 (compatible; MSIE 7.0b; *Windows XP*.NET CLR*)*])
but with ethereal (wireshark) i've seen that the new string is
([Mozilla/4.0 (compatible; MSIE 7.0; *Windows XP*.NET CLR*)*])
Here's the patch for browscap.ini
Thanks to commit!
Index: mono/data/browscap.ini
===================================================================
--- mono/data/browscap.ini (révision 64676)
+++ mono/data/browscap.ini (copie de travail)
@@ -13397,6 +13397,40 @@
platform=WinXP
netclr=True
+[Mozilla/4.0 (compatible; MSIE 7.0; *Windows NT 5.1*)*]
+parent=IE 7.0
+platform=WinXP
+
+[Mozilla/4.0 (compatible; MSIE 7.0; *Windows NT 5.1*.NET CLR*)*]
+parent=IE 7.0
+platform=WinXP
+
+[Mozilla/4.0 (compatible; MSIE 7.0; *Windows NT 5.2*)*]
+parent=IE 7.0
+platform=Win2003
+netclr=True
+
+[Mozilla/4.0 (compatible; MSIE 7.0; *Windows NT 5.2*.NET CLR*)*]
+parent=IE 7.0
+platform=Win2003
+
+[Mozilla/4.0 (compatible; MSIE 7.0; *Windows NT 6.0*)*]
+parent=IE 7.0
+platform=WinVI
+
+[Mozilla/4.0 (compatible; MSIE 7.0; *Windows NT 6.0*.NET CLR*)*]
+parent=IE 7.0
+platform=WinVI
+
+[Mozilla/4.0 (compatible; MSIE 7.0; *Windows XP*)*]
+parent=IE 7.0
+platform=WinXP
+
+[Mozilla/4.0 (compatible; MSIE 7.0; *Windows XP*.NET CLR*)*]
+parent=IE 7.0
+platform=WinXP
+netclr=True
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Default Browser
[*]
_______________________________________________
Ce message et les éventuels documents joints peuvent contenir des informations confidentielles.
Au cas où il ne vous serait pas destiné, nous vous remercions de bien vouloir le supprimer et en aviser immédiatement l'expéditeur. Toute utilisation de ce message non conforme à sa destination, toute diffusion ou publication, totale ou partielle et quel qu'en soit le moyen est formellement interdite.
Les communications sur internet n'étant pas sécurisées, l'intégrité de ce message n'est pas assurée et la société émettrice ne peut être tenue pour responsable de son contenu.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060901/a232bdc0/attachment.html
More information about the Mono-devel-list
mailing list