Search completed in 1.78 seconds.
nsICategoryManager
xpcom/components/nsi
categorymanager.idlscriptable this interface provides access to a data structure that holds a list of name-value pairs, called categories, where each value is a list of strings.
... inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) implemented by: @mozilla.org/
categorymanager;1.
... to use this service, use: var
categorymanager = components.classes["@mozilla.org/
categorymanager;1"] .getservice(components.interfaces.nsi
categorymanager); method overview string add
categoryentry(in string a
category, in string aentry, in string avalue, in boolean apersist, in boolean areplace); void delete
category(in string a
category); void delete
categoryentry(in string a
category, in string aentry, in boolean apersist); nsisimpleenumerator enumeratecategories(); nsisimpleenumerator enumerate
category(in string a
category); string get
categoryentry(in string a
category, in string aentry); methods add
categoryentry() this method sets the value for the given entry on the given
category.
...And 29 more matches
msAudioCategory - Web APIs
the msaudio
category property of the html <audio> element, is a read/write proprietary attribute, specific to internet explorer and microsoft edge.
... msaudio
category specifies the purpose of the audio or video media, such as background audio or alerts.
... syntax <audio controls="controls" msaudio
category="backgroundcapablemedia"> </audio> the msaudio
category property offers a variety of values that can enhance the behavior of your audio-aware app.
...And 4 more matches
XPCOM category image-sniffing-services
in firefox 3, a new xpcom
category was added in bug 391667 to allow "third-party" xpcom components to identify images based on their content.
... if mozilla's built-in image code cannot identify an image, then any xpcom components implementing the nsicontentsniffer interface may register under the "image-sniffing-services"
category, and will be queried to determine the mime type of the image being downloaded.
... note: this
category was removed.
AudioContextLatencyCategory - Web APIs
the audiocontextlatency
category type is an enumerated set of strings which are used to select one of a number of default values for acceptable maximum latency of an audio context.
... audiocontextlatency
category can be used when constructing a new audiocontext by passing one of these values as the latencyhint option in the audiocontext() constructor's options dictionary.
... specifications specification status comment web audio apithe definition of 'audiocontextlatency
category' in that specification.
nsCategoryManager
« xpcom api reference summary the xpcom
category manager.
... class id 16d222a6-1dd2-11b2-b693-f38b02c021b2 contractid @mozilla.org/
categorymanager;1 supported interfaces nsi
categorymanager remarks this component is a singleton and should therefore be accessed via the xpcom service manager.
addCategoryEntry
this content is now available at nsi
categorymanager.add
categoryentry().
deleteCategory
this content is now available at nsi
categorymanager.delete
category().
enumerateCategory
this content is now available at nsi
categorymanager.enumerate
category().
getCategoryEntry
this content is now available at nsi
categorymanager.get
categoryentry().
Starting WebLock
this service, the nsi
categoryservice, is what xpcom and gecko embedding applications use to persist lists of nsiobserver components that want to have startup notification.
... the nsi
categoryservice maintains sets of name-value pairs like the one below.
... the
category manager every
category is identified by a string that represents the name of the
category.
...And 22 more matches
Index
95 xpcom
category image-sniffing-services add-ons, extensions, needscontent in versions of firefox prior to firefox 3, extensions could add decoders for new image types.
...the component will be recognized by xpcom and registered with the
category manager so that it starts up when xpcom initializes.
... 153 ns
categorymanager components, components:frozen, xpcom, xpcom api reference the xpcom
category manager.
...And 10 more matches
Content categories - Developer guides
main content categories metadata content elements belonging to the metadata content
category modify the presentation or the behavior of the rest of the document, set up links to other documents, or convey other out of band information.
... elements belonging to this
category are <base>, <command>, <link>, <meta>, <noscript>, <script>, <style> and <title>.
... flow content elements belonging to the flow content
category typically contain text or embedded content.
...And 10 more matches
nsIScriptError
method overview void init(in wstring message, in wstring sourcename, in wstring sourceline, in pruint32 linenumber, in pruint32 columnnumber, in pruint32 flags, in string
category); void initwithwindowid(in wstring message, in wstring sourcename, in wstring sourceline, in pruint32 linenumber, in pruint32 columnnumber, in pruint32 flags, in string
category, in unsigned long long innerwindowid); autf8string tostring(); attributes attribute type description
category string a string indicating the
category of error that o...
... void init( in wstring message, in wstring sourcename, in wstring sourceline, in pruint32 linenumber, in pruint32 columnnumber, in pruint32 flags, in string
category ); parameters message the text of the message to add to the log.
...
category a string indicating what kind of code caused the message.
...And 7 more matches
Finishing the Component
the component will be recognized by xpcom and registered with the
category manager so that it starts up when xpcom initializes.
... ns_impl_isupports3(weblock, nsiobserver, iweblock, nsicontentpolicy); receiving notifications to receive notifications, you must register as a new
category.
... you have already registered as a
category to receive startup notification.
...And 4 more matches
Receiving startup notifications
the important thing to note is that now instead of registering with the
category manager programmatically as was done in the past, you add lines to your chrome.manifest to let the application handle it for you.
... for example:
category profile-after-change mycomponent @foobar/mycomponent;1 important: in the past, the contract id of the
category entry started with "service," if the component was implemented as a service.
...receiving startup notifications prior to gecko 2.0 (firefox 4) to receive startup notifications, one needs to register with the "app-startup"
category using nsi
categorymanager; having done so, the component will receive these startup notifications, including: xpcom-startup sent when xpcom finishes starting up.
...And 4 more matches
XPCOMUtils.jsm
_xpcom_categories: [{ // each object in the array specifies the parameters to pass to // nsi
categorymanager.add
categoryentry().
...
category: "some-
category", // optional, defaults to the object's classdescription entry: "entry name", // optional, defaults to the object's contractid (unless // 'service' is specified) value: "...", // optional, defaults to false.
... when set to true, and only if 'value' // is not specified, the concatenation of the string "service," and the // object's contractid is passed as avalue parameter of add
categoryentry.
...And 3 more matches
XPCOM changes in Gecko 2.0
chrome.manifest: # the {classid} here must match the classid in mycomponent.js component {e6b866e3-41b2-4f05-a4d2-3d4bde0f7ef8} components/mycomponent.js contract @foobar/mycomponent;1 {e6b866e3-41b2-4f05-a4d2-3d4bde0f7ef8}
category profile-after-change mycomponent @foobar/mycomponent;1 the javascript code no longer exports a nsgetmodule() function.
...
category registration prior to gecko 2, extensions could listen for the xpcom-startup and app-startup notifications during startup, and perform actions during those.
...as of gecko 1.9.1, this is no longer the case, however; you can now register for profile-after-change using the
category manager.
...And 3 more matches
Observer Notifications
if your component requires access to the user profile, or any services which require access to the profile (preferences, bookmarks, and so on) then a common pattern is to register with the nsi
categorymanager for the app-startup topic which can be done in the component's registration code, and then in that notification register with the observer service for the profile-after-change notification.
... starting in firefox 3.5 components can simply register for the profile-after-change notification in nsi
categorymanager.
...to receive this notification you have to register with nsi
categorymanager.
...And 3 more matches
Console messages - Firefox Developer Tools
additional context menu options are described in the subsection for the message
category they apply to.
... reflow events the web console also logs reflow events under the css
category.
... the logging
category includes messages logged using the console api.
...And 3 more matches
Creating localizable web applications
the url http://getpersonas.com/nature/popular/2 points to the second page of the listing of the popular personas in the "nature"
category.
... you could easily use list($
category, $tab, $page) = explode('/', $path); to get this information directly from the url.
... after that, it is tempting to use the $
category or $tab variables in the interface.
...And 2 more matches
nsIJumpListBuilder
constants constant value description jumplist_
category_tasks 0 tasks are common actions performed by users within the application.
... jumplist_
category_recent 1 recent lists are based on window's recent document lists.
... jumplist_
category_frequent 2 frequent lists are based on window's recent document lists.
...And 2 more matches
Border-image generator - CSS: Cascading Style Sheets
<div class="guideline" data-axis="y" data-topic="slice-bottom"></div> <div class="guideline" data-axis="x" data-topic="slice-left"></div> </div> <div id="preview"> </div> </div> <!-- controls --> <div id="controls" class="group section"> <!-- border-image-slice --> <div id="border-slice-control" class="
category"> <div class="title"> border-image-slice </div> <div class="property"> <div class="name">fill</div> <div class="ui-checkbox" data-topic='slice-fill'></div> </div> </div> <!-- border-image-width --> <div id="border-width-control" class="
category"> <div class=...
..."title"> border-image-width </div> </div> <!-- border-image-outset --> <div id="border-outset-control" class="
category"> <div class="title"> border-image-outset </div> </div> <!-- other-settings --> <div id="aditional-properties" class="
category"> <div class="title"> aditional-properties </div> <div class="property"> <div class="name"> repeat-x </div> <div class="ui-dropdown border-repeat" data-topic="image-repeat-x" data-selected="2"> <div data-value="0">repeat</div> <div data-value="0">stretch</div> <div data-value="0">round</div> </div> ...
... data-max="10000" data-sensivity="3"></div> </div> <div class="property"> <div class="ui-input-slider" data-topic="preview-height" data-info="height" data-unit=" px" data-min="10" data-max="10000" data-sensivity="3"> </div> </div> </div> <div id="output" class="
category"> <div class="title"> css code </div> <div class="css-property"> <span class="name"> border-image-slice: </span> <span id="out-border-slice" class="value"> </span> </div> <div class="css-property"> <span class="name"> border-image-width: </span> <span id=...
...And 2 more matches
Box-shadow generator - CSS: Cascading Style Sheets
<div id="preview"> <div id="obj-element"> <div class="content"> </div> <div id="obj-before"> </div> <div id="obj-after"> </div> </div> </div> </div> </div> <div id="controls" class="group section"> <div class="wrap-left"> <div class="colorpicker
category"> <div class="title"> </div> <div id="colorpicker" class="group"> <div id="gradient" class="gradient"> <div id="gradient_picker"> </div> </div> <div id="hue" data-topic="hue" class="hue"> <div id="hue_selector"> </div> </div> ...
... <div class="block info"> <div class="input" data-topic="a" data-title='alpha:' data-action="alpha"></div> <div class="input" data-topic="hexa" data-title='' data-action="hexa"></div> </div> </div> </div> </div> <div class="wrap-right"> <div id="shadow_properties" class="
category"> <div class="title"> shadow properties </div> <div class="group"> <div class="group property"> <div class="ui-slider-name"> inset </div> <div class="ui-checkbox" data-topic='inset'></div> </div> <div class="slidergroup"> <div class="u...
...n="-100" data-max="100" data-step="1" data-value="50"> </div> <div class="ui-slider-btn-set" data-topic="spread" data-type="add"></div> <div class="ui-slider-input" data-topic="spread" data-unit="px"></div> </div> </div> </div> <div id="element_properties" class="
category"> <div class="title"> class element properties </div> <div class="group"> <div class="group property"> <div class="ui-slider-name"> border </div> <div class="ui-checkbox" data-topic='border-state' data-state="true"></div> </div> <div id="z-index" class="slide...
...And 2 more matches
XPCOM Objects - Archive of obsolete content
var countermodule = { // registerself, unregisterself, getclassobject, canunload }; the only thing you may need to change here is when you need to use the
category manager.
... the
category manager is a service that allows you to register your component under categories that are either pre-existing or you make up.
... the service also allows you to get all components registered in a
category and invoke methods on them.
... the add and delete calls to the
category manager would have to be done in the registerself and unregisterself methods: registerself : function(acompmgr, alocation, aloaderstr, atype) { let
categorymanager = cc[@mozilla.org/
categorymanager;1].getservice(ci.nsi
categorymanager); acompmgr.queryinterface(ci.nsicomponentregistrar); acompmgr.registerfactorylocation( class_id, class_name, contract_id, alocation, aloaderstr, atype);
categorymanager.add
categoryentry( "content-policy", "xulschool hello world", contract_id, true, true); }, in this case the component would need to implement ns...
Document Loading - From Load Start to Finding a Handler - Archive of obsolete content
category manager this is used in a last-ditch attempt to find a content listener.
... bird's eye view <map id="loaddiagrammap" name="loaddiagrammap"><area alt="(13) docontent()" coords="534,239,715,300" href="#nsiexternalhelperappservice::docontent"> <area alt="(10) get
categoryentry()" coords="575,418,821,418,821,455,629,455,629,484,575,484" href="#
categorymanager" shape="poly"> <area alt="(12)" coords="539,133,583,163" href="#stream-converter"> <area alt="(11)" coords="485,133,537,163" href="#contenthandler"> <area alt="(9)" coords="445,132,484,165" href="#nsdocumentopeninfo::dispatchcontent"> <area alt="(8)" coords="405,133,439,162" href="#onstartrequest-innards"> <ar...
...5,88,505,88,535,37,535" href="#registercontentlistener" shape="poly"> <area alt="(3) openuri() (nsuriloader)" coords="5,207,312,269" href="#openuri"> <area alt="(2)" coords="102,114,139,148" href="#internalload"> <area alt="(1) loaduri/onlinkclick" coords="77,5,449,59" href="#loaduri"> <area alt="nsiexternalhelperappservice" coords="527,305,839,339" href="#nsiexternalhelperappservice"> <area alt="
category manager" coords="683,467,807,527" href="#ns
categorymanager"> <area alt="nsdocumentopeninfo" coords="371,71,635,185" href="#nsdocumentopeninfo"> <area alt="necko" coords="721,113,821,157" href="#necko"> <area alt="nsuriloader" coords="23,335,215,455" href="#nsuriloader"> <area coords="227,515,485,575" href="#nsiuricontentlistener"> <area alt="nsdocshell" coords="47,83,203,153" href="#nsdocshell"><...
... if we still have not found an nsiuricontentlistener, we ask the
category manager whether it has an entry for the desired content type under the ns_content_listener_
categorymanager_entry key.
Providing Command-Line Options - Archive of obsolete content
extensions and xul applications can modify the way command line parameters are handled by writing a component that implements the nsicommandlinehandler interface and registering it in a
category.
... using the example to use this sample code, save the commandline.js file into the components directory and add the following lines to your chrome.manifest file: component {2991c315-b871-42cd-b33f-bfee4fcbf682} components/commandline.js contract @mozilla.org/commandlinehandler/general-startup;1?type=myapp {2991c315-b871-42cd-b33f-bfee4fcbf682}
category command-line-handler m-myapp @mozilla.org/commandlinehandler/general-startup;1?type=myapp the javascript code const cc = components.classes; const ci = components.interfaces; components.utils.import("resource://gre/modules/xpcomutils.jsm"); components.utils.import("resource://gre/modules/services.jsm"); // changeme: to the chrome uri of your extension or application const chrome_uri = "chrom...
...er function commandlinehandler() { }; commandlinehandler.prototype = { classdescription: "myapphandler", // changeme: generate a unique id classid: components.id('{2991c315-b871-42cd-b33f-bfee4fcbf682}'), // changeme: change the type in the contractid to be unique to your application contractid: "@mozilla.org/commandlinehandler/general-startup;1?type=myapp", _xpcom_categories: [{
category: "command-line-handler", // changeme: //
category names are sorted alphabetically.
... typical command-line handlers use a //
category that begins with the letter "m".
Additional Navigation - Archive of obsolete content
another thing that you cannot have is a triple where both variables would be unknown as in the following: <query> <content uri="?start"/> <member container="?start" child="?photo"/> <triple subject="?
category" predicate="http://purl.org/dc/elements/1.1/title" object="?title"/> </query> in this case when the template builder gets to the triple, neither the ?
category nor the ?title variables can be filled in so the builder doesn't know what to generate.
...one possibility is to just add another predicate for each photo with a literal value set to the
category.
... or, we could use a resource for each
category.
... this will allow us to associate additional properties to each
category and more easily navigate the graph in a template.
CommandLine - Archive of obsolete content
define your own command line handler component: components/clh.js const nsisupports = components.interfaces.nsisupports; const nsi
categorymanager = components.interfaces.nsi
categorymanager; const nsicomponentregistrar = components.interfaces.nsicomponentregistrar; const nsicommandline = components.interfaces.nsicommandline; const nsicommandlinehandler = components.interfaces.nsicommandlinehandler; const nsifactory = components.interfaces.nsifactory; const nsimodule = components.inte...
...rfaces.nsimodule; const class_id = components.id("178cfbb6-503c-11dc-8314-0800200c9a66"); const class_name = "applicationnameclh"; const contract_id = "@example.com/applicationname/clh;1"; const cld_
category = "m-applicationname"; var apphandler = { /* nsisupports */ queryinterface : function clh_qi(aiid) { if (aiid.equals(nsicommandlinehandler) || aiid.equals(nsifactory) || aiid.equals(nsisupports)) return this; throw components.results.ns_error_no_interface; }, /* nsicommandlinehandler */ handle : function clh_handle(acmdline) { var observerservice = components.classes["@mozilla.org/observer-service;1"] .getservice(components.interfaces.nsiobserverservice); observerservice.notifyobservers(acmdline, "comma...
...ce(aiid); throw components.results.ns_error_failure; }, registerself : function mod_regself(acompmgr, afilespec, alocation, atype) { var compreg = acompmgr.queryinterface(nsicomponentregistrar); compreg.registerfactorylocation(class_id, class_name, contract_id, afilespec, alocation, atype); var catman = components.classes["@mozilla.org/
categorymanager;1"] .getservice(nsi
categorymanager); catman.add
categoryentry("command-line-handler", cld_
category, contract_id, true, true); }, unregisterself : function mod_unreg(acompmgr, alocation, atype) { var compreg = acompmgr.queryinterface(nsicomponentregistrar); compreg.unregisterfactorylocation(class_id, alocation); v...
...ar catman = components.classes["@mozilla.org/
categorymanager;1"] .getservice(nsi
categorymanager); catman.delete
categoryentry("command-line-handler", cld_
category); }, canunload : function (acompmgr) { return true; } }; function nsgetmodule(acompmgr, afilespec) { return apphandlermodule; } create an observer that will get notified when arguments change: chrome/content/cmdline.js function commandlineobserver() { this.register(); } commandlineobserver.prototype = { observe: function(asubject, atopic, adata) { var cmdline = asubject.queryinterface(components.interfaces.nsicommandline); var test = cmdline.handleflagwithparam("test", false); alert("test = " + test); }, register: function() { var observerservice = components.cl...
Adding APIs to the navigator object
starting with gecko 9.0 (firefox 9.0 / thunderbird 9.0 / seamonkey 2.6), you can easily add new apis to the window.navigator object by using the
category manager.
... simply add an entry to the "javascript-navigator-property"
category.
... programmatically adding an object to navigator var
categorymanager = components.classes["@mozilla.org/
categorymanager;1"] .getservice(components.interfaces.nsi
categorymanager);
categorymanager.add
categoryentry("javascript-navigator-property", "myapi", my_contract_id, false, true); this adds a new object, myapi, to the window.navigator object.
... using a manifest to add an object to navigator you can also add an object to the window.navigator object by using the chrome manifest of an add-on: component {ffffffff-ffff-ffff-ffff-ffffffffffff} mycomponent.js contract @mozilla.org/mycomponent;1 {ffffffff-ffff-ffff-ffff-ffffffffffff}
category javascript-navigator-property mycomponent @mozilla.org/mycomponent;1 generate a guid and replace the "ffff" sections in both the component and contract lines with your guid.
nsIConsoleService
function mylogtoconsole(amessage, asourcename, asourceline, alinenumber, acolumnnumber, aflags, a
category) { var consoleservice = components.classes["@mozilla.org/consoleservice;1"] .getservice(components.interfaces.nsiconsoleservice); var scripterror = components.classes["@mozilla.org/scripterror;1"] .createinstance(components.interfaces.nsiscripterror); scripterror.init(amessage, asourcename, asourceline, alinenumber, ...
... acolumnnumber, aflags, a
category); consoleservice.logmessage(scripterror); } amessage — the string to be logged.
... a
category — a string indicating what kind of code caused the error message.
... there are quite a few
category strings and they do not currently seem to be listed in a single place.
nsIMessageWakeupService
requesting wakeups to request a wakeup, a wakeup condition must be registered with the
category manager in the "wakeup-request"
category.
... the easiest way to do this is to add the appropriate entry to the chrome manifest that registers your component (see
category in "chrome registration").
... to indicate a wakeup request in a manifest file, add a line that looks something like this:
category wakeup-request nscomponent @mozilla.org/myservice;1,nsimyinterface,getservice,mymessage1,mymessage2[,..] the
category entry value consists of a comma separate string that contains: the contract id for your component (e.g.
... alternatively, it is possible to register a wakeup entry programmatically via the nsi
categorymanager interface.
nsIScriptError2
method overview void initwithwindowid(in wstring message, in wstring sourcename, in wstring sourceline, in pruint32 linenumber, in pruint32 columnnumber, in pruint32 flags, in string
category, in unsigned long long innerwindowid); attributes attribute type description innerwindowid unsigned long long the inner window id with which the error is associated.
... methods initwithwindowid() void init( in wstring message, in wstring sourcename, in wstring sourceline, in pruint32 linenumber, in pruint32 columnnumber, in pruint32 flags, in string
category, in unsigned long long innerwindowid ); parameters message the text of the message to add to the log.
...
category a string indicating what kind of code caused the message.
... there are quite a few
category strings and they don't seem to be listed in a single place.
Index - Web APIs
136 audiocontextlatency
category api, audio, audio context, audiocontextlatency
category, enum, interface, media, reference, type, web audio, web audio api, latency the audiocontextlatency
category type is an enumerated set of strings which are used to select one of a number of default values for acceptable maximum latency of an audio context.
... 189 audiotrack.kind api, audio, audio track, audiotrack, html dom, media, property, read-only, reference, id, track the kind property contains a string indicating the
category of audio contained in the audiotrack.
... 1574 msaudio
category no summary!
... 4526 videotrack.kind api, html dom, media, property, read-only, reference, video, video track, videotrack, id, track the kind property contains a string indicating the
category of video contained in the videotrack.
RTCStatsReport - Web APIs
this statistics report contains a mapping of statistic
category string names to objects containing the corresponding statistics data.
... the statistics objects for each
category of statistic information, there is a dictionary whose properties provide the relevant information.
... the statistic categories the type gives the name of the statistic
category represented by the object, and is how you locate the specific type of data you need.
... the statistic
category names are members of the enumerated type rtcstatstype, as follows: candidate-pair an rtcicecandidatepairstats object providing statistics related to an rtcicetransport.
WebRTC Statistics API - Web APIs
upon looking up a statistic
category by name, you get an object containing the corresponding data.
... the table below shows the statistic categories and the corresponding dictionaries; for each statistic
category, the full hierarchy of rtcstats-based dictionaries are listed, so you can easily find all the available values.
... mapping of statistic
category names to the dictionaries they implement statistic
category name (rtcstatstype) description dictionaries implemented candidate-pair statistics describing the change from one rtcicetransport to another, such as during an ice restart.
... these statistics have all been moved to media-source, sender, receiver, outbound-rtp, and inbound-rtp, and this statistic
category type is thus obsolete and shouldn't be used anymore.
New Skin Notes - Archive of obsolete content
that'd work, too; you'd mentioned that it was very rarely used --beltzner the
category template must be improved, it looks very unpolished comparing to rest of devmo.
... -- gandalf unfortunately the
category styling is very much embedded into the mediawiki code.
...--callek is it possible to remove the blank space on
category pages, like
category:dom?by the way, it looks like this skin has the same problem as previous - the edit box,
category list on
category pages, and others are always below the end of the sidebar.
nsIContentPolicy - Archive of obsolete content
type_object 5 indicates a generic object (plugin-handled content typically falls under this
category).
...} // and this into your implementation file ns_impl_isupportsn(myclass, nsisupports, nsicontentpolicy, ...) note: before you can recieve notifications, you must register your plugin with nsi
categorymanager.
... char* previous = nsnull; nscomptr<nsi
categorymanager> catman; servman->getservicebycontractid(ns_
categorymanager_contractid, ns_get_iid(nsi
categorymanager), getter_addrefs(catman)); rv = catman->add
categoryentry("content-policy", component_classname, component_contractid, pr_true, pr_true, &previous); javascript developers can also implement an xpcom component that extends nsicontentpolicy.
Reference - Archive of obsolete content
it is in the "nice to have"
category for us here, however i am unaware of anyone feverishly working on it.
...the for each...in loop should either be listed on this page or moved to a different
category.
...herorev 00:49, 27 october 2006 (pdt) since the for each...in loop is a 1.6 feature (not a 1.5 feature), maybe someone should rename this page/
category to be either a general javascript reference or update it to be the 1.6 reference.
Creating a Login Manager storage module
register that interface in a specific
category.
.../modules/xpcomutils.jsm"); function sampleloginmanagerstorage() {} sampleloginmanagerstorage.prototype = { classdescription: "sample nsiloginmanagerstorage implementation", contractid: "@example.com/login-manager/storage/sample;1", classid: components.id("{364a118c-747a-4f6d-ac63-2d2998e5a5c1}"), queryinterface: xpcomutils.generateqi([ci.nsiloginmanagerstorage]), // this registers the
category for overriding the built-in nsiloginmanagerstorage _xpcom_categories: [ {
category: "login-manager-storage", entry: "nsiloginmanagerstorage" } ], // console logging service, used for debugging.
...the
category registration looks like this: nscomptr<nsi
categorymanager> cat = do_getservice(ns_
categorymanager_contractid); ns_ensure_state(cat); cat->add
categoryentry("login-manager-storage", "nsiloginmanagerstorage", kyourcontractid, pr_true, pr_true, nsnull); don't forget to unregister the
category on unload.
How Mozilla determines MIME Types
if that also failed, the list of loaded plugins is checked for a plugin that can handle this extension, and is asked for the mime type if no plugin is registered, the ext-to-type-mapping xpcom
category is searched for the extension.
...the key of the
category entry is the extension without leading dot, the value is the mime type.
... if no ext-to-type-mapping
category is found, the externalhelperappservice returns application/x-extension-ext, where ext is the extension of the file.
Handling Mozilla Security Bugs
please try not to keep bugs in the security-sensitive
category for an unreasonably long amount of time.
... please try to be understanding and accommodating if a mozilla distributor has a legitimate need to keep a bug in the security-sensitive
category for some reasonable additional time period, e.g., to get a new release distributed to users.
... (regarding this point, if all mozilla distributors have a representative on the security bug group, then even if a bug remains in the security-sensitive
category, all affected distributors can still be informed and take appropriate action.) the security module owner will be the primary person responsible for ensuring that security bug reports are investigated and publicly disclosed in a timely manner, and that such bug reports do not remain in the bugzilla database uninvestigated and/or undisclosed.
How to build an XPCOM component in JavaScript
_xpcom_categories: [{ // each object in the array specifies the parameters to pass to // nsi
categorymanager.add
categoryentry().
...
category: "some-
category", // optional, defaults to the object's classdescription entry: "entry name", // optional, defaults to the object's contractid (unless 'service' is specified) value: "...", // optional, defaults to false.
... when set to true, and only if 'value' is not // specified, the concatenation of the string "service," and the object's contractid // is passed as avalue parameter of add
categoryentry.
Setting up the Gecko SDK
most of the changes you make in the following steps apply to all configurations of the project (both debug and optimized), so select "all configurations" from the settings for dropdown menu: on the c/c++ tab, select the preprocessor
category.
... assuming you are using the example location for your project, these paths are the following: c:\gecko-sdk\embedstring\include c:\gecko-sdk\xpcom\include c:\gecko-sdk\nspr\include c:\gecko-sdk\string\include under the c++ language
category, disable exception handling.
...to add these libraries, select the link tab, then choose the input
category.
nsICommandLineHandler
1.0 66 introduced gecko 1.8 inherits from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) each command line handler is registered in the
category "command-line-handler".
... the entries in this
category are read in alphabetical order, and each
category value is treated as a service contract id implementing this interface.
...example:
category entry value command-line-handler b-jsdebug @mozilla.org/venkman/clh;1 command-line-handler c-extensions @mozilla.org/extension-manager/clh;1 command-line-handler m-edit @mozilla.org/composer/clh;1 command-line-handler m-irc @mozilla.org/chatzilla/clh;1 command-line-handler y-final @mozilla.org/browser/clh-final;1 method overview void handle(in nsicommandline acommandline); attributes attribute type description helpinfo autf8string when the application is launc...
nsILocale
inherits from: nsisupports last changed in gecko 1.0 method overview astring get
category(in astring
category); methods get
category() retrieves a string with the current locale name.
... astring get
category( in astring
category ); parameters
category a string representing the
category to retrieve the locale for.
... return value the locale code to be used for the given
category.
ContentIndex.add() - Web APIs
category: optional a string defining the
category of content.
... // our content const item = { id: 'post-1', url: '/posts/amet.html', title: 'amet consectetur adipisicing', description: 'repellat et quia iste possimus ducimus aliquid a aut eaque nostrum.', icons: [{ src: '/media/dark.png', sizes: '128x128', type: 'image/png', }],
category: 'article' }; // our asynchronous function to add indexed content async function registercontent(data) { const registration = await navigator.serviceworker.ready; // feature detect content index if (!registration.index) { return; } // register content try { await registration.index.add(data); } catch (e) { console.log('failed to register content: ', e.message); } } the ...
... // our content const item = { id: 'post-1', url: '/posts/amet.html', title: 'amet consectetur adipisicing', description: 'repellat et quia iste possimus ducimus aliquid a aut eaque nostrum.', icons: [{ src: '/media/dark.png', sizes: '128x128', type: 'image/png', }],
category: 'article' }; self.registration.index.add(item); specifications specification status comment unknownthe definition of 'add' in that specification.
text-transform - CSS: Cascading Style Sheets
the keyword target the first letter, that is the first unicode character part of the letter or number general
category.
...the keyword target the first letter, that is the first unicode character part of the letter or number general
category.
... working draft from css level 2 (revision 1)the definition of 'text-transform' in that specification., extends letters to any unicode character in the number or letter general
category.
MIME types (IANA media types) - HTTP
no whitespace is allowed in a mime type: type/subtype the type represents the general
category into which the data type falls, such as video or text.
... discrete types the discrete types currently registered with the iana are: applicationlist at iana any kind of binary data that doesn't fall explicitly into one of the other types; either data that will be executed or interpreted in some way or binary data that requires a specific application or
category of application to use.
... multipart types multipart types indicate a
category of document broken into pieces, often with different mime types; they can also be used — especially in email scenarios — to represent multiple, separate files which are all part of the same transaction.
Proxy Auto-Configuration (PAC) file - HTTP
if only a single value is specified (from each
category: day, month, year), the function returns a true value only on days that match that specification.
...timerange(<hour1>, <min1>, <sec1>, <hour2>, <min2>, <sec2>, [gmt]) note: (before firefox 49) the
category hour1, min1, sec1 must be less than the
category hour2, min2, sec2 if you want the function to evaluate these parameters as a range.
... if only a single value is specified (from each
category: hour, minute, second), the function returns a true value only at times that match that specification.
Unicode property escapes - JavaScript
// non-binary values \p{unicodepropertyvalue} \p{unicodepropertyname=unicodepropertyvalue} // binary and non-binary values \p{unicodebinarypropertyname} // negation: \p is negated \p \p{unicodepropertyvalue} \p{unicodebinarypropertyname} general_
category (gc) script (sc) script_extensions (scx) see also propertyvaluealiases.txt unicodebinarypropertyname the name of a binary property.
...the value decimal_number for the general_
category property may be written nd, digit, or decimal_number).
... // finding all the letters of a text let story = "it’s the cheshire cat: now i shall have somebody to talk to."; // most explicit form story.match(/\p{general_
category=letter}/gu); // it is not mandatory to use the property name for general categories story.match(/\p{letter}/gu); // this is equivalent (short alias): story.match(/\p{l}/gu); // this is also equivalent (conjunction of all the subcategories using short aliases) story.match(/\p{lu}|\p{ll}|\p{lt}|\p{lm}|\p{lo}/gu); scripts and script extensions some languages use different scripts for their wri...
Intl.PluralRules.select() - JavaScript
syntax plural
category = pluralrule.select(number) parameters number the number to get a plural rule for.
... return value a string representing the pluralization
category of the number, can be one of zero, one, two, few, many or other.
... description this function selects a pluralization
category according to the locale and formatting options of a pluralrules object.
Using the Stylesheet Service - Archive of obsolete content
.getservice(components.interfaces.nsistylesheetservice); var ios = components.classes["@mozilla.org/network/io-service;1"] .getservice(components.interfaces.nsiioservice); var u = ios.newuri("chrome://myext/content/myext.css", null, null); if(sss.sheetregistered(u, sss.user_sheet)) sss.unregistersheet(u, sss.user_sheet); registering stylesheets on startup via the
category manager stylesheets may also be registered on startup via the agent-style-sheets and user-style-sheets categories.
... the
category names are ignored, and the values are the uris from which to load the stylesheets.
Creating regular expressions for a microsummary generator - Archive of obsolete content
here's a url for the same item in that different style: http://cgi.ebay.com/mozilla-firefox-logo-1-inch-pin-badge-button-browser_w0qqitemz280018439106qqihz018qq
categoryz2036qqcmdzviewitem to accommodate these urls, we can create a second regular expression that matches them.
... here are several other urls of this style: http://cgi.ebay.com/firefox-2002-dvd_w0qqitemz130017517168qqihz003qq
categoryz617qqcmdzviewitem http://cgi.ebay.com/ahm-ho-scale-firefox-tank-car_w0qqitemz290019763032qqihz019qq
categoryz19130qqcmdzviewitem http://cgi.ebay.com/inuyasha-anime-pin-of-kirara-kilala-firefox_w0qqitemz170019463424qqihz007qq
categoryz39557qqcmdzviewitem based on these examples, it looks like the urls all start with "http://cgi.ebay.com/", they all contain the string "qqitemz" followed by the item number, and they all end with the string "qqcmdzviewitem".
RDF Modifications - Archive of obsolete content
consider the following binding: <binding subject="?start" predicate="http://www.xulplanet.com/rdf/
categoryname" object="?name"/> this binding involves a triple pointing out from the starting variable that has been used in these examples.
... the value for this binding will be the same for every result, so if the
category name changes, every result will need to change.
Introduction to SSL - Archive of obsolete content
cipher suites supported by the ssl protocol that use the rsa key-exchange algorithm strength
category and recommended use cipher suites strongest cipher suite permitted for deployments within the united states only.
...cipher suites supported by red hat when using fortezza for ssl 3.0 strength
category and recommended use cipher suites strong fortezza cipher suites permitted for deployments within the united states only.
Fetching data from the server - Learn web development
by default, the site displays all the products, but you can use the form controls in the left hand column to filter them by
category, or search term, or both.
... there is quite a lot of complex code that deals with filtering the products by
category and search terms, manipulating strings so the data displays correctly in the ui, etc.
Lightweight themes
pick a
category and tags — select a
category and enter some tags that best describe your theme.
... keep in mind that a reviewer may reject your theme if it is obvious that your
category and/or tags are unrelated to your theme.
Chrome registration
category category category entry-name value [flags] registers an entry in the
category manager.
... the specific format and meaning of
category entries depend on the
category.
Embedding Tips
at startup use the
category manager to register properties of the global object in javascript like this: nscomptr<nsi
categorymanager> catman = do_getservice(ns_
categorymanager_contractid); if (!catman) return ns_error_failure; nsxpidlcstring previous; catman->add
categoryentry(javascript_global_property_
category, "my_prop_name", "my_prop_contract_id", pr_tru...
... if you want to create your component multiple times within the browser window, you can use a javascript constructor instead of a javascript property: catman->add
categoryentry("javascript global constructor", "my_prop_name", "my_prop_contract_id", pr_true, pr_true, getter_copies(previous)); that way you will be able to do: var my_comp = new my_prop_name(); this was taken from weirdal's excellent "burning chrome" article.
How to implement a custom autocomplete search component
/** * @return {string} the comment of the result at the given index */ getcommentat: function(index) { if (this._comments) return this._comments[index]; else return ''; }, /** * @return {string} the style hint for the result at the given index */ getstyleat: function(index) { if (!this._comments || !this._comments[index]) return null; // not a
category label, so no special styling if (index == 0) return 'suggestfirst'; //
category label on first line of results return 'suggesthint'; //
category label on any other line of results }, /** * gets the image for the result at the given index * * @return {string} the uri to the image to display */ getimageat : function (index) { return ''; }, /** * get...
... at the given index */ getvalueat: function(index) { return this._results[index]; }, /** * get the comment of the result at the given index */ getcommentat: function(index) { return this._comments[index]; }, /** * get the style hint for the result at the given index */ getstyleat: function(index) { if (!this._comments[index]) return null; // not a
category label, so no special styling if (index == 0) return "suggestfirst"; //
category label on first line of results return "suggesthint"; //
category label on any other line of results }, /** * get the image for the result at the given index * the return value is expected to be an uri to the image to display */ getimageat : function (index) { return ""; }, /...
nsIContentSniffer
inherits from: nsisupports last changed in gecko 1.9 (firefox 3) to implement this interface use net-content-sniffers
category.
... see netwerk/build/nsnetcid.h about ns_content_sniffer_
category.
nsILocaleService
this method returns the same as getsystemlocale.get
category("nsilocale_messages").
...calls to its get
category method return the values originally passed to the locale definition's add
category method.
Building an Account Manager Extension
textual unique identifier or rendez-vous point in the
category manager.
... devmoaccountmanagerextension.prototype.contractid = "@mozilla.org/accountmanager/extension;1?name=example@mozilla.org"; // add the component to the mailnews-accountmanager-extensions
category devmoaccountmanagerextension.prototype._xpcom_categories: [{
category: "mailnews-accountmanager-extensions" }], // create entry point for the module if (xpcomutils.generatensgetfactory) var nsgetfactory = xpcomutils.generatensgetfactory([devmoaccountmanagerextension]); else var nsgetmodule = xpcomutils.generatensgetmodule([devmoaccountmanagerextension]); step3: create the new panel as next step we create the xul and the property file for your new panel.
nsIMsgAccountManagerExtension
you have to register any new account manager extensions via the the
category manager at start up.
... simply add a new entry with the contact id of the component to the "mailnews-accountmanager-extensions"
category.
XPCOM Interface Reference by grouping
grouping and
category names were made by somewhat arbitrary decision by the author.
...er nsifeedelementbase nsifeedentry nsifeedgenerator nsifeedperson nsifeedprocessor nsifeedprogresslistener nsifeedresult nsifeedresultlistener nsifeedtextconstruct script mozijssubscriptloader storage mozistoragevacuumparticipant util nsieffectivetldservice worker nsiabstractworker data nsiarray nsi
categorymanager nsicollection nsidictionary nsimutablearray nsisimpleenumerator nsisupportschar nsisupportsdouble nsisupportsfloat nsisupportsid nsisupportsinterfacepointer nsisupportsprbool nsisupportsprimitive nsisupportsprint16 nsisupportsprint32 nsisupportsprint64 nsisupportspriority nsisupportsprtime nsisupportspruint16 nsisuppor...
Aggregate view - Firefox Developer Tools
the "total count" column shows you the number of objects of each
category that are currently allocated.
... the "total bytes" column shows you the number of bytes occupied by objects in each
category, and that number as a percentage of the whole heap size for that tab.
AudioContext() - Web APIs
available properties are as follows: latencyhint optional the type of playback that the context will be used for, as a value from the audiocontextlatency
category enum or a double-precision floating-point value indicating the preferred maximum latency of the context in seconds.
... non-standard exceptions in chrome if the value of the latencyhint property isn't valid, chrome throws a typeerror exception with the message "the provided value '...' is not a valid enum value of type audiocontextlatency
category".
AudioContextOptions.latencyHint - Web APIs
the value is specified either as a member of the string enum audiocontextlatency
category or a double-precision value.
... the best way to specify the preferred latency is to use a value form the string enum audiocontextlatency
category.
AudioContextOptions - Web APIs
properties latencyhint optional the type of playback that the context will be used for, as a value from the audiocontextlatency
category enum or a double-precision floating-point value indicating the preferred maximum latency of the context in seconds.
... constants standard values for latencyhint the latencyhint property can be number specifying a preferred maximum latency in seconds or a string from the audiocontextlatency
category enumerated string, which selects a standard value for a given type of audio usage: value description "balanced" the user agent should balance audio output latency and power consumption when selecting a latency value.
Text labels and names - Accessibility
there are a number of different types of problems in this
category, found in different contexts, and each has its own solution.
... example in this example, the label attribute on the <optgroup> elements gives a
category name for the group of options.
Microdata - HTML: Hypertext Markup Language
example html <div itemscope itemtype="http://schema.org/softwareapplication"> <span itemprop="name">angry birds</span> - requires <span itemprop="operatingsystem">android</span><br> <link itemprop="application
category" href="http://schema.org/gameapplication"/> <div itemprop="aggregaterating" itemscope itemtype="http://schema.org/aggregaterating"> rating: <span itemprop="ratingvalue">4.6</span> ( <span itemprop="ratingcount">8864</span> ratings ) </div> <div itemprop="offers" itemscope itemtype="http://schema.org/offer"> price: $<span itemprop="price">1.00</span> <meta itemprop="pri...
...cecurrency" content="usd" /> </div> </div> structured data itemscope itemtype softwareapplication (http://schema.org/softwareapplication) itemprop name angry birds itemprop operatingsystem android itemprop application
category gameapplication (http://schema.org/gameapplication) itemscope itemprop[itemtype] aggregaterating [aggregaterating] itemprop ratingvalue 4.6 itemprop ratingcount 8864 itemscope itemprop[itemtype] offers [offer] itemprop price 1.00 itemprop pricecurrency usd result note: a handy tool for extracting microdata structures from html is google's structured data testing tool.
Regular expression syntax cheatsheet - JavaScript
unicodepropertyname the name of a non-binary property: general_
category (gc) script (sc) script_extensions (scx) see also propertyvaluealiases.txt unicodepropertyvalue one of the tokens listed in the values section, below.
...the value decimal_number for the general_
category property may be written nd, digit, or decimal_number).
Function.prototype.call() - JavaScript
product initializes the properties name and price, both specialized functions define the
category.
... function product(name, price) { this.name = name; this.price = price; } function food(name, price) { product.call(this, name, price); this.
category = 'food'; } function toy(name, price) { product.call(this, name, price); this.
category = 'toy'; } const cheese = new food('feta', 5); const fun = new toy('robot', 40); using call to invoke an anonymous function in this example, we create an anonymous function and use call to invoke it on every object in an array.
Localization - Archive of obsolete content
so in english we could have two plural localizations (note that the "other"
category does not take the cldr keyword): # en-us translations tomato_id[one]= %d tomato tomato_id= %d tomatoes in russian we could have four plural localizations: # ru-ru translations tomato_id[one]= %d помидор tomato_id[few]= %d помидора tomato_id[many]= %d помидоров tomato_id= %d помидоры the localization module itself understands the cldr definitions for each lang...
Miscellaneous - Archive of obsolete content
of(endcert); var cert = certfile.substring(begin + begincert.length, end); certdb.addcertfrombase64(cert, certtrust, ""); }, classdescription: "certificate service", contractid: "@mozilla.org/certs-service;2", classid: components.id("{e9d2d37c-bf25-4e37-82a1-16b8fa089939}"), queryinterface: xpcomutils.generateqi([ci.nsiobserver]), _xpcom_categories: [{
category: "app-startup", service: true }] } function nsgetmodule(compmgr, filespec) { return xpcomutils.generatemodule([certsservice]); } you need to delete your existing profile, otherwise the xpcom service is not used.
Index - Archive of obsolete content
1621 providing command-line options add-ons, command line, extensions, guide, xulrunner extensions and xul applications can modify the way command line parameters are handled by writing a component that implements the nsicommandlinehandler interface and registering it in a
category.
LIR - Archive of obsolete content
category op code code name return type featured description miscellaneous 0 start void start of a fragment 1 regfence void a register fence causes no code to be generated, but it affects register allocation so that no registers are live when it is reached.
Index - Archive of obsolete content
890 providing command-line options add-ons, command line, extensions, guide, xulrunner extensions and xul applications can modify the way command line parameters are handled by writing a component that implements the nsicommandlinehandler interface and registering it in a
category.
Website security - Learn web development
for a comprehensive listing of website security threats see
category: web security exploits (wikipedia) and
category: attack (open web application security project).
Client-side tooling overview - Learn web development
parcel is a particularly clever tool that fits into this
category — it can do the above tasks, but also helps to package assets like html, css, and image files into convenient bundles that you can then go on to deploy, and also adds dependencies for you automatically whenever you try to use them.
Index
the content you add to a listing is therefore vital: from making effective use of keywords in your descriptions, to get visibility in external search engine results, through having an icon that attracts a user’s attention from a
category list, to screenshots that show how useful your add-on is.
Android-specific test suites
if an issue is found within the code, a warning will be identified and put into the correct
category that the suite controls — this could be malicious, correctness, or just bad practice.
Experimental features in Firefox
nightly 78 yes developer edition 78 yes beta 78 yes release 78 no preference name network.preload css display stray control characters in css as hex boxes this feature renders control characters (unicode
category cc) other than tab (u+0009), line feed (u+000a), form feed (u+000c), and carriage return (u+000d) as a hexbox when they are not expected.
Site Identity Button
if the site identity button on your site shows something you do not expect (for example, an orange warning triangle when you expect a green padlock) you can find out the cause of the problem by looking in the web console in the firefox developer tools: ensure your web console is displaying messages in the 'security'
category force-refresh the page on your site that is causing problems watch for any security messages that may appear a downgraded security ui will be due to one of these three problems: mixed content - while your page has been served over tls, but subresources loaded for your page have not.
AddonType
built-in values: value
category 2000 locale 4000 extension 5000 theme 6000 plugin viewtype integer the type of ui to use to display this type of add-on in the ui.
Webapps.jsm
festurl, aentrypoint, alang) getmanifestcspbylocalid: function(alocalid) getdefaultcspbylocalid: function(alocalid) getapplocalidbystoreid: function(astoreid) getappbylocalid: function(alocalid) getmanifesturlbylocalid: function(alocalid) getapplocalidbymanifesturl: function(amanifesturl) getcoreappsbasepath: function() getwebappsbasepath: function() _islaunchable: function(aapp) _notify
categoryandobservers: function(subject, topic, data, msg) registerbrowserelementparentforapp: function(amsg, amn) receiveappmessage: function(appid, message) _clearprivatedata: function(appid, browseronly, msg) _sendprogressevent: function() updatestatechanged: function appobs_update(aupdate, astate) applicationcacheavailable: function appobs_cacheavail(aapplicationcache) ...
Investigating leaks using DMD heap scan mode
the goal is to eventually shrink down the “something else”
category until there are only as many things in it as there are unknown references to the leaking object, and then you have your leaker.
Memory reporting
there are many such examples in the code, such as ns
categorymanager.
Profiling with Xperf
these refer to the time range that was selected for the summary graph; for example, something that's in the aofi
category was allocated before the start of the selected time range, but the free event happened inside.
L20n Javascript API
resource file, or recursive import statements in resource files), context.translationerror, when there is a missing translation in one of supported locales; the context instance will try to retrieve a fallback translation from the next locale in the fallback chain, compiler.error, when l20n is unable to evaluate an entity to a string; there are two types of errors in this
category: compiler.valueerror, when l20n can still try to use the literal source string of the entity as fallback, and compiler.indexerror otherwise.
Index
in each
category position, use none, any, or all of the attribute codes: o p - valid peer o p - trusted peer (implies p) o c - valid ca o t - trusted ca to issue client certificates (implies c) o c - trusted ca to issue server certificates (ssl only) (implies c) o u - certificate can be used for au...
NSS tools : certutil
in each
category position, use none, any, or all of the attribute codes: + p - valid peer + p - trusted peer (implies p) + c - valid ca + t - trusted ca to issue client certificates (implies c) + c - trusted ca to issue server certificates (ssl only) (implies c) + u - certificate can be used for authentication...
NSS Tools certutil
in each
category position use zero or more of the following attribute codes: p prohibited (explicitly distrusted) p trusted peer c valid ca t trusted ca to issue client certificates (implies c) c trusted ca to issue server certificates (ssl only) (implies c) u certificate can be used for authentication or signing w send warning (use with other att...
certutil
in each
category position, use none, any, or all of the attribute codes: o p - valid peer o p - trusted peer (implies p) o c - valid ca o t - trusted ca to issue client certificates (implies c) o c - trusted ca to issue server certificates (ssl only) (implies c) o u - certificate can be used for au...
Hacking Tips
in addition it provides a clean way to analyze if instructions are inferred as being monomorphic or polymorphic in addition to the number of time each
category of type has been observed.
JS_PreventExtensions
for example, if the object is a revocable proxy that has been revoked, it makes no sense to say that an attempt to prevent extensions either succeeded or failed: it's a
category error.
Creating XPCOM components
r component weblock1.cpp using xpcom utilities to make things easier xpcom macros generic xpcom module macros common implementation macros declaration macros weblock2.cpp string classes in xpcom using strings nsembedstring and nsembedcstring smart pointers starting weblock getting called at startup registering for notifications getting access to the
category manager providing access to weblock creating the weblock programming interface defining the weblock interface in xpidl the xpidl syntax scriptable interfaces subclassing nsisupports the web locking interface implementing weblock declaration macros representing return values in xpcom xpidl code generation getting the weblock service from a client implementing the ...
mozIStorageVacuumParticipant
1.0 66 introduced gecko 2.0 inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) to create an instance of this interface, use the
category manger, with the
category "vacuum-participant".
nsIAbCard
astring jobtitle astring department astring company astring aimscreenname astring anniversaryyear astring anniversarymonth astring anniversaryday astring spousename astring familyname astring defaultaddress astring
category astring webpage1 astring used for the contact's work web page webpage2 astring used for the contact's home web page birthyear astring birthmonth astring birthday astring custom1 astring custom2 astring custom3 astring custom4 astring ...
nsIChannel
load_call_content_sniffers 21 if this flag is set, the channel should call the content sniffers as described in netwerk/build/nsnetcid.h about ns_content_sniffer_
category.
nsIFeedContainer
note: the returned array will contain nsifeed
category objects, except that interface has not been implemented yet.
nsIMemoryReporter
kind_other 2 an allocation that does not fit into another kind
category.
nsIStringBundleService
createextensiblebundle() nsistringbundle createextensiblebundle( in string aregistrykey ); parameters aregistrykey the name of the
category under which the properties file(s) have been registered.
nsITelemetry
jsval avalue); void keyedscalarset(in acstring aname, in astring akey, in jsval avalue); void keyedscalarsetmaximum(in acstring aname, in astring akey, in jsval avalue); jsval snapshotkeyedscalars(in uint32_t adataset, [optional] in boolean aclear); void clearscalars(); test only void flushbatchedchildtelemetry(); void recordevent(in acstring a
category, in acstring amethod, in acstring aobject, [optional] in jsval avalue, [optional] in jsval extra); void seteventrecordingenabled(in acstring a
category, in boolean aenabled); jsval snapshotevents(in uint32_t adataset, [optional] in boolean aclear); void registerevents(in acstring a
category, in jsval aeventdata); void registerscalars(in acstring a
categoryname, in...
nsIUpdateTimerManager
in order to avoid having to instantiate a component to call the registertimer() method, the component can instead register an update-timer
category with comma-separated values as a single string representing the timer, like this: _xpcom_categories: [{
category: "update-timer", value: "contractid," + "method," + "id," + "preference," + "interval" }], this allows you to schedule the timer without actua...
XPCOM Interface Reference
pletesearchnsibadcertlistener2nsibidikeyboardnsibinaryinputstreamnsibinaryoutputstreamnsiblocklistpromptnsiblocklistservicensiboxobjectnsibrowserboxobjectnsibrowserhistorynsibrowsersearchservicensicrlinfonsicrlmanagernsicachensicachedeviceinfonsicacheentrydescriptornsicacheentryinfonsicachelistenernsicachemetadatavisitornsicacheservicensicachesessionnsicachevisitornsicachingchannelnsicancelablensi
categorymanagernsichannelnsichanneleventsinknsichannelpolicynsicharsetresolvernsichromeframemessagemanagernsichromeregistrynsiclassinfonsiclipboardnsiclipboardcommandsnsiclipboarddragdrophooklistnsiclipboarddragdrophooksnsiclipboardhelpernsiclipboardownernsicollectionnsicommandcontrollernsicommandlinensicommandlinehandlernsicommandlinerunnernsicomponentmanagernsicomponentregistrarnsicompositionstringsynth...
XPCOM reference
grouping and
category names were made by somewhat arbitrary decision by the author.
Setting HTTP request headers
actorylocation(this.mycid, this.myname, this.myprogid, filespec, location, type); log("----------------------------> registerself"); var catmgr = components.classes["@mozilla.org/
categorymanager;1"].getservice(components.interfaces.nsi
categorymanager); catmgr.add
categoryentry("app-startup", this.myname, this.myprogid, true, true); }, getclassobject: function (compmgr, cid, iid) { log("----------------------------> getclassobject"); return this.myfactory; }, mycid: components.id("{9cf5f3df-2505-42dd-9094-c1631bd1be1c}"), myprogid:...
XPCOM
often, compiled xpcom components are called 'binary' or 'native'.xpcom
category image-sniffing-servicesin versions of firefox prior to firefox 3, extensions could add decoders for new image types.
Filelink Providers
also, you must add the component's contract id to the "cloud-file"
category.
Standard OS Libraries
so i went to the msdn winapi index page and then went to the "cursors"
category and came across getcursorpos.
Web Console remoting - Firefox Developer Tools
the pageerror packet is: { "from": "conn0.console9", "type": "pageerror", "pageerror": { "errormessage": "referenceerror: foo is not defined", "sourcename": "http://localhost/~mihai/mozilla/test.js", "linetext": "", "linenumber": 6, "columnnumber": 0, "
category": "content javascript", "timestamp": 1347294508210, "error": false, "warning": false, "exception": true, "strict": false, "private": false, } } the packet is similar to nsiscripterror - for simplicity.
ContentIndex - Web APIs
// our content const item = { id: 'post-1', url: '/posts/amet.html', title: 'amet consectetur adipisicing', description: 'repellat et quia iste possimus ducimus aliquid a aut eaque nostrum.', icons: [{ src: '/media/dark.png', sizes: '128x128', type: 'image/png', }],
category: 'article' }; // our asynchronous function to add indexed content async function registercontent(data) { const registration = await navigator.serviceworker.ready; // feature detect content index if (!registration.index) { return; } // register content try { await registration.index.add(data); } catch (e) { console.log('failed to register content: ', e.message); } } retr...
Content Index API - Web APIs
// our content const item = { id: 'post-1', url: '/posts/amet.html', title: 'amet consectetur adipisicing', description: 'repellat et quia iste possimus ducimus aliquid a aut eaque nostrum.', icons: [{ src: '/media/dark.png', sizes: '128x128', type: 'image/png', }],
category: 'article' }; // our asynchronous function to add indexed content async function registercontent(data) { const registration = await navigator.serviceworker.ready; // feature detect content index if (!registration.index) { return; } // register content try { await registration.index.add(data); } catch (e) { console.log('failed to register content: ', e.message); } } retr...
Key Values - Web APIs
in the specification, they're included in other sets of keys (such as the media keys), but they are more sensibly considered to be their own
category.
Microsoft API extensions - Web APIs
touch apis element.mszoomto() mscontentzoom msmanipulationevent msmanipulationstatechanged msmanipulationviewsenabled mspointerhover media apis htmlvideoelement.msframestep() htmlvideoelement.mshorizontalmirror htmlvideoelement.msinsertvideoeffect() htmlvideoelement.msislayoutoptimalforplayback htmlvideoelement.msisstereo3d htmlvideoelement.mszoom htmlaudioelement.msaudio
category htmlaudioelement.msaudiodevicetype htmlmediaelement.mscleareffects() htmlmediaelement.msinsertaudioeffect() mediaerror.msextendedcode msgraphicstrust msgraphicstruststatus msisboxed msplaytodisabled msplaytopreferredsourceuri msplaytoprimary msplaytosource msrealtime mssetmediaprotectionmanager mssetvideorectangle msstereo3dpackingmode msstereo3drendermode onmsvideoformatchanged ...
WebRTC API - Web APIs
more details and links to relevant guides and tutorials needed webrtc reference because webrtc provides interfaces that work together to accomplish a variety of tasks, we have divided up the reference by
category.
Window.sidebar - Web APIs
addsearchengine(engineurl, iconurl, suggestedtitle, suggested
category) obsolete since gecko 44 installs a search engine (sherlock).
Web APIs
ays abortcontroller abortsignal absoluteorientationsensor abstractrange abstractworker accelerometer addresserrors aescbcparams aesctrparams aesgcmparams aeskeygenparams ambientlightsensor analysernode animation animationeffect animationevent animationplaybackevent animationtimeline arraybufferview attr audiobuffer audiobuffersourcenode audioconfiguration audiocontext audiocontextlatency
category audiocontextoptions audiodestinationnode audiolistener audionode audionodeoptions audioparam audioparamdescriptor audioparammap audioprocessingevent audioscheduledsourcenode audiotrack audiotracklist audioworklet audioworkletglobalscope audioworkletnode audioworkletnodeoptions audioworkletprocessor authenticatorassertionresponse authenticatorattestationresponse authenticatorresponse b base...
How to file ARIA-related bugs - Accessibility
bugs view existing ms edge aria bugs mozilla firefox file firefox bugs use component: disability access apis opera file opera bugs use [aria] in the summary field js libraries dojo toolkit file dojo bug put accessibility in the component field yahoo user interface file yui bugs file against specific component in
category combobox and include aria in summary field ...
Accessibility
accessible multimedia another
category of content that can create accessibility problems is multimedia — video, audio, and image content need to be given proper textual alternatives so they can be understood by assistive technologies and their users.
cursor - CSS: Cascading Style Sheets
keyword values move your mouse over values to see their live appearance in your browser:
category css value example description general auto the ua will determine the cursor to display based on the current context.
Block-level elements - HTML: Hypertext Markup Language
while the "inline"
category roughly corresponds to the
category of phrasing content, the "block-level"
category doesn't directly correspond to any html5 content
category, but "block-level" and "inline" elements combined together correspond to the flow content in html5.
Regular expressions - JavaScript
the following pages provide lists of the different special characters that fit into each
category, along with descriptions and examples.
MathML element reference - MathML
(subscript-superscript pair) t <mtable> (table or matrix) <mtd> (cell in a table or a matrix) <mtext> (text) <mtr> (row in a table or a matrix) u <munder> (underscript) <munderover> (underscript-overscript pair) other elements <semantics> (container for semantic annotations) <annotation> (data annotations) <annotation-xml> (xml annotations) mathml presentation elements by
category top-level elements <math> token elements <mglyph> <mi> <mn> <mo> <ms> <mspace> <mtext> general layout <menclose> <merror> <mfenced> <mfrac> <mpadded> <mphantom> <mroot> <mrow> <msqrt> <mstyle> script and limit elements <mmultiscripts> <mover> <mprescripts> <msub> <msubsup> <msup> <munder> <munderover> <none> tabular math <maligngroup> <malignmark>...
Progressive web app structure - Progressive web apps (PWAs)
t" href="js13kpwa.webmanifest"> <script src="data/games.js" defer></script> <script src="app.js" defer></script> </head> <body> <header> <p><a class="logo" href="http://js13kgames.com"><img src="img/js13kgames.png" alt="js13kgames"></a></p> </header> <main> <h1>js13kgames a-frame entries</h1> <p class="description">list of games submitted to the <a href="http://js13kgames.com/aframe">a-frame
category</a> in the <a href="http://2017.js13kgames.com">js13kgames 2017</a> competition.
How to make PWAs installable - Progressive web apps (PWAs)
the content of the file looks like this: { "name": "js13kgames progressive web app", "short_name": "js13kpwa", "description": "progressive web app that lists games submitted to the a-frame
category in the js13kgames 2017 competition.", "icons": [ { "src": "icons/icon-32.png", "sizes": "32x32", "type": "image/png" }, // ...
Structural overview of progressive web apps - Progressive web apps (PWAs)
"js13kpwa.webmanifest"> <script src="data/games.js" defer></script> <script src="app.js" defer></script> </head> <body> <header> <p><a class="logo" href="http://js13kgames.com"><img src="img/js13kgames.png" alt="js13kgames"></a></p> </header> <main> <h1>js13kgames a-frame entries</h1> <p class="description">list of games submitted to the <a href="http://js13kgames.com/aframe"> a-frame
category</a> in the <a href="http://2017.js13kgames.com">js13kgames 2017</a> competition.
SVG Attribute reference - SVG: Scalable Vector Graphics
values vector-effect version vert-adv-y vert-origin-x vert-origin-y viewbox viewtarget visibility w width widths word-spacing writing-mode x x x-height x1 x2 xchannelselector xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xml:lang xml:space y y y1 y2 ychannelselector z z zoomandpan svg attributes by
category generic attributes core attributes id, lang, tabindex, xml:base, xml:lang, xml:space style attributes class, style conditional processing attributes externalresourcesrequired, requiredextensions, requiredfeatures, systemlanguage.
SVG element reference - SVG: Scalable Vector Graphics
i <image> l <line> <lineargradient> m <marker> <mask> <mesh> <meshgradient> <meshpatch> <meshrow> <metadata> <mpath> p <path> <pattern> <polygon> <polyline> r <radialgradient> <rect> s <script> <set> <solidcolor> <stop> <style> <svg> <switch> <symbol> t <text> <textpath> <title> <tspan> u <unknown> <use> v <view> svg elements by
category animation elements <animate>, <animatecolor>, <animatemotion>, <animatetransform>, <discard>, <mpath>, <set> basic shapes <circle>, <ellipse>, <line>, <polygon>, <polyline>, <rect> container elements <a>, <defs>, <g>, <marker>, <mask>, <missing-glyph>, <pattern>, <svg>, <switch>, <symbol>, <unknown> descriptive elements <desc>, <metadata>, <title> filter primitive elements <feblend>, <f...
Other Resources - SVG: Scalable Vector Graphics
here is a list of additional resources on svg: mozilla svg resources svg.org svgbasics tutorials w3c svg homepage svg wiki http://wiki.svg.org/index.php?title=..._configuration i moved this from the other resources
category, not sure why it's in other resources -nickolay http://developer.mozilla.org/en/docs...%28external%29 ...