Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

"Reset to Defaults" option does not work on Firefox #15770

Closed
cschanaj opened this issue Jun 16, 2018 · 2 comments
Closed

"Reset to Defaults" option does not work on Firefox #15770

cschanaj opened this issue Jun 16, 2018 · 2 comments

Comments

@cschanaj
Copy link
Collaborator

Type: code issue

Platform     Debian 9
Browser      Firefox 60.0.2 (64-bit)
Extension    HTTPS Everywhere 2018.6.13

and I am getting the same error on Tor Browser with updated HTTPSE. Apparently, this does not affect the chromium browser and Firefox on Windows platform... not sure why this is happening though...

Output of the extension console

"TypeError: can't access dead object"

@cschanaj
Copy link
Collaborator Author

cschanaj commented Jul 7, 2018

@Hainish Apparently, the confirmation dialog is the culprit.

Firefox/Linux will close the popup when users make their choices while this does not happen on Firefox/Windows or Chromium/Any, so I am guessing this is a bug on Firefox's side...

https://bugzilla.mozilla.org/show_bug.cgi?id=1292701

Remove the if statement resolve this issue immediately (this will get ride of the confirmation dialog), but I'm not sure if this will have any negative effect on the UX design. Another option is to use a third party library like bootstrap to create a model for confirmation. What's your opinion?

if (confirm(chrome.i18n.getMessage("prefs_reset_defaults_message"))) {

A person posted a workaround on Stack overflow, but I'm afraid it is too complicated for such a simple feature we have.

https://stackoverflow.com/questions/48666167/firefox-webextension-confirm-function-causes-extension-popup-to-close-immediat

cc @Bisaloo @J0WI @jeremyn

@Hainish
Copy link
Member

Hainish commented Nov 27, 2018

Let's revisit this once we implement the suggestions in #16669 (this will hopefully be very soon).

In the meantime I'm fine with removing the confirmation dialogue altogether.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants