Search completed in 0.89 seconds.
Displaying Places information using views
views are one component of the
places model-view-controller design.
...see querying
places for information about obtaining and using nsinavhistoryresult objects, which this page assumes you are familiar with.
... the built-in views if you need to show the contents of bookmarks or history in your extension or application, you may want to use the built-in
places views, which are generic and will save you a lot of time writing basic functionality so that you can focus on building your extension or application.
...And 50 more matches
Places Developer Guide
overview
places is the umbrella term for a set of apis for managing browsing history and uri metadata first introduced in firefox 3.
... nsinavbookmarksservice.
placesroot - the root folder of hierarchy.
... nsinavbookmarksservice.unfiledbookmarksfolder - items that have been "starred", but not
places in any folder.
...And 14 more matches
Places
places is the bookmarks and history management system introduced in firefox 3.
... it offers increased flexibility and complex querying to make handling the
places the user goes easier and more convenient.
...it also introduces new user interfaces for managing all this information; see
places on the mozilla wiki.
...And 14 more matches
Places utilities for JavaScript
organizer_query_anno - this annotation is used by the
places organizer to decide what nodes should be shown in the left pane.
... warning :
placesutils class since firefox 3 beta 5 has been split into:
placesutils: can be used in any toolkit application
placesuiutils: only in firefox
placesutils this is a gigantic object full of usefulness if you need to do any bookmark work from within browser.xul.
...
placesutils method overview nsiuri createfixeduri(string aspec); string getformattedstring(string key, string params); string getstring(string key); boolean nodeisfolder(nsinavhistoryresultnode anode); boolean nodeisbookmark(nsinavhistoryresultnode anode); boolean nodeisseparator(nsinavhistoryresultnode anode); boolean nodeisvisit(nsinavhistoryresultnode anode); boolean nodeisuri(nsinavhistoryresultnode anode); boolean nodeisquery(nsinavhistoryresultnode anode); boolean nodeisreadonly(nsinavhistoryresultnode anode); boolean nodeishost(nsinavhistoryresultnode anode); boolean nodeiscontainer(nsinavhistoryresultnode anode); boolean nodeis...
...And 13 more matches
Querying Places
executing a query
places queries have several basic parts: the query object: nsinavhistoryquery, holds the search parameters the query options: nsinavhistoryqueryoptions, allows configuration of the search result the history service: nsinavhistoryservice, executes the query the first first step is to create the query and options, and fill them with the parameters you want.
...the defaults for these objects will result in a query that returns all of your browser history in a flat list: chromeutils.definemodulegetter(this, "
placesutils", "resource://gre/modules/
placesutils.jsm"); // no query options set will get all history, sorted in database order, // which is nsinavhistoryqueryoptions.sort_by_none.
... let options =
placesutils.history.getnewqueryoptions(); // no query parameters will return everything let query =
placesutils.history.getnewquery(); // execute the query let result =
placesutils.history.executequery(query, options); result types nsinavhistoryqueryoptions has a resulttype property that allows configuration of the grouping and level of detail to be returned in the results.
...And 10 more matches
places/bookmarks - Archive of obsolete content
save() and search() are both asynchronous functions: they synchronously return a
placesemitter object, which then asynchronously emits events as the operation progresses and completes.
... examples creating a new bookmark let { bookmark, save } = require("sdk/
places/bookmarks"); // create a new bookmark instance, unsaved let bookmark = bookmark({ title: "mozilla", url: "http://mozilla.org" }); // attempt to save the bookmark instance to the bookmarks database // and store the emitter let emitter = save(bookmark); // listen for events emitter.on("data", function (saved, inputitem) { // on a "data" event, an item has been updated, passing in the // latest snapshot from the server as `saved` (with properties // such as `updated...
...m.title); // true console.log(saved !== inputitem); // true console.log(inputitem === bookmark); // true }).on("end", function (saveditems, inputitems) { // similar to "data" events, except "end" is an aggregate of // all progress events, with ordered arrays as `saveditems` // and `inputitems` }); creating several bookmarks with a new group let { bookmark, group, save } = require("sdk/
places/bookmarks"); let group = group({ title: "guitars" }); let bookmarks = [ bookmark({ title: "ran", url: "http://ranguitars.com", group: group }), bookmark({ title: "ibanez", url: "http://ibanez.com", group: group }), bookmark({ title: "esp", url: "http://espguitars.com", group: group }) ]; // save `bookmarks` array -- notice we don't have `group` in the array, // although it needs to be sav...
...And 9 more matches
The Places database
this document provides a high-level overview of the overall database design of the
places system.
...
places is designed to be a complete replacement for the firefox bookmarks and history systems using storage.
... the
places schema looks like so: core url table moz_
places: this is the main table of uris and is managed by the history service (see also history service design).
...And 9 more matches
Using the Places history service
please see history service design for information on the design of the history service, and the
places database for a higher-level design overview of
places.
...the
places history service ("navhistory") implements these history interfaces: nsiglobalhistory2: basic add page, is visited functionality used by the docshell when visiting and rendering pages.
... nsiautocompletesearch: url-bar autocomplete from history from 1.9.1 (firefox3.1) on, don't use any
places service on (or after) quit-application has been notified, since the database connection will be closed to allow the last sync, and changes will most likely be lost.
...And 7 more matches
places.sqlite Database Troubleshooting
this article describes troubleshooting actions to deal with a broken
places.sqlite database.
... how to (try to) recover from a corrupt
places.sqlite sometimes after a firefox/aurora/nightly upgrade, history disappears, but bookmarks are at their place.
... in the profile folder a
places.sqlite-corrupt file has been created.
...And 6 more matches
Using the Places annotation service
the annotation service, provided by the nsiannotationservice interface, is designed to store arbitrary data about a web page or about an item in the
places database in firefox 3.
... for an overview of the
places database design, see the
places database.
... most methods in the service are duplicated with one method labeled as a 'page annotation' taking an nsiuri and the others labeled as an 'item annotation' and taking the id of an item in the
places database.
...And 5 more matches
Using the Places keywords API
using the
places keywords api the
places keywords api allows to assign a keyword to an url.
... using the keywords api the keywords api is a promise-based api available through the
placesutils module: components.utils.import("resource://gre/modules/xpcomutils.jsm"); xpcomutils.definelazymodulegetter(this, "
placesutils", "resource://gre/modules/
placesutils.jsm"); setting a keyword for an url the insert() method accepts a keyword entry object describing the keyword to insert.
...
placesutils.keywords.insert({ keyword: "my_keyword", url: "http://www.example.com/" postdata: "post+data=1&test=2" }).then(() => { /* success */ }, e => { /* failure */ }); note that setting an already existing keyword to a different url, will silently update the existing keyword to the new url.
...And 3 more matches
nsIPlacesView
the nsi
placesview interface provides a view-agnostic way to access information about a
places view.
...views do this, and other things, by implementing the nsi
placesview interface.
... note: nsi
placesview does not exist in idl at the moment.
...And 3 more matches
History.replaceState() - Web APIs
the history.re
placestate() method modifies the current history entry, replacing it with the stateobj, title, and url passed in the method parameters.
... syntax history.re
placestate(stateobj, title, [url]) parameters stateobj the state object is a javascript object which is associated with the history entry passed to the re
placestate method.
...the new url must be of the same origin as the current url; otherwise re
placestate throws an exception.
...And 3 more matches
Places Expiration
expiration is handled in toolkit/components/
places/ns
placesexpiration.js.
... on maintenance when
places maintenance runs (about once a week, on daily idle), an orphans expiration step is executed, this ensures database cleanup.
... preferences usually there is no need to tweak or set any preference, since adaptive behavior should satisfy each need, though in case of unexpected issues it's possible to act on some hidden preferences:
places.history.expiration.interval_seconds: minimum number of seconds between expiration steps.
...And 2 more matches
nsIPlacesImportExportService
toolkit/components/
places/nsi
placesimportexportservice.idlscriptable provides methods for exporting
places data.
... 1.0 66 introduced gecko 1.9 inherits from: nsisupports last changed in gecko 14.0 (firefox 14.0 / thunderbird 14.0 / seamonkey 2.11) in the past, this interface also offered methods for importing
places data, but those methods are now part of the bookmarkhtmlutils.jsm javascript code module.
... implemented by: @mozilla.org/import-export-service;1 as a service: var
placesimportexportservice = components.classes["@mozilla.org/import-export-service;1"] .getservice(components.interfaces.nsi
placesimportexportservice); method overview void backupbookmarksfile(); void exporthtmltofile(in nsilocalfile afile); void importhtmlfromfile(in nsilocalfile afile, in boolean aisinitialimport); obsolete since gecko 14.0 void importhtmlfromfiletofolder(in nsilocalfile afile, in print64 afolder, in boolean aisinitialimport); obsolete since gecko 14.0 void importhtmlfromuri(in nsiuri auri, in boolean aisinitialimport); obsolete sin...
...And 2 more matches
Animation.replaceState - Web APIs
the read-only animation.re
placestate property of the web animations api returns the replace state of the animation.
... syntax let myre
placestate = animation.re
placestate; value a string that represents the replace state of the anmation.
...llowing code: const divelem = document.queryselector('div'); document.body.addeventlistener('mousemove', evt => { let anim = divelem.animate( { transform: `translate(${ evt.clientx}px, ${evt.clienty}px)` }, { duration: 500, fill: 'forwards' } ); anim.commitstyles(); //anim.persist() anim.onremove = function() { console.log('animation removed'); } console.log(anim.re
placestate); }); here we have a <div> element, and an event listener that fires the event handler code whenever the mouse moves.
...And 2 more matches
FetchEvent.replacesClientId - Web APIs
the re
placesclientid read-only property of the fetchevent interface is the id of the client that is being replaced during a page navigation.
... for example, when navigating from page a to page b re
placesclientid is the id of the client associated with page a.
... additionally, if the fetch isn't a navigation, re
placesclientid will be an empty string.
...And 2 more matches
places/history - Archive of obsolete content
usage this module exports a single function, search(), which synchronously returns a
placesemitter object which then asynchronously emits data and end or error events that contain information about the state of the operation.
... example let { search } = require("sdk/
places/history"); // simple query search( { url: "https://developers.mozilla.org/*" }, { sort: "visitcount" } ).on("end", function (results) { // results is an array of objects containing // data about visits to any site on developers.mozilla.org // ordered by visit count }); // complex query // the query objects are or'd together // let's say we want to retrieve all visits from before a week ago // with the query of 'ruby', but from last week onwards, we want // all results with 'javascript' in the url or title.
...
placesemitter the
placesemitter is not exposed in the module, but returned from the search functions.
... the
placesemitter inherits from event/target, and emits data, error, and end.
decimalplaces - Archive of obsolete content
« xul reference home decimal
places type: integer the number of decimal
places to display.
... the default is 0, which doesn't show any decimal
places.
... the value infinity may be used if you want no limit on the number of decimal
places.
Manipulating bookmarks using Places
the
places bookmarks service, provided by the nsinavbookmarksservice interface, provides methods for creating, deleting, and manipulating bookmarks and bookmark folders.
...specifying default_index as the index at which to insert the new folder
places it at the end of the list.
...{ // this function is called when my add-on is loaded onload: function() { bmsvc.addobserver(myext_bookmarklistener, false); }, // this function is called when my add-on is unloaded onunload: function() { bmsvc.removeobserver(myext_bookmarklistener); }, dosomething: function() { alert("did something."); } }; see also nsinavbookmarksservice nsinavbookmarkobserver
places using xpcom without chrome - bookmark observer ...
Using the Places favicon service
for an overview of the database design, see the
places database.
...expiration is handled by browser/components/
places/src/nsnavhistoryexpire.cpp as described in
places design.
...these annotation uris are described in more detail in using the
places annotation service.
places/favicon - Archive of obsolete content
let { getfavicon } = require("sdk/
places/favicon"); // string example getfavicon("http://mozilla.org").then(function (url) { console.log(url); // http://mozorg.cdn.mozilla.net/media/img/favicon.ico }); // tab example require("sdk/tabs").open({ url: "http://mozilla.org", onready: function (tab) { getfavicon(tab).then(function (url) { console.log(url); // http://mozorg.cdn.mozilla.net/media/img/favicon.ico }); } })...
Using the Places tagging service
var tags = taggingsvc.gettagsforuri(uri("http://example.com/", {})); //tags = an array of tags stored in http://example.com/ see also
places nsitaggingservice ...
mozIPlacesAutoComplete
toolkit/components/
places/public/mozi
placesautocomplete.idlscriptable this interface provides some constants used by the
places autocomplete search provider as well as methods to track opened pages for autocomplete purposes.
Index
193 moziasyncfavicons interfaces, interfaces:scriptable,
places nsifaviconservice handles this interface, so you do not need to directly create a new service.
...as an alternative, you can just use
placesutils.favicons from javascript.
... 194 moziasynchistory interfaces, interfaces:scriptable,
places, xpcom interface reference implemented by: @mozilla.org/browser/history;1 as a service: 195 mozicoloranalyzer interfaces, interfaces:scriptable,
places, reference, xpcom api reference, xpcom interface reference given an image uri, find the most representative color for that image based on the frequency of each color.
...And 34 more matches
Frecency algorithm
frecency is a score given to each unique uri in
places, encompassing bookmarks, history and tags.
...
places with this value can show up in autocomplete results.
... invalid
places have a frecency value of zero, and will not show up in autocomplete results.
...And 16 more matches
History Service Design
this document provides a high-level overview of the overall history service design of the
places system.
...
places is designed to be a complete replacement for the firefox bookmarks and history systems using storage.
... objectives the primary objectives of the new history service implementation in
places are: improve access to browsing history allow association of useful metadata with urls flexible query system for both end-users and add-ons developers clean architecture for ease of code reuse and maintainability the most known and visible feature of history are views.
...And 13 more matches
Index - Web APIs
it re
places any previous clipping region.
... 623 childnode.replacewith() api, dom, experimental, method, node, reference the childnode.replacewith() method re
places this childnode in the children list of its parent with a set of node or domstring objects.
... 776 domtokenlist.replace() api, dom, document, method, reference the replace() method of the domtokenlist interface re
places an existing token with a new token.
...And 12 more matches
Observer Notifications
places this topic indicates when actions related to
places (the history and bookmarks database) occur.
... topic data description
places-autocomplete-feedback-updated sent when
places updates the location bar's autocompletion display.
...
places-connection-closed sent after
places has closed its database connection.
...And 11 more matches
Index - Archive of obsolete content
96
places/bookmarks create, modify, and retrieve bookmarks.
... 97
places/favicon helper functions for working with favicons.
... 98
places/history access the user's browsing history.
...And 8 more matches
Working with the History API - Web APIs
html5 introduced the pushstate() and re
placestate() methods for add and modifying history entries, respectively.
... the re
placestate() method history.re
placestate() operates exactly like history.pushstate(), except that re
placestate() modifies the current history entry instead of creating a new one.
... re
placestate() is particularly useful when you want to update the state object or url of the current history entry in response to some user action.
...And 4 more matches
textbox - Archive of obsolete content
attributes cols, decimal
places, disabled, emptytext, hidespinbuttons, increment, label, max, maxlength, min, multiline, newlines, onblur, onchange, onfocus, oninput, placeholder, preference, readonly, rows, searchbutton, size, spellcheck, tabindex, timeout, type, value, wrap, wraparound properties accessibletype, clickselectsall, decimal
places, decimalsymbol, defaultvalue, disabled, editor, emptytext, increment, inputfield, la...
... decimal
places type: integer the number of decimal
places to display.
... the default is 0, which doesn't show any decimal
places.
...And 3 more matches
mozIAsyncHistory
toolkit/components/
places/moziasynchistory.idlscriptable this interface allows you to add multiple visits to a single url in a batch.
... 1.0 66 introduced gecko 24.0 inherits from: nsisupports last changed in gecko 24.0 (firefox 24.0 / thunderbird 24.0 / seamonkey 2.21) implemented by: @mozilla.org/browser/history;1 as a service: var asynchistory = components.classes["@mozilla.org/browser/history;1"] .getservice(components.interfaces.moziasynchistory); method overview void get
placesinfo(in jsval aplaceidentifiers, in mozivisitinfocallback acallback); void isurivisited(in nsiuri auri, in mozivisitedstatuscallback acallback); void update
places(in moziplaceinfo, [optional] in mozivisitinfocallback acallback); methods get
placesinfo() starts an asynchronous request to determine whether or not a given uri has been visited; you must implement a callback to re...
...void get
placesinfo( in jsval aplaceidentifiers, in mozivisitinfocallback acallback ); parameters aplaceidentifiers the uri for which to determine the visited status.
...And 3 more matches
Modifying Web Pages Based on URL - Archive of obsolete content
a simple code snippet where content script is supplied as contentscript option and url pattern is given as include option is as follows: // import the page-mod api var pagemod = require("sdk/page-mod"); // create a page-mod // it will run a script whenever a ".org" url is loaded // the script re
places the page contents with a message pagemod.pagemod({ include: "*.org", contentscript: 'document.body.innerhtml = ' + ' "<h1>page matches ruleset</h1>";' }); do as follows: create a new directory and navigate to it.
... for example, if we save the script above under the add-on's data directory in a file called my-script.js: // import the page-mod api var pagemod = require("sdk/page-mod"); // import the self api var self = require("sdk/self"); // create a page-mod // it will run a script whenever a ".org" url is loaded // the script re
places the page contents with a message pagemod.pagemod({ include: "*.org", contentscriptfile: self.data.url("my-script.js") }); or from firefox 34 onwards: // import the page-mod api var pagemod = require("sdk/page-mod"); // create a page-mod // it will run a script whenever a ".org" url is loaded // the script re
places the page contents with a message pagemod.pagemod({ include: "*.org", con...
... // import the page-mod api var pagemod = require("sdk/page-mod"); // import the self api var self = require("sdk/self"); // create a page mod // it will run a script whenever a ".org" url is loaded // the script re
places the page contents with a message pagemod.pagemod({ include: "*.org", contentscriptfile: [self.data.url("jquery-1.7.min.js"), self.data.url("my-script.js")] }); you can use both contentscript and contentscriptfile in the same page-mod.
...And 2 more matches
Basic math in JavaScript — numbers and operators - Learn web development
floating point numbers (floats) have decimal points and decimal
places, for example 12.5, and 56.7786543.
... doubles are a specific type of floating point number that have greater precision than standard floating point numbers (meaning that they are accurate to a greater number of decimal
places).
... for example, to round your number to a fixed number of decimal
places, use the tofixed() method.
...And 2 more matches
Retrieving part of the bookmarks tree
bookmarks are retrieved using the
places query system.
... for more basic bookmarks examples, see manipulating bookmarks using
places.
...attributes defined in /toolkit/components/
places/public/nsinavbookmarksservice.idl are: bookmarksmenufolder, tagsfolder, unfiledbookmarksfolder and toolbarfolder.
...And 2 more matches
nsIBrowserHistory
toolkit/components/
places/public/nsibrowserhistory.idlscriptable a browser-specific interface to global history.
...you should use moziasynchistory.update
places() instead.
... note: this method was an alias for mozi
placesautocomplete.registeropenpage(), which still exists and can be used instead.
...And 2 more matches
Window: popstate event - Web APIs
bubbles yes cancelable no interface popstateevent event handler property onpopstate the history stack if the history entry being activated was created by a call to history.pushstate() or was affected by a call to history.re
placestate(), the popstate event's state property contains a copy of the history entry's state object.
... note that just calling history.pushstate() or history.re
placestate() won't trigger a popstate event.
... if current-entry's title wasn't set using one of the history api methods (pushstate() or re
placestate(), set the entry's title to the string returned by its document.title attribute.
...And 2 more matches
Bookmarks - Archive of obsolete content
the documentation for the new api is available at
places.
... the
places bookmarks service, provided by the nsinavbookmarksservice interface, provides methods for creating, deleting, and manipulating bookmarks and bookmark folders.
...specifying default_index as the index at which to insert the new folder
places it at the end of the list.
...{ // this function is called when my add-on is loaded onload: function() { bmsvc.addobserver(myext_bookmarklistener, false); }, // this function is called when my add-on is unloaded onunload: function() { bmsvc.removeobserver(myext_bookmarklistener); }, dosomething: function() { alert("did something."); } }; see also nsinavbookmarksservice nsinavbookmarkobserver
places using xpcom without chrome - bookmark observer ...
Game distribution - Game development
this includes hosting it yourself online, submitting it to open market
places, and submitting it to closed ones like google play or the ios app store.
... web and native stores you can also upload and publish your game directly to different types of stores, or market
places.
...see market
places — distribution platforms for more details of what marketplace types are available.
... market
places — distribution platforms let's see what the available options are regarding the market
places/stores available for different platforms and operating systems.
sslfnc.html
ssl_optionsetdefault re
places the deprecated function ssl_enabledefault.
... ssl_cipherpolicyset re
places the deprecated function ssl_setpolicy.
... ssl_optionset re
places the deprecated function ssl_enable.
... ssl_rehandshake re
places the deprecated function ssl_redohandshake.
IAccessibleEditableText
replacetext() re
places text.
...text the text that re
places the text between the given indices.
...setattributes() re
places the attributes of a text range by the given set of attributes.
...attributes set of attributes that re
places the old list of attributes of the specified text portion.
nsINavBookmarksService
toolkit/components/
places/nsinavbookmarksservice.idlscriptable the bookmarksservice interface provides methods for managing bookmarked history items.
...note: renamed from bookmarksroot in gecko 1.9
placesroot long long the item id of the top-level folder that contains bookmarks, tags and all other
places data.
...from c++ code inside the
places component, use nsbookmarksupdatebatcher defined in nsnavbookmarks.h to scope batches.
... see also
places manipulating bookmarks using
places nsitransaction nsinavbookmarkobserver nsinavhistorybatchcallback ...
Creating Event Targets - Archive of obsolete content
in this tutorial we'll create part of a module to access the browser's
places api.
... using the
places api first, let's write some code using
places api that logs the uris of bookmarks the user adds.
....generateqi([ci.nsinavbookmarkobserver]) }; bookmarkservice.addobserver(bookmarkobserver, false); } var bookmarkmanager = class({ extends: eventtarget, initialize: function initialize(options) { eventtarget.prototype.initialize.call(this, options); merge(this, options); createobserver(this); } }); exports.bookmarkmanager = bookmarkmanager; the code to interact with the
places api is the same here.
Enhanced Extension Installation - Archive of obsolete content
it forces its items to be located in different
places on the user's disk - some vendors wish to keep all of their installed content within c:\program files\foo\ for example.
...this re
places the individual extensions.rdf files at the old locations.
... upgrades when an item is installed (in any of the
places described above, e.g.
Migrating from Internal Linkage to Frozen Linkage - Archive of obsolete content
msglowercaseequalsliteral(a8, literal) re
places (a8).lowercaseequalsliteral(literal).
...msgrfindchar(str, ch, len) re
places (str).rfindchar(ch, len) msgcompresswhitespace(str) re
places (str).compresswhitespace().
...msgescapehtml(str) re
places nsescapehtml(str) msgescapehtml2(buffer, len) re
places nsescapehtml2(buffer, len).
Extensions support in SeaMonkey 2 - Archive of obsolete content
ome://browser/content/preferences/permissions.xul chrome://communicator/content/permis...onsmanager.xul permissions manager dialog urls added in 2.1 url in firefox url in seamonkey chrome://browser/content/bookmarks/bookmarkspanel.xul chrome://communicator/content/bookmarks/bm-panel.xul chrome://browser/content/
places/
places.xul chrome://communicator/content/bookma...rksmanager.xul thunderbird uses mostly the same chrome urls for overlaying as seamonkey.
...y 1.x and 2.0 seamonkey 2.1 overlays menu_filepopup menu_filepopup menu_filepopup file menu popup menu_editpopup menu_edit_popup menu_editpopup edit menu popup menu_viewpopup menu_view_popup menu_view_popup view menu popup - gopopup gopopup go menu popup
placespopup - - history menu popup bookmarksmenupopup menu_bookmarkspopup menu_bookmarkspopup bookmarks menu popup menu_toolspopup taskpopup taskpopup tools menu popup - windowpopup windowpopup window menu popup menu_helppopup helppopup helppopup help menu popup ...
...s a reduced set of methods: selectedcount selectedmessage selectedmessageisfeed selectedmessageisimap selectedmessageisnews selectedmessageisexternal selectedindices selectedmessages selectedmessageuris messagedisplay gmessagedisplay api seamonkey 2.0 only supports a reduced set of methods: displayedmessage visible javascript tweaks firefox supports some shorthand in various
places.
The life of an HTML HTTP request - Archive of obsolete content
the parser then parses the stream it gets via its streamlistener interface and converts it to nsiparsernodes which it
places in the contentsink.
...the content sink tells the document about content model changes (notifybody()) in
places like nshtmlcontentsink::willinterrupt() and nshtmlcontentsink::didbuildmodel().
...startlayout is called quite early in the parsing process, for html it's called in nshtmlcontentsink::openbody() (among other
places).
Introduction to automated testing - Learn web development
ty( k )) { myaccount.showjob(jobs[k].id, function (err, res) { let str = res.id + ": status: " + res.status; if (res.error) { str += "\033[31m error: " + res.error + " \033[0m"; } console.log(str); }); } } }); }); }); you'll need to fill in your sauce labs username and api key in the indicated
places.
...y)); }); /* response: { automate_plan: <string>, parallel_sessions_running: <int>, team_parallel_sessions_max_allowed: <int>, parallel_sessions_max_allowed: <int>, queued_sessions: <int>, queued_sessions_max_allowed: <int> } */ } getplandetails(); you'll need to fill in your browserstack username and api key in the indicated
places.
...give it the following contents: const testingbot = require('testingbot-api'); let tb = new testingbot({ api_key: "your-tb-key", api_secret: "your-tb-secret" }); tb.gettests(function (err, tests) { console.log(tests); }); you'll need to fill in your testingbot key and secret in the indicated
places.
Firefox UI considerations for web developers
there are a number of
places within the firefox user interface where web sites are listed for the user to choose a destination to visit or a site to manage in some way.
...while both of these can be edited by the user, you may wish to ensure that your site provides a good icon to use in
places like this.
... if tippy top doesn't include the site, firefox looks in its
places data store for icons specified in the page's <head> element; if an svg icon is available, that icon is selected.
Gecko Keypress Event
however, gecko re
places the charcode only when the key pressed corresponds to a latin letter (vk_a to vk_z), numeral (vk_0 to vk_9), plus sign (vk_oem_plus), or minus sign key (vk_oem_minus).
... however, when ctrl is down, gecko 1.9 currenly only re
places the charcode only when the key corresponds to a basic latin letter.
... gecko re
places the charcode of dom keypress events for accelerator key handling, but that is not enough.
OS.File for the main thread
this also requires option windisposition and this re
places argument mode.
...this also requires option winaccess and this re
places argument mode.
... let options = { winshare: 0 // exclusive lock on windows }; if (os.constants.libc.o_exlock) { // exclusive lock on *nix options.unixflags = os.constants.libc.o_exlock; } let file = yield os.file.open(..., options); then when you want to unlock the file so it can be edited from other
places, close the file.
nsAdoptingCString
note that this class violates constness in a few
places.
...method overview constructors operator= operator const char* operator[] get find rfind rfindchar findcharinset rfindcharinset compare equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar re
placesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsascii lowercaseequalsliteral(const char lowercaseequalsli...
... replacechar void replacechar(char, char) - source swaps occurence of 1 string for another parameters char aoldchar char anewchar void replacechar(const char*, char) - source parameters char* aset char anewchar re
placesubstring void re
placesubstring(const nscstring&, const nscstring&) - source parameters nscstring& atarget nscstring& anewvalue void re
placesubstring(const char*, const char*) - source parameters char* atarget char* anewvalue trim void trim(const char*, prbool, prbool, prbool) - source this method trims characters found in atrimset from either end of the underlying string.
nsAdoptingString
note that this class violates constness in a few
places.
...method overview constructors operator= operator const prunichar* operator[] get find rfind rfindchar findcharinset rfindcharinset equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar re
placesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsascii lowercaseequalsliteral(const char lowercaseequalsliteral(c...
... replacechar void replacechar(prunichar, prunichar) - source swaps occurence of 1 string for another parameters prunichar aoldchar prunichar anewchar void replacechar(const char*, prunichar) - source parameters char* aset prunichar anewchar re
placesubstring void re
placesubstring(const nsstring&, const nsstring&) - source parameters nsstring& atarget nsstring& anewvalue void re
placesubstring(const prunichar*, const prunichar*) - source parameters prunichar* atarget prunichar* anewvalue trim void trim(const char*, prbool, prbool, prbool) - source this method trims characters found in atrimset from either end of the underlyi...
mozIVisitInfoCallback
toolkit/components/
places/public/moziasynchistory.idlscriptable this interface provides callback handling functionality for moziasynchistory.update
places() 1.0 66 introduced gecko 2.0 inherits from: nsisupports last changed in gecko 9.0 (firefox 9.0 / thunderbird 9.0 / seamonkey 2.6) method overview void handleerror(in nsresult aresultcode, in moziplaceinfo aplaceinfo); void handleresult(in moziplaceinfo aplaceinfo); void oncomplete(in nsresult aresultcode, in moziplaceinfo aplaceinfo);obsolete since gecko 8.0 methods handleerror() called when a moziplaceinfo couldn't be processed.
... handleresult() called for each visit added, title change, or guid change when passed to moziasynchistory.update
places().
... oncomplete() obsolete since gecko 8.0 (firefox 8.0 / thunderbird 8.0 / seamonkey 2.5) called for each visit added, title change, or guid change when passed to moziasynchistory.update
places().
nsIFaviconService
toolkit/components/
places/public/nsifaviconservice.idlscriptable stores favicons for pages in bookmarks and history.
...note: this is an asynchronous operation; when it completes, a "
places-favicons-expired" notification is dispatched through the observer's service.
... see also
places using the
places favicon service using the
places annotation service ...
nsINavHistoryQueryOptions
toolkit/components/
places/nsinavhistoryservice.idlscriptable represents the global options for executing a query.
...this would be used if you just wanted a list of bookmark folders and queries (such as the left pane of the
places page).
...see also
places using the
places history service
places query uris querying
places nsinavhistoryservice ...
nsINavHistoryService
toolkit/components/
places/nsinavhistoryservice.idlscriptable this interface provides complex query functions, more fine-grained getters and setters.
...you should use the new async api moziasynchistory.update
places() instead.
... void getcharsetforuri( in nsiuri auri, in astring acharset ); parameters auri uri to set character-set for acharacterset character-set to be set see also
places using the
places history service querying
places nsinavhistorybatchcallback nsinavhistorycontainerresultnode nsinavhistoryfullvisitresultnode nsinavhistoryobserver nsinavhistoryquery nsinavhistoryqueryoptions nsinavhistoryqueryresultnode nsinavhistoryresult nsinavhistoryresultnode nsinavhistoryresulttreeviewer nsinavhistoryresultviewobserver nsinavhistoryresultviewer nsinavhistoryv...
XUL Overlays
/> in the overlay, an element with the same id attribute specifies a different image, and that image is superimposed on top of the original netscape image as part of the merge process: <html:img id="foo" src="mozillaimage.gif"/> when the base file references an overlay file which contains the html image element above, the new src attribute is superimposed over the original, and the mozilla icon re
places the netscape icon.
...for example, the buttons that appear at the bottom of common dialogs, the ok and cancel buttons, may be used in dozens of
places in the ui.
...toolbars, submenus, boxes, and any other subtrees that appear in multiple
places can be defined in overlays files in this way and referenced for reuse wherever necessary.
Mozilla technologies
starting with mozilla 1.9, it was phased out in favor of sqlite, a more widely-supported file format.
placesplaces is the bookmarks and history management system introduced in firefox 3.
... it offers increased flexibility and complex querying to make handling the
places the user goes easier and more convenient.
...it also introduces new user interfaces for managing all this information; see
places on the mozilla wiki.preferences apithe publicity stream apithe publicity stream is a mozilla-hosted activity stream generated by a user's application usage.
Mozilla
displaying
places information using views views are one component of the
places model-view-controller design.
...see querying
places for information about obtaining and using nsinavhistoryresult objects, which this page assumes you are familiar with.
...versions in at least the following
places must conform to this format: using c++ in mozilla code documentation moved in-tree using js in mozilla code js language features that are implemented in the mozilla js engine are ordinarily safe to use in mozilla code.
Document.execCommand() - Web APIs
(not supported by internet explorer.) inserthorizontalrule inserts a <hr> element at the insertion point, or re
places the selection with it.
... paste pastes the clipboard contents at the insertion point (re
places current selection).
... stylewithcss re
places the usecss command.
PopStateEvent - Web APIs
if the history entry being activated was created by a call to history.pushstate() or was affected by a call to history.re
placestate(), the popstate event's state property contains a copy of the history entry's state object.
... note: just calling history.pushstate() or history.re
placestate() won't trigger a popstate event.
... the popstate event as an example, a page at http://example.com/example.html running the following code will generate alerts as indicated: window.onpopstate = function(event) { alert("location: " + document.location + ", state: " + json.stringify(event.state)); }; history.pushstate({page: 1}, "title 1", "?page=1"); history.pushstate({page: 2}, "title 2", "?page=2"); history.re
placestate({page: 3}, "title 3", "?page=3"); history.back(); // alerts "location: http://example.com/example.html?page=1, state: {"page":1}" history.back(); // alerts "location: http://example.com/example.html, state: null history.go(2); // alerts "location: http://example.com/example.html?page=3, state: {"page":3} note that even though the original history entry (for http://example.com/example.html)...
Starting up and shutting down a WebXR session - Web APIs
first among these is that use of immersive-vr mode—which entirely re
places the user's view of the world—requires that the xr-spatial-tracking feature policy be in place.
...there are three options: immersive-vr a fully-immersive virtual reality session using a headset or similar device that fully re
places the world around the user with the images you present.
... the reference space returned by requestreferencespace()
places the origin (0, 0, 0) in the center of the space.
WindowEventHandlers.onpopstate - Web APIs
if the activated history entry was created by a call to history.pushstate(), or was affected by a call to history.re
placestate(), the popstate event's state property contains a copy of the history entry's state object.
... note: calling history.pushstate() or history.re
placestate() won't trigger a popstate event.
... examples for example, a page at http://example.com/example.html running the following code will generate alerts as indicated: window.onpopstate = function(event) { alert("location: " + document.location + ", state: " + json.stringify(event.state)); }; history.pushstate({page: 1}, "title 1", "?page=1"); history.pushstate({page: 2}, "title 2", "?page=2"); history.re
placestate({page: 3}, "title 3", "?page=3"); history.back(); // alerts "location: http://example.com/example.html?page=1, state: {"page":1}" history.back(); // alerts "location: http://example.com/example.html, state: null history.go(2); // alerts "location: http://example.com/example.html?page=3, state: {"page":3} note that even though the original history entry (for http://example.com/example.html)...
Using CSS custom properties (variables) - CSS: Cascading Style Sheets
for example, the same color might be used in hundreds of different
places, requiring global search and replace if that color needs to change.
... custom properties allow a value to be stored in one place, then referenced in multiple other
places.
...the background color is set to brown in several
places.
regexp:replace() - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes regexp:replace() re
places the portions of a string that match a given regular expression with the contents of another string.
... syntax regexp:replace(originalstring, regexpstring, flagsstring, re
placestring) parameters originalstring the string perform a search-and-replace operation upon.
... re
placestring the string with which the matched substrings are to be replaced.
<input type="number"> - HTML: Hypertext Markup Language
step="0.01" to allow decimals to two decimal
places).
... here's a simple example: <input type="number" placeholder="1.0" step="0.01" min="0" max="10"> see that this example allows any value between 0.0 and 10.0, with decimals to two
places.
...the input for the height in meters accepts decimals to two
places.
String.prototype.substring() - JavaScript
replacing a substring within a string the following example re
places a substring within a string.
... // re
places olds with news in the string fulls function re
placestring(olds, news, fulls) { for (let i = 0; i < fulls.length; ++i) { if (fulls.substring(i, i + olds.length) == olds) { fulls = fulls.substring(0, i) + news + fulls.substring(i + olds.length, fulls.length) } } return fulls } re
placestring('world', 'web', 'brave new world') note that this can result in an infinite loop if olds is itself a substring of news — for example, if you attempted to replace 'world' with 'otherworld' here.
... a better method for replacing strings is as follows: function re
placestring(olds, news, fulls) { return fulls.split(olds).join(news) } the code above serves as an example for substring operations.
test/utils - Archive of obsolete content
let { before, after } = require('sdk/test/utils'); let { search } = require('sdk/
places/bookmarks'); exports.testcountbookmarks = function (assert, done) { search().on('end', function (results) { assert.equal(results, 0, 'should be no bookmarks'); done(); }); }; before(exports, function (name, assert) { removeallbookmarks(); }); require('sdk/test').run(exports); both before and after may be asynchronous.
... to make them asynchronous, pass a third argument done, which is a function to call when you have finished: let { before, after } = require('sdk/test/utils'); let { search } = require('sdk/
places/bookmarks'); exports.testcountbookmarks = function (assert, done) { search().on('end', function (results) { assert.equal(results, 0, 'should be no bookmarks'); done(); }); }; before(exports, function (name, assert, done) { removeallbookmarksasync(function () { done(); }); }); require('sdk/test').run(exports); globals functions before(exports, beforefn) runs beforefn before each test in the file.
Using XPCOM without chrome - Archive of obsolete content
// this removes the need to import ci and the xpcomutils const { class } = require("sdk/core/heritage"); const { unknown } = require('sdk/platform/xpcom'); const {
placesutils } = require("resource://gre/modules/
placesutils.jsm"); let bmlistener = class({ extends: unknown, interfaces: [ "nsinavbookmarkobserver" ], //this event most often handles all events onitemchanged: function(bid, prop, an, nv, lm, type, parentid, aguid, aparentguid) { console.log("onitemchanged", "bid: "+bid, "property: "+prop, "isanno: "+an, "new value: "+nv, "lastmod: "+lm, "type: "+...
...notice the small l var bmlistener = bmlistener();
placesutils.bookmarks.addobserver(bmlistener, false); ...
Style System Overview - Archive of obsolete content
we also have reparentstylecontext, used in a few
places (usually during frame construction), but it's broken (has many bugs that reresolvestylecontext used to have).
... as for other style changes, we have to “walk” the rule tree and clear all the style data coming from the old inline style nsistylerule, since there could be an !important rule that overrides it, which would allow dynamic changes to put the style attribute in multiple
places in the rule tree.
Creating a Help Content Pack - Archive of obsolete content
the previous document had a lot of
places where ideas were simply introduced without explanation, and i've tried to go through things a bit more slowly with better descriptions.
...it's exactly the same as any javascript command, you you can insert it in command elements, oncommand attributes, and other such
places.
jspage - Archive of obsolete content
.removeclass(l):this.addclass(l); },adopt:function(){array.flatten(arguments).each(function(l){l=document.id(l,true);if(l){this.appendchild(l);}},this);return this;},appendtext:function(m,l){return this.grab(this.getdocument().newtextnode(m),l); },grab:function(m,l){a[l||"bottom"](document.id(m,true),this);return this;},inject:function(m,l){a[l||"bottom"](this,document.id(m,true));return this;},re
places:function(l){l=document.id(l,true); l.parentnode.replacechild(this,l);return this;},wraps:function(m,l){m=document.id(m,true);return this.re
places(m).grab(m,l);},getprevious:function(l,m){return j(this,"previoussibling",null,l,false,m); },getallprevious:function(l,m){return j(this,"previoussibling",null,l,true,m);},getnext:function(l,m){return j(this,"nextsibling",null,l,false,m);},getallnext:func...
...uerystring(g);if(browser.engine.trident){h.classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"; e.movie=l;}else{h.type="application/x-shockwave-flash";h.data=l;}var j='<object id="'+b+'"';for(var i in h){j+=" "+i+'="'+h[i]+'"';}j+=">";for(var c in e){if(e[c]){j+='<param name="'+c+'" value="'+e[c]+'" />'; }}j+="</object>";this.object=((a)?a.empty():new element("div")).set("html",j).firstchild;},re
places:function(a){a=document.id(a,true);a.parentnode.replacechild(this.toelement(),a); return this;},inject:function(a){document.id(a,true).appendchild(this.toelement());return this;},remote:function(){return swiff.remote.apply(swiff,[this.toelement()].extend(arguments)); }});swiff.callbacks={};swiff.remote=function(obj,fn){var rs=obj.callfunction('<invoke name="'+fn+'" returntype="javascript">'+__flas...
textbox (Toolkit autocomplete) - Archive of obsolete content
places-tag-autocomplete requires seamonkey 2.1 the user's
places tags are searched.
...there are several attributes that allow the number textbox to be configured, including decimal
places, min, max, increment, wraparound, hidespinbuttons, and textbox.value.
Textbox (XPFE autocomplete) - Archive of obsolete content
places-tag-autocomplete requires seamonkey 2.1 the user's
places tags are searched.
...there are several attributes that allow the number textbox to be configured, including decimal
places, min, max, increment, wraparound, hidespinbuttons, and textbox.value.
Anonymous Content - Archive of obsolete content
or, you may wish to place different types of content in different
places.
...you can place multiple children elements in a binding to place different types of content in different
places.
Broadcasters and Observers - Archive of obsolete content
it also has the disadvantage that we would need to know all of the
places where a back action could be.
...you can also have only one if you wanted to but that would accomplish very little since the main reason for using broadcasters is to have attributes forwarded to multiple
places.
Creating a Window - Archive of obsolete content
the syntax is described below: window.open(url,windowname,flags); where the flags contains the flag "chrome" as in this example window.open("chrome://navigator/content/navigator.xul", "bmarks", "chrome,width=600,height=300"); if you are using firefox, try below: window.open("chrome://browser/content/
places/
places.xul", "bmarks", "chrome,width=600,height=300"); you can test lines of javascript like these in the error console.
... firefox -chrome chrome://browser/content/
places/
places.xul the '-chrome' argument doesn't give the file any additional privileges.
XUL Structure - Archive of obsolete content
to further the confusion, there are two other
places where the word "chrome" might appear.
... adding a package mozilla
places the packages that are included with the installation in the chrome directory.
XUL Event Propagation - Archive of obsolete content
this article describes the event model in xul and features event propagation as a way to handle events in different
places in the interface.
... event bubbling this availability of events in
places other than their element of origin is known as "event propagation" or event bubbling.
Common Firefox theme issues and solutions - Archive of obsolete content
in order to work around this issue, you need to either rename any of the following files that are in your chrome://browser/skin/ folder and fix any references to those files, or copy them to the folder chrome://browser/skin/lion/: keyhole-circle.png toolbar.png toolbarbutton-dropmarker.png tabbrowser/alltabs-box-bkgnd-icon.png tabview/tabview.png
places/toolbar.png linux linux select box fields are showing both drop arrow and spinner arrows on linux: the styling of drop down select box fields may show both a drop arrow and up/down spinner arrows.
...this issue is fixed by adding the following css instructions to the file browser/preferences/aboutpermissions.css: .site-favicon { height: 16px; width: 16px; -moz-margin-end: 4px; list-style-image: url("chrome://mozapps/skin/
places/defaultfavicon.png"); } web developer tools web developer toolbar {to be added} web console web console buttons do not change appearance on the web console (tools > web developer > web console), the toolbar buttons on the left-hand side do not change their appearance between their toggled on and toggled off status as a result it is not possible to determine which buttons are enabled.
CSS values and units - Learn web development
strings and identifiers throughout the examples above, we've seen
places where keywords are used as a value (for example <color> keywords like red, black, rebeccapurple, and goldenrod).
... there are
places where you use strings in css, for example when specifying generated content.
Legacy layout methods - Learn web development
you can follow along by creating a new index.html file on your computer, filling it with a simple html template, and inserting the below code into it at the appropriate
places.
... 60 / 960 = 0.0625 we then move the decimal point 2
places giving us a percentage of 6.25%.
Multiple-column layout - Learn web development
you can follow along by downloading the multicol starting point file and adding the css into the appropriate
places.
... sometimes, this breaking will happen in
places that lead to a poor reading experience.
Responsive design - Learn web development
target / context = result for example, if our target column size is 60 pixels, and the context (or container) it is in is 960 pixels, we divide 60 by 960 to get a value we can use in our css, after moving the decimal point two
places to the right.
... .col { width: 6.25%; /* 60 / 960 = 0.0625 */ } this approach will be found in many
places across the web today, and it is documented here in the layout section of our legacy layout methods article.
Creating hyperlinks - Learn web development
if the pdf was available in a subdirectory inside projects called pdfs, the relative link would be pdfs/project-brief.pdf (the equivalent absolute url would be http://www.example.com/projects/pdfs/project-brief.pdf.) a relative url will point to different
places depending on the actual location of the file you refer from — for example if we moved our index.html file out of the projects directory and into the root of the web site (the top level, not in any directories), the pdfs/project-brief.pdf relative url link inside it would now point to a file located at http://www.example.com/pdfs/project-brief.pdf, not a file located at http://www.example.com/pr...
... minimize instances where multiple copies of the same text are linked to different
places.
Silly story generator - Learn web development
re
places the default name "bob" in the story with a custom name, only if a custom name is entered into the "enter custom name" text field before the generate button is pressed.
...as a further hint, the method in question only re
places the first instance of the substring it finds, so you might need to make one of the calls twice.
Test your skills: Math - Learn web development
after multiplying the two results together and formatting the result to 2 decimal
places, the final result should be 10.42.
... write a line of code that takes result and formats it to 2 decimal
places, storing the result of this in a variable called finalresult.
Introduction to client-side frameworks - Learn web development
modern developer priorities, amplified by frameworks, have inverted the structure of the web in many
places.
... static site generators static site generators are programs that dynamically generate all the webpages of a multi-page website — including any relevant css or javascript — so that they can be published in any number of
places.
Beginning our React todo list - Learn web development
the jsx copy the following snippet to your clipboard, then paste it into app.js so that it re
places the existing app() function: function app(props) { return ( <div classname="todoapp stack-large"> <h1>todomatic</h1> <form> <h2 classname="label-wrapper"> <label htmlfor="new-todo-input" classname="label__lg"> what needs to be done?
... implementing our styles paste the following css code into src/index.css so that it re
places what's currently there: /* resets */ *, *::before, *::after { box-sizing: border-box; } *:focus { outline: 3px dashed #228bec; outline-offset: 0; } html { font: 62.5% / 1.15 sans-serif; } h1, h2 { margin-bottom: 0; } ul { list-style: none; padding: 0; } button { border: none; margin: 0; padding: 0; width: auto; overflow: visible; background: transparent; color: inheri...
Handling common accessibility problems - Learn web development
we've already talked about other spheres such as responsive design and performance in other
places in the module.
... this seems like a lot of commands, but it isn't so bad when you get used to it, and vo regularly gives you reminders of what commands to use in certain
places.
Introduction to cross browser testing - Learn web development
workflows for cross browser testing all of this cross browser testing business may sound time consuming and scary, but it needn't be — you just need to plan carefully for it, and make sure you do enough testing in the right
places to make sure you don't run into unexpected problems.
... once a fix has been made, you'll want to repeat your testing process to make sure your fix is working ok, and hasn't caused the site to break in other
places or in other browsers.
WebRequest.jsm
it's used in two
places: filtering requests by type, and as the type property of the argument passed to the listener.
...est.addlistener(cancelimages, { urls: pattern, types: ["image"] }, ["blocking"]); function cancelimages(e) { console.log("canceling: " + e.url); return {cancel: true}; } redirecting this code re
places, by redirection, all network requests for images that are made to urls under "https://mdn.mozillademos.org/": let {webrequest} = cu.import("resource://gre/modules/webrequest.jsm", {}); cu.import("resource://gre/modules/matchpattern.jsm"); let pattern = new matchpattern("https://mdn.mozillademos.org/*"); webrequest.onbeforesendheaders.addlistener(redirect, ...
Investigating CSS Performance
http://people.mozilla.org/~jmuizelaar/css-perf.patch this patch instruments a bunch of key
places and should give an estimate of the order of magnitude of the different parents.
... two counts are collected which allow for an estimation of the amount of work being done during restyle: resolvestyleforcount this is incremented everytime that we do style resolution on an element contentenumfunccount this is incremented roughly for every rule that we test against time during restyle can be spent in a bunch of
places.
AsyncTestUtils extended framework
when i/o results in newly read data it
places an event in the queue.
... when a timer fires because the requested duration is up, it also
places an event in the queue.
NSS 3.15 release notes
it re
places function secitem_reallocitem, which is now declared as obsolete.
... in secitem.h secitem_allocarray secitem_duparray secitem_freearray secitem_zfreearray - utility functions to handle the allocation and deallocation of secitemarrays secitem_reallocitemv2 - re
places secitem_reallocitem, which is now obsolete.
Bytecode Descriptions
if the circumstances permit the optimization, tryskipawait re
places value with the result of the await expression (unwrapping the resolved promise, if any) and pushes true.
...implements:
places in the spec where the variableenvironment is set: the bit in performeval where, in strict direct eval, the new eval scope is taken as varenv and becomes "runningcontext's variableenvironment".
SpiderMonkey Internals
public apis the public c/c++ interface, called the jsapi, is in most
places a thin (but source-compatible across versions) layer over the implementation.
... a look at the
places where jsshell.msg is used in js.cpp shows how error messages can be handled in jsapi applications.
WebReplayRoadmap
new features are possible with time travel, though, which would be nice to support: supporting the debugger's event breakpoints would allow searching the recording for
places where particular dom events occur, and -- in the same manner as logpoints -- logging them to the console and allowing them to be seeked to later.
... recordings can be manually analyzed to determine this information, but it would be nice to automate this process and provide a summary of the allocation sites and
places where objects are linked together that end up entraining the most amount of memory later on.
NS_ConvertASCIItoUTF16
class declaration method overview constructors operator= get find rfind rfindchar findcharinset rfindcharinset equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar re
placesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsascii lowercaseequalsliteral(const char lowercaseequalsliteral(char assign ...
... replacechar void replacechar(prunichar, prunichar) - source swaps occurence of 1 string for another parameters prunichar aoldchar prunichar anewchar void replacechar(const char*, prunichar) - source parameters char* aset prunichar anewchar re
placesubstring void re
placesubstring(const nsstring&, const nsstring&) - source parameters nsstring& atarget nsstring& anewvalue void re
placesubstring(const prunichar*, const prunichar*) - source parameters prunichar* atarget prunichar* anewvalue trim void trim(const char*, prbool, prbool, prbool) - source this method trims characters found in atrimset from either end of the underlyi...
NS_ConvertUTF16toUTF8
class declaration a helper class that converts a utf-16 string to utf-8 method overview constructors operator= get find rfind rfindchar findcharinset rfindcharinset compare equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar re
placesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsascii lowercaseeq...
... replacechar void replacechar(char, char) - source swaps occurence of 1 string for another parameters char aoldchar char anewchar void replacechar(const char*, char) - source parameters char* aset char anewchar re
placesubstring void re
placesubstring(const nscstring&, const nscstring&) - source parameters nscstring& atarget nscstring& anewvalue void re
placesubstring(const char*, const char*) - source parameters char* atarget char* anewvalue trim void trim(const char*, prbool, prbool, prbool) - source this method trims characters found in atrimset from either end of the underlying string.
NS_ConvertUTF8toUTF16
class declaration method overview constructors operator= get find rfind rfindchar findcharinset rfindcharinset equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar re
placesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsascii lowercaseequalsliteral(const char lowercaseequalsliteral(char assign ...
... replacechar void replacechar(prunichar, prunichar) - source swaps occurence of 1 string for another parameters prunichar aoldchar prunichar anewchar void replacechar(const char*, prunichar) - source parameters char* aset prunichar anewchar re
placesubstring void re
placesubstring(const nsstring&, const nsstring&) - source parameters nsstring& atarget nsstring& anewvalue void re
placesubstring(const prunichar*, const prunichar*) - source parameters prunichar* atarget prunichar* anewvalue trim void trim(const char*, prbool, prbool, prbool) - source this method trims characters found in atrimset from either end of the underlyi...
NS_LossyConvertUTF16toASCII
class declaration a helper class that converts a utf-16 string to ascii in a lossy manner method overview constructors operator= get find rfind rfindchar findcharinset rfindcharinset compare equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar re
placesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsasc...
... replacechar void replacechar(char, char) - source swaps occurence of 1 string for another parameters char aoldchar char anewchar void replacechar(const char*, char) - source parameters char* aset char anewchar re
placesubstring void re
placesubstring(const nscstring&, const nscstring&) - source parameters nscstring& atarget nscstring& anewvalue void re
placesubstring(const char*, const char*) - source parameters char* atarget char* anewvalue trim void trim(const char*, prbool, prbool, prbool) - source this method trims characters found in atrimset from either end of the underlying string.
nsAutoString
names: nsautostring for wide characters nscautostring for narrow characters method overview constructors operator= get find rfind rfindchar findcharinset rfindcharinset equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar re
placesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char ...
... replacechar void replacechar(prunichar, prunichar) - source swaps occurence of 1 string for another parameters prunichar aoldchar prunichar anewchar void replacechar(const char*, prunichar) - source parameters char* aset prunichar anewchar re
placesubstring void re
placesubstring(const nsstring&, const nsstring&) - source parameters nsstring& atarget nsstring& anewvalue void re
placesubstring(const prunichar*, const prunichar*) - source parameters prunichar* atarget prunichar* anewvalue trim void trim(const char*, prbool, prbool, prbool) - source this method trims characters found in atrimset from either end of the underlyi...
nsCAutoString
rrow characters method overview constructors operator= get find rfind rfindchar findcharinset rfindcharinset compare equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar re
placesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countc...
... replacechar void replacechar(char, char) - source swaps occurence of 1 string for another parameters char aoldchar char anewchar void replacechar(const char*, char) - source parameters char* aset char anewchar re
placesubstring void re
placesubstring(const nscstring&, const nscstring&) - source parameters nscstring& atarget nscstring& anewvalue void re
placesubstring(const char*, const char*) - source parameters char* atarget char* anewvalue trim void trim(const char*, prbool, prbool, prbool) - source this method trims characters found in atrimset from either end of the un...
nsCString
method overview constructors operator= get find rfind rfindchar findcharinset rfindcharinset compare equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar re
placesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char ...
... replacechar void replacechar(char, char) - source swaps occurence of 1 string for another parameters char aoldchar char anewchar void replacechar(const char*, char) - source parameters char* aset char anewchar re
placesubstring void re
placesubstring(const nscstring&, const nscstring&) - source parameters nscstring& atarget nscstring& anewvalue void re
placesubstring(const char*, const char*) - source parameters char* atarget char* anewvalue trim void trim(const char*, prbool, prbool, prbool) - source this method trims characters found in atrimset from either end of the underlying string.
nsDependentCString
method overview constructors assertvalid rebind operator= get find rfind rfindchar findcharinset rfindcharinset compare equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar re
placesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char ...
... replacechar void replacechar(char, char) - source swaps occurence of 1 string for another parameters char aoldchar char anewchar void replacechar(const char*, char) - source parameters char* aset char anewchar re
placesubstring void re
placesubstring(const nscstring&, const nscstring&) - source parameters nscstring& atarget nscstring& anewvalue void re
placesubstring(const char*, const char*) - source parameters char* atarget char* anewvalue trim void trim(const char*, prbool, prbool, prbool) - source this method trims characters found in atrimset from either end of the underlying string.
nsDependentString
method overview constructors assertvalid rebind operator= get find rfind rfindchar findcharinset rfindcharinset equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar re
placesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char ...
... replacechar void replacechar(prunichar, prunichar) - source swaps occurence of 1 string for another parameters prunichar aoldchar prunichar anewchar void replacechar(const char*, prunichar) - source parameters char* aset prunichar anewchar re
placesubstring void re
placesubstring(const nsstring&, const nsstring&) - source parameters nsstring& atarget nsstring& anewvalue void re
placesubstring(const prunichar*, const prunichar*) - source parameters prunichar* atarget prunichar* anewvalue trim void trim(const char*, prbool, prbool, prbool) - source this method trims characters found in atrimset from either end of the underlyi...
nsFixedCString
class declaration method overview constructors operator= get find rfind rfindchar findcharinset rfindcharinset compare equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar re
placesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsascii lowercaseequalsliteral(const char lowercaseequalsliteral(char...
... replacechar void replacechar(char, char) - source swaps occurence of 1 string for another parameters char aoldchar char anewchar void replacechar(const char*, char) - source parameters char* aset char anewchar re
placesubstring void re
placesubstring(const nscstring&, const nscstring&) - source parameters nscstring& atarget nscstring& anewvalue void re
placesubstring(const char*, const char*) - source parameters char* atarget char* anewvalue trim void trim(const char*, prbool, prbool, prbool) - source this method trims characters found in atrimset from either end of the underlying string.
nsFixedString
class declaration method overview constructors operator= get find rfind rfindchar findcharinset rfindcharinset equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar re
placesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsascii lowercaseequalsliteral(const char lowercaseequalsliteral(char assign ...
... replacechar void replacechar(prunichar, prunichar) - source swaps occurence of 1 string for another parameters prunichar aoldchar prunichar anewchar void replacechar(const char*, prunichar) - source parameters char* aset prunichar anewchar re
placesubstring void re
placesubstring(const nsstring&, const nsstring&) - source parameters nsstring& atarget nsstring& anewvalue void re
placesubstring(const prunichar*, const prunichar*) - source parameters prunichar* atarget prunichar* anewvalue trim void trim(const char*, prbool, prbool, prbool) - source this method trims characters found in atrimset from either end of the underlyi...
nsPromiseFlatCString
class declaration method overview constructors operator= get find rfind rfindchar findcharinset rfindcharinset compare equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar re
placesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsascii lowercaseequalsliteral(const char lowercaseequalsliteral(char...
... replacechar void replacechar(char, char) - source swaps occurence of 1 string for another parameters char aoldchar char anewchar void replacechar(const char*, char) - source parameters char* aset char anewchar re
placesubstring void re
placesubstring(const nscstring&, const nscstring&) - source parameters nscstring& atarget nscstring& anewvalue void re
placesubstring(const char*, const char*) - source parameters char* atarget char* anewvalue trim void trim(const char*, prbool, prbool, prbool) - source this method trims characters found in atrimset from either end of the underlying string.
nsPromiseFlatString
class declaration method overview constructors operator= get find rfind rfindchar findcharinset rfindcharinset equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar re
placesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsascii lowercaseequalsliteral(const char lowercaseequalsliteral(char assign ...
... replacechar void replacechar(prunichar, prunichar) - source swaps occurence of 1 string for another parameters prunichar aoldchar prunichar anewchar void replacechar(const char*, prunichar) - source parameters char* aset prunichar anewchar re
placesubstring void re
placesubstring(const nsstring&, const nsstring&) - source parameters nsstring& atarget nsstring& anewvalue void re
placesubstring(const prunichar*, const prunichar*) - source parameters prunichar* atarget prunichar* anewvalue trim void trim(const char*, prbool, prbool, prbool) - source this method trims characters found in atrimset from either end of the underlyi...
nsString
method overview constructors operator= get find rfind rfindchar findcharinset rfindcharinset equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar re
placesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char ...
... replacechar void replacechar(prunichar, prunichar) - source swaps occurence of 1 string for another parameters prunichar aoldchar prunichar anewchar void replacechar(const char*, prunichar) - source parameters char* aset prunichar anewchar re
placesubstring void re
placesubstring(const nsstring&, const nsstring&) - source parameters nsstring& atarget nsstring& anewvalue void re
placesubstring(const prunichar*, const prunichar*) - source parameters prunichar* atarget prunichar* anewvalue trim void trim(const char*, prbool, prbool, prbool) - source this method trims characters found in atrimset from either end of the underlyi...
nsXPIDLCString
names: nsxpidlstring for wide characters nsxpidlcstring for narrow characters method overview constructors operator const char* operator[] operator= get find rfind rfindchar findcharinset rfindcharinset compare equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar re
placesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequals...
... replacechar void replacechar(char, char) - source swaps occurence of 1 string for another parameters char aoldchar char anewchar void replacechar(const char*, char) - source parameters char* aset char anewchar re
placesubstring void re
placesubstring(const nscstring&, const nscstring&) - source parameters nscstring& atarget nscstring& anewvalue void re
placesubstring(const char*, const char*) - source parameters char* atarget char* anewvalue trim void trim(const char*, prbool, prbool, prbool) - source this method trims characters found in atrimset from either end of the underlying string.
nsXPIDLString
names: nsxpidlstring for wide characters nsxpidlcstring for narrow characters method overview constructors operator const prunichar* operator[] operator= get find rfind rfindchar findcharinset rfindcharinset equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar re
placesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequals...
... replacechar void replacechar(prunichar, prunichar) - source swaps occurence of 1 string for another parameters prunichar aoldchar prunichar anewchar void replacechar(const char*, prunichar) - source parameters char* aset prunichar anewchar re
placesubstring void re
placesubstring(const nsstring&, const nsstring&) - source parameters nsstring& atarget nsstring& anewvalue void re
placesubstring(const prunichar*, const prunichar*) - source parameters prunichar* atarget prunichar* anewvalue trim void trim(const char*, prbool, prbool, prbool) - source this method trims characters found in atrimset from either end of the underlyi...
mozIAsyncFavicons
toolkit/components/
places/moziasyncfavicons.idlscriptable interface for accessing the favicon service asynchronously.
...as an alternative, you can just use
placesutils.favicons from javascript.
nsIAccessibleEditableText
attributes the set of attributes that re
places the old list of attributes of the specified text portion.
... settextcontents() re
places the text represented by this object with the given text.
nsIAnnotationObserver
toolkit/components/
places/public/nsiannotationservice.idlscriptable please add a summary to this article.
... see also
places using the
places annotation service using the
places favicon service nsiannotationservice ...
nsIAnnotationService
toolkit/components/
places/public/nsiannotationservice.idlscriptable stores arbitrary data about a web page.
... see also
places using the
places annotation service using the
places favicon service nsiannotationobserver ...
nsIDynamicContainer
toolkit/components/
places/public/nsidynamiccontainer.idlscriptable this interface provides a base class for services that want to provide containers for temporary contents.
... see also
places nsinavhistorycontainerresultnode nsinavhistoryqueryoptions nsinavbookmarksservice.createdynamiccontainer() ...
nsILivemarkService
toolkit/components/
places/public/nsilivemarkservice.idlscriptable this interface is used to create and reload livemarks.
... see also
places livemark service nsinavbookmarksservice ...
nsIMicrosummaryService
toolkit/components/
places/public/nsimicrosummaryservice.idlscriptable this interface provides methods for managing installed microsummaries, and the bookmarks they apply to.
...in the new
places-based datastore, they are nsiuri objects.
nsINavBookmarkObserver
toolkit/components/
places/nsinavbookmarksservice.idlscriptable this interface is an observer for bookmark changes.
...queryinterface: function(iid) { if (iid.equals(ci.nsinavbookmarkobserver) || iid.equals(ci.nsinavbookmarkobserver_mozilla_1_9_1_additions) || iid.equals(ci.nsisupports)) { return this; } throw cr.ns_error_no_interface; } see also
places manipulating bookmarks using
places nsinavbookmarksservice ...
nsINavHistoryObserver
toolkit/components/
places/nsinavhistoryservice.idlscriptable this interface is similar to the nsirdfobserver class, but is used to observe interactions on the global history.
...it is used in
places views only and can be ignored.
nsINavHistoryQuery
toolkit/components/
places/public/nsinavhistoryservice.idlscriptable encapsulates all the query parameters you're likely to need when building up history ui.
... see also
places using the
places history service querying
places nsinavhistoryservice ...
nsINavHistoryQueryResultNode
toolkit/components/
places/nsinavhistoryservice.idlscriptable used for
places queries and as a base class for bookmark folders.
... 1.0 66 introduced gecko 1.8 inherits from: nsinavhistorycontainerresultnode last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) note: if you request that
places not be expanded in the options that generated the node, the node will report that it has no children and will never try to populate itself.
nsINavHistoryResult
toolkit/components/
places/nsinavhistoryservice.idlscriptable describes the result of a history or bookmark query.
... 1.0 66 introduced gecko 1.8 inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1)
places results use a model-view-controller (mvc) design pattern.
nsINavHistoryResultNode
toolkit/components/
places/public/nsinavhistoryservice.idlscriptable this is the base class for all
places history result nodes, containing the uri, title, and other general information.
...using
places services after quit-application is not reliable, so make sure to do any shutdown work on quit-application, or history synchronization could fail, losing latest changes.
nsINavHistoryResultObserver
toolkit/components/
places/nsinavhistoryservice.idlscriptable lets clients observe changes to a result as the result updates itself according to bookmark and history system events.
... methods batching() lets the observer know when a batch operation in
places is about to start or end.
nsINavHistoryResultTreeViewer
toolkit/components/
places/public/nsinavhistoryservice.idlscriptable this interface provides a predefined view adaptor for interfacing
places query results with a tree.
...see also querying
places displaying
places information using views nsinavhistoryresult nsitreeview ...
nsINavHistoryResultViewer
toolkit/components/
places/public/nsinavhistoryservice.idlscriptable lets nsinavhistoryresult instances notify
places views of changes in the results.
... see also nsinavhistoryresult, nsitreeview, displaying
places information using views ...
nsITaggingService
toolkit/components/
places/public/nsitaggingservice.idlscriptable provides methods to tag/untag a uri, to retrieve uris for a given tag, and to retrieve all tags for a uri.
...see also
places using the
places tagging service ...
XPCOM Interface Reference
lliaccessibletextiaccessiblevalueidispatchijsdebuggeramiinstallcallbackamiinstalltriggeramiwebinstallinfoamiwebinstalllisteneramiwebinstallpromptamiwebinstallerimgicacheimgicontainerimgicontainerobserverimgidecoderimgidecoderobserverimgiencoderimgiloaderimgirequestinidomutilsjsdistackframemoziasyncfaviconsmoziasynchistorymozicoloranalyzermozijssubscriptloadermozipersonaldictionarymoziplaceinfomozi
placesautocompletemoziregistrymozirepresentativecolorcallbackmozispellcheckingenginemozistorageaggregatefunctionmozistorageasyncstatementmozistoragebindingparamsmozistoragebindingparamsarraymozistoragecompletioncallbackmozistorageconnectionmozistorageerrormozistoragefunctionmozistoragependingstatementmozistorageprogresshandlermozistorageresultsetmozistoragerowmozistorageservicemozistoragestatementmozist...
...inavhistoryresultnsinavhistoryresultnodensinavhistoryresultobservernsinavhistoryresulttreeviewernsinavhistoryresultviewobservernsinavhistoryresultviewernsinavhistoryservicensinavhistoryvisitresultnodensinetworklinkservicensiobservernsiobserverservicensioutputstreamnsioutputstreamcallbacknsiparentalcontrolsservicensiparserutilsnsipasswordnsipasswordmanagernsipermissionnsipermissionmanagernsipipensi
placesimportexportservicensi
placesviewnsipluginhostnsiprefbranch2nsipreflocalizedstringnsiprefservicensiprincipalnsiprinterenumeratornsiprintingpromptnsiprivatebrowsingservicensiprocessnsiprocess2nsiprocessscriptloadernsiprofilensiprofilelocknsiprofileunlockernsiprogramminglanguagensiprogresseventsinknsipromptnsipromptservicensipropertiesnsipropertynsipropertybagnsipropertybag2nsipropertyelementnsiproto...
Reference Manual
like nsisupports* (or even void*), people generally use nscomptr<nsisupports> to mean "any xpcom interface." it would be annoying if nscomptr forced you to queryinterface to the xpcom-correct nsisupports within an object in
places where you don't care to know the exact type.
...time [[more time-performance measurements are needed.]] in
places where two or more subroutines calls are required, i.e., of addref, release, and queryinterface, some nscomptr routines are factored, and hence, require additional time corresponding to invoking a subroutine.
Working with windows in chrome code
ng remote data", maxprogress: 50, progress: 10}, oncancel ); the progress dialog can then run the callback like this: <button label="cancel" oncommand="window.arguments[1](); close();" /> example 3: using nsiwindowmediator when opener is not enough the window.opener property is very easy to use, but it's only useful when you're sure that your window was opened from one of a few well-known
places.
...there are actually a few such
places.
Plug-in Basics - Plugins
when gecko starts, it looks for plugin modules in particular
places on the system.
... plug-in detection gecko looks for plug-ins in various
places and in a particular order.
Allocations - Firefox Developer Tools
click this to see the
places this function was called from: here you can see that signallater() was called from two
places: removeinner() and setselectioninner().
...but signallater() was called from two
places: removeinner() and setselectioninner().
Call Tree - Firefox Developer Tools
by analyzing its results, you can find bottlenecks in your code -
places where the browser is spending a disproportionately large amount of time.
... these bottlenecks are the
places where any optimizations you can make will have the biggest impact.
Animation.persist() - Web APIs
llowing code: const divelem = document.queryselector('div'); document.body.addeventlistener('mousemove', evt => { let anim = divelem.animate( { transform: `translate(${ evt.clientx}px, ${evt.clienty}px)` }, { duration: 500, fill: 'forwards' } ); anim.commitstyles(); //anim.persist() anim.onremove = function() { console.log('animation removed'); } console.log(anim.re
placestate); }); here we have a <div> element, and an event listener that fires the event handler code whenever the mouse moves.
... you can see the re
placestate of the animation being logged at the end of the handler.
Animation - Web APIs
animation.re
placestate returns the replace state of the animation.
... animation.re
placestate to return the replace state of the animation.
Element.innerHTML - Web APIs
setting the value of innerhtml removes all of the element's descendants and re
places them with nodes constructed by parsing the html given in the string htmlstring.
... for example, you can erase the entire contents of a document by clearing the contents of the document's body attribute: document.body.innerhtml = ""; this example fetches the document's current html markup and re
places the "<" characters with the html entity "<", thereby essentially converting the html into raw text.
FetchEvent - Web APIs
fetchevent.re
placesclientid read only the id of the client that is being replaced during a page navigation.
... fetchevent.resultingclientid read only the id of the client that re
places the previous client during a page navigation.
FileSystemEntrySync - Web APIs
moving a file over an existing file re
places that existing file.
... moving a directory over an existing empty directory re
places that directory.
Drag Operations - Web APIs
specifying drop targets a listener for the dragenter and dragover events are used to indicate valid drop targets, that is,
places where dragged items may be dropped.
... most areas of a web page or application are not valid
places to drop data.
NamedNodeMap - Web APIs
namednodemap.setnameditem() re
places, or adds, the attr identified in the map by the given name.
... namednodemap.setnameditemns() re
places, or adds, the attr identified in the map by the given namespace and related local name.
Inputs and input sources - Web APIs
this code presumes the existence of additional functions findtargetposition(), which follows the target ray until it collides with something, then returns the coordinates at which the collision occurred, and putobject(), which
places the object held in the specified hand at the given position, removing it from the hand.
... the applyexternalinputs() method takes the avatar object re
places its referencespace property with a new reference space that incorporates the updated deltas.
Movement, orientation, and motion: A WebXR example - Web APIs
98/math/mathml' display='block'>\n<mrow>\n<mo>[</mo>\n<mtable>\n"; for (let y=0; y<numrows; y++) { outhtml += "<mtr>\n"; for (let x=0; x<rowlength; x++) { outhtml += `<mtd><mn>${mat[(x*rowlength) + y].tofixed(2)}</mn></mtd>\n`; } outhtml += "</mtr>\n"; } outhtml += "</mtable>\n<mo>]</mo>\n</mrow>\n</math>"; } target.innerhtml = outhtml; } this re
places the contents of the element specified by target with a newly-created <math> element which contains the 4x4 matrix.
... each entry is displayed with up to two decimal
places.
Window.history - Web APIs
in particular, that article explains security features of the pushstate() and re
placestate() methods that you should be aware of before using them.
...the closest available solution is the location.replace() method, which re
places the current item of the session history with the provided url.
Operable - Accessibility
also note that you should minimize instances where multiple copies of the same text are linked to different
places.
...also note that you should minimize instances where multiple copies of the same text are linked to different
places.
Text labels and names - Accessibility
it's safest and most accessible to provide the same title in both
places.
...it's safest and most accessible to provide the same title in both
places.
content - CSS: Cascading Style Sheets
the content css property re
places an element with a generated value.
...loper network</a></li> </ul> css a { text-decoration: none; border-bottom: 3px dotted navy; } a::after { content: " (" attr(id) ")"; } #moz::before { content: url("https://mozorg.cdn.mozilla.net/media/img/favicon.ico"); } #mdn::before { content: url("https://mdn.mozillademos.org/files/7691/mdn-favicon16.png"); } li { margin: 1em; } result element replacement this example re
places an element's content with an image.
text-shadow - CSS: Cascading Style Sheets
<offset-x> specifies the horizontal distance; a negative value
places the shadow to the left of the text.
... <offset-y> specifies the vertical distance; a negative value
places the shadow above the text.
Video player styling basics - Developer guides
javascript as mentioned above, a data-state attribute is used in various
places for styling purposes and these are set using javascript.
... specific implementations will be mentioned at appropriate
places below.
Regular expressions - JavaScript
replace() executes a search for a match in a string, and re
places the matched substring with a replacement substring.
... replaceall() executes a search for all matches in a string, and re
places the matched substrings with a replacement substring.
URIError: malformed URI sequence - JavaScript
examples encoding encoding re
places each instance of certain characters by one, two, three, or four escape sequences representing the utf-8 encoding of the character.
...for example: encodeuri('\ud800\udfff'); // "%f0%90%8f%bf" decoding decoding re
places each escape sequence in the encoded uri component with the character that it represents.
RegExp.prototype[@@replace]() - JavaScript
the [@@replace]() method re
places some or all matches of a this pattern in a string by a replacement, and returns the result of the replacement as a new string.
... newsubstr (replacement) the string that re
places the substring.
String.prototype.replace() - JavaScript
newsubstr (replacement) the string that re
places the substring specified by the specified regexp or substr parameter.
... replacing a fahrenheit degree with its celsius equivalent the following example re
places a fahrenheit degree with its equivalent celsius degree.
void operator - JavaScript
syntax void expression description this operator allows evaluating expressions that produce a value into
places where an expression that evaluates to undefined is desired.
... javascript uris when a browser follows a javascript: uri, it evaluates the code in the uri and then re
places the contents of the page with the returned value, unless the returned value is undefined.
Add to Home screen - Progressive web apps (PWAs)
icons: specifies icons for the browser to use when representing the app in different
places (such as on the task switcher, or more important, the home screen).
... name/short_name: these fields provide an app name to be displayed when representing the app in different
places.
side - SVG: Scalable Vector Graphics
<textpath href="#circle2" side="right">text right from the path</textpath> </text> <circle id="circle1" cx="100" cy="100" r="70" fill="transparent" stroke="silver"/> <circle id="circle2" cx="320" cy="100" r="70" fill="transparent" stroke="silver"/> </svg> usage notes value left | right default value left animatable yes left this value
places the text on the left side of the path (relative to the path direction).
... right this value
places the text on the right side of the path (relative to the path direction).
SVG documentation index - SVG: Scalable Vector Graphics
365 <solidcolor> element, experimental, reference, svg the <solidcolor> svg element lets authors define a single color for use in multiple
places in an svg document.
... 382 specification deviations svg there are a few
places where we have consciously decided to make gecko deviate from or extend the svg specification.
Content Scripts - Archive of obsolete content
the content script simply re
places the content of the page: // main.js var tabs = require("sdk/tabs"); var contentscriptstring = 'document.body.innerhtml = "<h1>this page has been eaten</h1>";' tabs.activetab.attach({ contentscript: contentscriptstring }); the following high-level sdk modules can use content scripts to modify web pages: page-mod: enables you to attach content scripts to web pages that match a specific url ...
page-mod - Archive of obsolete content
for example, here's an add-on that attaches a script to every page the user loads: var data = require("sdk/self").data; var pagemod = require("sdk/page-mod"); pagemod.pagemod({ include: "*", contentscriptfile: data.url("eaten.js") }); the content script re
places the page contents, but restores the original contents when it receives detach: // eaten.js var oldinnerhtml = window.document.body.innerhtml; window.document.body.innerhtml = "eaten!"; self.port.on("detach", function() { window.document.body.innerhtml = oldinnerhtml; }); try running the add-on, loading some pages, and then disabling the add-on in the add-ons manager.
/loader - Archive of obsolete content
it examines each element until it finds the prefix matching the supplied id and re
places it with the location it maps to: let mapping = [ [ 'sdk/', 'resource://gre/modules/commonjs/sdk/' ], [ './', 'resource://my-addon/' ], [ '', 'resource:///modules/' ] ]; resolveuri('./main', mapping); // => resource://my-addon/main.js resolveuri('devtools/gcli', mapping); // => resource:///modules/devtools/gcli.js resolveuri('sdk/core/promise', mapping); //...
system/unload - Archive of obsolete content
globals functions ensure(object, name) calling ensure() on an object does two things: it re
places a destructor method with a wrapper method that will never call the destructor more than once.
Developing for Firefox Mobile - Archive of obsolete content
ed frame/hidden-frame supported frame/utils supported io/byte-streams supported io/file supported io/text-streams supported lang/functional supported lang/type supported loader/cuddlefish supported loader/sandbox supported net/url supported net/xhr supported
places/bookmarks not supported
places/favicon not supported
places/history not supported platform/xpcom supported preferences/service supported stylesheet/style supported stylesheet/utils supported system/environment supported system/events supported system/runtime supported system/unl...
JavaScript Client API - Archive of obsolete content
the name store is somewhat of a misnomer, as stores don't actually persistently store anything, but rather serve as short-lived data stores during the course of a single sync and act as proxies to other data stores within the application (like the
places database) outside of sync.
New Skin Notes - Archive of obsolete content
the major problem it caused in cavendish skin - that they were out of the screen - is solved by making the sidebar smaller, which is not the right thing to do, imo (see my comment 1).--nickolay 02:11, 25 aug 2005 (pdt) yeah this is actually a problem with mw, rather than the skin -- they use a <br style="clear:both" /> in some pretty annoying
places.
Using XPInstall to Install Plugins - Archive of obsolete content
write keys in the windows registry which store information about this secondary location, in particular the plugin path and the xpt path (if applicable) so that netscape gecko browsers can pick up the plugin from the secondary location if they are installed after the plugin is (and thus, if a particular netscape gecko browser follows or re
places the current browser).
textbox.type - Archive of obsolete content
there are several attributes that allow the number textbox to be configured, including decimal
places, min, max, increment, wraparound, hidespinbuttons, and textbox.value.
Attribute (XUL) - Archive of obsolete content
onlabelhelp buttonorient buttonpack buttons checked checkstate clicktoscroll class closebutton closemenu coalesceduplicatearcs collapse collapsed color cols command commandupdater completedefaultindex container containment contentcontextmenu contenttooltip context contextmenu control crop curpos current currentset customindex customizable cycler datasources decimal
places default defaultbutton defaultset description dir disableautocomplete disableautoselect disableclose disabled disablehistory disablekeynavigation disablesecurity dlgtype dragging editable editortype element empty emptytext deprecated since gecko 2 enablecolumndrag enablehistory equalsize eventnode events expr firstdayofweek firstpage first-tab fixed flags flex focu...
Property - Archive of obsolete content
container contentdocument contentprincipal contenttitle contentview contentvieweredit contentviewerfile contentwindow contextmenu control controller controllers crop current currentindex currentitem currentnotification currentpage currentpane currentset currenturi customtoolbarcount database datasources date dateleadingzero datevalue decimal
places decimalsymbol defaultbutton defaultvalue description dir disableautocomplete disableautocomplete disableautoselect disabled disablekeynavigation dlgtype docshell documentcharsetinfo editable editingcolumn editingrow editingsession editor editortype emptytext deprecated since gecko 2 enablecolumndrag eventnode firstordinalcolumn firstpermanentchild ...
Urlbar-icons - Archive of obsolete content
ar and the navigation bar.) example the default contents of browser.xul: <hbox id="urlbar-icons"> <button be="" chromedir="ltr" class="urlbar-icon" click="" for="" id="safebrowsing-urlbar-icon" img="" level="safe" might="" onclick="godocommand('safebrowsing-show-warning');" page="" style="-moz-user-focus:" tooltiptext="this" type="menu"> <img class="urlbar-icon" id="star-button" onclick="
placesstarbutton.onclick(event);" /> <img address="" chromedir="ltr" class="urlbar-icon" id="go-button" in="" location="" onclick="handleurlbarcommand(event);" p="" the="" to="" tooltiptext="go" /> </button> </hbox> ...
What XULRunner Provides - Archive of obsolete content
the following features are either already implemented or planned: gecko features xpcom networking gecko rendering engine dom editing and transaction support (no ui) cryptography xbl (xbl2 planned) xul svg xslt xml extras (xmlhttprequest, domparser, etc.) web services (soap) auto-update support (not yet complete) type ahead find toolbar history implementation (the
places implementation in the 1.9 cycle) accessibility support ipc services for communication between gecko-based apps (not yet complete) storage/sqlite interfaces user interface features the following user interface is supplied by xulrunner, and may be overridden by embedders under certain circumstances: apis and user interface for installing, uninstalling, and upgrading xul applications.
Accessing XML children - Archive of obsolete content
operator can also be used to replace particular child nodes var elem1 = <foo> <bar/> </foo>; var elem2 = <red> <blue/> </red>; elem1.bar = elem2; re
places the <bar/> element with all of the content in elem2, giving: <foo> <red> <blue/> </red> <foo> xml lists many times, however, a single element will have two or more children of the same type.
Anatomy of a video game - Game development
because main() is called once in the second statement and every call of it
places itself in the queue of things to do next frame, main() is synchronized to your framerate.
Publishing games - Game development
game distribution provides all you need to know about the ways you can distribute your newly created game into the wild — including hosting it yourself online, submitting it to open market
places, and submitting it to closed ones like google play or the ios app store.
CSS and JavaScript accessibility best practices - Learn web development
links hyperlinks — the way you get to new
places on the web: <p>visit the <a href="https://www.mozilla.org">mozilla homepage</a>.</p> some very simple link styling is shown below: a { color: #ff0000; } a:hover, a:visited, a:focus { color: #a60000; text-decoration: none; } a:active { color: #000000; background-color: #a60000; } the standard link conventions are underlined and a different color (default: blue) in their standard st...
Accessible multimedia - Learn web development
in such cases, you should make sure that the resources are provided along with the audio + transcript, and specifically link to them in the
places where they are referred to in the transcript.
WAI-ARIA basics - Learn web development
enhancing keyboard accessibility as discussed in a few other
places in the module, one of the key strengths of html with respect to accessibility is the built-in keyboard accessibility of features such as buttons, form controls, and links.
Organizing your CSS - Learn web development
if you are not taking an oocss approach you might create custom css for the different
places this pattern is used, for example creating a class called comment with a bunch of rules for the component parts, then a class called list-item with almost the same rules as the comment class except for some tiny differences.
Styling tables - Learn web development
use <thead>, <tbody>, and <tfoot> to break up your table into logical chunks and provide extra
places to apply css to, so it is easier to layer styles on top of one another if required.
Floats - Learn web development
you can follow along by creating a new index.html file on your computer, filling it with a simple html template, and inserting the below code into it at the appropriate
places.
CSS FAQ - Learn web development
however, assigning multiple classes to a single element can provide the same effect, and css variables now provide a way to define style information in one place that can be reused in multiple
places.
What text editors are available? - Learn web development
these functionalities are often helpful: search-and-replace, in one or multiple documents, based on regular expressions or other patterns as needed quickly jump to a given line view two parts of a large document separately view html as it will look in the browser select text in multiple
places at once view your project's files and directories format your code automatically with code beautifier check spelling auto-indent code based on indentation settings do i want to add extra features to my text editor?
What are browser developer tools? - Learn web development
find out more find more out about the inspector in different browsers: firefox page inspector ie dom explorer chrome dom inspector (opera's inspector works the same as this) safari dom inspector and style explorer the javascript debugger the javascript debugger allows you to watch the value of variables and set breakpoints,
places in your code that you want to pause execution and identify the problems that prevent your code from executing properly.
Client-side form validation - Learn web development
different types of client-side validation there are two different types of client-side validation that you'll encounter on the web: built-in form validation uses html5 form validation features, which we've discussed in many
places throughout this module.
Test your skills: Links - Learn web development
links 2 in this task we want you to fill in the four links so that they link to the appropriate
places: the first link should link to an image called blue-whale.jpg, which is located in a directory called blue inside the current directory.
Functions — reusable blocks of code - Learn web development
every time we manipulated a text string, for example: let mytext = 'i am a string'; let newstring = mytext.replace('string', 'sausage'); console.log(newstring); // the replace() string function takes a source string, // and a target string and re
places the source string, // with the target string, and returns the newly formed string or every time we manipulated an array: let myarray = ['i', 'love', 'chocolate', 'frogs']; let madeastring = myarray.join(' '); console.log(madeastring); // the join() function takes an array, joins // all the array items together into a single // string, and returns this new string or every time we generated a ra...
Function return values - Learn web development
let's return to a familiar example (from a previous article in this series): let mytext = 'the weather is cold'; let newstring = mytext.replace('cold', 'warm'); console.log(newstring); // should print "the weather is warm" // the replace() string function takes a string, // re
places one substring with another, and returns // a new string with the replacement made the replace() function is invoked on the mytext string, and is passed two parameters: the substring to find ('cold').
Third-party APIs - Learn web development
if so, we don't try to display any — we create a <p> containing the text "no results returned." and insert it into the.<section> if some articles are returned, we, first of all, create all the elements that we want to use to display each news story, insert the right contents into each one, and then insert them into the dom at the appropriate
places.
Adding a new event
however, if implementing method isn't small and called from a lot of
places, implementing it as inline causes to increase binary size.
Adding a new CSS property
if you need custom parsing code, this can be inserted at one of two different
places: you can override the entire property value parsing by using css_property_parse_function, which is generally the right thing to do for shorthand properties.
The Firefox codebase: CSS Guidelines
do this: @media (-moz-mac-yosemite-theme: 0) { #
placeslist { box-shadow: inset -2px 0 0 hsla(0,0%,100%,.2); } } not this: #
placeslist { box-shadow: inset -2px 0 0 hsla(0,0%,100%,.2); } @media (-moz-mac-yosemite-theme) { #
placeslist { box-shadow: none; } } theme support firefox comes built-in with 3 themes: default, light and dark.
Eclipse CDT
(some source and header files are copied to the object directory by the build process, so we end up with copies in both
places.) this will happen if your object directory is inside the source directory.
Index
10 firefox ui considerations for web developers activity stream, firefox, icons, mozilla, new tab, newtab, ui, web, web development, favicon there are a number of
places within the firefox user interface where web sites are listed for the user to choose a destination to visit or a site to manage in some way.
Limitations of chrome scripts
however, these shims are not a substitute for migrating extensions: they are only a temporary measure, and will be removed eventually they can have a bad effect on responsiveness there are likely to be edge cases in which they don't work properly you can see all the
places where your add-on uses compatibility shims by setting the dom.ipc.shims.enabledwarnings preference and watching the browser console as you use the add-on.
Limitations of frame scripts
for example: nsisessionstore nsiwindowmediator <need more examples>
places api the
places api can't be used inside a frame script.
Limitations of frame scripts
for example: nsisessionstore nsiwindowmediator <need more examples>
places api the
places api can't be used inside a frame script.
Firefox
the most useful is the url about:config, which displays preferences and settings that can be inspected and changed.firefox ui considerations for web developersthere are a number of
places within the firefox user interface where web sites are listed for the user to choose a destination to visit or a site to manage in some way.
Firefox Operational Information Database: SQLite
elect profile database)' pulldown, click 'go', select one of the tables listed in the left column and see the current contents of the database in the 'browse & search' tab.) some databases are used by the browser itself, others are used by applications that you have installed or used; for example: content-prefs.sqlite cookies.sqlite download.sqlite formhistory.sqlite persmissions.sqlite
places.sqlite search.sqlite signons.sqlite webappstore.sqlite ...
Using the Browser API
it was originally used in firefox os to implement browser applications before that project was cancelled; since firefox 47 it is available to desktop chrome code and used in
places like the firefox devtools.
::-moz-tree-image
associated elements <xul:treeitem> <xul:treecell> style properties margin list-style position examples bookmark icons in the
places window - mozillazine forum ...
Embedding Tips
normally it provide some functionality that is required from lots of
places such as looking up preference settings, creating new windows, locating files, displaying prompt or password dialog boxes and so on.
Getting from Content to Layout
a list of restyle roots (
places in the content tree where all descendants need to be restyled but nothing on the parent chain does) are also stored.
IPDL Best Practices
when to run code here's a rundown on appropriate
places to run certain kinds of code: manager::allocpprotocol - allocation manager::recvpprotocolconstructor - initialization, protocol deletion (the typeaheadfind protocol uses one-shot protocols like this) actor::recv__delete__ - cleanup, ipdl calls still valid but ill-advised actor::actordestroy - non-ipdl cleanup manager::deallocpprotocol - deallocation one construct to avoid: class proto...
Introduction to Layout in Mozilla
reflow recursively compute geometry (x, y, w, h) for frames, views, and widgets given w & h constraints of “root frame” compute (x, y, w, h) for all children constraints propagated “down” via nshtmlreflowstate desired size returned “up” via nshtmlreflowmetrics basic pattern parent frame initializes child reflow state (available w, h);
places child frame (x, y); invokes child’s reflow method child frame computes desired (w, h), returns via reflow metrics parent frame sizes child frame and view based on child’s metrics n.b.
CustomizableUI.jsm
when the button is in the panel area, it needs a 32x32 icon, and when in other
places it needs a 16x16 icon.
Downloads.jsm
object identity re
places the use of numeric identifiers.
Examples
when a proper rejection handler is used, it effectively re
places this delayed reporting.
source-editor.jsm
settext() re
places a range of text in the editor with the specified string.
Bootstrapping a new locale
y running the following commands one after the other from your command line: $ cd [ab-cd]/browser/chrome/browser to see what is contained in "browser" type $ ls and, you should see the following output from your terminal: aboutcerterror.dtd pageinfo.dtd aboutdialog.dtd pageinfo.properties aboutprivatebrowsing.dtd pagereportfirsttime.dtd aboutrobots.dtd
places aboutsessionrestore.dtd preferences aboutsupport.dtd quitdialog.properties basemenuoverlay.dtd safemode.dtd browser.dtd safebrowsing browser.properties sanitize.dtd credits.dtd search.properties enginemanager.dtd searchbar.dtd enginemanager.properties setdesktopbackground.dtd feeds ...
What every Mozilla translator should know
all the content of the trunk is copied to this new branch so that the developing work is done in two (or more) parallel
places: the generic trunk and the version oriented branch(es).
Mozilla Development Strategies
-name cvs | xargs -l -p10 cvs tag -b -l my_branch_tag > & ../taglog2.txt from your windows box: cvs co -r my_branch_tag mozilla/client.mak cd mozilla edit client.mak, putting my_branch_tag in the right
places.
Leak-hunting strategies and tips
some
places you can do this are: layout engine define debug_tracemalloc_framearena where it is commented out in layout/base/nspresshell.cpp glib set the environment variable g_slice=always-malloc other references performance tools leak debugging screencasts (dbaron) leakingpages - a list of pages known to leak mdc:performance - contains documentation for all of our memory profiling and leak d...
Memory reporting
it identifies
places in the code that allocate memory but do not have memory reporters for that memory.
L20n
through l20n, mozilla is creating a new generation of technology that
places more power in localizers' hands.
PR_Initialize
description pr_initialize initializes the nspr runtime and
places nspr between the caller and the runtime library.
Python binding for NSS
oken_not_present nss.nss.int.pk11_dis_token_verify_failed nss.nss.int.pk11_dis_user_selected nss.nss.int.pkcs12_des_56 nss.nss.int.pkcs12_des_ede3_168 nss.nss.int.pkcs12_rc2_cbc_128 nss.nss.int.pkcs12_rc2_cbc_40 nss.nss.int.pkcs12_rc4_128 nss.nss.int.pkcs12_rc4_40 the following files were added test/run_tests test/test_cipher.py (re
places cipher_test.py) test/test_client_server.py test/test_digest.py (re
places digest_test.py) test/test_pkcs12.py deprecated functionality signaturealgorithm release 0.11.0 release date 2011-02-21 scm tag pynss_release_0_11_0 source download https://ftp.mozilla.org/pub/mozilla.org/security/python-nss/releases/pyns...
Rhino scopes and contexts
the answer to 1 determines which scope should be the ultimate parent scope: rhino follows the parent chain up to the top and
places the variable there.
Shumway
there are two
places where shumway bugs are tracked: github (via issues and pull requests) manages problems relating to shumway, itself.
Exact Stack Rooting
for
places where you want to pass a null value into a function taking a js::handlet, you can construct and pass a new nullptr instance.
Invariants
lifetime invariants in some
places, pointers to jsobjects and jsstrings must refer to live heap objects, but this is not a hard fast rule, especially for strings.
JSAPI Cookbook
*/ js::autosaveexceptionstate savedstate(cx); if (!js_callfunctionname(cx, global, "cleanup", 0, null, &r)) { /* the new error re
places the previous one, so discard the saved exception state.
JS::Value
in some
places, spidermonkey provides already-rooted js::values which you can use for variables.
TPS Bookmark Lists
all bookmark paths must begin with one of the following: "menu": the normal bookmarks menu "toolbar": the bookmarks toolbar "tags": the tags folder "unfiled": the unfiled bookmarks folder "
places": the
places root folder ("menu", "toolbar", and "unfiled" are all children of this) sub-folders are preceded with forward slashes, so "menu/folder1" denotes that "folder1" is a sub-folder of "menu".
TPS Tests
for example, most errors involving bookmarks look like "
places item not found in expected index", which could mean a number of issues.
Web Replay
appendix: impacts on gecko development web replay is designed to minimize the
places where other parts of gecko need to know about it or interact with it.
Gecko Roles
role_password_text a text object uses for passwords, or other
places where the text content is not shown visibly to the user.
Mork
in many
places, the mid's scope has an assumed default value; if the scope component is not present, it assumes this default value.
An Overview of XPCOM
in the haste of early mozilla development, components were created where they were inappropriate, but there's been an ongoing effort to remove xpcom from
places like this.
Packaging WebLock
once triggered (see the weblock trigger script), the installation script: downloads the weblock component and
places it in the components directory copies the weblock subdirectory in the mozilla chrome application subdirectory registers both the component and the ui the xpinstall api provides such essential methods[essential-methods] as initinstall, registerchrome, addfile, and others.
Starting WebLock
in other
places, where allocated buffers cross interface boundaries, you must ensure that the correct allocator is used - namely nsmemory - so that the allocators can match the allocation with the deallocation.
Components.Constructor
meinputstream is an existing nsiinputstream bis = new binaryinputstream(someinputstream); // succeeds var bytes = bis.readbytearray(somenumberofbytes); // succeeds } compare instance creation from base principles with instance creation using components.constructor(); the latter is much easier to read than the former (particularly if you're creating instances of a component in many different
places): var bis = components.classes["@mozilla.org/binaryinputstream;1"] .createinstance(components.interfaces.nsibinaryinputstream); bis.setinputstream(someinputstream); // assumes binaryinputstream was initialized previously var bis = new binaryinputstream(someinputstream); components.constructor() is purely syntactic sugar (albeit speedy and pretty syntactic sugar) for actio...
Components.utils.Sandbox
sandboxname a string value which identifies the sandbox in about:memory (and possibly other
places in the future).
IAccessibleText
an index of 0
places the caret so that the next insertion goes before the first character.
mozIColorAnalyzer
toolkit/components/
places/mozicoloranalyzer.idlscriptable provides methods to analyze colors in an image 1.0 66 introduced gecko 17.0 inherits from: nsisupports last changed in gecko 17.0 (firefox 17.0 / thunderbird 17.0 / seamonkey 2.14) method overview void findrepresentativecolor(in nsiuri imageuri, in mozirepresentativecolorcallback callback); methods findrepresentativecolor() given an image uri, find the most representative color for that image based on the frequency of each color.
mozIPlaceInfo
toolkit/components/
places/public/moziasynchistory.idlscriptable this interface provides additional info for a
places entry 1.0 66 introduced gecko 2.0 inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) attributes attribute type description frecency long read only: the frecency of the place.
mozIRepresentativeColorCallback
toolkit/components/
places/mozicoloranalyzer.idlscriptable provides callback methods for mozicoloranalyzer 1.0 66 introduced gecko 17.0 inherits from: nsisupports last changed in gecko 17.0 (firefox 17.0 / thunderbird 17.0 / seamonkey 2.14) method overview void oncomplete(in boolean success, [optional] in unsigned long color); methods oncomplete() will be called when color analysis finishes.
mozIVisitInfo
toolkit/components/
places/moziasynchistory.idlscriptable this interface provides additional info for a visit.
mozIVisitStatusCallback
toolkit/components/
places/moziasynchistory.idlscriptable this interface provides callback handling functionality for moziasynchistory.isurivisited 1.0 66 introduced gecko 11.0 inherits from: nsisupports last changed in gecko 11.0 (firefox 11.0 / thunderbird 11.0 / seamonkey 2.8) method overview void isvisited(in nsiuri auri, in boolean avisitedstatus); methods isvisited() called when the moziasynchistory.isurivisited() method's check to determine whether a given uri has been visited has completed.
nsIAccessibleRole
role_password_text 82 a text object uses for passwords, or other
places where the text content is not shown visibly to the user.
nsIBadCertListener2
1.0 66 introduced gecko 1.9 inherits from: nsisupports last changed in gecko 1.9 (firefox 3) re
places the obsolete nsibadcertlistener interface.
nsIClipboardCommands
mozilla does not use a private clipboard, instead it
places its data directly onto the system clipboard.
nsICollection
setelementat() re
places an item at a specified index in the collection with a new one.
nsIContentViewer
close() should be called when the load of a new page for the next content viewer begins, and destroy() should be called when the next content viewer re
places this one.
nsIDictionary
if the key is already present, the new value re
places the old one.
nsIDocShell
addstate() do either a history.pushstate() or history.re
placestate() operation, depending on the value of areplace.
nsIFaviconDataCallback
toolkit/components/
places/public/nsifaviconservice.idlscriptable please add a summary to this article.
nsIGlobalHistory2
inherits from: nsisupports last changed in gecko 1.7 this interface re
places and deprecates nsiglobalhistory method overview void adduri(in nsiuri auri, in boolean aredirect, in boolean atoplevel, in nsiuri areferrer); boolean isvisited(in nsiuri auri); void setpagetitle(in nsiuri auri, in astring atitle); methods adduri() add a uri to global history.
nsIGlobalHistory3
1.0 66 introduced gecko 1.8 obsolete gecko 9.0 inherits from: nsiglobalhistory2 last changed in gecko 1.9 (firefox 3) this interface was originally created as part of nsiglobalhistory2, but was split off during the transition to
places.
nsILoginManager
toolkit/components/passwordmgr/public/nsiloginmanager.idlscriptable used to interface with the built-in password manager 1.0 66 introduced gecko 1.9 inherits from: nsisupports last changed in gecko 1.9.2 (firefox 3.6 / thunderbird 3.1 / fennec 1.0) re
places nsipasswordmanager which was used in older versions of gecko.
nsIMacDockSupport
win.document.getelementbyid('mainpopupset'); mainpopupset.appendchild(macmenu); let dockmenuelement = macmenu; //document.getelementbyid("menu_mac_dockmenu");66 let nativemenu = cc["@mozilla.org/widget/standalonenativemenu;1"].createinstance(ci.nsistandalonenativemenu); console.log('dockmenuelement:', dockmenuelement); nativemenu.init(dockmenuelement); docksupport.dockmenu = nativemenu; this re
places the default menu with this one menuitem that says "show most recent window".
nsIMicrosummary
toolkit/components/
places/public/nsimicrosummaryservice.idlscriptable this interface defines attributes and methods for dealing with microsummaries generated by an nsimicrosummarygenerator.
nsIMicrosummaryGenerator
toolkit/components/
places/public/nsimicrosummaryservice.idlscriptable this interface provides access to a microsummary that has been installed in firefox.
nsIMicrosummaryObserver
toolkit/components/
places/public/nsimicrosummaryservice.idlscriptable this interface provides methods for observing changes to micrummaries.
nsIMicrosummarySet
toolkit/components/
places/public/nsimicrosummaryservice.idlscriptable this interface provides access to sets of microsummaries returned from the nsimicrosummaryservice.
nsIMsgDBViewCommandUpdater
last changed in gecko 1.9 (firefox 3) inherits from: nsisupports in thunderbird this is implemented for different windows in several different
places: nsmsgdbviewcommandupdater (for the standalone message window) nsmsgdbviewcommandupdater (for the threadpane message window) nsmsgsearchcommandupdater (for search dialogs) method overview void updatecommandstatus(); void displaymessagechanged(in nsimsgfolder afolder, in astring asubject, in acstring akeywords); void updatenextmessageafterdelete(); methods updatecommandstatus() called when the number of selected items changes.
nsINavHistoryBatchCallback
toolkit/components/
places/public/nsinavhistoryservice.idlscriptable please add a summary to this article.
nsINavHistoryContainerResultNode
toolkit/components/
places/public/nsinavhistoryservice.idlscriptable a foundation for the interfaces that provide a description of a query result on the
places service that describes a container (which is any kind of grouping, including bookmark folders).
nsINavHistoryFullVisitResultNode
toolkit/components/
places/public/nsinavhistoryservice.idlscriptable this interface describes a result from a result_type_full_visit query on the
places service.
nsINavHistoryResultViewObserver
toolkit/components/
places/public/nsinavhistoryservice.idlscriptable this interface is used by clients of the history results to define domain-specific handling of specific nsitreeview methods that the history result doesn't implement.
nsINavHistoryVisitResultNode
toolkit/components/
places/public/nsinavhistoryservice.idlscriptable this interface describes a result from a result_type_visit query on the
places service.
nsISessionStore
note: calling setbrowserstate immediately re
places the current session, restoring the state of the entire application to the state passed in the astate parameter.
nsITraceableChannel
method overview nsistreamlistener setnewlistener(in nsistreamlistener alistener); methods setnewlistener() re
places the channel's current listener with a new one, returning the listener previously assigned to the channel.
nsIWebProgressListener
for example, the location change is due to an anchor scroll or a pushstate/popstate/re
placestate.
XPCOM Interface Reference by grouping
ichromeframemessagemanager nsiframeloader nsiframeloaderowner nsiframemessagelistener nsiframemessagemanager interface nsijsxmlhttprequest jetpack nsijetpack nsijetpackservice offlinestorage nsiapplicationcache nsiapplicationcachechannel nsiapplicationcachecontainer nsiapplicationcachenamespace nsiapplicationcacheservice
places nsiannotationobserver rss feed nsifeed nsifeedcontainer nsifeedelementbase nsifeedentry nsifeedgenerator nsifeedperson nsifeedprocessor nsifeedprogresslistener nsifeedresult nsifeedresultlistener nsifeedtextconstruct script mozijssubscriptloader storage mozistoragevacuumparticipant util nsieffectivetlds...
NS_CStringSetDataRange
example // replace all occurances of |matchval| with |newval| void re
placesubstring(nsacstring& str, const nsacstring& matchval, const nsacstring& newval) { const char* sp, *mp, *np; pruint32 sl, ml, nl; sl = ns_cstringgetdata(str, &sp); ml = ns_cstringgetdata(matchval, &mp); nl = ns_cstringgetdata(newval, &np); for (const char* iter = sp; iter <= sp + sl - ml; ++iter) { if (memcmp(iter, mp, ml) == 0) { ...
NS_StringSetDataRange
example code // replace all occurances of |matchval| with |newval| void re
placesubstring(nsastring& str, const nsastring& matchval, const nsastring& newval) { const prunichar* sp, *mp, *np; pruint32 sl, ml, nl; sl = ns_stringgetdata(str, &sp); ml = ns_stringgetdata(matchval, &mp); nl = ns_stringgetdata(newval, &np); for (const prunichar* iter = sp; iter <= sp + sl - ml; ++iter) { if (memcmp(...
Performance
you can see an example of setting the maximum cache size to be a percentage of memory in nsnavhistory::initdb in toolkit/components/
places/src/nsnavhistory.cpp.
Using nsIDirectoryService
defined locations the nsiproperties keywords that you will use to get locations are defined in two
places.
Testing Mozilla code
in addition, the runtime part re
places the malloc and free functions to check dynamically allocated memory.
Toolkit version format
versions in at least the following
places must conform to this format: addon's and target application's version in install and update manifests.
Plug-in Development Overview - Plugins
in addition to the dll that goes in the plugins folder, you must also place a type library and an extra header file in the appropriate
places in your application directory.
Animation.onremove - Web APIs
llowing code: const divelem = document.queryselector('div'); document.body.addeventlistener('mousemove', evt => { let anim = divelem.animate( { transform: `translate(${ evt.clientx}px, ${evt.clienty}px)` }, { duration: 500, fill: 'forwards' } ); anim.commitstyles(); //anim.persist() anim.onremove = function() { console.log('animation removed'); } console.log(anim.re
placestate); }); here we have a <div> element, and an event listener that fires the event handler code whenever the mouse moves.
Using images - Web APIs
the drawimage() method
places the backdrop at the coordinate (0, 0), which is the top-left corner of the canvas.
Canvas API - Web APIs
the fillrect() method
places its top-left corner at (10, 10), and gives it a size of 150 units wide by 100 tall.
CharacterData - Web APIs
characterdata.replacedata() re
places the specified amount of characters, starting at the specified offset, with the specified domstring; when this method returns, data contains the modified domstring.
ChildNode - Web APIs
childnode.replacewith() re
places this childnode in the children list of its parent with a set of node or domstring objects.
console - Web APIs
formatting is supported, for example console.log("foo %.2f", 1.1) will output the number to 2 decimal
places: foo 1.10 note: precision formatting doesn't work in chrome each of these pulls the next argument after the format string off the parameter list.
DOMMatrix - Web APIs
dommatrix.setmatrixvalue() re
places the contents of the matrix with the matrix described by the specified transform or transforms.
DedicatedWorkerGlobalScope - Web APIs
for example: importscripts('foo.js', 'bar.js'); implemented from other
places windowbase64.atob() decodes a string of data which has been encoded using base-64 encoding.
Document.open() - Web APIs
examples the following simple code opens the document and re
places its content with a number of different html fragments, before closing it again.
Document: wheel event - Web APIs
bubbles yes cancelable yes interface wheelevent event handler property globaleventhandlers.onwheel this event re
places the non-standard deprecated mousewheel event.
Document - Web APIs
document.normalizedocument() re
places entities, normalizes text nodes, etc.
How whitespace is handled by HTML, CSS, and in the DOM - Web APIs
take the following document, for example: <!doctype html> <html> <head> <title>my document</title> </head> <body> <h1>header</h1> <p> paragraph </p> </body> </html> the dom tree for this looks like so: conserving whitespace characters in the dom is useful in many ways, but there are certain
places where this makes certain layouts more difficult to implement, and causes problems for developers who want to iterate through nodes in the dom.
Element.outerHTML - Web APIs
setting the value of outerhtml re
places the element and all of its descendants with a new dom tree constructed by parsing the specified htmlstring.
Element - Web APIs
when used as a setter, re
places the element with nodes parsed from the given string.
Event - Web APIs
event-handlers are usually connected (or "attached") to various html elements (such as <button>, <div>, <span>, etc.) using eventtarget.addeventlistener(), and this generally re
places using the old html event handler attributes.
FetchEvent() - Web APIs
re
placesclientid read only a domstring which identifies the client which is being replaced by resultingclientid.
HTMLImageElement.srcset - Web APIs
example html the html below indicates that the default image is the 200 pixel wide version of the clock image we use in several
places throughout our documentation.
History - Web APIs
re
placestate() updates the most recent entry on the history stack to have the specified data, title, and, if provided, url.
Ajax navigation example - Web APIs
getpage(surl); } else { /* ajax navigation is not supported */ location.assign(surl); } } function processlink () { if (this.classname === sajaxclass) { requestpage(this.href); return false; } return true; } function init () { opageinfo.title = document.title; history.re
placestate(opageinfo, opageinfo.title, opageinfo.url); for (var olink, nidx = 0, nlen = document.links.length; nidx < nlen; document.links[nidx++].onclick = processlink); } const /* customizable constants */ stargetid = "ajax-content", sviewkey = "view_as", sajaxclass = "ajax-nav", /* not customizable constants */ rsearch = /\?.*$/, rhost = /^[^\?]*\?*&...
History API - Web APIs
window.onpopstate = function(event) { alert(`location: ${document.location}, state: ${json.stringify(event.state)}`) } history.pushstate({page: 1}, "title 1", "?page=1") history.pushstate({page: 2}, "title 2", "?page=2") history.re
placestate({page: 3}, "title 3", "?page=3") history.back() // alerts "location: http://example.com/example.html?page=1, state: {"page":1}" history.back() // alerts "location: http://example.com/example.html, state: null" history.go(2) // alerts "location: http://example.com/example.html?page=3, state: {"page":3}" specifications specification status comment html living stan...
IDBCursor.advance() - Web APIs
here we use cursor.advance(2) to jump 2
places forward each time, meaning that only every other result will be displayed.
IDBVersionChangeEvent - Web APIs
warning: while this property is still implemented in older browsers, the latest specification re
places it with the oldversion and newversion attributes.
Intersection Observer API - Web APIs
entry.target.style.backgroundcolor = decreasingcolor.replace("ratio", entry.intersectionratio); } prevratio = entry.intersectionratio; }); } for each intersectionobserverentry in the list entries, we look to see if the entry's intersectionratio is going up; if it is, we set the target's background-color to the string in increasingcolor (remember, it's "rgba(40, 40, 190, ratio)"), re
places the word "ratio" with the entry's intersectionratio.
Key Values - Web APIs
vk_subtract (0x6d) kvk_ansi_keypadminus (0x4e) gdk_key_kp_subtract (0xffad) keycode_numpad_subtract (156) "separator" [1] the numeric keypad's
places separator character.
Location - Web APIs
location.replace() re
places the current resource with the one at the provided url (redirects to the provided url).
MediaTrackSettings - Web APIs
properties of video tracks aspectratio a double-precision floating point value indicating the current value of the aspectratio property, specified precisely to 10 decimal
places.
MouseEvent.pageX - Web APIs
updatedisplay() simply re
places the contents of the <span> elements meant to contain the x and y coordinates with the values of pagex and pagey.
Navigator.clipboard - Web APIs
navigator.clipboard.readtext().then( cliptext => document.queryselector(".cliptext").innertext = cliptext); this snippet re
places the contents of the element whose class is "cliptext" with the text contents of the clipboard.
Navigator.sendBeacon() - Web APIs
window.addeventlistener("unload", function logdata() { var xhr = new xmlhttprequest(); xhr.open("post", "/log", false); // third parameter of `false` means synchronous xhr.send(analyticsdata); }); this is what sendbeacon() re
places.
Node.textContent - Web APIs
(this is an empty string if the node has no children.) setting textcontent on a node removes all of the node's children and re
places them with a single text node with the given string value.
Node - Web APIs
node.replacechild() re
places one child node of the current one with the second one given in parameter.
Notification.renotify - Web APIs
the renotify read-only property of the notification interface specifies whether the user should be notified after a new notification re
places an old one, as specified in the renotify option of the notification() constructor.
Notification - Web APIs
notification.renotify read only specifies whether the user should be notified after a new notification re
places an old one.
ParentNode - Web APIs
parentnode.replacechildren() re
places the existing children of a node with a specified new set of children.
PushManager - Web APIs
note: this interface re
places functionality previously offered by the obsolete pushregistrationmanager interface.
SVGGraphicsElement - Web APIs
301" y="65" width="180" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="391" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svggraphicselement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} note: this interface was introduced in svg 2 and re
places the svglocatable and svgtransformable interfaces from svg 1.1.
SVGLengthList - Web APIs
replaceitem(in svglength newitem, in unsigned long index) svglength re
places an existing item in the list with a new item.
SVGNumberList - Web APIs
replaceitem(in svgnumber newitem, in unsigned long index) svgnumber re
places an existing item in the list with a new item.
SVGPathSegList - Web APIs
replaceitem(in svgpathseg newitem, in unsigned long index) svgpathseg re
places an existing item in the list with a new item.
SVGPointList - Web APIs
replaceitem(in svgpoint newitem, in unsigned long index) svgpoint re
places an existing item in the list with a new item.
SVGStringList - Web APIs
replaceitem(in domstring newitem, in unsigned long index) domstring re
places an existing item in the list with a new item.
SVGTransformList - Web APIs
replaceitem(in svgtransform newitem, in unsigned long index) svgtransform re
places an existing item in the list with a new item.
SharedWorkerGlobalScope - Web APIs
for example: importscripts('foo.js', 'bar.js'); implemented from other
places windowbase64.atob() decodes a string of data which has been encoded using base-64 encoding.
Text - Web APIs
text.replacewholetext re
places the text of the current node and all logically adjacent nodes with the specified text.
Fundamentals of WebXR - Web APIs
this session mode requires an xr device such as a headset, and re
places the entire world with the rendered scene using the displays shown to each of the user's eyes.
Spaces and reference spaces: Spatial tracking in WebXR - Web APIs
for example, to create a new reference space that moves the reference space arefspace a half meter in each direction, you can do something like this: let halfmetertransform = new xrrigidtransform({ x: 0.5, y: 0.5, z: 0.5, w: 1.0 }); arefspace = arefspace.getoffsetreferencespace(halfmetertransform); this re
places the existing reference space arefspace with one whose coordinates and orientation have had the transform halfmetertransform applied.
Window.devicePixelRatio - Web APIs
the updatepixelratio() function fetches the current value of devicepixelratio, then sets the innertext of the element pixelratiobox to a string which displays the ratio both as a percentage and as a raw decimal value with up to two decimal
places.
XRReferenceSpace - Web APIs
let offsettransform = new xrrigidtransform({x: 2, y: 0, z: 1}, {x: 0, y: 1, z: 0, w: 1}); xrreferencespace = xrreferencespace.getoffsetreferencespace(offsettransform); this re
places the xrreferencespace with a new one whose origin and orientation are adjusted to place the new origin at (2, 0, 1) relative to the current origin and rotated given a unit quaternion that orients the space to put the viewer facing straight up relative to the previous world orientation.
XRRigidTransform - Web APIs
the advantage to using xrrigidtransform in these
places rather than bare arrays that providing the matrix data is that the xrrigidtransform automatically does things like computing the inverse of the transform.
XRSession: selectend event - Web APIs
this
places the object into its new position in the world and triggers any effects that may arise from doing so (like scheduling an animation of a splash if dropped in water, etc).
XRSession: selectstart event - Web APIs
this
places the object into its new position in the world and triggers any effects that may arise from doing so (like scheduling an animation of a splash if dropped in water, etc).
XRSession: squeezeend event - Web APIs
this
places the object into its new position in the world and triggers any effects that may arise from doing so (like scheduling an animation of a splash if dropped in water, etc).
XRSession: squeezestart event - Web APIs
this
places the object into its new position in the world and triggers any effects that may arise from doing so (like scheduling an animation of a splash if dropped in water, etc).
XRViewport - Web APIs
y read only the offset from the origin of the viewport to the bottom edge of the viewport; webgl's coordinate system
places (0, 0) at the bottom left corner of the surface.
Web Accessibility: Understanding Colors and Luminance - Accessibility
this
places it far beyond standard gamuts (both rgb and cmyk), and its given rgb value is a poor approximation only." saturated red flashing: in addition to a red environment affecting the cognitive function of those with traumatic brain injury, color in the red spectrum wavelength requires special attention and tests.
-moz-image-rect - CSS: Cascading Style Sheets
%, 50%); width:133px; height:136px; position:absolute; } html the html is quite simple: <div id="container" onclick="rotate()"> <div id="box1" style="left:0px;top:0px;">top left</div> <div id="box2" style="left:133px;top:0px;">top right</div> <div id="box3" style="left:0px;top:136px;">bottom left</div> <div id="box4" style="left:133px;top:136px;">bottom right</div> </div> this
places the four segments of our image in a two-by-two box grid.
prefers-reduced-motion - CSS: Cascading Style Sheets
reduce indicates that user has notified the system that they prefer an interface that removes or re
places the types of motion-based animation that trigger discomfort for those with vestibular motion disorders.
Ordering Flex Items - CSS: Cascading Style Sheets
flexbox and the keyboard navigation disconnect html source order vs css display order the responsive order conflict for keyboard focus use cases for order there are sometimes
places where the fact that the logical and therefore reading order of flex items is separate from the visual order, is helpful.
<length-percentage> - CSS: Cascading Style Sheets
html <p>you can use percentages and lengths in so many
places.</p> css p { /* length-percentage examples */ width: 75%; height: 200px; margin: 3rem; padding: 1%; border-radius: 10px 10%; font-size: 250%; line-height: 1.5em; /* length examples */ text-shadow: 1px 1px 1px red; border: 5px solid red; letter-spacing: 3px; /* percentage example */ text-size-adjust: 20%; } result use in calc() where a <length-percentage> is sp...
Regular expressions (regexp) - EXSLT
regexp:match()regexp:match() performs regular expression matching on a string, returning the submatches found as a result.regexp:replace()regexp:replace() re
places the portions of a string that match a given regular expression with the contents of another string.regexp:test()regexp:test() tests to see whether a string matches a specified regular expression.
The HTML autocomplete attribute - HTML: Hypertext Markup Language
form layout flexibility given that different countries write their address in different ways, with each field in different
places within the address, and even different sets and numbers of fields entirely, it can be helpful if, when possible, your site is able to switch to the layout expected by your users when presenting an address entry form, given the country the address is located within.
<input type="range"> - HTML: Hypertext Markup Language
for example, if you need a value between 5 and 10, accurate to two decimal
places, you should set the value of step to 0.01: <input type="range" min="5" max="10" step="0.01"> if you want to accept any value regardless of how many decimal
places it extends to, you can specify a value of any for the step attribute: <input type="range" min="0" max="3.14" step="any"> this example lets the user select any value between 0 and π without any restriction on the fractional p...
<ol>: The Ordered List element - HTML: Hypertext Markup Language
examples simple example <ol> <li>fee</li> <li>fi</li> <li>fo</li> <li>fum</li> </ol> the above html will output: using roman numeral type <ol type="i"> <li>introduction</li> <li>list of greivances</li> <li>conclusion</li> </ol> the above html will output: using the start attribute <p>finishing
places of contestants not in the winners’ circle:</p> <ol start="4"> <li>speedwalk stu</li> <li>saunterin’ sam</li> <li>slowpoke rodriguez</li> </ol> the above html will output: nesting lists <ol> <li>first item</li> <li>second item <!-- closing </li> tag not here!
HTTP Index - HTTP
214 put http, http method, reference, request method the http put request method creates a new resource or re
places a representation of the target resource with the request payload.
PUT - HTTP
the http put request method creates a new resource or re
places a representation of the target resource with the request payload.
A re-introduction to JavaScript (JS tutorial) - JavaScript
the most common host environment is the browser, but javascript interpreters can also be found in a huge list of other
places, including adobe acrobat, adobe photoshop, svg images, yahoo's widget engine, server-side environments such as node.js, nosql databases like the open source apache couchdb, embedded computers, complete desktop environments like gnome (one of the most popular guis for gnu/linux operating systems), and others.
Equality comparisons and sameness - JavaScript
re four equality algorithms in es2015: abstract equality comparison (==) strict equality comparison (===): used by array.prototype.indexof, array.prototype.lastindexof, and case-matching samevaluezero: used by %typedarray% and arraybuffer constructors, as well as map and set operations, and also string.prototype.includes and array.prototype.includes since es2016 samevalue: used in all other
places javascript provides three different value-comparison operations: === - strict equality comparison ("strict equality", "identity", "triple equals") == - abstract equality comparison ("loose equality", "double equals") object.is provides samevalue (new in es2015).
Indexed collections - JavaScript
let myarray = new array('a', 'b', 'c', 'd', 'e') myarray = myarray.slice(1, 4) // starts at index 1 and extracts all elements // until index 3, returning [ "b", "c", "d"] splice(index, count_to_remove, addelement1, addelement2, ...) removes elements from an array and (optionally) re
places them.
Number - JavaScript
a number only keeps about 17 decimal
places of precision; arithmetic is subject to rounding.
RegExp - JavaScript
regexp.prototype[@@replace]() re
places matches in given string with new substring.
decodeURI() - JavaScript
description re
places each escape sequence in the encoded uri with the character that it represents, but does not decode escape sequences that could not have been introduced by encodeuri.
Lexical grammar - JavaScript
however, in some cases, line terminators can influence the execution of javascript code as there are a few
places where they are forbidden.
Spread syntax (...) - JavaScript
spread syntax (...) allows an iterable such as an array expression or string to be expanded in
places where zero or more arguments (for function calls) or elements (for array literals) are expected, or an object expression to be expanded in
places where zero or more key-value pairs (for object literals) are expected.
Expressions and operators - JavaScript
...obj spread syntax allows an expression to be expanded in
places where multiple arguments (for function calls) or multiple elements (for array literals) are expected.
Image file type and format guide - Web media technologies
however, early versions of internet explorer introduced the ability for a web site to provide a ico file named favicon.ico in a web site's root directory to specify a favicon — an icon to be displayed in the favorites menu, and other
places where an iconic representation of the site would be useful.
fill-rule - SVG: Scalable Vector Graphics
notes value nonzero | evenodd default value nonzero animatable yes the fill-rule attribute provides two options for how the inside (that is, the area to be filled) of a shape is determined: nonzero the value nonzero determines the "insideness" of a point in the shape by drawing a ray from that point to infinity in any direction, and then examining the
places where a segment of the shape crosses the ray.
SVG as an Image - SVG: Scalable Vector Graphics
many browsers support svg images in: html <img> or <svg> elements css background-image gecko-specific contexts additionally, gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) introduced support for using svg in these contexts: css list-style-image css content svg <image> element svg <feimage> element canvas drawimage function restrictions for security purposes, gecko
places some restrictions on svg content when it's being used as an image: javascript is disabled.
normalize-space - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the normalize-space function strips leading and trailing white-space from a string, re
places sequences of whitespace characters by a single space, and returns the resulting string.
Index - XPath
39 normalize-space xslt, xslt_reference the normalize-space function strips leading and trailing white-space from a string, re
places sequences of whitespace characters by a single space, and returns the resulting string.