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?
255 Views Asked by windywater At
1
There are 1 best solutions below
Related Questions in FIREFOX-ADDON
- Firefox extension background script terminated preemptively
- Can be their an extension to save pages in as offline in the browser itself?
- I'm building addon for firefox user can take screenshot, but browser.runtime.sendMessage returns undefined
- Detecting how much 'White' color there is, on an embedded video on a webpage
- How to programatically fast forward video on a website
- Convert code from manifest v2 to v3 chrome extension
- How to request host_permissions at install time with Manifest V3?
- How to store fetch headers in javacript from website I don't own?
- Firefox debugger server changes my search bar coloring
- How can the omnibox suggestions be styled in Firefox?
- How do I fix the following issues with my port of a manifest v2 browser extension to manifest v3?
- How Can I Edit the Body of an API Request With a Firefox Addon
- HTMLButtonElement.click() in content script doesn't work in second screen
- Error sending message to background script: Error: Could not establish connection. Receiving end does not exist (FireFox Extension Test)
- crossOrigin blocks requests for translate.google.com
Related Questions in XPCOM
- How to load fingerprinting js asynchronously and get visitor id
- How to import cookies with XPCOM
- How to use XPCOM in iMacros to load data and write data
- Hot to list all files from a folder with XPCOM
- Attach SQLITE Databaes in Zotero (i.e. Firefox XPCOM/XUL) extension
- Legacy extension not loading on thunderbird-59
- Windows 10 COMException when loading geckofx 45.0.34
- What is missing that I get an NS_BASE_STREAM_CLOSED error?
- Sending message, XPCOM object, that cannot be cloned
- How to get nsIDOMHTMLDocument in GeckoFx?
- SWT Browser when is executed JavaScript "successful"?
- How to create a Thunderbird native extension?
- nsICookieManager XPCOM Interface does not work properly
- get inReplyTo and references from Thunderbird mail header
- How can I get the JSContext of a nsIDOMWindow in c++?
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 # Hahtags
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.