capyloon / nutria

Experimental Web Based OS Frontend
GNU Affero General Public License v3.0
189 stars 20 forks source link

Web extension Hiro Wallet shows empty popup #52

Open friedger opened 1 year ago

friedger commented 1 year ago

Describe the bug The web extension Hiro Wallet (https://addons.mozilla.org/en-GB/firefox/addon/hiro-wallet/) only shows an empty popup

Environment

To Reproduce Steps to reproduce the behavior:

  1. Go to https://addons.mozilla.org/en-GB/firefox/addon/hiro-wallet/
  2. Install the extension
  3. After installation click on three dots and on the black Stacks icon
  4. See blank window

Expected behavior The popup should show the normal wallet content.

Screenshots Screenshot from 2022-11-30 19-20-19

Additional context I guess this is the relevant log output:

console.log: "WebExtensionsDelegate: click on {e22ae397-03d7-4622-bd8f-ecaca8c9b277}"
console.log: "ActionsDispatcher::dispatch hide-quick-settings"
console.log: "BrowserActionPopup::setAction action=[object Object]"
console.log: "BrowserActionPopup::render action=[object Object]"
console.log: "Embedding: provideProcess extension (max=1)"
console.log: "Embedding: No reusable process found, will create a new one."
console.log: "WifiApi: receiveMessage child-process-shutdown {\"manager\":{}}"
JavaScript error: resource://gre/modules/PushComponents.sys.mjs, line 225: TypeError: this.service is undefined
WebViewChild: Window created: moz-extension://e3cca313-0298-4a8e-bc15-86dca84e6473/popup.html 
console.log: "ext-ExtensionChild.jsm loaded"
WebViewChild: Got metaChanged: (viewport) width=device-width,initial-scale=1 
WebViewChild: Got linkAdded: (moz-extension://e3cca313-0298-4a8e-bc15-86dca84e6473/assets/connect-logo/Stacks128w.png) icon 
WebViewChild: Got iconchanged: (moz-extension://e3cca313-0298-4a8e-bc15-86dca84e6473/assets/connect-logo/Stacks128w.png) 
console.log: WebExtensions: ext-c-b2g.js loaded
WebViewChild: Got afterpaint event: moz-extension://e3cca313-0298-4a8e-bc15-86dca84e6473/popup.html 
JavaScript warning: moz-extension://e3cca313-0298-4a8e-bc15-86dca84e6473/735.js, line 14: unreachable code after return statement
JavaScript warning: moz-extension://e3cca313-0298-4a8e-bc15-86dca84e6473/735.js, line 14: unreachable code after return statement
console.log: "%c \u26A0\uFE0F Warning:\n   Do not paste any code here.\n   This is a developer tool which could be used to steal your funds." "color: red; font-size: 20px"
Extension error: TypeError: can't convert undefined to object moz-extension://e3cca313-0298-4a8e-bc15-86dca84e6473/index.js 29
[[Exception stack
79922/Bc/e/</</<@moz-extension://e3cca313-0298-4a8e-bc15-86dca84e6473/index.js:29:77791
Current stack
applySafeWithoutClone@resource://gre/modules/ExtensionCommon.jsm:633:13
wrapPromise/</<@resource://gre/modules/ExtensionCommon.jsm:829:20
withLastError@resource://gre/modules/ExtensionCommon.jsm:748:14
wrapPromise/<@resource://gre/modules/ExtensionCommon.jsm:817:16
]]
fabricedesre commented 1 year ago

Thanks for the report! Indeed that error stack needs to be looked at:

Extension error: TypeError: can't convert undefined to object moz-extension://e3cca313-0298-4a8e-bc15-86dca84e6473/index.js 29
[[Exception stack
79922/Bc/e/</</<@moz-extension://e3cca313-0298-4a8e-bc15-86dca84e6473/index.js:29:77791
Current stack
applySafeWithoutClone@resource://gre/modules/ExtensionCommon.jsm:633:13
wrapPromise/</<@resource://gre/modules/ExtensionCommon.jsm:829:20
withLastError@resource://gre/modules/ExtensionCommon.jsm:748:14
wrapPromise/<@resource://gre/modules/ExtensionCommon.jsm:817:16
]]

Do you know if the source of this extension is available?

friedger commented 1 year ago

It is here: https://github.com/hirosystems/stacks-wallet-web I am happy to help navigate the code.