My application is quite ok in Forefox. But it doesn't work in IE 8.
Error------
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; Tablet PC 2.0)
Timestamp: Sun, 13 Jan 2013 04:52:47 UTC
Message: 'isModel' is null or not an object
Line: 21
Char: 452607
Code: 0
URI: ...://localhost:8088/rdptpl/static/js/ext/ext-all.js
I don't know where is my problem. Pls help.......
This may be because of HTML5 features in IE. Here is the webpage to test html5 features in browsers. Could you please gives brief about HTML5 features used in your ExtJS application.
There are some HTML5 features implemented in ExtJS like Closable tabs, WebSQL, Local Storage and etc. ExtJS has alternate code for browsers to implement some of them HTML5 features. Local Storage and WebSQL can't be implemented in Internet Explorer.
Let me know
Related
I am running some headless tests with Selenium & firefox to login to some website. If I switch between separate firefox profiles in the same browser to login to separate accounts on the website is there any way besides IP tracking to track my connections and find out it's all on the same machine (on which the Selenium script is running)?
What I am doing:
profile = webdriver.FirefoxProfile('path/to/profile1')
driver = webdriver.Firefox(profile)
driver.get("website.com")
#connect as user1 on website & do stuff...
driver.quit()
profile = webdriver.FirefoxProfile('path/to/profile2')
driver = webdriver.Firefox(profile)
driver.get("website.com")
#connect as user2 on website & do stuff...
driver.quit()
EDIT: In other words, Given the code above and excluding IP tracking can website.com figure out that the accounts user1 and user2 are actually on the same machine(hence one person with 2 accounts) ?
Multiple Firefox profiles
A profile in Firefox is the collection of settings, customizations, add-ons, and other personalizations that a user has made or installed into their copy of Firefox.
Reasons to have multiple profiles
The casual user may want to have different profiles for different family members. Having different profiles would allow each person to have his or her own set of bookmarks, settings, and add-ons.
Web developers might want a secondary profile for testing websites, apps, or other projects on different Firefox channels. For example, you might want to have some extensions installed for Web development, but not for general-purpose Web browsing.
For QA, testing, and bug triaging contributors, you may want to have multiple development versions of Firefox installed, each with its own profile. Creating new profiles for testing can keep you from losing your preferences, bookmarks, and history. It takes little time to set up a new profile, and once it is complete, all of your Firefox versions will update separately and can be run simultaneously.
Bursting the Myth
So multiple instances of Firefox Browser Clients with multiple Firefox Profiles can be run simultaneously. So your assumtion of ...If I switch between separate firefox profiles in the same browser to login to separate accounts... is incorrect. The Web Browsing Client variant might be same i.e. Firefox but each of them will inherit different set of preferences, bookmarks, and history.
User Agent
Your User Agent tells every site you visit what browser you're using. Sites are able to detect your UA and redirect to a more fitting page for your browser if desired. In other words, if you go to a site with this detection in place from a mobile phone the site might detect you are a mobile user via the UA and redirect you to their mobile site if available. This doesn't work on all sites becuase not all sites have UA detection in place.
UAs also tell the sites you're visiting some browser related software which you may have installed. For example, this UA:
(Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 1.1.4322; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0;)
Tells us that the visitor is using Internet Explorer 8, Windows Vista, has Media Center PC 5.0 installed, Office Live Connector, etc. So if we had a special section for Vista users, we could redirect this person based on the Windows NT 6.0 string to a sub section in our site related strictly to Vista. On the other hand, this User Agent:
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
Tells us the visitor is using FireFox 3.5.3 and Windows Vista. Not much else.
Having the knowledge from above, User Agent Spoofing is used by many programmers that don't want people to know how they're getting to the site(s). Some programmers will find legitimate UAs and program their script to use such UAs. UAs can be blank, or contain custom information like a URL to a site that might promote a particular browser or script.
Update
As per your question update ...can website.com figure out that the accounts user1 and user2 are actually on the same machine... I am not sure if User Agent carries the Browser Profile information. However based on the different User Agents different parameters can be extracted. As an example, for a user-agent string e.g.:
Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36
Different User-Agent detection library thinks as follows:
According to useragent v2.1.9:
ua
rawUa: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36
string:
family: Chrome
major: 70
minor: 0
patch: 3538
device: Other 0.0.0
os
string: Windows 8 0.0.0
family: Windows 8
major: 0
minor: 0
patch: 0
According to ua-parser-js v0.7.11:
ua
ua: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36
browser
name: Chrome
version: 70.0.3538.102
major: 70
engine
name: WebKit
version: 537.36
os
name: Windows
version: 8
device
model: undefined
vendor: undefined
type: undefined
cpu
architecture: amd64
According to platform.js v1.3.3:
ua
name: Chrome
version: 70.0.3538.102
layout: Blink
os
os: Windows 8 64-bit
device
product:
manufacturer:
description: Chrome 70.0.3538.102 on Windows 8 64-bit
I couldn't find any relevant post about this mysterious behaviour anywhere else so excuse me if there's an obvious answer.
I am testing an application in various browsers and IE 11 has some strange behaviour.
When I visit a site that tells me my user agent I get:
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
Which is standard for IE11.
However when I run my application the user agent is different only on IE11.
I tried debugging the application on IE11 by adding in Global.asax:
protected void Application_BeginRequest()
{
var ua1 = Request.Headers["User-Agent"];
var ua2 = Request.UserAgent;
}
Both of them show:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)
Chrome shows the same on both cases but IE 11 shows different user agents depending whether I am in my application or any other tab. So my application seems to affect the user agent somehow but only when viewing it with IE11.
Can someone explain this and tell me how to get the same user agent even via my application? Any idea why this is happening?
Ideally I want when debugging to get the expected user agent:
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
Do you by any chance have the F12 Developer Tools window open and the browser emulation set to IE7, or the user agent spoofing set to Internet Explorer 7?
You can find it in the Emulation tab of the tool.
Alternatively, if that is not set, have you checked if IE is running in "Compatibility Mode" - as it may be set to do this for intranet sites. If so, this question is a likely duplicate of:
IE11 User-Agent - Wrong one when pointing towards localhost - Right one when going towards my PC name?
and also:
IE 11 sends different User-Agent header to different subdomains
There are many that suggested that.
Well, everytime I do something it's always get changed back to nothing.
WebClient.Headers(HttpRequestHeader.UserAgent) = "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; EasyBits GO v1.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; Tablet PC 2.0; InfoPath.3)"
content = WebClient.DownloadString("http://www.google.com/search?q=kucing") 'doesn't work but working at firefox
There is a solution for C#
http://codehelp.smartdev.eu/2009/05/08/improve-webclient-by-adding-useragent-and-cookies-to-your-requests/
But c'mon. Do we really have to do so?
Yes you need to extend the WebClient class to get access to some of the goodies inside.
Just add the example class in your link to your project and use that instead of webclient. You can remove RefreshUserAgent() as all this does is pick a random user agent each time you call it.
I have been creating Sharepoint application page, which is deployed in Sharepoint 2010 14\TEMPLATE\LAYOUTS directory. In browser my page is working fine. But on the page i am using asp:FileUpload control for uploading images.
there is a javascript function, which i change image src/path when asp:FileUpload onChange event is called. this is working also fine.
Now the problem is, after changing image src/path through javascript onChange event. Page postback is causing an error like,
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
3.0.30729; .NET4.0C; .NET4.0E; InfoPath.2) Timestamp: Thu, 13 Oct 2011 13:08:03 UTC
Message: Access is denied.
Line: 350 Char: 9 Code: 0 URI:
http://saif-pc:81/WebResource.axd?d=0a7ZWROgcpePPy6XDUEhLl9SVCuQxHFrPdtua4kZN2U8VKZ9a4kNK11sx9E5Ae_oIgpqGL4O9QaXCripQx59D309Yoc1&t=634208957469717278
I have spent much time on googling, but not find any solutions.
Please any one help me.
Thanks in advance.
I am using sarissa library to transform xslt. when click on menu item it displayed the content of that menu at that time if video was played its stop in IE8 for a fraction of second. It works fine in other browser.
here is the link:
http://183.182.86.34:92/flowplayer/Home.html
Thanks in Advance..
Does it stop playing in IE 5 or IE8? I am actually able to view it without any errors in IE8.
In IE 5 there's an error that stops the webpage from working as expected, but clicking on the frame where the video should be in IE5 opens the video seperately, so it still does work.
To debug and locate the exact error, use the IE developer tool by clicking F12 or Tools-Developer Tools. Click 'Script' tab and 'Start Debugging'. Allow to refresh page.
You might want to add browser compatibility checks using a javascript or styles, or fix the error by checking the flowplayer documentation.
http://flowplayer.org/documentation/developer/writing-javascript-plugins.html
http://www.quirksmode.org/css/contents.html
http://www.ajaxprojects.com/ajax/tutorialdetails.php?itemid=540#start
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; InfoPath.2; .NET4.0C; .NET4.0E)
Timestamp: Thu, 19 May 2011 15:02:46 UTC
Message: Expected identifier, string or number
Line: 186
Char: 9
Code: 0
URI: http://183.182.86.34:92/flowplayer/Home.html