Example: I want to use the interface of nsILocalFile in Javascript, how to find the corresponding Contract ID("@mozilla.org/file/local;1")? Is there a map in the source code?
How to find Contract ID by interface name?
251 Views Asked by windywater At
1
There are 1 best solutions below
Related Questions in FIREFOX-ADDON
- Firefox SDK Add-on - How to start
- Copy to clipboard from Firefox add-on content script
- return of CERT_FindUserCertByUsage in javascript
- Js-ctypes third part dll with string return
- Multi-platform deployment of a Firefox extension
- How get all cookies in the given url using javascript or selenium?
- Manual adding firefox for android addon
- Variable is not defined error in my Firefox extension
- How can open Firefox developer tools in my extension's sidebar?
- Warning popup window for add-on installation
- Firefox Addons and message passing
- Is it possible to take screenshots from Firefox for Android extension?
- Blank Firefox addon panel page with multiple windows
- nsICacheService doesn't work in Firefox 38
- Cant load youtube api in frame
Related Questions in XPCOM
- How to create a Thunderbird native extension?
- How to get nsIDOMHTMLDocument in GeckoFx?
- How to write Firefox plugin with C# and mono?
- How to find Contract ID by interface name?
- Creating Add-on for Firefox using XPCOM and JavaScript
- Last inserted id from SQLite in FireFox add-on
- Greasemonkey & http-on-modify-request
- Native NPAPI plugin isn't loaded by Firefox Beta 4
- Handling and aborting downloads from Firefox extension
- NS_ERROR_FAILURE with absent property
- How to get browser proxy from NPAPI plugin, without using xpcomglue?
- Firefox not loading XPCOM Component under Fedora
- XPI extension with XPCOM
- Monitor outgoing request body using nsihttpchannel
- Expose an XPCOM component to javascript in a web page
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You don't. This isn't a one-to-one relationship between contracts and interfaces but a many-to-many one:
But, often it is a one-to-one relationship in practice. E.g. if I wanted to find out about what components implement
nsILocalFile, I'd search it in the sources, for instance:line 1255 -- let file = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile);.jsones.Other times, the contract ids are even specified in the idl itself, e.g. in
nsITimer.idl(at the bottom).The most commonly used interfaces usually are also present on MDN incl. contracts, e.g.
nsILocalFile.