follow up bug of work done in bug 25867 see https://bugs.webkit.org/show_bug.cgi?id=25867#c19 and bug 27444 for problem description.
Created attachment 33724 [details] fix
Comment on attachment 33724 [details] fix Can we test this? Maybe with an http test?
Comment on attachment 33724 [details] fix clearing review. as per eric's suggetion i will add a autotest (not http test)
Created attachment 34062 [details] v0.2 - fix + autotest added an autotest for the case. in the autotest, it forces a SSLError to be catch and check if the requestedUrl value matches the expected.
Created attachment 34063 [details] v0.3 - fix + autotest same patch as 0.2 but fixed gcc warning and updated to ToT.
Comment on attachment 34063 [details] v0.3 - fix + autotest r=me
r46767 thanks simon