Closed kamilpastwa closed 1 year ago
Hi, @kamilpastwa, thanks for using Lock Tab!
Unfortunately, from my experience, Chrome requires user interaction with the page to allow the extension to execute the beforeunload
handler. I guess it'd be a security concern to allow an extension to prevent closing tabs just by executing code in the background, without the using clicking on the page.
I have tried a lot but haven't found another way to make the extension work (and don't think there is). But of course if you, or anyone, can suggest another approach, I'd love to try it! ❤️
Thanks again
How to reproduce
X button
orctrl+W
ormiddle mouse button
)Expected result: page doesn't close, popup shows up. Actual result: page closes. Workaround: Interact with website (click anywhere on webpage).
Is there any way to fix it?