Bug Report: Editor does not load when "Window.onbeforeunload" is blocked

I use an add-on called "Controle de Scripts" in Firefox to block "Window.onbeforeunload" to prevent that very annoying "are you sure you want to leave this page" dialog from ever popping up. (I'm not usually a control freak, but I really don't like my own browser second-guessing me when I tell it to close a tab. It's also a security risk)

Unfortunately the editor won't even load if I have that blocked. I don't really see any reason why it's required for the thing to function, so it's something you might want to look into.

by MathGuyJohn
April 29, 2013

Hi John,

CircuitLab uses the window.onbeforeunload event to warn our users about any unsaved circuits they might have before closing the editor.

I'm not familiar with that specific Firefox add-on, so I don't know how it is blocking that event or why that would cause the editor to fail to load, but we can definitely look into it.

Thanks, --yuan

by weiy
April 29, 2013

That's weird then - if it's just used to display the dialog box when you close the window then it's weird that it won't even load with it blocked.

Yeah, those warnings tend to annoy me which is why I block them hah. Thanks!

by MathGuyJohn
April 30, 2013

I hear you john

by joemonkey3
May 03, 2013

Post a Reply

Please sign in or create an account to comment.

Go Ad-Free. Activate your CircuitLab membership. No more ads. Save unlimited circuits. Run unlimited simulations.

About CircuitLab

CircuitLab is an in-browser schematic capture and circuit simulation software tool to help you rapidly design and analyze analog and digital electronics systems.