communicating between a command line handler and an extension

I have a command line handler that sets preferences for my extension. 
This works well for FF2, but in FF3 nsIPrefBranch2.setCharPref() does 
not work.  Are there other ways to send data to extension from command 
line handlers?  The only other way I've see is to open a window and pass 
args.

Thanks,
John.
0
John
10/18/2007 8:49:39 PM
mozilla.dev.extensions 5694 articles. 0 followers. Post Follow

3 Replies
470 Views

Similar Articles

[PageSpeed] 34
Get it on Google Play
Get it on Apple App Store

On 10/19/07, John J Barton <johnjbarton@johnjbarton.com> wrote:
> I have a command line handler that sets preferences for my extension.
> This works well for FF2, but in FF3 nsIPrefBranch2.setCharPref() does
> not work.  Are there other ways to send data to extension from command
> line handlers?  The only other way I've see is to open a window and pass
> args.
>
What does "does not work" mean exactly? Do you get an error message in
the Error Console? Does it throw? Does it not throw but still has no
effect?

Did you try running it in a debug build? Did you test with the latest
nightly? Do you have a test component one can use to reproduce the
problem?

Nickolay
0
Nickolay
10/19/2007 8:50:46 PM
Nickolay Ponomarev wrote:
> On 10/19/07, John J Barton <johnjbarton@johnjbarton.com> wrote:
>> I have a command line handler that sets preferences for my extension.
>> This works well for FF2, but in FF3 nsIPrefBranch2.setCharPref() does
>> not work.  Are there other ways to send data to extension from command
>> line handlers?  The only other way I've see is to open a window and pass
>> args.
>>
> What does "does not work" mean exactly? Do you get an error message in
> the Error Console? Does it throw? Does it not throw but still has no
> effect?
> 
> Did you try running it in a debug build? Did you test with the latest
> nightly? Do you have a test component one can use to reproduce the
> problem?
> 
> Nickolay

Sorry, I hate it when people post to Firebug group "its broken" EOM.
Here is the report on nsIPrefBranch2
https://bugzilla.mozilla.org/show_bug.cgi?id=400210
In the meantime I went back to FF2 and made progress but generally I'd 
like to keep on FF3, hence my question

John.
0
John
10/19/2007 11:29:06 PM
On 10/20/07, John J Barton <johnjbarton@johnjbarton.com> wrote:
> Here is the report on nsIPrefBranch2
> https://bugzilla.mozilla.org/show_bug.cgi?id=400210
> In the meantime I went back to FF2 and made progress but generally I'd
> like to keep on FF3, hence my question
>
OK, I followed up in that bug. You really should provide more detail
when asking for help or reporting bugs.

Nickolay
0
Nickolay
10/20/2007 12:52:28 AM
Reply:

Similar Artilces:

How to pass command line arguments to an extension using a command line on MacOS
I am developing an extension that processes some command line options. I want to invoke the Firefox from a command line like this: > ...../firefox -myarg1 -myarg2 I am running into a problem on Mac OS. When I run such command when there is no FireFox running it works fine. However if I run the command again I get an error saying that there is already an instance of Firefox running and only one instance can run at a time (paraphrasing here). I have tried to use the -remote option but no luck. Does anyone know how to solve this problem? Does anyone know if invoking of chatzill...

How to pass command line arguments to an extension using a command line on MacOS?
I am developing an extension that processes some command line options. I want to invoke the Firefox from a command line like this: > ...../firefox -myarg1 -myarg2 I am running into a problem on Mac OS. When I run such command when there is no FireFox running it works fine. However if I run the command again I get an error saying that there is already an instance of Firefox running and only one instance can run at a time (paraphrasing here). I have tried to use the -remote option but no luck. Does anyone know how to solve this problem? Does anyone know if invoking of chatzill...

Starting extension from command line
Ok - I have my extension running. I used livehttpheaders as a template. My extension fires off from the Tools menubar. But now let's say I want to start firefox (with command line args) and open my extension as well. If I use firefox -chrome chrome://myext/content/myext.xul that will open my extension - but there is no firefox browser. I tried firefox & firefox -chrome chrome://myext/content/myext.xul but that brings up the profiles dlg box. How can I open firefox AND my extension from a shell script ? Thanks charlie schmitt wrote: > How can I open...

Command-line Extension Installer
Something along the lines of install-mozilla-extension (--firefox|--thunderbird|...) \ ext1 ext2 ... Where extN is either a file or a URL, in either case something .xpi. Something like this would make remote/bulk installing/upgrading/extending of mozilla+family installations much easier. Cheers, Carlo On 2005-01-09 18:07, Carlo Graziani wrote: > Something along the lines of > > install-mozilla-extension (--firefox|--thunderbird|...) \ > ext1 ext2 ... > > Where extN is either a file or a...

Save Extensions Extension
That ISN'T bafflegab. LOL I'm looking for an extension that saves extensions and themes so if I have a system wide crash I can quickly resurrect my Firefox to the state it was in prior to having to reformat the hard drive. Thanks! On 22-02-2008 15:09 CET, stevezygote composed this enchanting statement: > That ISN'T bafflegab. LOL > > I'm looking for an extension that saves extensions and themes so if I have a > system wide crash I can quickly resurrect my Firefox to the state it was in > prior to having to reformat the hard drive. > &...

Command line extension install
Hi, We're an open-source project building a virtual machine dev env for LAMP. https://github.com/quickstart/quickstart-drupal/wiki We'd like to include some common web development extensions. Our build system is commandline Puppet scripts. We'd prefer to not have a manual configuration - (20 manual configurations is alot of time for testing and building) What's the best way to install extensions? This wouldn't work if Firefox wouldn't do updates: https://developer.mozilla.org/en-US/docs/Installing_extensions This didn't work on Ubuntu 12.04 /usr/l...

command line arguments for extension
Hello, I am writing an extension which stores information about mail transfer, stored files etc. in a RDF-repository to make it available for other applications. Now I want to start thunderbird with a messagID as command line argument so that my extension can show this message (afaik there is no built-in command line argument for that). My question now is, how can I access command line arguments in my extension? Thx for your help, David einStein wrote: > Hello, > > I am writing an extension which stores information about mail > transfer, stored files etc. in a...

extension from command line thunderbird
--001a113bc2b69fae13050ed19b2b Content-Type: text/plain; charset=UTF-8 Hi! Could you help me: is it possible yo install extension from command in the thunderbird? Regards. --001a113bc2b69fae13050ed19b2b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi!<div><br></div><div>Could you help me: is it possible y= o install=C2=A0extension from command in the thunderbird?</div><div><br></d= iv><div><br></div><div>Regards.</div></d...

(re)install an extension from command line
Hi all. I'm developing a firefox extension non bootstrap, and it would be very helpful to me to automatize its installation for rapid development. Specially I would like to be able to restart firefox from command line and reinstall my extension. I have this bash / bat script that builds the xpi file for the extension. Now, I have to drop the xpi file to firefrox using the mouse and answer 2 dialogs for restarting firefox an be able to test my extension changes. This is not practical to me and I would like to reduce this work and be able to reinstall my extension using ...

Silent command line uninstall of firfox extensions?
Hi. Does anyone know of a command line argument to silently uninstall a firefox extension? Many thanks. Akin On 11/04/2010 07:29 AM, Akin Smith wrote: > Hi. > > Does anyone know of a command line argument to silently uninstall a firefox > extension? Many thanks. > > Akin > > maybe here? https://wiki.mozilla.org/Installer:Command_Line_Arguments ...

determining which plugins and extensions are installed from the command line
Hello, I am working on automated bug triage for Firefox and Thunderbird on Ubuntu(Linux). I am wondering if it is possible to determine which plugins and extensions are installed via the command line. Currently, we ask the bug reporter to look in about:plugins to see which plugins they have installed. I would like to skip this step so that the information is included in the orginal issue report. Thanks David Farning dfarning@gmail.com wrote: > Hello, > > I am working on automated bug triage for Firefox and Thunderbird on > Ubuntu(Linux). I am wondering if it...

Installing firefox / extension from command line on windows ?
Hi , I need to install firefox and a extension for it remotely on 40 machines at my workplace. Is there a way to script this for windows. The extension needs to be installed only for non-admin user. thanks in advance, vivekian vivekian wrote: > Hi , > > I need to install firefox and a extension for it remotely on 40 > machines at my workplace. Is there a way to script this for windows. > The extension needs to be installed only for non-admin user. > > thanks in advance, > vivekian > This link may be helpful : http://www.mozilla.org/proje...

SessionSaver extension missing from Tools => Extensions => Get More Extensions
SessionSaver extension missing from Tools => Extensions => Get More Extensions or https://update.mozilla.org/extensions/?application=firefox "Adam" <adam@no_thanks.com> wrote in message news:z3old.8535$zx1.2605@newssvr13.news.prodigy.com... > > SessionSaver extension missing from > Tools => Extensions => Get More Extensions or > https://update.mozilla.org/extensions/?application=firefox > > > SessionSaver extension missing from > Tools => Extensions => Get More Extensions The most important extension (with t...

How to communicate with extension?
We're try to work with a Firefox extension, Zotero. Zotero exposes an API to other extensions: Zotero.doSomething("foo"); You can get the Zotero object with a call to the Components object: var Zotero = Components.classes["@zotero.org/Zotero;1"] ..getService(Components.interfaces.nsISupports) ..wrappedJSObject; Here's the problem: I want to call the API from within Javascript on a web page, and I get security exceptions. What's the best way around this? I could write my own Firefox extension that serves as a bridge between the two, but I&#...

Web resources about - communicating between a command line handler and an extension - mozilla.dev.extensions

Communicating sequential processes - Wikipedia, the free encyclopedia
The theory of CSP itself is also still the subject of active research, including work to increase its range of practical applicability (e.g., ...

Joe Hockey confirms bigger budget deficit; admits Coalition failures in communicating policies
Treasurer Joe Hockey has confirmed the government will reveal a larger deficit when it hands down its mid year budget update next week, as well ...

Aggrieved Indonesia says Australia not communicating on border protection and asylum seeker issues
Indonesia has again criticised Australia over a lack of communication on border and refugee issues and taken a swipe at the continuation of offshore ...

Smart governments realise they must find new ways of communicating
The government is unable to get its message across and its frustration is growing.

Four ways of communicating that are killing your relationship
While the lines might be well and truly open, it turns out that it&#8217;s not just what you say, but how you say it that matters.

China communicating with parties on easing Korean tensions: FM spokesman
China communicating with parties on easing Korean tensions: FM spokesman People's Daily Online "China has maintained close communication with ...

Reuters: Tim Cook and Google’s Larry Page are communicating on patents
Apple CEO Tim Cook and Google CEO Larry Page are reportedly in talks regarding mobile patent disputes between the companies. According to Reuters, ...

Why Are The Lawyers Pestering Us? Communicating About Law And Compliance
Write and speak comprehensibly as a lawyer, and more people will listen to your message.

How the NYPD Is Communicating About Times Square Terror Threat
Amid the fear associated with the recent ISIS propaganda video threatening New York City particularly Times Square the New York Police Department ...

What’s in a Voice? Communicating Who You Are
Learn more about our Scrum and Agile training sessions on WorldMindware.com In doing business of any kind, we commonly follow the advice to ...

Resources last updated: 12/12/2015 1:24:32 AM