Snapshot window sporadically closes or crashes when I close a tab
-
I think I found the culprit.
It’s an SAP based company website that does some stuff onunload
event (and sometimesbeforeunload
as well).Sometimes it crashes and restarts and sometimes it does not restart the browser.
It seems that: When this site is the only tab, I get one crash log. When it’s not the only tab, it get 2 crash logs.
And here is what it does on
unload
:// from jquery.tools.min.js function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g} // from jquery-1.3.2.min.js function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g} // from site js file EPCM._private.handleBrowserEvent=function(evt){ var browserNS="urn:com.sapportals.portal:browser"; if (evt == null) evt=window.event; if(evt.type == "unload" || evt.type == "load"){ EPCM.raiseEventLocal( browserNS, "pre" + evt.type, evt );} EPCM.raiseEventLocal( browserNS, evt.type, evt ); if(evt.type == "unload"){ EPCM._private.detachWindowEvents(window);} }
You can notice that on
unload
it does twice the same jquery code.
For the record, here is what it does sometimes additionally on
beforeunload
but theunload
above is often alone and enough to crash Vivaldi:// from site js file window.onbeforeunload=function (e){ var browserNS="urn:com.sapportals.portal:browser"; e=e || window.event; if (EPCM.getUAType() == EPCM.SAFARI || EPCM.getUAType() == EPCM.CHROME){ EPCM._private.isOnbeforeunload=true; EPCM.raiseEventLocal(browserNS, "preunload", e); EPCM.raiseEventLocal(browserNS, "unload", e); if (window == EPCM.getSAPTop() && popupUnsavedDataBeforeUnload){ var pop_message=popupUnsavedDataBeforeUnload();} EPCM._private.detachWindowEvents(window); return pop_message;} };
-
@Gwen-Dragon Yes indeed.
I have now just sent this clumsy javascript explanation of mine, together with an example of double crash log and an example of single crash log.
My work‐around: Instead of closing this site tab, I navigate to any other site page before closing the tab safely.
-
I was contacted by Vivaldi devs:
Hi,
Can you reproduce the bug with 2.3 Stable and 2.4 Snapshot?
Best wishes,To which I replied:
Dear Vivaldi devs,
Just before updating I went to the site that crashed (it’s an internal office site so I cannot share with you) and it crashed with my first try (I go there, I close its tab, Vivaldi crashes).
I updated to 2.3.1440.41 (Stable channel) (64-bit).
After that, I tried 8 times with no crashes at all.
Thank you very much!
With kind regards,It’s great, to me, VB-45890 seems fixed!
-