Overrides window.open for background and extension page
Overrides window.open for background and extension page

fix https://github.com/brave/browser-laptop/issues/4686

@Auditors: @bridiver, @jonathansampson

posix4e/electron,brave/muon,brave/muon,brave/muon,posix4e/electron,brave/electron,brave/electron,brave/muon,posix4e/electron,brave/muon,brave/electron,brave/electron,brave/electron,brave/muon,posix4e/electron,brave/electron,posix4e/electron,posix4e/electron