otter-browser icon indicating copy to clipboard operation
otter-browser copied to clipboard

creating and focusing new windows/tabs via scripting (possible hanging)

Open vbr opened this issue 5 years ago • 3 comments

Hi,

I recently noticed a buggy behavior on pages, which handle opening new browser window/tab and focussing it via javascript. In many cases (but not 100% regularly) after clicking on such link, Otter hangs while trying to switch the focussed pane preiodically between the newly created tab and the original one. The program is mostly not responsive, only the title bar text keeps blinking while changing according to both pages (approx. twice a second or faster). The relevant "offensive" code can probably be simplified to something like: <a href="about:blank" onclick='window.open("about:blank", "new_win").focus(); return false;'>test win open js</a> (With a test page containing only this link I get a similar buggy behaviour like on various real pages with such functionality; - the mentioned problems appear most of the time after clicking this link, but sometimes this just works ok, or there is that periodic switching of panes, but the browser stays responsive and a pane can be closed normally - possibly some timing issues or concurrence of other calls can be relevant here.) This appears in Otter RC 12, 64bit, webkit on Win 7 64bit (and similarly Win 10). Please let me know, if there is some addition infromation needed, regards, vbr

vbr avatar Oct 01 '18 22:10 vbr

@vbr, any improvements with above change?

Emdek avatar Jan 01 '19 15:01 Emdek

Hi, well I don't see the mentioned problem on some "usual" problematic pages using Otter 1.0.01 for XP (on Win 7) - as compared to RC 12 (64bit, Webkit), where the problem appears, but the difference can probably easily be due to the different backends. I'll re-test after the other stable builds become available. Thanks, vbr

vbr avatar Jan 11 '19 17:01 vbr

Hi, I can confirm, that the above crashes seem to be gone in Otter 1.0.01 webkit, 64bit too; I have been using the official version for some time now, and the previously problematic pages seem to be handled ok now. Thanks and regards, vbr

vbr avatar Feb 16 '19 19:02 vbr