People on Windows 10 are reporting an issue since the update of Windows 10 Edge: Version: 88.0.705.63, Date: 2021-02-05
The error message they’re getting is:
Error in executeScript code: Refused to evaluate a string as JavaScript because ‘unsafe-eval’ is not an allowed source of script in the following Content Security Policy directive: “script src ‘nonce-275f3493fb1c5f4e1758f3c8556a4@cc’ ‘strict-dynamic’ ‘report-sample’ ‘self’ *.pinterest.com *.pinimg.com .google.com connect.facebook.net *.googleanalytics.com +.facebook.com *.googleadservices.com *.doubleclick.net *.googletagmanager.com *. adyen.com *.adyenpayments.com .bnc.lt bnc lt branch.io cdn. ampproject.org *.cdn.ampproject.org radar.cedexis.com *. cedexis-test.comwww.gstatic.com/recaptcha/ unsafeinline’ *.youtube.com *.ytimg.com *.youtube.com *.ytimg.com”.
All was ok before the update.
The command being executed is
executeScript document.title = ${myTabTitle};
Sorry for my misleading initial assumption about what was causing the fault.
I agree, it’s an issue with the website that is opened in the tab. It happens in Firefox as well.
Thanks for the suggestion but I’m setting the document.title, not getting it.
executeScript_Sandbox fails as well.
Is there an alternative way of setting the document.title?
It’s a long story…
The tab usually autocloses but sometimes doesn’t.
Sometimes more than one tab opens when only one is requested to open.
When that happens, I need to be able to identifty the correct tab. So when I open the tab, I name it so that I can switch to it a little later and be sure I’m switching to the right one.
Using this approach, I can then deal with the right tab correctly, make sure I have and then switch back to tab 0 and close all tabs to the right.
Well, you asked