Why is window.open() in Salesforce LWC Throwing a Security Error?

On May 18, 2025, Posted by , In Lightning web components,Salesforce, By ,, , With Comments Off on Why is window.open() in Salesforce LWC Throwing a Security Error?

Question I have been using window.open() in one of my Salesforce LWC components for years without any issues. This function is used to open an external webpage (not hosted on Salesforce). Recently, I started encountering the following error only when triggering window.open() while the previous popup remains open: In my…