Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

console.logs from Snap's context don't seem to make it to Firefox extension's background.html console #722

Open
ziad-saab opened this issue Aug 29, 2022 · 6 comments
Labels
type-bug Something isn't working

Comments

@ziad-saab
Copy link
Contributor

Tried in both the published extension and latest develop. Steps to reproduce:

  1. Load the "template snap" basic MetaMask Snap
  2. In the "hello" handler of onRpcRequest, add a console.log before returning
  3. Run the template snap with yarn start
  4. Go to Settings > Extensions > and Inspect the MetaMask background.html process
  5. Open localhost:8080 in Firefox
  6. Connect the snap
  7. Call the "hello" function
  8. Observe the lack of console.log in the Firefox debugger
@ritave ritave added the type-bug Something isn't working label Sep 8, 2022
@Montoya
Copy link
Collaborator

Montoya commented Sep 13, 2022

We will address this later on when we revisit Firefox testing

@eldenpark
Copy link

Still can't debug in Firefox. Console logging doesn't seem to reach the panel.

Steps I followed:

  1. Type about:debugging in the location bar
  2. Click Inspect on the "Metamask Flask" add-on.

image
image

@andreolf
Copy link
Member

Any update on this? @eldenpark came to our booth at ETHGlobal Istanbul asking if this is solved

@BTQ-Alex
Copy link

BTQ-Alex commented Feb 29, 2024

Can confirm this issue still persist.

  • Firefox: 123.0 (64-bit)
  • MetaMask Flask: 11.10.1flask0

Steps to reproduce: follow ziad-saab 's metamask-snaps-transaction-insights-workshop

@noahsilencelab
Copy link

noahsilencelab commented May 20, 2024

Are there any ways to work around with this issue? Happens to me too:

  • Firefox: 124.0.1 (64-bit)
  • MetaMask Flask: 11.14.0flask0

@Montoya
Copy link
Collaborator

Montoya commented May 20, 2024

We do not have a fix for this issue. For now, if you need logging, we recommend testing in Google Chrome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants