Riess Howder
Riess Howder

Reputation: 405

Keeping cookies when testing an addon

I'm developing an addon using Firefox Add-on SDK. I am using cfx to run my addons when testing.

The app posts some text when highlighted to twitter.

The problem is each time I modify the code I have to log back into twitter. Is there any way to ensure cookies are saved whilst testing/debugging? Similar to what happens when you open and close Firefox normally?

Upvotes: 2

Views: 266

Answers (1)

Michael Paulukonis
Michael Paulukonis

Reputation: 9100

What are your parameters for calling cfx? By default, cxf executes in a new profile.

You need to use -p PROFILEDIR or --profiledir=PROFILEDIR param to use a specific profile, and associated settings.

From notes @ https://jetpack.mozillalabs.com/sdk/1.0b5/docs/dev-guide/addon-development/cfx-tool.html

Upvotes: 1

Related Questions