JavaScript window.open function crashes vivaldi after initial popup
-
I have a javascript function that is called via an onClick option for a link. When it is initially called, the popup works, however if you try to click on any other links that call this same function ( with different target windows ) nothing happens. If you then close the original popup and attempt to open a new popup using the same link, Vivaldi crashes.
Link: <a href="foo.html" onClick="openPopup('foobar',900,700)" target="foobar"><img src="images/foo.png" title="Foo Foo" alt="Foo Foo Alt" border=0 width=20 height=20></a>
function openPopup( targetwin, width, height ) {
options = "toolbar=0,status=0,menubar=0,scrollbars=1," +
"resizable=1,width=" + width + ",height=" + height;
newwindow = window.open("", targetwin, options );
}When you first click on the link, the popup window opens. If you then click on another link with a different target window, the original window comes to the front. If you close the original popup and try to open a new one via the same link, the browser crashes hard.
I am running the latest update for Windows 11 and the latest version of Vivaldi. This all worked in Vivaldi prior to the latest version. Also, the same code works in Chrome with no issues.
-
Since today i also happen to experience this exact same annoying bug.
-
May be related to a known issue in 6.0.2979.22 Stable.
But i can not test what you mean. -
-
Same for me:
- first popup opens normally
- next popups does not open
- after few clicks, vivaldi crashes
=> I just realize that every kind of popup do that: for example, I can't open vivaldi parameters popup ! (gear-icon at bottom left)
-
@Wolfilius said in JavaScript window.open function crashes vivaldi after initial popup:
Same for me:
Any testcase i can check?
I can't open vivaldi parameters popup ! (gear-icon at bottom left)
Works for me 6.0.2979.22 Win 11 22H2
-
Oh, i found it this bug, reported a few days ago:
VB-97628 "window.open related crash" - Dev assigned, fix In Progress -
@DoctorG said in JavaScript window.open function crashes vivaldi after initial popup:
Any testcase i can check?
Just did this trick (6.0.2979.22 Win 10) :
- open console (f12)
- type " window.open('vivladi.net', '', 'width=640,height=480'); "
- popup opens normally
- type it again: nothing happens (window updated?)
- close the popup
- type it agin: vivaldi crashes
-
@Wolfilius Ah, i see.
But does not happen with my 6.1.3023.3 Snapshot as Standalone install.
-
Do you see this with Vivaldi 6.1.3023.3 (what is a Snapshot) as Standalone install version, that will not tangle your Vivaldi Stable Settings in case of issues in Snapshot.
-
@DoctorG I do not see this in the latest snapshot installed as StandAlone, so it is fixed in the snapshot.
-
For me :
- [6.0.2979.22 Win 10] as a program : crash
- [6.0.2979.22 Win 10] standalone : crash
- [snapshot 6.1.3023.3 Win 10] standalone : no crash
-
@huffbill Thanks for positive feedback.
-
@Wolfilius Thanks for feedback which one worked for you.
-
Even if this bug is fixed in the snapshot, here is a clarification that could prevent future similar bugs:
I discovered it's the act of trying to open a popup (window.open(...)) WHILE another popup is in progress that prepares the crash.
After closing, the next popup we try to open will cause the actual crash.- open a popup (window.open(...))
- close it
- open another popup: no crash
- close it
[...] - open a popup
- try to open another popup without closing the first one (nothing append)
- close
- try to open a popup: final crash
-
Having the same issues. This is greatly impacting my work. I do SOC related work, all of it is in the browser. I have preferred vivaldi due to security, some features. But it is now unusable completely.
-
@Javah These issues are already fixed in Vivaldi 6.1.3035.3 Snapshot.
You can install Snapshot (what is a Snapshot) as Standalone install version, that will not tangle your Vivaldi Stable Settings in case of issues in Snapshot.