CTRL + click doesn't execute script
-
Hello.
It's my first topic here, but I need a little help from you.
I am using Vivaldi in my work as succesor of Opera 12 at Windows 10.
Since few latest snapshots when I am using CTRL + LMB on a button at same page in background opens the same page, but without any result, which is made when I use just LMB.If it's not clear you can try this at my test page - http://casar.pl/test/ . Please insert any text in field and:
- click on Check button just LMB - it will execute fine
- click on Check button with CTRL + LMB - it will open new Tab, but doesn't show result
In Chrome and new Opera it works fine. It also works in Vivaldi 1.6 stable and in 1.7.721.3 snapshot.
Is it a bug or I should change something? Beacause of this I am skipping new snapshots
-
Mmh there seems to be a problem with the detection of the "Check-Button"
I can reproduce your problem also adding that:- click on Check Button with MMB does nothing at all
I tried to use spatial navigation (hold shift and press the arrow keys) to activate the search and it works but only when you select the check button via spatial navigation hit enter once (orange changes to blue) and than hit enter twice (actual search result)
I tried this with a few other sites where enter buttons are placed and they always activate after the first hit of the enter key.Sorry that this doesn't help to get rid of your problem at all but maybe it helps to circle the error a little bit more closely.
Mmh there seems to be a problem with the detection of the "Check-Button"
I can reproduce your problem also adding that:- click on Check Button with MMB does nothing at all
I tried to use spatial navigation (hold shift and press the arrow keys) to activate the search and it works but only when you select the check button via spatial navigation hit enter once (orange changes to blue) and than hit enter twice (actual search result)
I tried this with a few other sites where enter buttons are placed and they always activate after the first hit of the enter key.Sorry that this doesn't help to get rid of your problem at all but maybe it helps to circle the error a little bit more closely.
-
I notice that if I change the subimission method to HTTP GET (
method="get"
) in the page using the DevTools element inspector, and command-click (this was on OSX for me), the new tab does get a URL of "http://casar.pl/test/?name=entered+text". So this appears to be bug specific to just POST-type form submission.This thread would be better described as "Ctrl-click/Command-click/Shift-Enter on form submit button doesn't submit POST data with new tab". (Either it's not sending a POST request at all, or it is sending the POST request but opening the new tab with a GET request. I remember there was a now-fixed bug much like that a while back: In cases of
<form target="_blank"
, Vivaldi was doing the POST submission, but then opening the popped tab with a GET.) As far as Vivaldi's operation, this bug doesn't have to do with executing scripts. (What the server does with POST variables -- e.g. feeding them to a PHP script or whatever -- is up to a server.) -
It's not only about submit. Opera handled all on-click events via opening a copy of the page and sending the click there AFAIK. Except I used Shift+Click to open in new tabs.
-
No, Opera didn't do that for onclick events. That would be very problematic to implement, because it would involve cloning the entire page state first (which could cause various unintended effects depending on how a page interacts with a site).
If you don't believe me, try the following page in Opera 12: http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_element_innerhtml
Even if you change the
<p id="demo" onclick="myFunction()">Click me to change my HTML content (innerHTML).</p>
to a link like
<a href="#" id="demo" onclick="myFunction()">Click me to change my HTML content (innerHTML).</a>
and shift-click on it, Opera will open a new page in accordance with the href, but the onclick is applied to the original page.
-
@Isildur said in CTRL + click doesn't execute script:
depending on how a page interacts with a site
I hate the edit time limit. To clarify that: I meant "depending on how the page running on the user's machine is interacting with a remote server (or servers)". (For example, XHRs and media streaming may be going on.)
A related situation is the "Clone Tab" command. Vivaldi's (or any other browser's) "Clone Tab" command doesn't actually clone the entire page state, but rather, just creates a new tab with the cached source. Cloning the entire page -- DOM, JS state, and all -- would be ok for JS-free pages and pages that have javascript but request nothing from elsewhere once loaded, but would cause various kinds broken behavior for pages that are actively communicating with one or more servers. Giving access to the same open connections, for example, would surely even violate specs -- servers aren't supposed to have to worry that two client instances are suddenly pulling from the same 1-to-1 stream.
-
Last build (1.8.770.25) fix this. Thank you all for your involvement.
-
Ppafflick unlocked this topic on
-
Ppafflick moved this topic from Vivaldi for Windows on