How to test privileged packaged apps on Firefox for Desktop?

本小妞迷上赌 提交于 2019-11-30 18:11:21

问题


It is possible to distribute a packaged app via Firefox Marketplace for installation on Firefox for Desktop. Apps for Firefox OS devices I can test comfortably via about:app-manager either on a USB connected device, or with the simulator.

How can I test a packaged app on Firefox for Desktop?

Update

I found that I can debug an app that I have installed from Marketplace by starting it with the -debug option and an optional port number:

 C:\Users\Felix\AppData\Roaming\thetacontrol-56cab87ea3eecf190668cfb505f92c56>"Theta Control.exe" -debug 6000

The next step is to connect to the port from Firefox developer tools:

Still I don't know how to debug an app that is not (yet) on Marketplace.


回答1:


Didn't found the way to debug privileged app either, so I've created bug on bugzilla, vote, please to solve this issue faster: https://bugzilla.mozilla.org/show_bug.cgi?id=1038533




回答2:


You can refer to debugging guideline of web apps for Friefox desktop.

To access the console (and other remote developer tools), start the app from a command line with the -debug flag and optionally specifying a port (default: 6000). For example, on a Mac the Mykzilla test app is started with:

/Applications/Mykzilla.app/Contents/MacOS/webapprt -debug 6000

Then, in Firefox, on the Developer Tools menu click Connect… and connect to the “localhost” host at the port you specified. After clicking Connect in Firefox, go back to your app and confirm the connection. Then return to Firefox and select a “tab” (i.e. an open window in your app) or “Main Process” to debug the Web Runtime’s chrome code.

Then a copy of Firefox’s Remote Developer Tools should open in a new window, and it should be connected to the “tab” you selected.



来源:https://stackoverflow.com/questions/24339502/how-to-test-privileged-packaged-apps-on-firefox-for-desktop

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!