Skip to content
This repository has been archived by the owner on Aug 13, 2018. It is now read-only.

Consider support for debugging chrome/web extensions #69

Open
jonathanKingston opened this issue Jan 6, 2017 · 5 comments
Open

Consider support for debugging chrome/web extensions #69

jonathanKingston opened this issue Jan 6, 2017 · 5 comments

Comments

@jonathanKingston
Copy link

Currently there isn't support for this addon in the 'Browser Toolbox' or when using about:debugging for a WebExtension.

This makes debugging any WebExtension that uses sockets very hard to debug within Firefox.

@janodvarko
Copy link
Member

Do you have an example WebExtension that uses sockets?

Honza

@jonathanKingston
Copy link
Author

The one I was trying to debug was this patch:
jonathanKingston/Signal-Desktop@de95079

To run the extension clone my version of the repo in the branch firefox-extension. Then load in about:debugging.

You can see where I was manually using console.logs to try and check before the data is sent over the sockets. Having an idea of what messages are passed by Firefox would make this a lot simpler to debug.

@janodvarko
Copy link
Member

@esphen Any tips who we could solve this?

Honza

@eliihen
Copy link
Member

eliihen commented Jan 7, 2017

Ooh, signal being developed for Firefox? Sweet, I've been waiting for that.

I definitely agree that this would be a pretty useful feature, so I looked into this. In my limited research, I couldn't find any devtools extensions that were present in the Browser Toolbox, only in the F12 developer tools.

The way I see it is there are two ways forward:

  1. Figure out if Firefox supports devtools extensions in the Browser Toolbox. Looks to me like no, but I could be wrong. I understand why it wouldn't, as that could potentially have significant security implications. In any case, doing this might need an extension to the devtools API.
  2. Integrate websocket monitor into the devtools directly. This has been talked about before, but I don't know where we currently stand on this.

@jonathanKingston
Copy link
Author

To clarify, the Signal work was me mostly messing about and I wasn't able to debug everything to put in a patch to them.

I opened #75 to discuss the lifetime of this extension.

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