Does not trigger onBeforeRequest for popups
-
This is a webextension issue.
It seems that
webRequest.onBeforeRequest
won't be triggered for popups. Here is the repro:
https://github.com/eight04/webextension-test/tree/before-request
Ideally, the script should log two records includingexample.com/foo
andexample.com/bar
but Vivaldi only logsexample.com/foo
.Vivaldi 3.5.2115.87 (Stable channel) (64-bit)
Related issue:
https://github.com/openstyles/stylus/issues/1115 -
Hi, I submitted this as a new bug and also created a test page to easily reproduce.
Go to http://jodigga.com
If you click the link the onBeforeRequest is not triggered. (it is triggered in Chromium though). The link contains target="_blank".
Once you clicked the link you reached a second webpage (target.html). There is another link without target="_blank". Click that one and see that onBeforeRequest is triggered.
-
not true. See my attached screenshot. This is done in a clean chromium profile with a simple extension that does just hook on "onBeforeRequest" and logs that it was triggered.
Chromium Version 88.0.4324.96 (Official Build) Arch Linux (64-bit)
-
I'm sorry, I assumed that the nature of this topic ( as created by @eight04 ) suggested that you somehow have to check if
webRequest.onBeforeRequest
is triggered.That is done
a) by writing a small extension that hooks on onBeforeRequest and logs if it was triggered
b) by some other way that actual browser devs check this stuff ( I am not a browser dev ) -
@UwK9hITH1PB6kzpE said in Does not trigger onBeforeRequest for popups:
Hi, I submitted this as a new bug and also created a test page to easily reproduce.
I already submitted it as a bug. This is why I just wanted to note that here so it doesn't go missing.
The e-mail I received said:
[Jira] (VB-76606) onBeforeRequest not triggered when Link contains target="_blank" -
Ppafflick moved this topic from Vivaldi for Windows on