history.pushState disappears in IE 11 - internet-explorer-11

There is a site http://www.pionart.pl which is a good illustration of the problem I have with the current site I develop with almost the same code/CMS
When I enter the site with IE 11, the browser forgets half of the history methods, incl. history.pushState() (you can easily check it by invoking the console with F12 and typing history.)
When I enter http://stackoverflow.com in the same tab, IE suddenly remembers all the methods back.
The question: what is the purpose of the "forgetting"? How to prevent it?
Adam

The problem was
<meta http-equiv="X-UA-Compatible" content="IE=9">
It forced IE 11 back to IE9 state, and we have pushState from IE10 up...
A.

Related

Programmatically retrieving the contents of the chrome://gpu url

I am trying to programmatically retrieve the contents of the chrome://gpu url.
As a start I tried to load up chrome://gpu from the command-line, but chromium refuses to start up with a url that is prefixed with a chrome: prefix.
Then I tried to out-clever that limitation by using a redirect page:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="7; url='chrome://gpu'" />
</head>
<body>
<p>Please follow this link.</p>
</body>
</html>
But that page, although it can be launched from command line, would not refresh for me.
Even clicking the link does not work, which leads me to determine that you cannot link to chrome://gpu at all.
When I tried right-click open-in-tab on the link, I get:
Which means that chromium is actively blocking access to it, unless it is typed out by the user.
I have two questions:
Can this block be disabled?
If not, how can I retrieve this information programmatically? Can I somehow feed artificial keystrokes into chromium?
Update 1
Tried to add virtual key-strokes with:
$ wtype test
Compositor does not support the virtual keyboard protocol
Update 2
I have gotten further: I can use ydotool to make chromium browse to chrome://gpu and then do Save-As, but that saves a nearly empty html page that references a gpu_internals.js script.
Is it possible to save the output of that script instead?
Access to the "chrome://gpu" URL is restricted and cannot be directly accessed programmatically. This restriction is in place to prevent malicious actors from manipulating the internal settings of the browser.
An alternative approach could be to use a headless browser like Puppeteer or Selenium to automate the process of retrieving the information from the "chrome://gpu" page.
I've found ydotool to be a good solution for this.
With it, you can automatically open a page to chrome://gpu and then click in the browser window, followed by Ctrl+A, Ctrl+C to retrieve to contents to the clipboard.
You can then use wl-paste from the wl-clipboard package to get it.

Website loading slowly or not loading after clearing browsing history in IE11 Browser

1.Clear IE 11 Browsing history, cookies etc.
2.Close the browser
3.Open the browser
4.Navigate to https://www.parcelforce.com
Expected: The parcelforce.com home page should load properly and quickly in IE11
Actual:
Page does not load properly. Also, on refresh the page takes a lot of time to load. Sometimes it may not load.
This issue is happening with IE11 only. Whenever I hit https://www.parcelforce.com in other browsers say chrome, Firefox, safari, website is loading quickly.
Can anyone suggest me what might be the issue with IE11. Should I need to add any code for IE11 to load website quickly?
Based on your description, I reproduced the problem you described. And I found some other things, when using the address bar and enter key (two or more times) navigation can make the page complete loading. But using ctrl+R or F5 to refresh cannot achieve the same effect. I checked the console in ie11 and did not find any error messages (except warning messages), so I am not sure if it is a compatibility-related issue or other issues in the code.
On the other hand, the Internet Explorer 11 desktop application will be retired and go out of support on June 15, 2022, I recommand that you could use some morden browsers, such as Chromium Edge.
For more about retirement FAQ of Internet Explorer 11, please refer to this blog.

How can I determine the Reason IE is going into Compatibility View Mode and prevent it from happening?

Okay, here are the facts regarding our problem:
The web site we are working on is designed to use modern HTML5 features. This includes indexedDb.
We are using the following HTML right at the top of each page:
<!DOCTYPE html><html><head><meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
All our users are using the same version of IE11.
We have 200+ active users who use the site, and for most of them, everything works just fine. The browser stays in "Edge" mode.
So far though, 3 of those users' browsers started opening the pages on the site in Compatibility View Mode instead of the default Edge mode. It was working for them fine previously.
If any other user goes to any page that those 3 users went to, they open fine (in Edge mode).
I created a super-simple diagnostic page devoid of CSS, HTML5 features, etc., when the users who are having the problems go to this page, it STILL going into compatibility view mode! It seems once the damage has been done, the browser wants to go into compatibility view mode for that domain regardless of the page content!
We've tried deleting Browsing History in the user's browser including cookies and website data... it does not fix the problem.
Restarting the PC does not work.
We do not have enough security to access any registry settings or directories where the browser stores its files.
So for starters, the question is, what steps can we take to figure out WHY their browsers when into compatibility mode in the first place. The only things I'm finding are vague error messages in the F12 console about using some feature or other improperly. No info about what feature or what error it caused.
And then, if that can be resolved, for users already in this mess, is there any viable steps we can take to get them so they see the site in Edge mode once again.
I'll be grateful for any help I can get on this. I am really stumped on this one!

IE 11 Compatibility Issue, setting document mode to 9 by default after making changes also in meta tag

I made changes in the master page of my SharePoint site. I have added a meta tag in my header like so:
<meta http-equiv="X-UA-Compatible" content="IE=8,9,10,11" />
and I've also changed the doctype, but the emulation is still rendering in IE9 document mode.
Attached is the screenshot.
Please let me know where I need to make changes. This site is using custom master page. I have updated it in the Custom as well as the V4 master page but no luck.
A few suggestions:
Set the content attribute of the <meta> tag to "IE=8" instead of "IE=8,9,10,11".
Make sure that the <meta> tag containing your IE rendering directive is the first <meta> tag in the header.
To prevent the F12 developer tools window from forcing the page into a particular document mode, close all instances of Internet Explorer, then start it up again and revisit the site without the F12 developer tools open. Open the F12 developer tools to check the page document mode only after the page has loaded.

getURL action script 2 and IE 7/8

I have several flash movies that need to redirect to an external website at the end of the presentation. In any browser (firefox, opera, etc.), getURL("http://www.google.com"); works but in IE versions 7 and 8 it just hangs.
I need to use Action Script 2 because I have alot of code that doesn't work in AS 3.
Thanks!
Hm. I haven't touched AS2 in at least a year, but I see to remember this being an issue...
I think it's IE's security settings, are you running this swf locally? You might want to read these:
http://shang-liang.com/blog/issues-with-internet-explorer-7/
http://www.sitepoint.com/forums/showthread.php?t=520661