0

I studied in an open-source Firefox plugin, I wanted to know what action does the following code snippet. I knew nothing of the code??

enter: function()
        {
            if (this.xpcomObject != undefined || this.createXPCOMObject())
                this.xpcomObject.launchFunctionW("enter", "", "", "");
        },
HamiD
  • 197
  • 1
  • 2
  • 11

1 Answers1

0

Searching the Mozilla source code for "launchFunctionW" yields zero results (see http://mxr.mozilla.org/comm-central/search?string=launchfunctionw&filter=^[^\0]*%24&tree=comm-central for an attempt to do just that). Therefore, this function is likely to be defined by your addon.

From the naming of the function and the presence of an XPCOM object, I suspect this function may just be written in C++. Is there a binary object lying around? Do you have the source for it? Have you tried grepping the source directory for "launchFunctionW"?

It's very hard to help you with such scarce information...

Jonathan Protzenko
  • 1,709
  • 8
  • 13