marius-wieschollek / passwords-webextension

The official browser extension for the Passwords app for Nextcloud.
GNU General Public License v3.0
103 stars 31 forks source link

Firefox: extension does not connect after startup #246

Closed ascpial closed 1 year ago

ascpial commented 1 year ago

If the Nextcloud instance is not reachable by the browser at startup, the extension never connects and you need to restart the browser, which can be annoying in a lot of situations.

System Information

Steps to reproduce

  1. Make sure the Nextcloud instance is unreachable (wifi off, wrong proxy settings, instance down... a lot of things can go wrong)
  2. Start the browser
  3. Make the Nextcloud instance reachable (turn the wifi on, correct the proxy settings, start the instance...)

Expected result

The extension should connect to the instance and activate the features.

Actual result

The extension never connects, and clicking on the icon show the interface with no passwords at all.

Browser log

Browser log (when the instance is unreachable) ``` NetworkError when attempting to fetch resource. TypeError: NetworkError when attempting to fetch resource. Object { details: {…}, error: {…} } [background.js:2:733345](moz-extension://e6b9255a-b02e-4d03-bff1-a6808fc0f04d/js/background.js) _addError moz-extension://e6b9255a-b02e-4d03-bff1-a6808fc0f04d/js/background.js:2 logError moz-extension://e6b9255a-b02e-4d03-bff1-a6808fc0f04d/js/background.js:2 init moz-extension://e6b9255a-b02e-4d03-bff1-a6808fc0f04d/js/background.js:2 Could not establish connection. Receiving end does not exist. Error: Could not establish connection. Receiving end does not exist. _sendMessage moz-extension://e6b9255a-b02e-4d03-bff1-a6808fc0f04d/js/background.js:2 Object { details: {…}, error: {…} } _sendMessage@moz-extension://e6b9255a-b02e-4d03-bff1-a6808fc0f04d/js/background.js:2:796340 [background.js:2:733345](moz-extension://e6b9255a-b02e-4d03-bff1-a6808fc0f04d/js/background.js) _addError moz-extension://e6b9255a-b02e-4d03-bff1-a6808fc0f04d/js/background.js:2 logError moz-extension://e6b9255a-b02e-4d03-bff1-a6808fc0f04d/js/background.js:2 _sendMessage moz-extension://e6b9255a-b02e-4d03-bff1-a6808fc0f04d/js/background.js:2 ```
ascpial commented 1 year ago

The issue is a more general version of #229

marius-wieschollek commented 1 year ago

Closing as duplicate of #229