📜 ⬆️ ⬇️

Opera vs. mailto

Pretty nerves today frayed.
There is a Flash in which a link is used, when clicking on it:
navigateToURL(new URLRequest("mailto:test@example.com"), "_self");

In addition, the code has methods that make a post-request to the address:
loader = new URLLoader();
...
loader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
loader.addEventListener(Event.COMPLETE, loaderCompleteHandler);
loader.load(request);


So, in my Opera 10 with the latest Flash player this situation: when you click on the link that is mailto, the mail client window opens, we close it and after that the loader.load (request) stops working altogether. It does not initiate any errors, but requests are not made.

Okay, after spending some time studying the problem and not finding a solution, I decided to go in a different way, and just pull the Flash JS-function, in which I’m already doing this:
window.location.href="mailto:test@example.com";

Well, to think, it works everywhere except Opera! To her ... = (
')
I do not know what else to try.

A bug with a non-working loader.load does not manifest itself in all, but in many.

Source: https://habr.com/ru/post/89702/


All Articles