Category Archives: FireFox

How to convince Internet Explorer to show more pages with untrusted cerificates in one tab (iframed)

Funny article name you say and I can only agree, yes 🙂 most of the time you run like hell when you see page with broken certificate. But I will explain why one might need this 🙂

My girlfriend is a tester and at her current work she is testing web apps. Since majority of these apps use SSL and she is using staging versions, she has to accept certificate errors and if you know what you are doing, than everything is OK and fine (you see errors because of self signed certificates).

Yes there are more ways how to get over this problem :

but if you don’t want to do this/you cant do this on your box then you just have to live with basic temporary exception and you will click Continue to this website :

ie certificate error

And now comes the problem part/our edge case. Most of the time you are accessing one URL on one server and everything works.

But lets say you have your testing URL with self signed certificate where is a page with IFRAME to different URL with different certificate on different server. Now what? You have to add two different exceptions.

The problem lies in how IE (tested in IE11) displays another page. You just don’t have any option how to add another exception, you just see that the iframed page has invalid certificate, nothing more…

The FireFox solution :

The FireFox way is more common and most of people know it (so just small recap):

you can open new tab with IFRAMEd URL, access it, see error and add permission. Than on another tab access hosting page, add second exception and you are done, all of the later visits to hosting page share the same exception. Which is nice, because you can close the tab and open different one later and you don’t need to add exception to IFRAMEd URL over and over again.

The IE (I suppose because of the architecture – more on this here – http://blogs.msdn.com/b/ie/archive/2008/03/11/ie8-and-loosely-coupled-ie-lcie.aspx ) behaves little bit differently.

The IE solution :

In IE the exception for IFRAMEd page isn’t shared between tabs/shared for whole browser instance so you have to :

  1. Access the IFRAMED URL and add exception and then on the very same tab
  2. Access the hoster URL and add second exception

and everything should work now also for IE the way expected 🙂 but once you close the tab with exceptions, you have to do the same thing again…

Decision which way is better/safer is up to you….

Hope this helps 🙂 Tested on latest versions of Windows 7 + IE11.

window.showModalDialog behaves differently on IE, FireFox and on Chrome

I would like to share one small “feature” I have found on current latest browsers. By “latest browsers” I mean (I tested this behavior on IE 11, FireFox 29 and Chrome 37).

The problem:
If say for whatever reason you are using JavaScript modal dialogs with

window.showModalDialog()

like in older web app (chrome and firefox displays waring you should use

window.open()

instead, more on this here : http://stackoverflow.com/questions/20733962/why-is-window-showmodaldialog-deprecated-what-to-use-instead ) and you are passing in multiple same arguments (for whatever reason, maybe you had default values + new values as params and previously IE took second parameter, that is the mystery of legacy code and I don’t suppose majority of you will do this, but it might happen), than you will have problem on FireFox.

So given JavaScript call like this

window.showModalDialog('HtmlPage1.html', null, 'resizable:0;status:0;dialogwidth:900px;dialogheight:200px;dialogwidth:100px;dialogheight:300px');

the following will happen :

no Error will be thrown, IE and Chrome will use second pair of dialogwidth and dialogheight, FireFox will use first one and all of these popups will be styled using these values so the same code will result in different UX.

Small side note though, Chrome will make dialog really 100px and IE will hit some internal min value I suppose and Chrome’s window will not be modal (you can click away) but  everywhere the window will be opened.

Hope this might save you some time in case you run into the same problem.