Mootools Issue in IE8 - internet-explorer-8

I am having an issue with Mootools. If you go to this page RTDS you'll notice a login button in the top right. On all other browsers (IE9, Safari, Chrome, and Firefox) the login works fine but it doesn't work in IE8. IE says its an error related to moo tools but I don't really know what it means or how to fix it. The error is as follows:
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; .NET4.0C; InfoPath.3; .NET4.0E)
Timestamp: Wed, 8 Feb 2012 02:26:00 UTC
Message: 'null' is null or not an object
Line: 66
Char: 2
Code: 0
URI: http://www.hanseninfotech.com/rtds/templates/beez5/javascript/md_stylechanger.js
Message: Object doesn't support this property or method
Line: 473
Char: 25
Code: 0
URI: http://www.hanseninfotech.com/rtds/media/system/js/mootools-core.js
Has anyone ever seen this or have any information on how to fix this?

if you use Firebug for Firefox, you'll see there is an error on md_stylechanger.js script.
As it seems you don't use it (it modifies size of fonts), get rid of the file.
And update to joomla 2.5, 1.7 won't be supported any more soon.

Related

Microsoft teams user agent

Anyone know the name of user agent used by Microsoft Teams to parsing website ?
A customer put a link of my website on his microsoft teams but link is not rendering correctly because is not redirect to my prerender.
On 13 January 2022, the User-Agent strings of the browser used to render Teams Tab content were as follows (running in a small sample of various contexts):
Microsoft Teams (work or school) desktop app my x64 Windows 11 machine:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Teams/1.4.00.32771 Chrome/85.0.4183.121 Electron/10.4.7 Safari/537.36
Teams Android App:
Mozilla/5.0 (Linux; Android 11; M2102J20SG Build/RKQ1.200826.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/97.0.4692.70 Mobile Safari/537.36 TeamsMobile-Android
Teams Web App running in Chrome 97 on Windows:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36
I got these by creating a simple tab app that loaded the content URL https://www.httpbin.org/headers, which is a public service that just echoes the request headers in the response, then navigating to that Tab in Teams in the various contexts above.
Long story short: As is often the case with user-agent sniffing, it doesn't seem sensible here to depend on the user agent string in your application in any way, because it varies quite a lot depending on the Teams context from which the request is made. Even if you were to try to match "Teams" or "TeamsMobile" for the "app" cases, it doesn't seem documented anywhere and Microsoft could well change it in future. So, my suggestion is to forget about the Microsoft Teams user agent.
I also had this question because I wanted to block link unfurling from MS Teams for an app I was developing.
I used the following line from in a Flask app
request.user_agent.string
To get this user agent
Mozilla/5.0 (Windows NT 6.1; WOW64) SkypeUriPreview Preview/0.5
This was January 2020 so it may change over time, FYI
I suggest you can find it easily. Develop a tiny website to record user-agent of all requests. Post the url of your website in teams. Then you can find it in the recorded user-agents.

Firefox Add-On, change preferences depending on connection

I would like to create my own Add-On that changes preferences depending on the proxy (if a proxy is being used or not), is that possible? I asked in a Firefox Add-On IRC but didn't a response, all users were idle.
Example:
// If proxy is enabled
lockPref("general.appname.override", "Netscape");
lockPref("general.appversion.override", "5.0 (Windows)");
lockPref("general.buildID.override", "20100101");
lockPref("general.oscpu.override", "Windows NT 6.1; Win32");
lockPref("general.platform.override", "Win32");
lockPref("general.productsub.override", "20100101");
lockPref("general.useragent.locale", "en-US");
lockPref("general.useragent.override", "Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0");

Detect if Chrome Frame BHO is enabled

I have the following code to detect to see if CF BHO is enabled, but unfortunately it didn't work out, it alway returns "automation server failed to create obj"
var activexGoogleFrameBho = new ActiveXObject('ChromeFrame.Bho');
if (activexGoogleFrameBho) {
...
}
My user agent and page header are as following:
mozilla/4.0(compatible; msie 8.0; windows nt 6.1; wow64; trident/4.0;
chromeframe/32.0.1700.107; slcc2; .net clr 2.0.50727; .net4.0c; .net4.0e)
<meta http-equiv='X-UA-Compatible' content='IE=Edge,chrome=IE8'/>
any ideas?
Thanks,
I'm not sure if you can detect the helper object itself though to see if the current page is loaded in chromeframe you can check if window.externalHost exists.
http://www.chromium.org/developers/how-tos/chrome-frame-getting-started/understanding-chrome-frame-user-agent#TOC-From-the-script-on-the-web-page

iframes and mixed content in IE

My goal is to embed this webpage "brokercheck.finra.org/Search/Search.aspx" into a visualforce page. I'm using an <apex:iframe/> to do this. I've tried html iframes too.
In IE8, I'm getting a message saying "do you want to view the webpage that was delivered securely" the http content only works if the user clicks no. (which is not a good practice).
on the bottom of the page I'm getting a warning that says:
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; .NET4.0C; .NET4.0E; MS-RTC LM 8)
Message: Permission denied
Line: 6
Char: 152
Code: 0
URI: http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js
Is there anything I can do on my end to get around the popup?
I've tried a few things, but nothing has been fruitful...
You're mixing an encrypted (https) content of visualforce / regular salesforce pages with unencrypted http. And sadly this website doesn't seem to have a secure version.
I'm afraid there's not much you can do, this "mixed content" warning is just a feature of IE. In fact I think it'd be pointless if websites could somehow suppress it ;) You can read about it on MSDN and the simplest thing is to ask users to modify their security settings.
You could try playing with Javascript, maybe loading content from finfra with some AJAX call... But that will be most likely treated by IE as cross-domain JavaScript and also blocked. Can you maybe simply show this page as a link / popup window? Or simply make REST GET call(s) to it server-side and display pieces of content?

Window Media Player issues two requests for the audio on web page

I'm using Windows Media Player in a web page. I have version 11 installed so that is the version I'm testing with right now. The player is embedded on the page with this HTML:
<OBJECT id='MS_mediaPlayer' width="400" height="45" classid='CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6'
codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
<param name='autoStart' value="false">
<param name='uiMode' value="invisible">
<param name='loop' value="false">
</OBJECT>
I'm calling in JavaScript:
MS_mediaPlayer.URL = "SomeAudioFile.mp3"
MS_mediaPlayer.controls.play();
When I look at Fiddler I can see that the player actually downloads "SomeAudioFile.mp3" twice. Is there some setting I have wrong? I was trying to set the "autoPlay" to true and avoid calling "play()". Got the same result - two downloads.
UPDATE:
The first request's user-agent is "Windows-Media-Player/11.0.5721.5268". The second has "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)". Looks like the browser is running the same request the second time. No Idea why
Any ideas?
UPDATE (4/1/10):
Still no solution.
I debugged the JS thoroughly and there is only one call to MediaPlayer.URL='.....' to set the audio file. Nothing else triggers the media player to load the file and there is no other place referencing the audio file on the page.
One other interesting fact is that this doesn't happen (the double loading of the audio) when I run the browser locally on my development web server. But other remote requests to the same web server generate the double audio loading.
I believe I eliminated any correlation with specific IE version or media player version. This happens with IE6-8 and WM9-12
You have to examine the requests carefully. Sometimes, you'll see a media player make two requests because they are using HTTP Range requests (and not requesting the whole file). Look for a "Range" request header. Also check to make sure that neither of the requests uses the HEAD method, because that simply retrieves the server's response headers.
Also, if either of the sessions shows as aborted in the Fiddler Session List ("do not enter icon, red circle with a line through it") it means that the client closed the request in the middle. That might occur if the component starts the download, aborts it, and then restarts it. Why it might do that, I'm not sure.
You might try looking at other sites that use WMP and see whether you see two requests for them.

Resources