Search completed in 1.15 seconds.
Window.closed - Web APIs
the window.
closed read-only property indicates whether the referenced window is
closed or not.
... syntax const is
closed = windowref.
closed; value a boolean.
... possible values: true: the window has been
closed.
...And 3 more matches
ReadableStreamDefaultReader.closed - Web APIs
the
closed read-only property of the readablestreamdefaultreader interface returns a promise that fulfills if the stream becomes
closed or the reader's lock is released, or rejects if the stream errors.
... syntax var
closed = readablestreamdefaultreader.
closed; value a promise.
... examples in this snippet, a previously-created reader is queried to see if the stream has been
closed.
...And 2 more matches
PR_CloseDir
syntax #include <prio.h> prstatus pr_
closedir(prdir *dir); parameter the function has the following parameter: dir a pointer to a prdir structure representing the directory to be
closed.
... description when a prdir object is no longer needed, it must be
closed and freed with a call to pr_
closedir call.
... note that after a pr_
closedir call, any prdirentry object returned by a previous pr_readdir call on the same prdir object becomes invalid.
MediaKeySession.closed - Web APIs
the mediakeysession.
closed read-only property returns a promise signaling when a mediakeysession closes.
... syntax var promise = mediakeysessionobj.
closed; value a promise.
... specifications specification status comment encrypted media extensionsthe definition of '
closed' in that specification.
ReadableStreamBYOBReader.closed - Web APIs
the
closed read-only property of the readablestreambyobreader interface returns a promise that fulfills if the stream becomes
closed or the reader's lock is released, or rejects if the stream errors.
... syntax var
closed = readablestreambyobreader.
closed; value a promise.
... specifications specification status comment streamsthe definition of '
closed' in that specification.
WritableStreamDefaultWriter.closed - Web APIs
the
closed read-only property of the writablestreamdefaultwriter interface returns a promise that fulfills if the stream becomes
closed or the writer's lock is released, or rejects if the stream errors.
... syntax var
closed = writablestreamdefaultwriter.
closed; value a promise.
... // check if the stream is
closed writer.
closed.then(() => { console.log('writer
closed'); }) specifications specification status comment streamsthe definition of '
closed' in that specification.
Element.openOrClosedShadowRoot - Web APIs
the element.openorcloseshadowroot read-only property represents the shadow root hosted by the element, regardless if its mode is open or
closed.
... syntax var shadowroot = element.shadowroot; value a shadowroot object instance, regardless if its mode is set to open or
closed, or null if no shadow root is present.
Index - Web APIs
if the shape has already been
closed or has only one point, this function does nothing.
... 643 clipboardevent.clipboarddata api, clipboard api, clipboardevent, experimental, method, read-only the clipboardevent.clipboarddata property holds a datatransfer object, which can be used: 644 closeevent api, interface, reference, web, websocket, websockets a closeevent is sent to clients using websockets when the connection is
closed.
... 1138 element.openor
closedshadowroot api, add-ons, element, extensions, mozilla, needs privileges, non-standard, property, reference, webextensions, openor
closedshadowroot, shadow dom the element.openorcloseshadowroot read-only property represents the shadow root hosted by the element, regardless if its mode is open or
closed.
...And 30 more matches
nsISessionStore
method overview void deletetabvalue(in nsidomnode atab, in astring akey); void deletewindowvalue(in nsidomwindow awindow, in astring akey); nsidomnode duplicatetab(in nsidomwindow awindow, in nsidomnode atab); nsidomnode forget
closedtab(in nsidomwindow awindow, in unsigned long aindex); nsidomnode forget
closedwindow(in unsigned long aindex); astring getbrowserstate(); unsigned long get
closedtabcount(in nsidomwindow awindow); astring get
closedtabdata(in nsidomwindow awindow); unsigned long get
closedwindowcount(); astring get
closedwindowdata(); astring gettabsta...
... forget
closedtab() nsidomnode forget
closedtab( in nsidomwindow awindow, in unsigned long aindex ); parameters awindow is the browser window associated with the
closed tab.
... aindex is the index of the
closed tab to be removed (fifo ordered).
...And 22 more matches
MathML Accessibility in Mozilla
x plus y en
closed by: a long division sign x + y long division en
closed x+y __________ long division symbol enclosing x plus y end symbol __________ not supported.
... x plus y en
closed by: a long division sign x + y long division en
closed x+y __________ actuarial symbol enclosing x plus y end symbol __________ not supported.
... x plus y en
closed by: an actuarial symbol x + y actuarial en
closed x+y __________ x plus y __________ not supported.
...And 16 more matches
nsIAsyncInputStream
if the stream implements nsiasyncinputstream, then the caller can use this interface to request an asynchronous notification when the stream becomes readable or
closed (via the asyncwait() method).
...t(in nsiinputstreamcallback acallback, in unsigned long aflags, in unsigned long arequestedcount, in nsieventtarget aeventtarget); void closewithstatus(in nsresult astatus); constants constant value description wait_closure_only (1<<0) if passed to asyncwait(), this flag overrides the default behavior, causing the oninputstreamready notification to be suppressed until the stream becomes
closed (either as a result of closewithstatus()/close being called on the stream or possibly due to some error in the underlying stream).
... methods asyncwait() asynchronously wait for the stream to be readable or
closed.
...And 9 more matches
nsIAsyncOutputStream
if the stream implements nsiasyncoutputstream, then the caller can use this interface to request an asynchronous notification when the stream becomes writable or
closed (via the asyncwait() method).
...(in nsioutputstreamcallback acallback, in unsigned long aflags, in unsigned long arequestedcount, in nsieventtarget aeventtarget); void closewithstatus(in nsresult reason); constants constant value description wait_closure_only (1<<0) if passed to asyncwait(), this flag overrides the default behavior, causing the onoutputstreamready notification to be suppressed until the stream becomes
closed (either as a result of closewithstatus()/close being called on the stream or possibly due to some error in the underlying stream).
... methods asyncwait() asynchronously wait for the stream to be writable or
closed.
...And 9 more matches
OpenClose - Archive of obsolete content
opening and closing popups popups and menus may be opened and
closed by a script.
... a menu may be
closed by a script by setting the open property to false, the reverse of what would be done to open the menu.
... somemenu.open = false; this command will close only a single level of menus, so any parent menus will need to be
closed with a similar command if desired.
...And 8 more matches
Event reference
error a websocket connection has been
closed with prejudice (some data couldn't be sent for example).
... close a websocket connection has been
closed.
... form events event name fired when reset the reset button is pressed submit the submit button is pressed printing events event name fired when beforeprint the print dialog is opened afterprint the print dialog is
closed text composition events event name fired when compositionstart the composition of a passage of text is prepared (similar to keydown for a keyboard input, but works with other inputs such as speech recognition).
...And 7 more matches
PopupEvents - Archive of obsolete content
this may happen because the user selected an item from the menu, or it may be because the popup was
closed by clicking elsewhere.
...the popuphiding event when a popup is
closed, the popuphiding event is fired on the popup just before it is removed from the screen.
...this way, the popup will not be
closed.
...And 6 more matches
Tree View Details - Archive of obsolete content
this is a fairly tricky process as it involves keeping track of which items have children and also which rows are open and
closed.
... the iscontaineropen method is used to determine which items are opened and
closed.
...the tree will call this method to determine which containers are open and which are
closed.
...And 6 more matches
Debugging HTML - Learn web development
<ul> <li>un
closed elements: if an element is <strong>not
closed properly, then its effect can spread to areas you didn't intend <li>badly nested elements: nesting elements properly is also very important for code behaving correctly.
... <strong>strong <em>strong emphasised?</strong> what is this?</em> <li>un
closed attributes: another common source of html problems.
... 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!
...And 6 more matches
io/text-streams - Archive of obsolete content
function readtextfromfile(filename) { var fileio = require("sdk/io/file"); var text = null; if (fileio.exists(filename)) { var textreader = fileio.open(filename, "r"); if (!textreader.
closed) { text = textreader.read(); textreader.close(); } } return text; } function writetexttofile(text, filename) { var fileio = require("sdk/io/file"); var textwriter = fileio.open(filename, "w"); if (!textwriter.
closed) { textwriter.write(text); textwriter.close(); } } globals constructors textreader(inputstream, charset) creates a buffered input stream that reads text from a backing stream using a given text encoding.
...if the stream is
closed, an exception is thrown.
... properties
closed true if the stream is
closed.
...And 5 more matches
RTCPeerConnection - Web APIs
this has an effect only if the signalingstate is not "
closed".getreceivers() the rtcpeerconnection.getreceivers() method returns an array of rtcrtpreceiver objects, each of which represents one rtp receiver.
... if the remote endpoint is bundle-aware, all media tracks and data channels are bundled onto a single transport at the completion of negotiation, regardless of policy used, and any superfluous transports that were created initially are
closed at that point.
... "
closed" the ice agent for this rtcpeerconnection has shut down and is no longer handling requests.
...And 5 more matches
tabs - Archive of obsolete content
/tabs'); tabs.on('ready', function () { console.log('first: ' + tabs[0].title); console.log('last: ' + tabs[tabs.length-1].title); }); you can access the currently active tab: var tabs = require('sdk/tabs'); tabs.on('activate', function () { console.log('active: ' + tabs.activetab.url); }); track a single tab given a tab, you can register event listeners to be notified when the tab is
closed, activated or deactivated, or when the page hosted by the tab is loaded or retrieved from the "back-forward cache": var tabs = require("sdk/tabs"); function onopen(tab) { console.log(tab.url + " is open"); tab.on("pageshow", logshow); tab.on("activate", logactivate); tab.on("deactivate", logdeactivate); tab.on("close", logclose); } function logshow(tab) { console.log(tab.url + " is...
... loaded"); } function logactivate(tab) { console.log(tab.url + " is activated"); } function logdeactivate(tab) { console.log(tab.url + " is deactivated"); } function logclose(tab) { console.log(tab.url + " is
closed"); } tabs.on('open', onopen); manipulate a tab you can get and set various properties of tabs (but note that properties relating to the tab's content, such as the url, will not contain valid values until after the tab's ready event fires).
... close this event is emitted when a tab is
closed.
...And 4 more matches
io/byte-streams - Archive of obsolete content
function readbinarydatafromfile (filename) { var fileio = require("sdk/io/file"); var data = null; if (fileio.exists(filename)) { var bytereader = fileio.open(filename, "rb"); if (!bytereader.
closed) { data = bytereader.read(); bytereader.close(); } } return data; } function writebinarydatatofile(data, filename) { var fileio = require("sdk/io/file"); var bytewriter = fileio.open(filename, "wb"); if (!bytewriter.
closed) { bytewriter.write(data); bytewriter.close(); } } globals constructors bytereader(inputstream) creates a binary input stream that reads bytes from a backing stream.
...if the stream is already
closed, an exception is thrown.
...if the stream is
closed, an exception is thrown.
...And 4 more matches
Using IndexedDB - Web APIs
also, indexeddb storage in browsers' privacy modes only lasts in-memory until the incognito session is
closed (private browsing mode for firefox and incognito mode for chrome, but in firefox this is not implemented yet as of april 2020 so you can't use indexeddb in firefox private browsing at all).
...the bound may be "
closed" (i.e., the key range includes the given value(s)) or "open" (i.e., the key range does not include the given value(s)).
...when you call open() with a greater version than the actual version of the database, all other open databases must explicitly acknowledge the request before you can start making changes to the database (an onblocked event is fired until they are
closed or reloaded).
...And 4 more matches
Window.open() - Web APIs
best practices <script type="text/javascript"> var windowobjectreference = null; // global variable function openffpromotionpopup() { if(windowobjectreference == null || windowobjectreference.
closed) /* if the pointer to the window object in memory does not exist or if such pointer exists but the window was
closed */ { windowobjectreference = window.open("http://www.spreadfirefox.com/", "promotefirefoxwindowname", "resizable,scrollbars,status"); /* then create it.
...*/ } else { windowobjectreference.focus(); /* else the window reference must exist and the window is not
closed; therefore, we can bring it back on top of any other window with the focus() method.
... you can also parameterize the function to make it versatile, functional in more situations, therefore re-usable in scripts and webpages: <script type="text/javascript"> var windowobjectreference = null; // global variable function openrequestedpopup(url, windowname) { if(windowobjectreference == null || windowobjectreference.
closed) { windowobjectreference = window.open(url, windowname, "resizable,scrollbars,status"); } else { windowobjectreference.focus(); }; } </script> (...) <p><a href="http://www.spreadfirefox.com/" target="promotefirefoxwindow" onclick="openrequestedpopup(this.href, this.target); return false;" title="this link will create a new window or will re-use an already opened one" ...
...And 4 more matches
<details>: The Details disclosure element - HTML: Hypertext Markup Language
a disclosure widget is typically presented onscreen using a small triangle which rotates (or twists) to indicate open/
closed status, with a label next to the triangle.
...the default
closed state displays only the triangle and the label inside <summary> (or a user agent-defined default string if no <summary>).
... this might look like the following: here we see a standard disclosure widget with the label "system requirements", in its default
closed state.
...And 4 more matches
prefwindow - Archive of obsolete content
on other platforms, the preferences are not applied until the dialog is
closed.
...normally, you would not set this attribute as it will be set automatically such that the default pane is the same as the one showing when the preferences dialog was last
closed.
...this ensures that the preferences are only saved when the main dialog is
closed, if this is the appropriate behaviour for the platform.
...And 3 more matches
Windows Media in Netscape - Archive of obsolete content
a good illustration of the use of this non-standard script element syntax is in creating
closed captioning of media content.
... automatic
closed captioning does not work in netscape 7.1 as it does in ie.
...fortunately, windows media player also fires a scriptcommand() event for
closed captioning, which means content may update the caption manually with a small piece of javascript.
...And 3 more matches
nsIWindowWatcher
users must keep this attribute current, including after the topmost window is
closed.
... registernotification() clients of this service can register themselves to be notified when a window is opened or
closed (added to or removed from this service).
...ert will cause a window-open //event and the call of this method again (forever) } } var ww = components.classes["@mozilla.org/embedcomp/window-watcher;1"] .getservice(components.interfaces.nsiwindowwatcher); ww.registernotification(new mywindowobserver()) alert("") //generate the first window-open event aobserver the nsiobserver to be notified when windows are opened or
closed.
...And 3 more matches
ARIA Test Cases - Accessibility
if the currently selected option is changed the new option should be spoken whether the list is open or
closed.
... when the combo box is opened or
closed, the new open/
closed state should be spoken.
... (mz) when the menu is
closed, screen reader should indicate this along with the newly focused item.
...And 3 more matches
Grammar and types - JavaScript
this section describes the following types of literals: array literals boolean literals floating-point literals numeric literals object literals regexp literals string literals array literals an array literal is a list of zero or more expressions, each of which represents an array element, en
closed in square brackets ([]).
... more succinctly, the syntax is: [(+|-)][digits].[digits][(e|e)[(+|-)]digits] for example: 3.1415926 -.123456789 -3.1e+12 .1e-23 object literals an object literal is a list of zero or more pairs of property names and associated values of an object, en
closed in curly braces ({}).
...if the property name would not be a valid javascript identifier or number, it must be en
closed in quotes.
...And 3 more matches
Panels - Archive of obsolete content
closing a panel a panel is
closed automatically when the user clicks outside of the panel.
... preventing panels from automatically closing a panel will be
closed when a user clicks outside of the panel or when the escape key is pressed.
... <panel id="search-panel" noautohide="true"> <textbox id="search"/> <button label="search" oncommand="dosearch();"/> <button label="cancel" oncommand="this.parentnode.hidepopup();"/> </panel> because the panel can no longer be
closed by clicking elsewhere, the panel should always provide a means to close the panel itself.
...And 2 more matches
Index
type = 21 (alert) version = { 3,0 } length = 18 (0x12) < encrypted > } ] server socket
closed.
...lrecord { type = 23 (application_data) version = { 3,0 } length = 160 (0xa0) > encrypted > } ] >-- [ sslrecord { type = 23 (application_data) version = { 3,0 } length = 223 (0xdf) > encrypted > } sslrecord { type = 21 (alert) version = { 3,0 } length = 18 (0x12) > encrypted > } ] server socket
closed.
... c0: 08 48 61 72 64 63 6f 72 65 31 27 30 25 06 03 55 | .hardcore1'0%..u d0: 04 03 13 1e 48 61 72 64 63 6f 72 65 20 43 65 72 | ....hardcore cer e0: 74 69 66 69 63 61 74 65 20 53 65 72 76 65 72 20 | tificate server f0: 49 49 30 1e 17 0d 39 38 30 35 31 36 30 31 30 33 | ii0...9805160103 <additional data lines> ] <additional records in same format> server socket
closed.
...And 2 more matches
Index
if the stream implements nsiasyncinputstream, then the caller can use this interface to request an asynchronous notification when the stream becomes readable or
closed (via the asyncwait() method).
...if the stream implements nsiasyncoutputstream, then the caller can use this interface to request an asynchronous notification when the stream becomes writable or
closed (via the asyncwait() method).
... 700 nsiinputstreamcallback interfaces, interfaces:scriptable, streams, xpcom, xpcom interface reference called to indicate that the stream is either readable or
closed.
...And 2 more matches
CloseEvent - Web APIs
a closeevent is sent to clients using websockets when the connection is
closed.
...used to indicate that a connection was
closed abnormally (that is, with no close frame being sent) when a status code is expected.
...indicates that the connection was
closed due to a failure to perform a tls handshake (e.g., the server certificate can't be verified).
...And 2 more matches
Event.composedPath() - Web APIs
this does not include nodes in shadow trees if the shadow root was created with its shadowroot.mode
closed.
... examples in our composed-composed-path example (see it live), we define two trivial custom elements, <open-shadow> and <
closed-shadow>, both of which take the contents of their text attribute and insert them into the element's shadow dom as the text content of a <p> element.
... the only difference between the two is that their shadow roots are attached with their modes set to open and
closed respectively.
...And 2 more matches
HTML elements reference - HTML: Hypertext Markup Language
element description <address> the html <address> element indicates that the en
closed html provides contact information for a person or people, or for an organization.
... element description <blockquote> the html <blockquote> element (or html block quotation element) indicates that the en
closed text is an extended quotation.
... <q> the html <q> element indicates that the en
closed text is a short inline quotation.
...And 2 more matches
HTML documentation index - HTML: Hypertext Markup Language
58 <address>: the contact address element address, author, contact, contact information, element, email, email address, html, html sections, html:flow content, html:palpable content, reference, web the html <address> element indicates that the en
closed html provides contact information for a person or people, or for an organization.
... 70 <big>: the bigger text element element, html, obsolete, reference, web the obsolete html big element (<big>) renders the en
closed text at a font size one level larger than the surrounding text (medium becomes large, for example).
... 71 <blink>: the blinking text element (obsolete) blink, element, html, obsolete, reference, web the html blink element (<blink>) is a non-standard element which causes the en
closed text to flash slowly.
...And 2 more matches
Functions - JavaScript
a list of parameters to the function, en
closed in parentheses and separated by commas.
... the javascript statements that define the function, en
closed in curly brackets, {...}.
... if an en
closed function defines a variable with the same name as a variable in the outer scope, then there is no way to refer to the variable in the outer scope again.
...And 2 more matches
windows - Archive of obsolete content
var windows = require("sdk/windows").browserwindows; // add a listener to the 'open' event windows.on('open', function(window) { myopenwindows.push(window); }); // add a listener to the 'close' event windows.on('close', function(window) { console.log("a window was
closed."); }); // add a listener to the 'activate' event windows.on('activate', function(window) { console.log("a window was activated."); }); // add a listener to the 'deactivate' event windows.on('deactivate', function(window) { console.log("a window was deactivated."); }); open event emitted when a new window is open.
... close event emitted when a window is
closed.
...in particular, if the user quits the browser then it's possible that your add-on will be unloaded before all windows are
closed.
...uire("sdk/windows").browserwindows; //print how many tabs the current window has console.log("the active window has " + windows.activewindow.tabs.length + " tabs."); // print the title of all browser windows for (let window of windows) { console.log(window.title); } // close the active window windows.activewindow.close(function() { console.log("the active window was
closed"); }); methods activate() makes window active, which will focus that window and bring it to the foreground.
remote/parent - Archive of obsolete content
it may have been
closed normally or it may have crashed.
...for example, the user might have
closed a content tab.
...it may have been
closed normally or it may have crashed.
... events detach event emitted when this frame is detached: for example, because the user
closed its corresponding tab.
Session store API - Archive of obsolete content
firefox 3 note in firefox 3 and later, if you need to detect when a tab is about to be
closed so that you can update data associated with the tab before it is
closed, you can watch for the "sstabclosing" event, which is sent to the tab.
...this can be on startup or in response to undo close tab, since
closed tabs are restored as single-tab sessions.
... new windows are opened as required (one for each window that was saved in the session store), and cookies and the list of recently
closed tabs are restored.
... using the session store api in seamonkey there are a number of differences between the session store api in firefox and the api in seamonkey 2.0: the class name is @mozilla.org/suite/sessionstore;1 var ss = components.classes["@mozilla.org/suite/sessionstore;1"] .getservice(components.interfaces.nsisessionstore); when restoring a window,
closed tabs in that window are not currently restored.
panel - Archive of obsolete content
the panel is
closed when the user clicks outside the panel, presses escape or when the panel's hidepopup method is called.
... noautofocus type: boolean if false, the default value, the currently focused element will be unfocused whenever the popup is opened or
closed.
...if true, the panel will only be
closed when the hidepopup method is called.
...four values are possible:
closed: the popup is
closed and not visible.
Error codes returned by Mozilla APIs
stream errors ns_base_stream_
closed (0x80470002) this error occurs when an operation is performed on a stream that has already been
closed.
...currently, this error only occurs when a file stream is
closed.
...implementations of nsichannel.asyncopen() will commonly return this error if the channel has already been opened (and has not yet been
closed).
...xpath_bad_extension_function (0x8060000e) ns_error_xpath_paren_expected (0x8060000f) ns_error_xpath_invalid_axis (0x80600010) ns_error_xpath_no_node_type_test (0x80600011) ns_error_xpath_bracket_expected (0x80600012) ns_error_xpath_invalid_var_name (0x80600013) ns_error_xpath_unexpected_end (0x80600014) ns_error_xpath_operator_expected (0x80600015) ns_error_xpath_un
closed_literal (0x80600016) ns_error_xpath_bad_colon (0x80600017) ns_error_xpath_bad_bang (0x80600018) ns_error_xpath_illegal_char (0x80600019) ns_error_xpath_binary_expected (0x8060001a) ns_error_xpath_invalid_expression_evaluated (0x8060001c) ns_error_xpath_unbalanced_curly_brace (0x8060001d) xslt errors errors that can occur when using xslt.
HTTP Cache
the data will be available as the writer writes data to the cache entry's output stream immediately, even before the output stream is
closed.
...ntry::onfileready notification is now expected state == loading: just do nothing and exit call to cacheentry::invokecallbacks cacheentry::invokecallbacks (entry atomic): called on: a new opener has been added to the fifo via an asyncopen call asynchronous result of cachefile open the writer throws the entry away the output stream of the entry has been opened or
closed metadataready or setvalid on the entry has been called the entry has been doomed state == empty: on oper_readonly flag use: oncacheentryavailable with null for the cache entry otherwise: state = writing opener is removed from the fifo and remembered as the current 'writer' oncacheentryavailable with anew = true and this entry is invoked (on the caller thre...
...ad) for the writer state == ready: oncacheentrycheck with the entry is invoked on the first opener in fifo - on the caller thread if demanded result == recheck_after_write_finished: opener is left in the fifo with a flag recheckafterwrite such openers are skipped until the output stream on the entry is
closed, then oncacheentrycheck is re-invoked on them note: here is a potential for endless looping when recheck_after_write_finished is abused result == entry_needs_revalidation: state = revalidating, this prevents invocation of any callback until cacheentry::setvalid is called continue as in state entry_wanted (just bellow) result == entry_wanted: consumer reference ++ (dropped back when the consumer rele...
...unexpected here (assertion failure) loop this process while there are openers in the fifo cacheentry::onfileready (entry atomic): load result == failure or the file has not been found on disk (is new): state = empty otherwise: state = ready since the cache file has been found and is usable containing meta data and data of the entry call to cacheentry::invokecallbacks cacheentry::onhandle
closed (entry atomic): called when any consumer throws the cache entry away if the handle is not the handle given to the current writer, then exit state == writing: the writer failed to call metadataready on the entry - state = empty state == revalidating: the writer failed the re-validation process and failed to call setvalid on the entry - state = ready call to cacheentry::invokecallbacks all...
OS.File for the main thread
once the file is
closed, any attempt to call methods of the file object will raise an error.
... promise can be rejected with os.file.error if the file is
closed.
... origin one of the following: os.file.pos_start (bytes are counted from the start of the file) os.file.pos_cur (bytes are counted from the current position in the file) os.file.pos_end (bytes are counted from the end of the file) promise can be rejected with os.file.error in case of any error, in particular if the new position is before the start of the file, or if the file is
closed.
... promise can be rejected with os.file.error in case of any error, in particular if the file is
closed.
NSS tools : ssltab
type = 21 (alert) version = { 3,0 } length = 18 (0x12) < encrypted > } ] server socket
closed.
... [ sslrecord { type = 23 (application_data) version = { 3,0 } length = 287 (0x11f) > encrypted > } ] [ sslrecord { type = 23 (application_data) version = { 3,0 } length = 160 (0xa0) > encrypted > } ] >-- [ sslrecord { type = 23 (application_data) version = { 3,0 } length = 223 (0xdf) > encrypted > } sslrecord { type = 21 (alert) version = { 3,0 } length = 18 (0x12) > encrypted > } ] server socket
closed.
...c0: 08 48 61 72 64 63 6f 72 65 31 27 30 25 06 03 55 | .hardcore1'0%..u d0: 04 03 13 1e 48 61 72 64 63 6f 72 65 20 43 65 72 | ....hardcore cer e0: 74 69 66 69 63 61 74 65 20 53 65 72 76 65 72 20 | tificate server f0: 49 49 30 1e 17 0d 39 38 30 35 31 36 30 31 30 33 | ii0...9805160103 <additional data lines> ] <additional records in same format> server socket
closed.
...0x0700c0) ssl2/rsa/3des192ede-cbc/md5 (0x000004) ssl3/rsa/rc4-128/md5 (0x00ffe0) ssl3/rsa-fips/3des192ede-cbc/sha (0x00000a) ssl3/rsa/3des192ede-cbc/sha (0x00ffe1) ssl3/rsa-fips/des64cbc/sha (0x000009) ssl3/rsa/des64cbc/sha (0x000003) ssl3/rsa/rc4-40/md5 } session-id = { } challenge = { 0x0355 0xe6e4 0x9979 0xc7d7 0x2c86 0x7896 0x5db 0xcfe9 } } ] <additional records in same formats> server socket
closed.
NSS tools : ssltap
type = 21 (alert) version = { 3,0 } length = 18 (0x12) < encrypted > } ] server socket
closed.
... [ sslrecord { type = 23 (application_data) version = { 3,0 } length = 287 (0x11f) > encrypted > } ] [ sslrecord { type = 23 (application_data) version = { 3,0 } length = 160 (0xa0) > encrypted > } ] >-- [ sslrecord { type = 23 (application_data) version = { 3,0 } length = 223 (0xdf) > encrypted > } sslrecord { type = 21 (alert) version = { 3,0 } length = 18 (0x12) > encrypted > } ] server socket
closed.
...c0: 08 48 61 72 64 63 6f 72 65 31 27 30 25 06 03 55 | .hardcore1'0%..u d0: 04 03 13 1e 48 61 72 64 63 6f 72 65 20 43 65 72 | ....hardcore cer e0: 74 69 66 69 63 61 74 65 20 53 65 72 76 65 72 20 | tificate server f0: 49 49 30 1e 17 0d 39 38 30 35 31 36 30 31 30 33 | ii0...9805160103 <additional data lines> ] <additional records in same format> server socket
closed.
...0x0700c0) ssl2/rsa/3des192ede-cbc/md5 (0x000004) ssl3/rsa/rc4-128/md5 (0x00ffe0) ssl3/rsa-fips/3des192ede-cbc/sha (0x00000a) ssl3/rsa/3des192ede-cbc/sha (0x00ffe1) ssl3/rsa-fips/des64cbc/sha (0x000009) ssl3/rsa/des64cbc/sha (0x000003) ssl3/rsa/rc4-40/md5 } session-id = { } challenge = { 0x0355 0xe6e4 0x9979 0xc7d7 0x2c86 0x7896 0x5db 0xcfe9 } } ] <additional records in same formats> server socket
closed.
NSS Tools ssltap
type = 21 (alert) version = { 3,0 } length = 18 (0x12) < encrypted >}]server socket
closed.
...7 (0x11f) < encrypted >}][sslrecord { type = 23 (application_data) version = { 3,0 } length = 160 (0xa0) < encrypted >}]<-- [sslrecord { type = 23 (application_data) version = { 3,0 } length = 223 (0xdf) < encrypted >}sslrecord { type = 21 (alert) version = { 3,0 } length = 18 (0x12) < encrypted >}]server socket
closed.
... c0: 08 48 61 72 64 63 6f 72 65 31 27 30 25 06 03 55 | .hardcore1'0%..u d0: 04 03 13 1e 48 61 72 64 63 6f 72 65 20 43 65 72 | ....hardcore cer e0: 74 69 66 69 63 61 74 65 20 53 65 72 76 65 72 20 | tificate server f0: 49 49 30 1e 17 0d 39 38 30 35 31 36 30 31 30 33 | ii0...9805160103<additional data lines>]<additional records in same format>server socket
closed.
...ede-cbc/sha (0x00000a) ssl3/rsa/3des192ede-cbc/sha (0x00ffe1) ssl3/rsa-fips/des64cbc/sha (0x000009) ssl3/rsa/des64cbc/sha (0x000003) ssl3/rsa/rc4-40/md5 } session-id = { } challenge = { 0x0355 0xe6e4 0x9979 0xc7d7 0x2c86 0x7896 0x5db0xcfe9 }}]<additional records in same formats>server socket
closed.
NSS tools : ssltap
type = 21 (alert) version = { 3,0 } length = 18 (0x12) < encrypted > } ] server socket
closed.
...lrecord { type = 23 (application_data) version = { 3,0 } length = 160 (0xa0) > encrypted > } ] >-- [ sslrecord { type = 23 (application_data) version = { 3,0 } length = 223 (0xdf) > encrypted > } sslrecord { type = 21 (alert) version = { 3,0 } length = 18 (0x12) > encrypted > } ] server socket
closed.
... c0: 08 48 61 72 64 63 6f 72 65 31 27 30 25 06 03 55 | .hardcore1'0%..u d0: 04 03 13 1e 48 61 72 64 63 6f 72 65 20 43 65 72 | ....hardcore cer e0: 74 69 66 69 63 61 74 65 20 53 65 72 76 65 72 20 | tificate server f0: 49 49 30 1e 17 0d 39 38 30 35 31 36 30 31 30 33 | ii0...9805160103 <additional data lines> ] <additional records in same format> server socket
closed.
... (0x00000a) ssl3/rsa/3des192ede-cbc/sha (0x00ffe1) ssl3/rsa-fips/des64cbc/sha (0x000009) ssl3/rsa/des64cbc/sha (0x000003) ssl3/rsa/rc4-40/md5 } session-id = { } challenge = { 0x0355 0xe6e4 0x9979 0xc7d7 0x2c86 0x7896 0x5db 0xcfe9 } } ] <additional records in same formats> server socket
closed.
Observer Notifications
this is sent before browsingcontext::
closed() is updated.
... places-connection-
closed sent after places has
closed its database connection.
... inspector-
closed - sent when the inspector tool is
closed.
... inspector-editor-
closed - sent after the attribute-value editor has been
closed.
mozIStorageConnection
this will be false if the connection failed to open, or it has been
closed.
... void asyncclose( in mozistoragecompletioncallback acallback optional ); parameters acallback optional an optional callback handler to be executed when the connection is successfully
closed.
... that object's mozistoragecompletioncallback.complete() routine will be called once the connection is
closed.
...this cached data will go away when the transaction is
closed.
nsIAppShellService
econsiderquit 1 attempt to quit if all windows are
closed.
... enterlastwindowclosingsurvivalarea() obsolete since gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) during application startup (and at other times!) we may temporarily encounter a situation where all application windows will be
closed but we do not want to take this as a signal to quit the application.
...(and at application startup, on platforms that do not normally quit when the last window has
closed, call enter once, but not exit) void enterlastwindowclosingsurvivalarea(); parameters none.
... amodal true if awindow is becoming modal or false if awindow is becoming nonmodal (or being
closed).
nsIDynamicContainer
method overview void oncontainermoved(in long long aitemid, in long long anewparent, in long anewindex); void oncontainernode
closed(in nsinavhistorycontainerresultnode acontainer); void oncontainernodeopening(in nsinavhistorycontainerresultnode acontainer, in nsinavhistoryqueryoptions aoptions); void oncontainerremoving(in long long aitemid); methods oncontainermoved() this method is called when the given container has just been moved, in case the service needs to do any bookkeeping.
... oncontainernode
closed() this method is called when the given container has just been collapsed so that the service can do any necessary cleanup.
...this only happens when the container itself goes from the open state to the
closed state.
...void oncontainernode
closed( in nsinavhistorycontainerresultnode acontainer ); parameters acontainer the container node of the container being
closed.
nsIFileInputStream
inherits 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.
... it may be removed before the stream is
closed if it is possible to delete it and still read from it.
... if open_on_read is defined, and the file was recreated after the first delete, the file will be deleted again when it is
closed again.
...(the file will only be reopened if it is
closed for some reason.) defer_open 1<<4 if this is set, the file will be opened (i.e., a call to pr_open() done) only when we do an actual operation on the stream, or more specifically, when one of the following is called: seek() tell() available() read() readline() defer_open is useful if we use the stream on a background thread, so that the opening and possible stating of the file happens there as well.
nsIFileStreams
last changed in gecko 1.9 (firefox 3) inherits from: nsisupports method overview void init(in nsifile file, in long ioflags, in long perm, in long behaviorflags); constants constants value description delete_on_close 1<<1 if this is set, the file will be deleted by the time the stream is
closed.
... it may be removed before the stream is
closed if it is possible to delete it and still read from it.
... if open_on_read is defined, and the file was recreated after the first delete, the file will be deleted again when it is
closed again.
...(the file will only be reopened if it is
closed for some reason.) methods init() void init( in nsifile file, in long ioflags, in long perm, in long behaviorflags ); parameters file file to read from (must qi to nsilocalfile).
nsIInputStream
a stream that is
closed will throw an exception when this method is called.
...if a stream is at end-of-file, but not
closed, then this method returns 0 bytes available.
... exceptions thrown <other-error> if the stream is
closed due to some error condition.
... ns_base_stream_
closed if the stream is
closed normally.
nsINavHistoryContainerResultNode
when
closed, attempting to call getchild() or access childcount results in an error.
... haschildren boolean indicates whether or not the node can have children, and may be used whether the container is open or
closed.
... when the container is
closed, the result is an exact answer if the node can be populated easily (for example, for bookmark folders).
... constants state constants constant value description state_
closed 0 the container is
closed.
nsINavHistoryResultObserver
method overview void batching(in boolean atogglemode); void container
closed(in nsinavhistorycontainerresultnode acontainernode); deprecated since gecko 2.0 obsolete since gecko 11.0 void containeropened(in nsinavhistorycontainerresultnode acontainernode); deprecated since gecko 2.0 obsolete since gecko 11.0 void containerstatechanged(in nsinavhistorycontainerresultnode acontainernode, in unsigned long aoldstate, in unsigned long anewstate); void invalidatecontainer...
... container
closed() obsolete since gecko 11.0 (firefox 11.0 / thunderbird 11.0 / seamonkey 2.8) called when a container node's state changes from opened to
closed.
... void container
closed( in nsinavhistorycontainerresultnode acontainernode ); parameters acontainernode the container node which was
closed.
... containeropened() obsolete since gecko 11.0 (firefox 11.0 / thunderbird 11.0 / seamonkey 2.8) called when a container node's state changes from
closed to opened.
nsINavHistoryResultViewer
method overview void container
closed(in nsinavhistorycontainerresultnode acontainernode); void containeropened(in nsinavhistorycontainerresultnode acontainernode); void invalidatecontainer(in nsinavhistorycontainerresultnode acontainernode); void nodeannotationchanged(in nsinavhistoryresultnode anode, in autf8string aannoname); void nodedateaddedchanged(in nsinavhistoryresultnode anode, in prtime...
... methods container
closed() called when a container node's state changes from
closed to opened.
... void container
closed( in nsinavhistorycontainerresultnode acontainernode ); parameters acontainernode the container node whose state changed.
... containeropened() called when a container node's state changes from
closed to opened.
nsIPipe
for example, if you try to read from an empty pipe that has not yet been
closed, then if that pipe's input end is non-blocking, then the read call will fail immediately with ns_base_stream_would_block as the error condition.
... however, if that pipe's input end is blocking, then the read call will not return until the pipe has data or until the pipe is
closed.
...for example, in the case of an empty non-blocking pipe, the user can call nsiasyncinputstream.asyncwait() on the input end of the pipe to be notified when the pipe has data to read (or when the pipe becomes
closed).
...in which case, the pipe is automatically
closed when the respective pipe ends are released.
nsIScriptableInputStream
exceptions thrown ns_base_stream_
closed if called after the stream has been
closed.
... ns_base_stream_
closed if called after the stream has been
closed.
...remember: the nsiscriptableinputstream has a contract where `init` should only be called once, and should always be
closed.
... new scriptableinputstream(this.getinputstream(name)); try { // use readbytes to get binary data, read to read a (null-terminated) string let contents = stream.readbytes(entry.realsize); } finally { stream.close(); } example usage in ondataavailable remember: the nsiscriptableinputstream has a contract where `init` should only be called once, and should always be
closed.
nsITransport
this means that if the stream has no data and is not
closed, then reading from it will block the calling thread until at least one byte is available or until the stream is
closed.
...this means that if the stream has no data and is not
closed, then reading from it returns ns_base_stream_would_block.
...this means that if the stream is full and is not
closed, then writing to it will block the calling thread until all of the data can be written or until the stream is
closed.
...this means that if the stream is full and is not
closed, then writing to it returns ns_base_stream_would_block.
Drawing shapes with canvas - Web APIs
a path, or even a subpath, can be
closed.
...if the shape has already been
closed or there's only one point in the list, this function does nothing.
... note: when you call fill(), any open shapes are
closed automatically, so you don't have to call closepath().
...this is, as mentioned above, because shapes are automatically
closed when a path is filled, but not when they are stroked.
Event.composed - Web APIs
examples in our composed-composed-path example (see it live), we define two trivial custom elements, <open-shadow> and <
closed-shadow>, both of which take the contents of their text attribute and insert them into the element's shadow dom as the text content of a <p> element.
... the only difference between the two is that their shadow roots are attached with their modes set to open and
closed respectively.
....define('open-shadow', class extends htmlelement { constructor() { super(); let pelem = document.createelement('p'); pelem.textcontent = this.getattribute('text'); let shadowroot = this.attachshadow({mode: 'open'}) .appendchild(pelem); } }); we then insert one of each element into our page: <open-shadow text="i have an open shadow root"></open-shadow> <
closed-shadow text="i have a
closed shadow root"></
closed-shadow> then include a click event listener on the <html> element: document.queryselector('html').addeventlistener('click',function(e) { console.log(e.composed); console.log(e.composedpath()); }); when you click on the <open-shadow> element and then the <
closed-shadow> element, you'll notice two things.
... the <open-shadow> element's composed path is this: array [ p, shadowroot, open-shadow, body, html, htmldocument https://mdn.github.io/web-components-examples/composed-composed-path/, window ] whereas the <
closed-shadow> element's composed path is a follows: array [
closed-shadow, body, html, htmldocument https://mdn.github.io/web-components-examples/composed-composed-path/, window ] in the second case, the event listeners only propagate as far as the <
closed-shadow> element itself, but not to the nodes inside the shadow boundary.
EventSource - Web APIs
the connection remains open until
closed by calling eventsource.close().
...possible values are connecting (0), open (1), or
closed (2).
... eventsource.close() closes the connection, if any, and sets the readystate attribute to
closed.
... if the connection is already
closed, the method does nothing.
IDBDatabase: close event - Web APIs
the close event is fired on idbdatabase when the database connection is unexpectedly
closed.
... note that it is not fired if the database connection is
closed normally using idbdatabase.close().
...tore.createindex('minutes', 'minutes', { unique: false }); objectstore.createindex('day', 'day', { unique: false }); objectstore.createindex('month', 'month', { unique: false }); objectstore.createindex('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = (event) => { const db = dbopenrequest.result; db.addeventlistener('close', () => { console.log('database connection
closed'); }); }; the same example, using the onclose property instead of addeventlistener(): // open the database const dbopenrequest = window.indexeddb.open('todolist', 4); dbopenrequest.onupgradeneeded = (event) => { const db = event.target.result; // create an objectstore for this database const objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // define what ...
...se }); objectstore.createindex('minutes', 'minutes', { unique: false }); objectstore.createindex('day', 'day', { unique: false }); objectstore.createindex('month', 'month', { unique: false }); objectstore.createindex('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = (event) => { const db = dbopenrequest.result; db.onclose = () => { console.log('database connection
closed'); }; }; ...
Using the Notifications API - Web APIs
note: when you receive a "close" event, there is no guarantee that it's the user who
closed the notification.
... this is in line with the specification, which states: "when a notification is
closed, either by the underlying notifications platform or by the user, the close steps for it must be run." notification events there are four events that are triggered on the notification instance: click triggered when the user clicks on the notification.
... close triggered once the notification is
closed.
...if the notification with the same tag has already been displayed, the previous notification is
closed and the new one is displayed.
RTCDataChannel.readyState - Web APIs
it is no longer possible to queue new messages to be sent, but previously queued messages may still be send or received before entering the "
closed" state.
... "
closed" the underlying data transport has
closed, or the attempt to make the connection failed.
...dqueue = []; function sendmessage(msg) { switch(datachannel.readystate) { case "connecting": console.log("connection not open; queueing: " + msg); sendqueue.push(msg); break; case "open": sendqueue.foreach((msg) => datachannel.send(msg)); break; case "closing": console.log("attempted to send message while closing: " + msg); break; case "
closed": console.log("error!
... attempt to send while connection
closed."); break; } } specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcdatachannel.readystate' in that specification.
ShadowRoot.mode - Web APIs
the mode property of the shadowroot specifies its mode — either open or
closed.
... when the mode of a shadow root is "
closed", the shadow root’s implementation internals are inaccessible and unchangeable from javascript—in the same way the implementation internals of, for example, the <video> element are inaccessible and unchangeable from javascript.
... syntax var mode = shadowroot.mode value a value defined in the shadowrootmode enum — either open or
closed.
... shadow.mode = '
closed'; } specifications specification status comment domthe definition of 'shadowroot.mode' in that specification.
A simple RTCDataChannel sample - Web APIs
the next step is to create the rtcdatachannel by calling rtcpeerconnection.createdatachannel() and set up event listeners to monitor the channel so that we know when it's opened and
closed (that is, when the channel is connected or disconnected within that peer connection).
...once this is done, our handlereceivemessage() method will be called each time data is received by the remote peer, and the handlereceivechannelstatuschange() method will be called any time the channel's connection state changes, so we can react when the channel is fully opened and when it's
closed.
... if the state has changed to "
closed", the opposite set of actions occurs: the input box and "send" button are disabled, the "connect" button is enabled so that the user can open a new connection if they wish to do so, and the "disconnect" button is disabled, since it's not useful when no connection exists.
...then all the saved references to these objects are set to null to avoid accidental reuse, and the user interface is updated to reflect the fact that the connection has been
closed.
WebSocket: close event - Web APIs
the close event is fired when a connection with a websocket is
closed.
... bubbles no cancelable no interface closeevent event handler property onclose examples you might want to know when the connection has been
closed so that you can update the ui or, perhaps, save data about the
closed connection.
... given that you have a variable called examplesocket that refers to an opened websocket, this handler would handle the situation where the socket has been
closed.
... examplesocket.addeventlistener('close', (event) => { console.log('the connection has been
closed successfully.'); )}; you can perform the same actions using the event handler property, like this: examplesocket.onclose = function (event) { console.log('the connection has been
closed successfully.'); }; specifications specification status html living standardthe definition of 'websocket close' in that specification.
WebSocket - Web APIs
constants constant value websocket.connecting 0 websocket.open 1 websocket.closing 2 websocket.
closed 3 properties websocket.binarytype the binary data type used by the connection.
... websocket.onclose an event listener to be called when the connection is
closed.
... close fired when a connection with a websocket is
closed.
... also available via the onclose property error fired when a connection with a websocket has been
closed because of an error, such as when some data couldn't be sent.
Window - Web APIs
window.
closed read only this property indicates whether the current window is
closed or not.
... event handlers implemented from elsewhere globaleventhandlers.onabort called when the loading of a resource has been aborted, such as by a user canceling the load while it is still in progress windoweventhandlers.onafterprint called when the print dialog box is
closed.
... globaleventhandlers.onclose called after the window is
closed globaleventhandlers.oncontextmenu called when the right mouse button is pressed globaleventhandlers.onerror called when a resource fails to load or when an error occurs at runtime.
... print events afterprint fired after the associated document has started printing or the print preview has been
closed.
Text labels and names - Accessibility
as a best practice, also provide a <title> for the document that is en
closed in the frame, with content identical to the frame's title attribute.
... (this assumes that the en
closed document is under your control; if not, try to match the frame's title attribute to the document's title.) some screen readers replace the contents of the title attribute with the contents of the en
closed document's <title>.
... as a best practice, also provide a <title> for the document that is en
closed in the frame, with content identical to the frame's title attribute.
... (this assumes that the en
closed document is under your control; if not, try to match the frame's title attribute to the document's title.) some screen readers replace the contents of the title attribute with the contents of the en
closed document's <title>.
shape-outside - CSS: Cascading Style Sheets
margin-box defines the shape en
closed by the outside margin edge.
... border-box defines the shape en
closed by the outside border edge.
... padding-box defines the shape en
closed by the outside padding edge.
... content-box defines the shape en
closed by the outside content edge.
Regular expression syntax cheatsheet - JavaScript
matches any one of the en
closed characters.
... you can specify a range of characters by using a hyphen, but if the hyphen appears as the first or last character en
closed in the square brackets it is taken as a literal hyphen to be included in the character set as a normal character.
...that is, it matches anything that is not en
closed in the brackets.
... you can specify a range of characters by using a hyphen, but if the hyphen appears as the first or last character en
closed in the square brackets it is taken as a literal hyphen to be included in the character set as a normal character.
Groups and ranges - JavaScript
matches any one of the en
closed characters.
... you can specify a range of characters by using a hyphen, but if the hyphen appears as the first or last character en
closed in the square brackets it is taken as a literal hyphen to be included in the character set as a normal character.
...that is, it matches anything that is not en
closed in the brackets.
... you can specify a range of characters by using a hyphen, but if the hyphen appears as the first or last character en
closed in the square brackets it is taken as a literal hyphen to be included in the character set as a normal character.
private-browsing - Archive of obsolete content
nsole.log("private window, doing nothing"); } else { worker.port.emit("log-content"); } } pagemod.pagemod({ include: "*", contentscript: loggingscript, onattach: logpublicpagecontent }); tracking private-browsing exit sometimes it can be useful to cache some data from private windows while they are open, as long as you don't store it after the private browsing windows have been
closed.
... for example, the "downloads" window might want to display all downloads while there are still some private windows open, then clean out all the private data when all private windows have
closed.
... to do this with the sdk, you can listen to the system event named "last-pb-context-exited": var events = require("sdk/system/events"); function listener(event) { console.log("last private window
closed"); } events.on("last-pb-context-exited", listener); globals functions isprivate(object) function to check whether the given object is private.
Adding windows and dialogs - Archive of obsolete content
note that the opener will wait until the dialog is
closed.
... this means the opendialog function call will not return until the dialog has been
closed by the user.
...the groupbox element should be used when en
closed elements share some function which is separate from other elements or groups in the same window.
Writing to Files - Archive of obsolete content
in this example, the operations are en
closed in a try-catch block in order to capture any errors that might occur during the process.
...finally, the stream is
closed by calling the stream's close method.
... you should ensure that the file is
closed, so that the data is properly written and that the file can be reopened for reading later.
Using the Editor from XUL - Archive of obsolete content
the user chooses 'close' from the file menu, uses the key shortcut, or quits the application, causing all windows to be
closed.
... before each window is
closed, javascript code in globaloverlay.js tries to call a trytoclose method on each window.
... if the user chooses to save the document, or throw away their changes, then the window is
closed.
notificationbox - Archive of obsolete content
alertclose type: event fired when a notification element is
closed.
... if the return value from this function is not true, then the notification is
closed.
... the notification is also not
closed if an error is thrown.
Common causes of memory leaks in extensions - Extensions
all zombie compartments in extensions are caused by a failure to release resources appropriately in certain circumstances, such as when a window is
closed, a page unloads, or an extension is disabled or removed.
... for example, in xul overlay code: var contentwindows = []; function inbrowserxuloverlay(contentwindow) { // forgetting or failing to pop the content window thing again contentwindows.push(contentwindow); } this will keep the content window compartments alive until the browser window is
closed.
... the following example shows how to unload your modules again (bootstrap.js): components.utils.import("resource://gre/modules/services.jsm"); function startup(data, reason) { // this assumes your add-on did register some chrome components.utils.import("chrome://myaddon/content/mymodule.jsm"); } function shutdown(data, reason) { // no need to do regular clean up when the application is
closed // unless you need to break circular references that might negatively // impact the shutdown process.
Game distribution - Game development
this includes hosting it yourself online, submitting it to open marketplaces, and submitting it to
closed ones like google play or the ios app store.
...another good measure to take is to provide an online demo if you're planning on packaging it and selling it in a
closed store like itunes or steam.
... packaging games the web is the first and the best choice for html5 games, but if you want to reach a broader audience and distribute your game in a
closed ecosystem, you still can do that by packaging it.
Index - MDN Web Docs Glossary: Definitions of Web-related terms
arpanet was
closed in early 1990.
... 34 block (scripting) codingscripting, glossary, javascript in javascript, a block is a collection of related statements en
closed in braces ("{}").
...a typical element includes an opening tag with some attributes, en
closed text content, and a closing tag.
Hacking with Bonsai
the process everyone who checks into the tree, joins a group called "the hook" at 8:00 am pst every weekday morning, the source tree is
closed.
...there is a web page, which records if the tree is open or
closed what the date stamp of the last known good tree is who is on the hook for the current tree before the tree is opened, the list of checkins that happened when the tree was
closed is reviewed to insure that only build related checkins took place.
... the rules no checkins when the tree is
closed unless you are fixing a build problem at the request of a build person.
CustomizableUI.jsm
aarea is the area for which a node was unregistered, anode the dom node which was unregistered, and areason indicates whether the area as a whole was unregistered (reason_area_unregistered), or whether a window
closed (reason_window_
closed).
... onwindow
closed(awindow) fired when a customizable (ie browser) window is
closed.
... parameters anode a node whose panel should be
closed isspecialwidget() check if a widget is a "special" widget: a spring, spacer or separator.
Python binding for NSS
sock.readline() calls sock.recv() internally until a complete line is read or the socket is
closed.
...for ipv6 the a hex string must be en
closed in brackets if a port is appended to it, the bracketed hex address with appended with a port is unappropriate in some circumstances, hence the new address property to permit either the address string with a port or without a port.
...thus a socket object behaves like a file object and must be
closed once for each makefile() call before it's actually
closed.
Handling Mozilla Security Bugs
thus people have strong feelings about how security-related bugs are handled, and in particular about the degree to which information about such bugs is publicly dis
closed.
...in particular, we understand and acknowledge the concerns of those who believe that all information about security vulnerabilities should be publicly dis
closed as soon as it is known, so that users may take immediate steps to protect themselves and so that problems can get the maximum amount of developer attention and be fixed as soon as possible.
...(regarding this point, if all mozilla distributors have a representative on the security bug group, then even if a bug remains in the security-sensitive category, all affected distributors can still be informed and take appropriate action.) the security module owner will be the primary person responsible for ensuring that security bug reports are investigated and publicly dis
closed in a timely manner, and that such bug reports do not remain in the bugzilla database uninvestigated and/or undis
closed.
Gecko events
is supported: yes event_menu_end a menu from the menu bar has been
closed.
... is supported: yes event_menupopup_end a pop-up menu has been
closed.
... is supported: no event_contexthelp_end a window has exited context-sensitive help mode is supported: no event_dragdrop_start an application is about to enter drag-and-drop mode is supported: yes event_dragdrop_end an application is about to exit drag-and-drop mode is supported: no event_dialog_start a dialog box has been displayed is supported: no event_dialog_end a dialog box has been
closed is supported: no event_scrolling_start scrolling has started on a scroll bar is supported: yes event_scrolling_end scrolling has ended on a scroll bar is supported: yes event_minimize_start a window object is about to be minimized or maximized is supported: no event_minimize_end a window object has been minimized or maximized is supported: no event_document_load_start is supported: y...
nsIAccessibleEvent
event_menu_end 0x0019 0x0016 a menu from the menu bar has been
closed.
... event_menupopup_end 0x001b 0x0018 a pop-up menu has been
closed.
... event_dialog_end 0x0025 0x0022 a dialog box has been
closed.
nsIAppStartup
constant value description econsiderquit 0x01 attempt to quit if all windows are
closed.
... enterlastwindowclosingsurvivalarea() serves for situations when all application windows will be
closed but we don't want to take this as a signal to quit the application.
... exitlastwindowclosingsurvivalarea() this method serves for situations when all application windows will be
closed but we don't want to take this as a signal to quit the application.
nsIFrameMessageManager
method overview void addmessagelistener(in astring amessage, in nsiframemessagelistener alistener, [optional] in boolean listenwhen
closed); void removemessagelistener(in astring amessage, in nsiframemessagelistener alistener); void sendasyncmessage(in astring amessage, in astring json); methods addmessagelistener() adds a message listener to the local frame.
... void addmessagelistener( in astring amessage, in nsiframemessagelistener alistener [optional in boolean listenwhen
closed ); parameters amessage the name of the message for which to add a listener.
... listenwhen
closed default is false.
nsIMessageListenerManager
to access this service, use: var globalmm = components.classes["@mozilla.org/globalmessagemanager;1"] .getservice(components.interfaces.nsimessagelistenermanager); method overview void addmessagelistener(in astring messagename, in nsimessagelistener listener, [optional] in boolean listenwhen
closed) void removemessagelistener(in astring messagename, in nsimessagelistener listener); void addweakmessagelistener(in astring messagename, in nsimessagelistener listener); void removeweakmessagelistener(in astring messagename, in nsimessagelistener listener); methods ...
... void addmessagelistener(in astring messagename, in nsimessagelistener listener, [optional] in boolean listenwhen
closed); parameters messagename a string indicating the name of the message to listen for.
... listenwhen
closed specify true to receive messages during the short period after a frame has been removed from the dom and before its frame script has finished unloading; this is false by default.
nsIMsgDatabase
last changed in gecko 1.9 (firefox 3) inherits from: nsidbchangeannouncer method overview void open(in nsilocalfile afoldername, in boolean acreate, in boolean aleaveinvaliddb); void forcefolderdb
closed(in nsimsgfolder afolder); void close(in boolean aforcecommit); void commit(in nsmsgdbcommit committype); void force
closed(); void clearcachedhdrs; void resethdrcachesize(in unsigned long size); nsimsgdbhdr getmsghdrforkey(in nsmsgkey key); nsimsgdbhdr getmsghdrformessageid(in string messageid); boolean containskey(in nsmsgkey key); nsimsgdbhdr createnewhdr(in nsmsgkey key); vo...
... forcefolderdb
closed() void forcefolderdb
closed(in nsimsgfolder afolder); parameters afolder close() void close(in boolean aforcecommit); parameters aforcecommit commit() void commit(in nsmsgdbcommit committype); parameters committype force
closed() force
closed is evil, and we should see if we can do without it.
... void force
closed(); clearcachedhdrs() void clearcachedhdrs(); resethdrcachesize() void resethdrcachesize(in unsigned long size); getmsghdrforkey() nsimsgdbhdr getmsghdrforkey(in nsmsgkey key); parameters key getmsghdrformessageid() nsimsgdbhdr getmsghdrformessageid(in string messageid); parameters messageid containskey() returns whether or not this database contains the given key.
nsISeekableStream
exceptions thrown ns_base_stream_
closed if called on a
closed stream.
...exceptions thrown ns_base_stream_
closed if called on a
closed stream.
...exceptions thrown ns_base_stream_
closed if called on a
closed stream.
nsITreeView
iscontainerempty() one of the methods that can be used to test whether or not a twisty should be drawn, and if so, whether an open or
closed twisty should be used.
... iscontaineropen() one of the methods that can be used to test whether or not a twisty should be drawn, and if so, whether an open or
closed twisty should be used.
... toggleopenstate() called on the view when an item is opened or
closed, e.g., by clicking the twisty, keyboard access, et cetera.
nsIWebSocketChannel
used to indicate that a connection was
closed abnormally (that is, with no close frame being sent) when a status code is expected.
... close() void close( in unsigned short acode, in autf8string areason ); parameters acode the status of the connection when
closed; see status codes for possible values.
... areason a human-readable string describing the reason the connection
closed.
DevTools API - Firefox Developer Tools
parameters: target {target} - the target of the toolbox that should be
closed.
... destroy() a method that is called when the toolbox is
closed or the tool is unregistered.
... hide the sidebar has been
closed.
EventSource.close() - Web APIs
the close() method of the eventsource interface closes the connection, if one is made, and sets the eventsource.readystate attribute to 2 (
closed).
... note: if the connection is already
closed, the method does nothing.
... examples var button = document.queryselector('button'); var evtsource = new eventsource('sse.php'); button.onclick = function() { console.log('connection
closed'); evtsource.close(); } note: you can find a full example on github — see simple sse demo using php.
IDBDatabase.onclose - Web APIs
the onclose event handler of the idbdatabase interface handles the close event, which is fired when the database is unexpectedly
closed.
... the close event is fired after all transactions have been aborted and the connection has been
closed.
... example db.onclose = function(event) { myappshowalert('the database "' + db.name + '" has unexpectedly
closed.'); }; specifications specification status comment indexed database api draftthe definition of 'onclose' in that specification.
RTCDataChannel.close() - Web APIs
the underlying data transport is
closed.
... the rtcdatachannel.readystate property is set to "
closed".
... if the transport was
closed with an error, the rtcdatachannel is sent a networkerror event.
RTCDataChannel - Web APIs
this is a simple event which indicates that the data channel has
closed down.onclosing the rtcdatachannel.onclosing property is an eventhandler which specifies a function to be called by the browser when the closing event is received by the rtcdatachannel.
... this is a simple event which indicates that the data channel is being
closed, that is, rtcdatachannel transitions to "closing" state.
... for example, after rtcdatachannel.close() was called but the underlying data transport might not have been
closed yet.onerror the rtcdatachannel.onerror property is an eventhandler which specifies a function to be called when the error event is received.
RTCDtlsTransport.state - Web APIs
closed the transport has been
closed intentionally as the result of receipt of a close_notify alert, or calling rtcpeerconnection.close().
...*/ function tallysenders(pc) { let results = { transportmissing: 0, connectionpending: 0, connected: 0,
closed: 0, failed: 0, unknown: 0 }; let senderlist = pc.getsenders(); senderlist.foreach(sender => { let transport = sender.transport; if (!transport) { results.transportmissing++; } else { switch(transport.state) { case "new": case "connecting": results.connectionpending++; break; case "connected": results.conn...
...ected++; break; case "
closed": results.
closed++; break; case "failed": results.failed++; break; default: results.unknown++; break; } } }); return results; } note that in this code, the new and connecting states are being treated as a single connectionpending status in the returned object.
RTCDtlsTransport - Web APIs
if your code accesses rtcrtpsenders and/or rtcrtpreceivers directly, you may encounter situations where they're initially separate, then half or more of them get
closed and the senders and receivers updated to refer to the appropriate remaining rtcdtlstransport objects.
...*/ function tallysenders(pc) { let results = { transportmissing: 0, connectionpending: 0, connected: 0,
closed: 0, failed: 0, unknown: 0 }; let senderlist = pc.getsenders(); senderlist.foreach(sender => { let transport = sender.transport; if (!transport) { results.transportmissing++; } else { switch(transport.state) { case "new": case "connecting": results.connectionpending++; break; case "connected": results.conn...
...ected++; break; case "
closed": results.
closed++; break; case "failed": results.failed++; break; default: results.unknown++; break; } } }); return results; } note that in this code, the new and connecting states are being treated as a single connectionpending status in the returned object.
RTCPeerConnection.connectionState - Web APIs
constant description "new" at least one of the connection's ice transports (rtcicetransports or rtcdtlstransports) are in the "new" state, and none of them are in one of the following states: "connecting", "checking", "failed", or "disconnected", or all of the connection's transports are in the "
closed" state.
...<<< make this a link once i know where that will be documented "connected" every ice transport used by the connection is either in use (state "connected" or "completed") or is
closed (state "
closed"); in addition, at least one transport is either "connected" or "completed".
... "
closed" the rtcpeerconnection is
closed.
ReadableStream.pipeThrough() - Web APIs
available options are: preventclose: if this is set to true, the source readablestream closing will no longer cause the destination writablestream to be
closed.
...in addition, if the destination writable stream starts out
closed or closing, the source readable stream will no longer be canceled.
... in this case the method will return a promise rejected with an error indicating piping to a
closed stream failed, or with any error that occurs during canceling the source.
ReadableStream.pipeTo() - Web APIs
available options are: preventclose: if this is set to true, the source readablestream closing will no longer cause the destination writablestream to be
closed.
...in addition, if the destination writable stream starts out
closed or closing, the source readable stream will no longer be canceled.
... in this case the method will return a promise rejected with an error indicating piping to a
closed stream failed, or with any error that occurs during canceling the source.
Using readable streams - Web APIs
if the stream becomes
closed, the promise will be fulfilled with an object of the form { value: undefined, done: true }.
... in addition, when we are done reading the fetch body we use the controller’s close() method to close the custom stream — any previously-enqueued chunks can still be read from it, but no more can be enqueued, and the stream is
closed when reading has finished.
...as we said before, any previously enqueued chunks will still be read, but no more can be enqueued because it is
closed.
Signaling and video calling - Web APIs
function handleiceconnectionstatechangeevent(event) { switch(mypeerconnection.iceconnectionstate) { case "
closed": case "failed": closevideocall(); break; } } here, we apply our closevideocall() function when the ice connection state changes to "
closed" or "failed".
...if the signaling state changes to
closed, we likewise close the call out.
... function handlesignalingstatechangeevent(event) { switch(mypeerconnection.signalingstate) { case "
closed": closevideocall(); break; } }; note: the
closed signaling state has been deprecated in favor of the
closed iceconnectionstate.
Using DTMF with WebRTC - Web APIs
once the tones finish transmitting, the connection is
closed.
... then, finally, each rtcpeerconnection is
closed by calling its close() method.
... once transmission of the tones is complete, the connection is
closed.
WebRTC API - Web APIs
close the data channel has completed the closing process and is now in the
closed state.
... its underlying data transport is completely
closed at this point.
... closing the rtcdatachannel has transitioned to the closing state, indicating that it will be
closed soon.
WritableStreamDefaultWriter - Web APIs
properties writablestreamdefaultwriter.
closedread only allows you to write code that responds to an end to the streaming process.
... returns a promise that fulfills if the stream becomes
closed or the writer's lock is released, or rejects if the stream errors.
...if the associated stream is errored when the lock is released, the writer will appear errored in the same way from now on; otherwise, the writer will appear
closed.
HTML5 Parser - Developer guides
for example, if the document lacked a </title> closing tag, the parser would reparse to look for the first '<' in the document, or if a comment was not
closed, it would look for the first '>'.
...however, un
closed comments often already break in existing browsers for one reason or another, so it's unlikely that you have this issue in sites that are tested in multiple browsers.
...a balanced sub-tree is html code in which any elements that are opened are also
closed, so that after the script, the elements left open are the same ones that were open before the script.
Connection management in HTTP/1.x - HTTP
these connections were short-lived: a new one created each time a request needed sending, and
closed once the answer had been received.
...this connection will not stay open forever: idle connections are
closed after some time (a server may use the keep-alive header to specify a minimum time the connection should be kept open).
...in such cases, using non-persistent connections, which are
closed as soon as they are idle, can provide better performance.
points - SVG: Scalable Vector Graphics
two elements are using this attribute: <polyline>, and <polygon> html,body,svg { height:100% } <svg viewbox="-10 -10 220 120" xmlns="http://www.w3.org/2000/svg"> <!-- polyline is an open shape --> <polyline stroke="black" fill="none" points="50,0 21,90 98,35 2,35 79,90"/> <!-- polygon is a
closed shape --> <polygon stroke="black" fill="none" transform="translate(100,0)" points="50,0 21,90 98,35 2,35 79,90"/> <!-- it is usualy considered best practices to separate a x and y coordinate with a comma and a group of coordinates by a space.
... note: a polygon is a
closed shape, meaning the last point is connected to the first point.
... value [ <number>+ ]# default value none animatable yes example html,body,svg { height:100% } <svg viewbox="-10 -10 120 120" xmlns="http://www.w3.org/2000/svg"> <!-- polygon is an
closed shape --> <polygon stroke="black" fill="none" points="50,0 21,90 98,35 2,35 79,90" /> </svg> specifications specification status comment scalable vector graphics (svg) 2the definition of 'points' in that specification.
Sidebar - Archive of obsolete content
// toggle the bookmarks sidebar (close it if it's open or // open it if it's currently
closed) sidebarui.toggle("viewbookmarkssidebar"); // show the history sidebar, whether it's hidden or already showing sidebarui.show("viewhistorysidebar"); // hide the sidebar, if one is showing sidebarui.hide(); avoid opening the sidebar on startup.
...for this snippet to work, you have to declare mainwindow as in the previous code block then write: mainwindow.document.getelementbyid("sidebar-splitter").hidden = true; be aware that if you change the splitter's hidden attribute, you need to reset it to a safe value when your sidebar is
closed, or replaced by another sidebar.
Intercepting Page Loads - Archive of obsolete content
it means you have to keep track of tabs being opened and
closed, in order to add and remove your listener.
...everything mentioned before applies here as well, except you'll be receiving all the events for all tabs and windows in a single object, and you don't have to worry about adding and removing listeners every time a tab is opened or
closed.
Index - Archive of obsolete content
1337 openclose xul, xul popup guide popups and menus may be opened and
closed by a script.
... 3679 npp_destroystream npapi, plugins tells the plug-in that a stream is about to be
closed or destroyed.
Conclusion - Archive of obsolete content
future directions for development of the tutorial and/or coursework: in addition to build status, tinderbox also tells you if the cvs tree is open or
closed for check-ins.
... how would you use javascript to determine whether the tree is open or
closed and css to style the icon accordingly?
confirm - Archive of obsolete content
firefox on linux mozilla application suite on win32 it is therefore recommended to only use two buttons wherever possible, and to keep in mind that button 1 has the same return value as "window
closed" (see below).
...also: user
closed the dialog window 1 'ok' or button 0 2 the third button previous versions of the xpinstall api stated the return value of confirm() to be a boolean.
A XUL Bestiary - Archive of obsolete content
<menu id="file" label="file"> <menupopup> <menuitem label="new" oncommand="createnewdoc()" /> <menuitem label="open" oncommand="opendoc()" /> <menuitem label="close" oncommand="
closedoc()" /> </menupopup> </menu> element names the item, the widget, while attributes describes features of that element, such as its name, its style, and so on.
...documents will load, buttons will be clicked, and links will be hovered over, and events will be raised for all these actions behind
closed doors.
Popup Guide - Archive of obsolete content
events when popups are opened or
closed the popupshowing and popupshown events are fired when a menu or popup is opened.
... the popuphiding and the popuphidden events are fired when a menu or popup is
closed.
Building Hierarchical Trees - Archive of obsolete content
if the items are containers, the tree builder will mark the right rows as containers, so that they can be opened and
closed with the small icon twisties on the left of the column.
...the tree builder creates rows lazily, so a
closed container will not have any data generated inside in it until the row is opened.
menu - Archive of obsolete content
the open attribute is not present if the menu is
closed.
...the menu may be opened by setting the open property to true and
closed by setting it to false.
Extentsions FAQ - Archive of obsolete content
also, check out this site to learn how to set up a proxy: http://www.mozilla.org/projects/xpcom/proxies.html how to test a tab has been
closed or not?
...you can get the tab that is being
closed.
Using IO Timeout And Interrupt On NT - Archive of obsolete content
due to a limitation of the present implementation of nspr io on nt, programs must follow the following guideline: if a thread calls an nspr io function on a file descriptor and the io function fails with <tt>pr_io_timeout_error</tt> or <tt>pr_pending_interrupt_error</tt>, the file descriptor must be
closed before the thread exits.
... conclusions as long as we need to support nt 3.51, we need to program under the guideline that after an io timeout or interrupt error, the thread must make sure the file descriptor is
closed before it exits.
Displaying notifications (deprecated) - Archive of obsolete content
onclose this event is fired when the notification is
closed (whether by being clicked or by some other means).
... for example, let's simply append a little html to our document when these events fire: notification.onclick = function() { var e = document.createelement("p"); e.innerhtml = "<strong>the notification was clicked.</strong>"; document.body.appendchild(e); }; notification.onclose = function() { var e = document.createelement("p"); e.innerhtml = "<strong>the notification was
closed.</strong>"; document.body.appendchild(e); }; displaying the notification once the notification is configured the way you want it to be, call its show() method to display the notification: notification.show(); on android, for example, the resulting notification panel looks like this: when the user taps on the "hey, check this out!" notification here, the resulting changes to the document...
What text editors are available? - Learn web development
extensible atom mit/bsd free windows, mac, linux forum online manual yes bluefish gpl 3 free windows, mac, linux mailing list, wiki online manual yes brackets mit/bsd free windows, mac, linux forum, irc github wiki yes coda
closed source $99 mac twitter, forum, e-mail ebook yes codelobster
closed source free windows, mac, linux forum, e-mail no end user doc yes emacs gpl 3 free windows, mac, linux faq, mailing list, news group online manual yes espresso
closed source $75 mac faq, e-mail no end user doc, but plug-in doc yes ...
... gedit gpl free windows, mac, linux mailing list, irc online manual yes kate lgpl, gpl free windows, mac, linux mailing list, irc online manual yes komodo edit mpl free windows, mac, linux forum online manual yes notepad++ gpl free windows forum wiki yes pspad
closed source free windows faq, forum online help yes sublime text
closed source $70 windows, mac, linux forum official, unofficial yes textmate
closed source $50 mac twitter, irc, mailing list, e-mail online manual, wiki yes textwrangler
closed source free mac faq, forum pdf manual no vim specific open license fre...
Advanced text formatting - Learn web development
for example, the following markup is taken from the mdn <blockquote> element page: <p>the <strong>html <code><blockquote></code> element</strong> (or <em>html block quotation element</em>) indicates that the en
closed text is an extended quotation.</p> to turn this into a block quote, we would just do this: <p>here below is a blockquote...</p> <blockquote cite="/docs/web/html/element/blockquote"> <p>the <strong>html <code><blockquote></code> element</strong> (or <em>html block quotation element</em>) indicates that the en
closed text is an extended quotation.</p> </blockquote> browser default sty...
...is no reason however why you couldn't link the text inside <cite> to the quote source in some way: <p>according to the <a href="/docs/web/html/element/blockquote"> <cite>mdn blockquote page</cite></a>: </p> <blockquote cite="/docs/web/html/element/blockquote"> <p>the <strong>html <code><blockquote></code> element</strong> (or <em>html block quotation element</em>) indicates that the en
closed text is an extended quotation.</p> </blockquote> <p>the quote element — <code><q></code> — is <q cite="/docs/web/html/element/q">intended for short quotations that don't require paragraph breaks.</q> -- <a href="/docs/web/html/element/q"> <cite>mdn q page</cite></a>.</p> citations are styled in italic font by default.
Client-side storage - Learn web development
the first one persists data for as long as the browser is open (the data is lost when the browser is
closed) and the second one persists data even after the browser is
closed and then opened again.
... enter the following lines again: let myname = localstorage.getitem('name'); myname you should see that the value is still available, even though the browser has been
closed and then opened again.
Handling text — strings in JavaScript - Learn web development
the following will return an error: let badquotes = 'what on earth?"; the browser will think the string has not been
closed because the other type of quote you are not using to contain your strings can appear in the string.
...try this: let response = one + 'i am fine — ' + two; response; note: when you enter an actual string in your code, en
closed in single or double quotes, it is called a string literal.
Storing the information you need — Variables - Learn web development
arrays an array is a single object that contains multiple values en
closed in square brackets and separated by commas.
... for example, if you declare a variable and give it a value en
closed in quotes, the browser treats the variable as a string: let mystring = 'hello'; even if the value contains numbers, it is still a string, so be careful: let mynumber = '500'; // oops, this is still a string typeof mynumber; mynumber = 500; // much better — now this is a number typeof mynumber; try entering the four lines above into your console one by one, and see what the results are.
Command line options
command parameters containing spaces must be en
closed in quotes, such as "joel user".
...in some cases, option arguments must be en
closed in quotation marks (this is noted in the option descriptions below).
Reviewer Checklist
[fennec: if your custom view does animations, it's better to clean up runnables in ondetachfromwindow().] ensure all file handles and other closeable resources are
closed appropriately.
... [fennec: when writing tests that use paintedsurface, ensure the paintedsurface is
closed when you're done with it.] performance impact check for main-thread io [fennec: android may warn about this with strictmode].
Frame script loading and lifetime
so once you load them, they will stay loaded until the tab is
closed, even if you reload the document or navigate.
... unloading frame scripts frame scripts are automatically unloaded when their hosting tab is
closed.
Performance
alternatively the frame's unload event or weak maps can be used to ensure that frames can be cleaned up when their respective tab is
closed.
... additionally the example above does not clean unregister itself, thus leaking objects each time a tab is
closed.
IME handling guide
if ime is enabled but users use direct input mode (e.g., for inputting latin characters), we call it "ime is
closed".
..."
closed" is also called "inactive" or "turned off") so, this document is useful when you're try to fix a bug for text input in gecko.
Downloads.jsm
the download is stopped and removed from the list when the message box is
closed, regardless of whether it has been completed or not.
...it will be enabled when the bug 851471 will be
closed.
OS.File.Error
error
closed() error exists() methods os.file.error.
closed() return an error representing the fact that a file is
closed.
... because
closed true if the operation failed because a file or directory is
closed, false otherwise.
PopupNotifications.jsm
any time the popup is
closed due to user interaction).
... removeondismissal notifications with this parameter set to true will be removed when they would have otherwise been dismissed (that is, any time the popup is
closed due to user interaction).
Sqlite.jsm
this function returns a promise that will be resolved when the database has
closed.
... it is possible to automatically close the connection when the browser is
closed with the shutdown hook: const conn = await sqlite.openconnection({ path: "mydatabase.sqlite", sharedmemorycache: false }); try { sqlite.shutdown.addblocker("my connection closing", async () => await conn.close()); } catch (e) { // it's too late to block shutdown, just close the connection.
Activity Monitor, Battery Status Menu and top
if a laptop is
closed for several hours and then reopened, those hours are not included in the calculation.) battery status menu when you click on the battery icon in the os x menu bar you get a drop-down menu that includes a list of “apps using significant energy”.
...the exception is when the application is
closed, in which case it disappears immediately.
Nonblocking IO In NSPR
the tcp connection on that socket has been
closed (end of stream).
...if <tt>pr_poll()</tt> reports that the socket is readable (i.e., <tt>pr_poll_read</tt> is set in <tt>out_flags</tt>), and <tt>pr_available()</tt> returns 0, this means that the socket connection is
closed.
PRLinger
if polarity is set to pr_true and linger is set to 0 (pr_interval_no_wait), the runtime aborts the connection when it is
closed and discards any data remaining in the socket send buffer.
... if polarity is set to pr_true and linger is nonzero, the runtime lingers when the socket is
closed.
PR_Close
returns one of the following values: if file descriptor is
closed successfully, pr_success.
... if the file descriptor is not
closed successfully, pr_failure.
PR_CloseFileMap
syntax #include <prio.h> prstatus pr_closefilemap(prfilemap *fmap); parameter the function has the following parameter: fmap the file mapping to be
closed.
... description when a file mapping created with a call to pr_createfilemap is no longer needed, it should be
closed with a call to pr_closefilemap.
NSS PKCS11 Functions
once the database is
closed, the slot will remain as an empty slot until it's used again with secmod_openuserdb().
...this name will not change after thedatabase is
closed.
sslerr.html
ssl_error_close_notify_alert -12230 "ssl peer has
closed this connection." the local socket received an ssl3 alert record from the remote peer, reporting that the remote peer has chosen to end the connection.
...likely causes include that the peer has
closed the connection.
Index
this can be helpful if funobj is an extant function that you wish to use as if it were en
closed by a newly-created global object.
...this can be helpful if funobj is an extant function that you wish to use as if it were en
closed by a newly-created global object.
Functions
if the function does not assign to any
closed-on vars/args, and it only reads
closed-on local variables and arguments that never change value after the function is created, then the function can be implemented as a flat closure.
... when a flat closure is created, all the
closed-on values are copied from the stack into reserved slots of the function object.
Tracing JIT
if the recorder completes recording at a backward branch back to the initial pc value that triggered recording mode, it is said to have successfully
closed the loop.
... a
closed loop is passed through the nanojit assembler and thereby compiled to native machine code.
Mozilla Projects
it will pop-up an alert when a window is
closed and javascript still links to that window (for example, an observer that is not cleared when the window closes).
... it is completely free, open source and can be included in any tool whether open or
closed, free or commercial.
Querying Places
containers can be open or
closed.
... this corresponds to the open and
closed state in a tree view, and can also be mapped to showing and hiding menus.
Avoiding leaks in JavaScript XPCOM components
this means that without some workaround, all of the browsers will remain in memory until the parent window is
closed.
...this destroy method assigns null to the problematic properties so that the large objects are no longer reachable from the wrapper of the browser element (which will still leak until the window containing the tabbrowser is
closed, but it's a much smaller leak).
nsIAsyncStreamCopier
aclosesource true if asource should be
closed after copying.
... aclosesink true if asink should be
closed after copying.
nsIDownloadManager
called when the download manager front end is
closed.
... useful for third party managers to let us know when they've
closed.
nsIMsgFolder
inherits from: nsisupports method overview void startfolderloading(); void endfolderloading(); void updatefolder(in nsimsgwindow awindow); nsimsgfilterlist getfilterlist(in nsimsgwindow msgwindow); void setfilterlist(in nsimsgfilterlist filterlist); void forcedb
closed(); 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); nsi...
... nsimsgfilterlist getfilterlist(nsimsgwindow msgwindow); setfilterlist() void setfilterlist(in nsimsgfilterlist filterlist); forcedb
closed() void forcedb
closed(); delete() void delete(); deletesubfolders() void deletesubfolders(in nsisupportsarray folders, in nsimsgwindow msgwindow); propagatedelete() void propagatedelete(in nsimsgfolder folder, in boolean deletestorage, in nsimsgwindow msgwindow); recursivedelete() void recursivedelete(in boolean d...
nsIScriptableIO
deleteonclose: the file is automatically deleted when the stream is
closed.
... closeoneof: the file is automatically
closed when the end of the file is reached.
nsIURI
note: ipv6 addresses are not en
closed in square brackets.
...ipv6 addresses are not en
closed in square brackets.
nsIZipReader
it is allowed to open with another file, but it needs to be
closed first with close().
... file=', filecontents); } else { console.log('is directory, no stream to read'); } } } catch (ex) { console.warn('exception occured = ', ex); if (ex.name == 'ns_error_file_not_found') { services.ww.activewindow.alert('xpi at path does not exist!\n\npath = ' + pathtoxpitoread); } } finally { zr.close(); console.log('zr
closed'); } see also nsizipentry nsizipwriter ...
Zombie compartments
this means there can be a delay between a page being
closed and its compartments disappearing.
... reactive checking if you look at about:memory and you see a compartment for www.foo.com, but you
closed your last www.foo.com tab a while ago, there's a good chance you're seeing a zombie compartment.
Standard OS Libraries
ow = ctypes.int; let xrootwindow = x11.declare("xrootwindow", ctypes.default_abi, window, display_ptr, ctypes.int ); let xquerypointer = x11.declare("xquerypointer", ctypes.default_abi, ctypes.bool, display_ptr, window, window.ptr, window.ptr, ctypes.int.ptr, ctypes.int.ptr, ctypes.int.ptr, ctypes.int.ptr, ctypes.unsigned_int.ptr ); let x
closedisplay = x11.declare("x
closedisplay", ctypes.default_abi, ctypes.int, display_ptr ); let display = xopendisplay(null); let rootwindow = xrootwindow(display, 0); let root = new window(); let child = new window(); let rootx = new ctypes.int(); let rooty = new ctypes.int(); let windowx = new ctypes.int(); let windowy = new ctypes.int(); let mask = new ctypes.unsigned_int(); xquerypoint...
...er(display, rootwindow, root.address(), child.address(), rootx.address(), rooty.address(), windowx.address(), windowy.address(), mask.address() ); x
closedisplay(display); components.utils.reporterror(rootx.value + "," + rooty.value); x11.close(); resources for x11 extended window manager hints githubgists :: noitidart / search · x11 - x11 js-ctypes snippets that can be copied and pasted to scratchpad xcb all the above methods, gdk, gtk, and x11/xlib are meant to be used on the main thread.
Debugger.Environment - Firefox Developer Tools
each debugger.frame instance representing a debuggee frame has an associated environment object describing the variables in scope in that frame; and each debugger.object instance representing a debuggee function has an environment object representing the environment the function has
closed over.
... spidermonkey creates exactly one debugger.environment instance for each environment it presents via a given debugger instance: if the debugger encounters the same environment through two different routes (perhaps two functions have
closed over the same environment), spidermonkey presents the same debugger.environment instance to the debugger each time.
CanvasRenderingContext2D.closePath() - Web APIs
if the shape has already been
closed or has only one point, this function does nothing.
... note: although closepath() is called after all the arcs have been created, only the last arc (sub-path) gets
closed.
CloseEvent() - Web APIs
closeeventinit optional is a closeeventinit dictionary, having the following fields: "wasclean", optional and defaulting to false, of type long, indicates if the connection has been
closed cleanly or not.
... "reason", optional and defaulting to '', of type domstring, that is a human-readable reason why the server
closed the connection.
HTMLDialogElement: close event - Web APIs
the close event is fired on an htmldialogelement object when the dialog it represents has been
closed.
...example-dialog"> <button class="close" type="reset">close</button> </dialog> <button class="open-dialog">open dialog</button> <div class="result"></div> css button, div { margin: .5rem; } js const result = document.queryselector('.result'); const dialog = document.queryselector('.example-dialog'); dialog.addeventlistener('close', (event) => { result.textcontent = 'dialog was
closed'; }); const opendialog = document.queryselector('.open-dialog'); opendialog.addeventlistener('click', () => { if (typeof dialog.showmodal === 'function') { dialog.showmodal(); result.textcontent = ''; } else { result.textcontent = 'the dialog api is not supported by this browser'; } }); const closebutton = document.queryselector('.close'); closebutton.addeventlistener('c...
HTMLDialogElement - Web APIs
events close fired when the dialog is
closed.
... <script> (function() { var updatebutton = document.getelementbyid('updatedetails'); var cancelbutton = document.getelementbyid('cancel'); var dialog = document.getelementbyid('favdialog'); dialog.returnvalue = 'favanimal'; function opencheck(dialog) { if(dialog.open) { console.log('dialog open'); } else { console.log('dialog
closed'); } } // update button opens a modal dialog updatebutton.addeventlistener('click', function() { dialog.showmodal(); opencheck(dialog); }); // form cancel button closes the dialog box cancelbutton.addeventlistener('click', function() { dialog.close('animalnotchosen'); opencheck(dialog); }); })(); </script> ...
IDBKeyRange.bound() - Web APIs
the bounds can be open (that is, the bounds exclude the endpoint values) or
closed (that is, the bounds include the endpoint values).
... by default, the bounds are
closed.
Key Values - Web APIs
ejects removable media (or toggles an optical storage device tray open and
closed).
... vk_colored_key_5 keycode_prog_brown "
closedcaptiontoggle" toggles
closed captioning on and off.
MediaSource.readyState - Web APIs
the three possible values are:
closed: the source is not currently attached to a media element.
... example the following snippet is from a simple example written by nick desaulniers (view the full demo live, or download the source for further investigation.) if ('mediasource' in window && mediasource.istypesupported(mimecodec)) { var mediasource = new mediasource; //console.log(mediasource.readystate); //
closed video.src = url.createobjecturl(mediasource); mediasource.addeventlistener('sourceopen', sourceopen); } else { console.error('unsupported mime type or codec: ', mimecodec); } function sourceopen (_) { //console.log(this.readystate); // open var mediasource = this; var sourcebuffer = mediasource.addsourcebuffer(mimecodec); fetchab(asseturl, function (buf) { sourcebuffer.addevent...
MediaSource - Web APIs
mediasource.readystate read only returns an enum representing the state of the current mediasource, whether it is not currently attached to a media element (
closed), attached and ready to receive sourcebuffer objects (open), or attached but the stream has been ended via mediasource.endofstream() (ended.) mediasource.duration gets and sets the duration of the current media being presented.
...igation.) var video = document.queryselector('video'); var asseturl = 'frag_bunny.mp4'; // need to be specific for blink regarding codecs // ./mp4info frag_bunny.mp4 | grep codec var mimecodec = 'video/mp4; codecs="avc1.42e01e, mp4a.40.2"'; if ('mediasource' in window && mediasource.istypesupported(mimecodec)) { var mediasource = new mediasource(); //console.log(mediasource.readystate); //
closed video.src = url.createobjecturl(mediasource); mediasource.addeventlistener('sourceopen', sourceopen); } else { console.error('unsupported mime type or codec: ', mimecodec); } function sourceopen (_) { //console.log(this.readystate); // open var mediasource = this; var sourcebuffer = mediasource.addsourcebuffer(mimecodec); fetchab(asseturl, function (buf) { sourcebuffer.addevent...
PaymentResponse.complete() - Web APIs
the paymentrequest method complete() of the payment request api notifies the user agent that the user interaction is over, and causes any remaining user interface to be
closed.
... return value a promise which resolves with no input value once the payment interface has been fully
closed.
PerformanceResourceTiming.responseEnd - Web APIs
the responseend read-only property returns a timestamp immediately after the browser receives the last byte of the resource or immediately before the transport connection is
closed, whichever comes first.
... syntax resource.responseend; return value a domhighrestimestamp immediately after the browser receives the last byte of the resource or immediately before the transport connection is
closed, whichever comes first.
RTCDataChannel.onclosing - Web APIs
this is a simple event which indicates that the data channel is being
closed, that is, rtcdatachannel transitions to "closing" state.
... for example, after rtcdatachannel.close() was called but the underlying data transport might not have been
closed yet.
RTCDataChannel.send() - Web APIs
data sent before connecting is buffered if possible (or an error occurs if it's not possible), and is also buffered if sent while the connection is closing or
closed.
...in this scenario, the underlying transport is immediately
closed.
RTCPeerConnection.setRemoteDescription() - Web APIs
invalidstateerror the rtcpeerconnection is
closed, or it's in a state which isn't compatible with the specified description's type.
... exceptions when using the deprecated callback-based version of setremotedescription(), the following exceptions may occur: invalidstateerror the connection's signalingstate is "
closed", indicating that the connection is not currently open, so negotiation cannot take place.
RTCRtpTransceiver.direction - Web APIs
exceptions when setting the value of direction, the following exceptions can occur: invalidstateerror either the receiver's rtcpeerconnection is
closed or the rtcrtpreceiver is stopped.
... usage notes setting the direction when you change the value of direction, an invalidstateerror exception will occur if the connection is
closed or the receiver is stopped.
RTCRtpTransceiver.stop() - Web APIs
return value undefined exceptions invalidstateerror the rtcpeerconnection of which the transceiver is a member is
closed.
... usage notes when you call stop() on a transceiver, the sender immediately stops sending media and each of its rtp streams are
closed using the rtcp "bye" message.
ReadableStreamBYOBReader - Web APIs
properties readablestreambyobreader.
closed read only allows you to write code that responds to an end to the streaming process.
... returns a promise that fulfills if the stream becomes
closed or the reader's lock is released, or rejects if the stream errors.
ReadableStreamDefaultController.close() - Web APIs
readers will still be able to read any previously-enqueued chunks from the stream, but once those are read, the stream will become
closed.
... when a button is pressed, the generation is stopped, the stream is
closed using readablestreamdefaultcontroller.close(), and another function is run, which reads the data back out of the stream.
ReadableStreamDefaultReader - Web APIs
properties readablestreamdefaultreader.
closed read only allows you to write code that responds to an end to the streaming process.
... returns a promise that fulfills if the stream becomes
closed or the reader's lock is released, or rejects if the stream errors.
WebSocket.close() - Web APIs
if the connection is already
closed, this method does nothing.
... syntax websocket.close(); parameters code optional a numeric value indicating the status code explaining why the connection is being
closed.
WebSocket.onclose - Web APIs
the websocket.onclose property is an eventhandler that is called when the websocket connection's readystate changes to
closed.
... syntax awebsocket.onclose = function(event) { console.log("websocket is
closed now."); }; value an eventlistener.
Web Storage API - Web APIs
web storage concepts and usage the two mechanisms within web storage are as follows: sessionstorage maintains a separate storage area for each given origin that's available for the duration of the page session (as long as the browser is open, including page reloads and restores) stores data only for a session, meaning that the data is stored until the browser (or tab) is
closed.
... localstorage does the same thing, but persists even when the browser is
closed and reopened.
Window.localStorage - Web APIs
localstorage is similar to sessionstorage, except that while data stored in localstorage has no expiration time, data stored in sessionstorage gets cleared when the page session ends — that is, when the page is
closed.
... (data in a localstorage object created in a "private browsing" or "incognito" session is cleared when the last "private" tab is
closed.) data stored in either localstorage is specific to the protocol of the page.
Privileged features - Web APIs
they are said to be dialog because their normal, usual purpose is to only notify info and to be dismissed,
closed.
...the user cannot return to the main window until the modal window is
closed.
Using XMLHttpRequest - Web APIs
note: starting in gecko 9.0, progress events can now be relied upon to come in for every chunk of data received, including the last chunk in cases in which the last packet is received and the connection
closed before the progress event is fired.
...this case can happen, for example, when one has an xmlhttprequest that gets fired on an onunload event for a window, the expected xmlhttprequest is created when the window to be
closed is still there, and finally sending the request (in otherwords, open()) when this window has lost its focus and another window gains focus.
Perceivable - Accessibility
see also add your own subtitles &
closed captions (youtube).
...ing) to at least 0.12 times the font size word spacing to at least 0.16 times the font size understanding text spacing 1.4.13 content on hover or focus (aa) added in 2.1 while additional content may appear and disappear in coordination with hover and keyboard focus, this success criterion specifies three conditions that must be met: dismissable (can be
closed/removed) hoverable (the additional content does not disappear when the pointer is over it) persistent (the additional content does not disappear without user action) understanding content on hover or focus note: also see the wcag description for guideline 1.4: distinguishable: make it easier for users to see and hear content including separating foreground from back...
@document - CSS: Cascading Style Sheets
the values provided to the url(), url-prefix(), domain(), and media-document() functions can be optionally en
closed by single or double quotes.
... the values provided to the regexp() function must be en
closed in quotes.
list-style-type - CSS: Cascading Style Sheets
disclosure-
closed symbol indicating that a disclosure widget, like <details> is
closed.
... defines using @counter-style the usual style types: hebrew, cjk-ideographic, hiragana, hiragana-iroha, katakana, katakana-iroha, japanese-formal, japanese-informal, simp-chinese-formal, trad-chinese-formal, simp-chinese-formal, trad-chinese-formal,korean-hangul-formal, korean-hanja-informal, korean-hanja-formal, cjk-decimal, ethiopic-numeric, disclosure-open and disclosure-
closed.
<kbd>: The Keyboard Input element - HTML: Hypertext Markup Language
examples basic example <p>use the command <kbd>help mycommand</kbd> to view documentation for the command "mycommand".</p> representing keystrokes within an input to describe an input comprised of multiple keystrokes, you can nest multiple <kbd> elements, with an outer <kbd> element representing the overall input and each individual keystroke or component of the input en
closed within its own <kbd>.
...for the menu option description, the entire input is en
closed in a <kbd> element.
<summary>: The Disclosure Summary element - HTML: Hypertext Markup Language
clicking the <summary> element toggles the state of the parent <details> element open and
closed.
...when the user clicks on the summary, the parent <details> element is toggled open or
closed, and then a toggle event is sent to the <details> element, which can be used to let you know when this state change occurs.
Forwarded - HTTP
this can be either: an ip address (v4 or v6, optionally with a port, and ipv6 quoted and en
closed in square brackets), an obfuscated identifier (such as "_hidden" or "_secret"), or "unknown" when the preceding entity is not known (and you still want to indicate that forwarding of the request was made).
...note that ipv6 address are quoted and en
closed in square brackets in forwarded.
Link - HTTP
syntax link: < uri-reference >; param1=value1; param2="value2" <uri-reference> the uri reference, must be en
closed between < and >.
... examples the uri (absolute or relative) must be en
closed between < and >: link: <https://example.com>; rel="preconnect" link: https://bad.example; rel="preconnect" specifying multiple links you can specify multiple links separated by commas, for example: link: <https://one.example.com>; rel="preconnect", <https://two.example.com>; rel="preconnect", <https://three.example.com>; rel="preconnect" specifications specification status comments rfc 8288, section 3: link serialisation in http headers ietf rfc rfc 5988, section 5: the link header field ietf rfc initial definition ...
Set-Cookie - HTTP
session cookies will also be restored, as if the browser was never
closed.
... set-cookie: sessionid=38afes7a8 permanent cookie instead of expiring when the client is
closed, permanent cookies expire at a specific date (expires) or after a specific length of time (max-age).
HTTP Index - HTTP
if the value sent is keep-alive, the connection is persistent and not
closed, allowing for subsequent requests to the same server to be done.
... 224 203 non-authoritative information http, http status code, reference, status code, successful response the http 203 non-authoritative information response status indicates that the request was successful but the en
closed payload has been modified by a transforming proxy from that of the origin server's 200 (ok) response .
RegExp() constructor - JavaScript
the literal notation's parameters are en
closed between slashes and do not use quotation marks.
... the constructor function's parameters are not en
closed between slashes but do use quotation marks.
RegExp - JavaScript
the literal notation's parameters are en
closed between slashes and do not use quotation marks.
... the constructor function's parameters are not en
closed between slashes but do use quotation marks.
for...of - JavaScript
in these cases, the iterator is
closed.
...upon exiting a loop, the generator is
closed and trying to iterate over it again does not yield any further results.
MathML documentation index - MathML
use the following syntax: <mover> base overscript </mover> 23 <mpadded> mathml, mathml reference, mathml:element, mathml:general layout schemata the mathml <mpadded> element is used to add extra padding and to set the general adjustment of position and size of en
closed contents.
...by default, string literals are displayed as en
closed by double quotes ("); by using the lquote and rquote attributes, you can set custom characters to display.
d - SVG: Scalable Vector Graphics
note: the appearance of a shape
closed with closepath may be different to that of one
closed by drawing a line to the origin, using one of the other commands, because the line ends are joined together (according to the stroke-linejoin setting), rather than just being placed at the same coordinates.
...ght:100% } <svg viewbox="0 -1 30 11" xmlns="http://www.w3.org/2000/svg"> <!-- an open shape with the last point of the path different to the first one --> <path stroke="red" d="m 5,1 l -4,8 8,0" /> <!-- an open shape with the last point of the path matching the first one --> <path stroke="red" d="m 15,1 l -4,8 8,0 -4,-8" /> <!-- a
closed shape with the last point of the path different to the first one --> <path stroke="red" d="m 25,1 l -4,8 8,0 z" /> </svg> specification specification status comment scalable vector graphics (svg) 2the definition of 'd' in that specification.
Using shadow DOM - Web Components
this takes as its parameter an options object that contains one option — mode — with a value of open or
closed: let shadow = elementref.attachshadow({mode: 'open'}); let shadow = elementref.attachshadow({mode: '
closed'}); open means that you can access the shadow dom using javascript written in the main page context, for example using the element.shadowroot property: let myshadowdom = mycustomelem.shadowroot; if you attach a shadow root to a custom element with mode:
closed set, you won't be able to a...
... note: as this blog post shows, it is actually fairly easy to work around
closed shadow doms, and the hassle to completely hide them is often more than it's worth.
page-mod - Archive of obsolete content
you can use this to access the tabs api for the tab associated with a specific document: var pagemod = require("sdk/page-mod"); var tabs = require("sdk/tabs"); pagemod.pagemod({ include: ["*"], onattach: function onattach(worker) { console.log(worker.tab.title); } }); destroying workers workers generate a detach event when their associated document is
closed: that is, when the tab is
closed or when the associated window's unload event occurs.
remote/child - Archive of obsolete content
at this point you can't access frame's content yet, but you can add event listeners: const { frames } = require("sdk/remote/child"); frames.on("attach", function(frame) { console.log("new frame"); frame.addeventlistener("domcontentloaded", function(e) { console.log(e.target.location.href); }); }); detach triggered when a frame is removed (for example, the user
closed a tab).
Appendix C: Avoiding using eval in Add-ons - Archive of obsolete content
// do not use eval(document.getelementbyid("mymenu").getattribute("oncommand")); eval(document.getelementbyid("mylabel").getattribute("onclick")); alternative: dispatch real events dispatching real events has the added bonus that all other event listeners for that element (and the corresponding bubbling/capturing chain) will fire as well, so this method will have the
closed resemblance to a real user event.
Handling Preferences - Archive of obsolete content
this is how we do it: openpreferences : function() { if (null == this._preferenceswindow || this._preferenceswindow.
closed) { let instantapply = application.prefs.get("browser.preferences.instantapply"); let features = "chrome,titlebar,toolbar,centerscreen" + (instantapply.value ?
noautofocus - Archive of obsolete content
« xul reference home noautofocus type: boolean if false, the default value, the currently focused element will be unfocused whenever the popup is opened or
closed.
Anatomy of a video game - Game development
building a better main loop in javascript there are two obvious issues with our previous main loop: main() pollutes the window object (where all global variables are stored) and the example code did not leave us with a way to stop the loop unless the whole tab is
closed or refreshed.
Publishing games - Game development
game distribution provides all you need to know about the ways you can distribute your newly created game into the wild — including hosting it yourself online, submitting it to open marketplaces, and submitting it to
closed ones like google play or the ios app store.
Accessible multimedia - Learn web development
for example, some users may not be able to hear the audio because they are in noisy environments (like a crowded bar when a sports game is being shown) or might not want to disturb others if they are in a quiet place (like a library.) this is not a new concept — television services have had
closed captioning available for quite a long time: whereas many countries offer english films with subtitles written in their own native languages, and different language subtitles are often available on dvds, for example there are different types of text track with different purposes.
Debugging CSS - Learn web development
if you incorrectly
closed an element, for instance opening an <h2> but closing with an </h3>, the browser will figure out what you were meaning to do and the html in the dom will correctly close the open <h2> with an </h2>.
Positioning - Learn web development
argin: 0 auto; } p { background: aqua; border: 3px solid blue; padding: 10px; margin: 10px; } span { background: red; border: 1px solid black; } .positioned { position: absolute; background: yellow; top: 30px; left: 30px; } first of all, note that the gap where the positioned element should be in the document flow is no longer there — the first and third elements have
closed together like it no longer exists!
How to build custom form controls - Learn web development
selectlist.foreach(deactivateselect); // and we turn on the active state for this specific control select.classlist.add('active'); } // this function will be used each time the user wants to open/
closed the list of options // it takes one parameter: // select : the dom node with the list to toggle function toggleoptlist(select) { // the list is kept from the control var optlist = select.queryselector('.optlist'); // we change the class of the list to show/hide it optlist.classlist.toggle('hidden'); } // this function will be used each time we need to highlight an option // it takes tw...
CSUN Firefox Materials
it includes such features as duplicating tabs, controlling tab focus, tab clicking options, undo
closed tabs and windows, plus much more.
Accessible Toolkit Checklist
lists and combo boxes when a list is tabbed to, select the first item if nothing else is already selected f4, alt+down or alt+up toggle a combo box open and
closed escape closes combo box if it was open (be careful not to have it cancel entire dialog) up/down arrow key navigation.
Old Thunderbird build
closed), you may wish to consider building one of the branches (to pull the source code from a branch, just replace the url to the repository in the hg clone instruction).
Simple Thunderbird build
closed), you may wish to consider building one of the branches (to pull the source code from a branch, just replace the url to the repository in the hg clone instruction).
Communicating with frame scripts
// on some event var browsermm = gbrowser.selectedbrowser.messagemanager; browsermm.loadframescript("chrome://my-addon@me.org/content/frame-script.js", false); messagemanagers.push(browsermm); console.log(messagemanagers.length); we can listen for message-manager-disconnect to update the array when the message managers disconnect (for example because the user
closed the tab): function myobserver() { } myobserver.prototype = { observe: function(subject, topic, data) { var index = messagemanagers.indexof(subject); if (index != -1) { console.log("one of our message managers disconnected"); mms.splice(index, 1); } }, register: function() { var observerservice = cc["@mozilla.org/observer-service;1"] .g...
Process scripts
process scripts stay loaded until their host process is
closed.
mozbrowserclose
example var browser = document.queryselector("iframe"); browser.addeventlistener("mozbrowserclose", function() { console.log("browser window has been
closed; iframe will be destroyed."); }); related events mozbrowserasyncscroll mozbrowsercontextmenu mozbrowsererror mozbrowsericonchange mozbrowserloadend mozbrowserloadstart mozbrowserlocationchange mozbrowseropenwindow mozbrowsersecuritychange mozbrowsershowmodalprompt mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
NetUtil.jsm
both streams are automatically
closed when the copy operation is completed.
Leak Monitor
it will pop-up an alert when a window is
closed and javascript still links to that window (for example, an observer that is not cleared when the window closes).
I/O Functions
pr_open pr_delete pr_getfileinfo pr_getfileinfo64 pr_rename pr_access type praccesshow functions that act on file descriptors pr_close pr_read pr_write pr_writev pr_getopenfileinfo pr_getopenfileinfo64 pr_seek pr_seek64 pr_available pr_available64 pr_sync pr_getdesctype pr_getspecialfd pr_createpipe directory i/o functions pr_opendir pr_readdir pr_
closedir pr_mkdir pr_rmdir socket manipulation functions the network programming interface presented here is a socket api modeled after the popular berkeley sockets.
PRDir
to close the directory, pass the prdir pointer to pr_
closedir.
PRFileMap
the memory-mapped file object is
closed by passing the prfilemap pointer to pr_closefilemap.
PR_CreateFileMap
the file-mapping object should be
closed with a pr_closefilemap call when it is no longer needed.
PR_CreatePipe
when the pipe is no longer needed, both ends should be
closed with calls to pr_close.
PR_GetSpecialFD
iption type prspecialfd is defined as follows: typedef enum prspecialfd{ pr_standardinput, pr_standardoutput, pr_standarderror } prspecialfd; #define pr_stdin pr_getspecialfd(pr_standardinput) #define pr_stdout pr_getspecialfd(pr_standardoutput) #define pr_stderr pr_getspecialfd(pr_standarderror) file descriptors returned by pr_getspecialfd are owned by the runtime and should not be
closed by the caller.
PR_Interrupt
in the nt implementation, a file descriptor is not usable and must be
closed after an i/o function on the file descriptor is interrupted.
PR_NewTCPSocket
a tcp connection can be shut down by pr_shutdown, and the sockets should be
closed by pr_close.
PR_NewUDPSocket
when the socket is no longer needed, it should be
closed with a call to pr_close.
PR_OpenDir
the prdir pointer should eventually be
closed by a call to pr_
closedir.
PR_OpenTCPSocket
a tcp connection can be shut down by pr_shutdown, and the sockets should be
closed by pr_close.
PR OpenUDPSocket
when the socket is no longer needed, it should be
closed with a call to pr_close.
PR_PushIOLayer
the destructor will be called on all layers when the stack is
closed (see pr_close).
PR_Read
the value 0 means end of file is reached or the network connection is
closed.
PR_ReadDir
moreover, the prdirentry structure returned by each pr_readdir call is valid only until the next pr_readdir or pr_
closedir call on the same prdir object.
PR_Recv
the value 0 means the network connection is
closed.
PR_RecvFrom
the value 0 means the network connection is
closed.
PR_TransmitFile
pr_transmitfile_close_socket indicates that the connection should be
closed immediately after successful transfer of the file.
JSS FAQ
jss example code is essentially developer test code; with that understanding, the best directory to look for sample code is in the org/mozilla/jss/tests directory: http://lxr.mozilla.org/mozilla/source/security/jss/org/mozilla/jss/tests org/mozilla/jss/tests/
closedbs.java org/mozilla/jss/tests/keyfactorytest.java org/mozilla/jss/tests/digesttest.java org/mozilla/jss/tests/jcasigtest.java org/mozilla/jss/tests/keywrapping.java org/mozilla/jss/tests/listcerts.java org/mozilla/jss/tests/pk10gen.java org/mozilla/jss/tests/sdr.java org/mozilla/jss/tests/selftest.java org/mozilla/jss/tests/setupdbs.java ...
NSS 3.12.4 release notes
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 tinderbox bug 470479: io timeout during cert fetching makes libpkix abort validation.
PKCS11 Implement
if a token has been removed during a session, c_getsessioninfo should return either ckr_session_
closed or ckr_session_handle_invalid.
FC_CloseSession
syntax ck_rv fc_closesession( ck_session_handle hsession ); parameters hsession [in] the session handle to be
closed.
NSS tools : certutil
icates (ssl only) (implies c) + u - certificate can be used for authentication or signing + w - send warning (use with other attributes to include a warning when the certificate is used in that context) the attribute codes for the categories are separated by commas, and the entire set of attributes en
closed by quotation marks.
NSS Tools certutil
lient certificates (implies c) c trusted ca to issue server certificates (ssl only) (implies c) u certificate can be used for authentication or signing w send warning (use with other attributes to include a warning when the certificate is used in that context) the attribute codes for the categories are separated by commas, and the entire set of attributes en
closed by quotation marks.
certutil
server certificates (ssl only) (implies c) o u - certificate can be used for authentication or signing o w - send warning (use with other attributes to include a warning when the certificate is used in that context) the attribute codes for the categories are separated by commas, and the entire set of attributes en
closed by quotation marks.
Bytecode Descriptions
local bindings that aren't
closed over or dynamically accessed are stored in stack slots.
JS::CloneFunctionObject
this can be helpful if funobj is an extant function that you wish to use as if it were en
closed by a newly-created global object.
JS_CloneFunctionObject
this can be helpful if funobj is an extant function that you wish to use as if it were en
closed by a newly-created global object.
Web Replay
all code whose behavior is recorded is compiled into gecko (rather than being part of immutable, usually
closed-source libraries) and can be lightly modified to deal with behaviors that function intercepting cannot handle, such as varying hash table layouts and the ordering of atomic accesses.
Zest
it is completely free, open source and can be included in any tool whether open or
closed, free or commercial.
Using the Places history service
nsiautocompletesearch: url-bar autocomplete from history from 1.9.1 (firefox3.1) on, don't use any places service on (or after) quit-application has been notified, since the database connection will be
closed to allow the last sync, and changes will most likely be lost.
nsIAlertsService
if no name is provided then only a notification created with no name (if any) will be
closed.
nsIContentSecurityPolicy
reportonlymode boolean when set to true, content load-blocking and fail-
closed are disabled: content security policy will only send reports, and not modify behavior.
nsIContentViewer
previousviewer nsicontentviewer the previous content viewer, which has been
closed but not destroyed.
nsIDOMWindowInternal
closed boolean readonly: this property indicates whether the referenced window is
closed or not.
nsIDOMWindowUtils
note: for scrollable frames containing documents (that is, <frame> and <iframe>), the en
closed document's root element is returned.
nsIFilePicker
constant value description returnok 0 the file picker dialog was
closed by the user hitting 'ok' returncancel 1 the file picker dialog was
closed by the user hitting 'cancel' returnreplace 2 the user chose an existing file and acknowledged that they want to overwrite the file filter constants these constants are used to create filters for commonly-used file types.
nsIInputStreamCallback
inherits from: nsisupports last changed in gecko 1.7 method overview void oninputstreamready(in nsiasyncinputstream astream); methods oninputstreamready() called to indicate that the stream is either readable or
closed.
nsILocalFile
delete_on_close file will be deleted when
closed.
nsIOutputStreamCallback
inherits from: nsisupports last changed in gecko 1.7 method overview void onoutputstreamready(in nsiasyncoutputstream astream); methods onoutputstreamready() called to indicate that the stream is either writable or
closed.
nsIXULTemplateBuilder
aforcecreation if true, the contents of the element are generated even if the element is
closed; this behavior is used with menus.
nsIXULWindow
that is, ensures that it is visible and runs a local event loop, exiting only once the window has been
closed.
nsIZipReaderCache
note: if nsizipreader.close has been called on the shared nsizipreader, this method will return the
closed nsizipreader nsizipreader getzip( in nsifile zipfile ); parameters zipfile the zip file.
nsMsgMessageFlags
elided 0x00000020 indicates whether or not the thread rooted at this message is open or
closed in the ui.
Storage
the latter will allow all ongoing transactions to complete before closing the connection, and will optionally notify you via callback when the connection is
closed.
Xptcall Porting Status
<font color="white">done</font> nt alpha bob meader <bob@guiduck.com> bob writes: en
closed is xptcall for alpha/nt target..
Events
compose-send-message a message gets sent compose-window-close a compose window gets
closed compose-window-init a compose window has been opened compose-window-reopen a cached compose window has been reopened.
MailNews fakeserver
server.start(port); // set up a nsimsgincomingserver locally localserver.someactionrequiringconnection(); server.performtest(); // nothing will be executed until the connection is
closed // localserver.closecachedconnections() is generally a good way to do so server.resettest(); // set up second test server.performtest(); transaction = server.playtransaction(); // finished with tests server.stop(); } currently, fakeserver provides no means to keep a persistent connection past a test, requiring connections to be
closed, possibly forcibly.
Using tab-modal prompts
, ['title - but not shown in tab modal', 'text goes here', input, 'check text, if no text, checkbox is not shown', check]); //this here is just an alert, showing the values of the prompt prompt.alert.apply(null, ['title not shown in modal', 'user clicked ok: ' + ok + '\n' + 'checked: ' + check.value + '\ninput value: ' + input.value]); note: because the prompts are shown in a tab, if the tab is
closed while the prompt is open it will throw an exception.
Using js-ctypes
after you're done when you're finished using a library, you should close it by calling the library object's close() method: lib.close(); if you fail to close the library, it will be automatically
closed when it is garbage collected.
Initialization and Destruction - Plugins
the browser calls npp_destroy when a plug-in instance is deleted, usually because the user has left the page containing the instance,
closed the window, or quit the application.
Index - Firefox Developer Tools
each debugger.frame instance representing a debuggee frame has an associated environment object describing the variables in scope in that frame; and each debugger.object instance representing a debuggee function has an environment object representing the environment the function has
closed over.
BaseAudioContext.state - Web APIs
closed: the audio context has been
closed (with the audiocontext.close() method.) example the following snippet is taken from our audiocontext states demo (see it running live.) the audiocontext.onstatechange hander is used to log the current state to the console every time it changes.
Using the CSS Typed Object Model - Web APIs
// cssimagevalue console.log( bgimage.tostring() ); // url("https://mdn.mozillademos.org/files/16793/magicwand.png") // cssunparsedvalue let unit = allcomputedstyles.get('--unit'); console.log( unit ) // let parsedunit = cssnumericvalue.parse( unit ); console.log( parsedunit ); console.log( parsedunit.unit ); console.log( parsedunit.value ); for this example to work, the example must be
closed out here.
Applying styles and colors - Web APIs
note also that only start and final endpoints of a path are affected: if a path is
closed with closepath(), there's no start and final endpoint; instead, all endpoints in the path are connected to their attached previous and next segment using the current setting of the linejoin style, whose default value is miter, with the effect of automatically extending the outer borders of the connected segments to their intersection point, so that the rendered stroke will exactly cover full pixe...
CustomEvent - Web APIs
this does not include nodes in shadow trees if the shadow root was created with its shadowroot.mode
closed.
Document.write() - Web APIs
note: because document.write() writes to the document stream, calling document.write() on a
closed (loaded) document automatically calls document.open(), which will clear the document.
Element.attachShadow() - Web APIs
this can be one of: open: elements of the shadow root are accessible from javascript outside the root, for example using element.shadowroot: element.shadowroot; // returns a shadowroot obj
closed: denies access to the node(s) of a
closed shadow root from javascript outside it: element.shadowroot; // returns null delegatesfocus a boolean that, when set to true, specifies behavior that mitigates custom element issues around focusability.
Element.shadowRoot - Web APIs
syntax var shadowroot = element.shadowroot; value a shadowroot object instance, or null if the associated shadow root was attached with its mode set to
closed.
Element - Web APIs
element.openor
closedshadowroot read only returns the shadow root that is hosted by the element, regardless if its open or
closed.
Event - Web APIs
this does not include nodes in shadow trees if the shadow root was created with its shadowroot.mode
closed.
EventSource.readyState - Web APIs
possible values are: 0 — connecting 1 — open 2 —
closed examples var evtsource = new eventsource('sse.php'); console.log(evtsource.readystate); note: you can find a full example on github — see simple sse demo using php.
GlobalEventHandlers.onanimationcancel - Web APIs
@keyframes slidebox { from { left:0; top:0; } to { left:calc(100% - var(--boxwidth)); top:calc(100% - var(--boxwidth)) } } since the animation is described as taking place an infinite number of times, alternating direction each time, the box will glide back and forth between the two corners until stopped or the page is
closed.
HTMLDialogElement.close() - Web APIs
<script> (function() { var updatebutton = document.getelementbyid('updatedetails'); var cancelbutton = document.getelementbyid('cancel'); var dialog = document.getelementbyid('favdialog'); dialog.returnvalue = 'favanimal'; function opencheck(dialog) { if(dialog.open) { console.log('dialog open'); } else { console.log('dialog
closed'); } } // update button opens a modal dialog updatebutton.addeventlistener('click', function() { dialog.showmodal(); opencheck(dialog); }); // form cancel button closes the dialog box cancelbutton.addeventlistener('click', function() { dialog.close('animalnotchosen'); opencheck(dialog); }); })(); </script> ...
HTMLDialogElement.open - Web APIs
<script> (function() { var updatebutton = document.getelementbyid('updatedetails'); var cancelbutton = document.getelementbyid('cancel'); var dialog = document.getelementbyid('favdialog'); dialog.returnvalue = 'favanimal'; function opencheck(dialog) { if(dialog.open) { console.log('dialog open'); } else { console.log('dialog
closed'); } } // update button opens a modal dialog updatebutton.addeventlistener('click', function() { dialog.showmodal(); opencheck(dialog); }); // form cancel button closes the dialog box cancelbutton.addeventlistener('click', function() { dialog.close('animalnotchosen'); opencheck(dialog); }); })(); </script> ...
HTMLDialogElement.returnValue - Web APIs
tton id="updatedetails">update details</button> </menu> <script> (function() { var updatebutton = document.getelementbyid('updatedetails'); var dialog = document.getelementbyid('favdialog'); dialog.returnvalue = 'favanimal'; function opencheck(dialog) { if (dialog.open) { console.log('dialog open'); } else { console.log('dialog
closed'); } } function handleuserinput(returnvalue) { if (returnvalue === 'cancel' || returnvalue == null) { // user canceled the dialog, do nothing } else if (returnvalue === 'confirm') { // user chose a favorite animal, do something with it } } // “update details” button opens the <dialog> modally updatebutton.adde...
HTMLDialogElement.show() - Web APIs
<script> (function() { var updatebutton = document.getelementbyid('updatedetails'); var cancelbutton = document.getelementbyid('cancel'); var dialog = document.getelementbyid('favdialog'); dialog.returnvalue = 'favanimal'; function opencheck(dialog) { if(dialog.open) { console.log('dialog open'); } else { console.log('dialog
closed'); } } // update button opens a modal dialog updatebutton.addeventlistener('click', function() { dialog.showmodal(); opencheck(dialog); }); // form cancel button closes the dialog box cancelbutton.addeventlistener('click', function() { dialog.close('animalnotchosen'); opencheck(dialog); }); })(); </script> ...
HTMLDialogElement.showModal() - Web APIs
<script> (function() { var updatebutton = document.getelementbyid('updatedetails'); var cancelbutton = document.getelementbyid('cancel'); var dialog = document.getelementbyid('favdialog'); dialog.returnvalue = 'favanimal'; function opencheck(dialog) { if(dialog.open) { console.log('dialog open'); } else { console.log('dialog
closed'); } } // update button opens a modal dialog updatebutton.addeventlistener('click', function() { dialog.showmodal(); opencheck(dialog); }); // form cancel button closes the dialog box cancelbutton.addeventlistener('click', function() { dialog.close('animalnotchosen'); opencheck(dialog); }); })(); </script> ...
HTMLTrackElement - Web APIs
this element can be used as a child of either <audio> or <video> to specify a text track containing information such as
closed captions or subtitles.
IDBKeyRange - Web APIs
a bounded key range can either be open (the endpoints are excluded) or
closed (the endpoints are included).
IDBOpenDBRequest.onblocked - Web APIs
this event is triggered when the upgradeneeded should be triggered because of a version change but the database is still in use (that is, not
closed) somewhere, even after the versionchange event was sent.
Intersection Observer API - Web APIs
the values in rootmargin define offsets added to each side of the intersection root's bounding box to create the final intersection root bounds (which are dis
closed in intersectionobserverentry.rootbounds when the callback is executed).
MediaSource.MediaSource() - Web APIs
stigation.) var video = document.queryselector('video'); var asseturl = 'frag_bunny.mp4'; // need to be specific for blink regarding codecs // ./mp4info frag_bunny.mp4 | grep codec var mimecodec = 'video/mp4; codecs="avc1.42e01e, mp4a.40.2"'; if ('mediasource' in window && mediasource.istypesupported(mimecodec)) { var mediasource = new mediasource; //console.log(mediasource.readystate); //
closed video.src = url.createobjecturl(mediasource); mediasource.addeventlistener('sourceopen', sourceopen); } else { console.error('unsupported mime type or codec: ', mimecodec); } ...
MediaSource.addSourceBuffer() - Web APIs
live, or download the source for further investigation.) var asseturl = 'frag_bunny.mp4'; // need to be specific for blink regarding codecs // ./mp4info frag_bunny.mp4 | grep codec var mimecodec = 'video/mp4; codecs="avc1.42e01e, mp4a.40.2"'; if ('mediasource' in window && mediasource.istypesupported(mimecodec)) { var mediasource = new mediasource; //console.log(mediasource.readystate); //
closed video.src = url.createobjecturl(mediasource); mediasource.addeventlistener('sourceopen', sourceopen); } else { console.error('unsupported mime type or codec: ', mimecodec); } function sourceopen (_) { //console.log(this.readystate); // open var mediasource = this; var sourcebuffer = mediasource.addsourcebuffer(mimecodec); fetchab(asseturl, function (buf) { sourcebuffer.addevent...
MediaSource.endOfStream() - Web APIs
live, or download the source for further investigation.) var asseturl = 'frag_bunny.mp4'; // need to be specific for blink regarding codecs // ./mp4info frag_bunny.mp4 | grep codec var mimecodec = 'video/mp4; codecs="avc1.42e01e, mp4a.40.2"'; if ('mediasource' in window && mediasource.istypesupported(mimecodec)) { var mediasource = new mediasource; //console.log(mediasource.readystate); //
closed video.src = url.createobjecturl(mediasource); mediasource.addeventlistener('sourceopen', sourceopen); } else { console.error('unsupported mime type or codec: ', mimecodec); } function sourceopen (_) { //console.log(this.readystate); // open var mediasource = this; var sourcebuffer = mediasource.addsourcebuffer(mimecodec); fetchab(asseturl, function (buf) { sourcebuffer.addevent...
MediaSource.isTypeSupported() - Web APIs
live, or download the source for further investigation.) var asseturl = 'frag_bunny.mp4'; // need to be specific for blink regarding codecs // ./mp4info frag_bunny.mp4 | grep codec var mimecodec = 'video/mp4; codecs="avc1.42e01e, mp4a.40.2"'; if ('mediasource' in window && mediasource.istypesupported(mimecodec)) { var mediasource = new mediasource; //console.log(mediasource.readystate); //
closed video.src = url.createobjecturl(mediasource); mediasource.addeventlistener('sourceopen', sourceopen); } else { console.error('unsupported mime type or codec: ', mimecodec); } function sourceopen (_) { //console.log(this.readystate); // open var mediasource = this; var sourcebuffer = mediasource.addsourcebuffer(mimecodec); fetchab(asseturl, function (buf) { sourcebuffer.addevent...
Page Visibility API - Web APIs
tabs running code that's using real-time network connections (websockets and webrtc) go unthrottled in order to avoid closing these connections timing out and getting unexpectedly
closed.
Path2D - Web APIs
if the shape has already been
closed or has only one point, this function does nothing.
PerformanceResourceTiming - Web APIs
performanceresourcetiming.responseendread only a domhighrestimestamp immediately after the browser receives the last byte of the resource or immediately before the transport connection is
closed, whichever comes first.
PerformanceTiming.responseEnd - Web APIs
the legacy performancetiming.responseend read-only property returns an unsigned long long representing the moment, in miliseconds since the unix epoch, when the browser received the last byte of the response, or when the connection is
closed if this happened first, from the server from a cache or from a local resource.
PerformanceTiming - Web APIs
performancetiming.responseend read only when the browser received the last byte of the response, or when the connection is
closed if this happened first, from the server, the cache, or from a local resource.
RTCConfiguration - Web APIs
if the remote endpoint is bundle-aware, all media tracks and data channels are bundled onto a single transport at the completion of negotiation, regardless of policy used, and any superfluous transports that were created initially are
closed at that point.
RTCPeerConnection: connectionstatechange event - Web APIs
pc.onconnectionstatechange = ev => { switch(pc.connectionstate) { case "new": case "checking": setonlinestatus("connecting..."); break; case "connected": setonlinestatus("online"); break; case "disconnected": setonlinestatus("disconnecting..."); break; case "
closed": setonlinestatus("offline"); break; case "failed": setonlinestatus("error"); break; default: setonlinestatus("unknown"); break; } } you can also create a handler for connectionstatechange by using addeventlistener(): pc.addeventlistener("connectionstatechange", ev => { switch(pc.connectionstate) { /* ...
RTCPeerConnection.onconnectionstatechange - Web APIs
example pc.onconnectionstatechange = function(event) { switch(pc.connectionstate) { case "connected": // the connection has become fully connected break; case "disconnected": case "failed": // one or more transports has terminated unexpectedly or in an error break; case "
closed": // the connection has been
closed break; } } specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcpeerconnection.onconnectionstatechange' in that specification.
RTCPeerConnection.oniceconnectionstatechange - Web APIs
pc.oniceconnectionstatechange = function(event) { if (pc.iceconnectionstate === "failed" || pc.iceconnectionstate === "disconnected" || pc.iceconnectionstate === "
closed") { // handle the failure } }; of course, "disconnected" and "
closed" don't necessarily indicate errors; these can be the result of normal ice negotiation, so be sure to handle these properly (if at all).
RTCPeerConnection.setLocalDescription() - Web APIs
deprecated exceptions when using the deprecated callback-based version of setlocaldescription(), the following exceptions may occur: invalidstateerror the connection's signalingstate is "
closed", indicating that the connection is not currently open, so negotiation cannot take place.
ReadableStream.ReadableStream() - Web APIs
when a button is pressed, the generation is stopped, the stream is
closed using readablestreamdefaultcontroller.close(), and another function is run, which reads the data back out of the stream.
ReadableStreamDefaultController - Web APIs
when a button is pressed, the generation is stopped, the stream is
closed using readablestreamdefaultcontroller.close(), and another function is run, which reads the data back out of the stream.
Slottable: assignedSlot - Web APIs
syntax var slotelement = elementinstance.assignedslot value an htmlslotelement instance, or null if the element is not assigned to a slot, or if the associated shadow root was attached with its mode set to
closed (see element.attachshadow for further details).
SourceBuffer - Web APIs
igation.) var video = document.queryselector('video'); var asseturl = 'frag_bunny.mp4'; // need to be specific for blink regarding codecs // ./mp4info frag_bunny.mp4 | grep codec var mimecodec = 'video/mp4; codecs="avc1.42e01e, mp4a.40.2"'; if ('mediasource' in window && mediasource.istypesupported(mimecodec)) { var mediasource = new mediasource(); //console.log(mediasource.readystate); //
closed video.src = url.createobjecturl(mediasource); mediasource.addeventlistener('sourceopen', sourceopen); } else { console.error('unsupported mime type or codec: ', mimecodec); } function sourceopen (_) { //console.log(this.readystate); // open var mediasource = this; var sourcebuffer = mediasource.addsourcebuffer(mimecodec); fetchab(asseturl, function (buf) { sourcebuffer.addevent...
Using writable streams - Web APIs
the difference is that when close is called, any previously enqueued chunks are written and finished with before the stream is
closed.
WebSocket: error event - Web APIs
the error event is fired when a connection with a websocket has been
closed due to an error (some data couldn't be sent for example).
WebSocket.send() - Web APIs
if the data can't be sent (for example, because it needs to be buffered but the buffer is full), the socket is
closed automatically.
Fundamentals of WebXR - Web APIs
because ar is always an immersive experience, in which the scene is the entire world around the user (rather than being en
closed in a box on a screen), the only ar session mode is immersive-ar.
Web Animations API Concepts - Web APIs
each document has a master timeline, document.timeline, which stretches from the moment the page is loaded to infinity — or until the window is
closed.
Window.alert() - Web APIs
the following text is shared between this article, dom:window.prompt and dom:window.confirm dialog boxes are modal windows - they prevent the user from accessing the rest of the program's interface until the dialog box is
closed.
Window.close() - Web APIs
//global var to store a reference to the opened window var openedwindow; function openwindow() { openedwindow = window.open('moreinfo.htm'); } function closeopenedwindow() { openedwindow.close(); } closing the current window in the past, when you called the window object's close() method directly, rather than calling close() on a window instance, the browser
closed the frontmost window, whether your script created that window or not.
Window.confirm() - Web APIs
example if (window.confirm("do you really want to leave?")) { window.open("exit.html", "thanks for visiting!"); } produces: notes the following text is shared between this article, dom:window.prompt and dom:window.alert dialog boxes are modal windows — they prevent the user from accessing the rest of the program's interface until the dialog box is
closed.
Window.prompt() - Web APIs
the following text is shared between this article, dom:window.confirm and dom:window.alert dialog boxes are modal windows; they prevent the user from accessing the rest of the program's interface until the dialog box is
closed.
WorkerGlobalScope.onclose - Web APIs
}; example the following code snippet shows an onclose handler set inside a worker: self.onclose = function() { console.log('your worker instance has been
closed'); } specifications this feature is no longer defined in any specifications.
ARIA: article role - Accessibility
inside an application or other widget that causes screen readers and other assistive technologies to be in pass-through mode, an article can be used to indicate that these should switch back to treating the en
closed content as regular web content.
@import - CSS: Cascading Style Sheets
ia-condition> = <media-not> | <media-and> | <media-or> | <media-in-parens><media-type> = <ident><media-condition-without-or> = <media-not> | <media-and> | <media-in-parens>where <media-not> = not <media-in-parens><media-and> = <media-in-parens> [ and <media-in-parens> ]+<media-or> = <media-in-parens> [ or <media-in-parens> ]+<media-in-parens> = ( <media-condition> ) | <media-feature> | <general-en
closed>where <media-feature> = ( [ <mf-plain> | <mf-boolean> | <mf-range> ] )<general-en
closed> = [ <function-token> <any-value> ) ] | ( <ident> <any-value> )where <mf-plain> = <mf-name> : <mf-value><mf-boolean> = <mf-name><mf-range> = <mf-name> [ '<' | '>' ]?
@media - CSS: Cascading Style Sheets
ia-condition> = <media-not> | <media-and> | <media-or> | <media-in-parens><media-type> = <ident><media-condition-without-or> = <media-not> | <media-and> | <media-in-parens>where <media-not> = not <media-in-parens><media-and> = <media-in-parens> [ and <media-in-parens> ]+<media-or> = <media-in-parens> [ or <media-in-parens> ]+<media-in-parens> = ( <media-condition> ) | <media-feature> | <general-en
closed>where <media-feature> = ( [ <mf-plain> | <mf-boolean> | <mf-range> ] )<general-en
closed> = [ <function-token> <any-value> ) ] | ( <ident> <any-value> )where <mf-plain> = <mf-name> : <mf-value><mf-boolean> = <mf-name><mf-range> = <mf-name> [ '<' | '>' ]?
@supports - CSS: Cascading Style Sheets
formal syntax @supports <supports-condition> { <group-rule-body> }where <supports-condition> = not <supports-in-parens> | <supports-in-parens> [ and <supports-in-parens> ]* | <supports-in-parens> [ or <supports-in-parens> ]*where <supports-in-parens> = ( <supports-condition> ) | <supports-feature> | <general-en
closed>where <supports-feature> = <supports-decl> | <supports-selector-fn><general-en
closed> = [ <function-token> <any-value> ) ] | ( <ident> <any-value> )where <supports-decl> = ( <declaration> )<supports-selector-fn> = selector( <complex-selector> )where <complex-selector> = <compound-selector> [ <combinator>?
WebKit CSS extensions - CSS: Cascading Style Sheets
ols ::-webkit-media-controls-current-time-display ::-webkit-media-controls-enclosure ::-webkit-media-controls-fullscreen-button ::-webkit-media-controls-mute-button ::-webkit-media-controls-overlay-enclosure ::-webkit-media-controls-panel ::-webkit-media-controls-play-button ::-webkit-media-controls-timeline ::-webkit-media-controls-time-remaining-display ::-webkit-media-controls-toggle-
closed-captions-button ::-webkit-media-controls-volume-control-container ::-webkit-media-controls-volume-control-hover-background ::-webkit-media-controls-volume-slider ::-webkit-meter-bar ::-webkit-meter-even-less-good-value ::-webkit-meter-inner-element ::-webkit-meter-optimum-value ::-webkit-meter-suboptimum-value -webkit-media-text-track-container ::-webkit-outer-spin-button ::-webkit-pro...
appearance (-moz-appearance, -webkit-appearance) - CSS: Cascading Style Sheets
div{ color: black; -moz-appearance: media-seek-back-button; -webkit-appearance: media-seek-back-button; } <div>lorem</div> safari edge media-seek-forward-button div{ color: black; -moz-appearance: media-seek-forward-button; -webkit-appearance: media-seek-forward-button; } <div>lorem</div> safari edge media-toggle-
closed-captions-button div{ color: black; -webkit-appearance: media-toggle-
closed-captions-button; } <div>lorem</div> chrome safari media-slider div{ color: black; -webkit-appearance: media-slider; } <div>lorem</div> chrome safari edge media-sliderthumb div{ color: black; -webkit-appearance: media-s...
mask - CSS: Cascading Style Sheets
ask positioned 40px from the top and 20px from the left */ mask: url(masks.svg#star) 0 0/50px 50px; /* element within svg graphic used as mask with a width and height of 50px */ mask: url(masks.svg#star) repeat-x; /* element within svg graphic used as horizontally repeated mask */ mask: url(masks.svg#star) stroke-box; /* element within svg graphic used as mask extending to the box en
closed by the stroke */ mask: url(masks.svg#star) exclude; /* element within svg graphic used as mask and combined with background using non-overlapping parts */ /* global values */ mask: inherit; mask: initial; mask: unset; /* multiple masks */ mask: url(masks.svg#star) left / 16px repeat-y, /* element within svg graphic is used as a mask on the left-hand side with a width of 16px */ ...
Rich-Text Editing in Mozilla - Developer guides
resources mozilla.org's rich-text editing specification mozilla.org's rich-text editing demo converting an app using document.designmode from ie to mozilla at mozilla.org designmode msdn: how to create an html editor application a
closed source, cross-browser rich-text editing demo xbdesignmode; a javascript helper class for easier cross-browser development using designmode.
<ol>: The Ordered List element - HTML: Hypertext Markup Language
type sets the numbering type: a for lowercase letters a for uppercase letters i for lowercase roman numerals i for uppercase roman numerals 1 for numbers (default) the specified type is used for the entire list unless a different type attribute is used on an en
closed <li> element.
Connection - HTTP
if the value sent is keep-alive, the connection is persistent and not
closed, allowing for subsequent requests to the same server to be done.
Index - HTTP
if the value sent is keep-alive, the connection is persistent and not
closed, allowing for subsequent requests to the same server to be done.
PUT - HTTP
http/1.1 201 created content-location: /new.html if the target resource does have a current representation and that representation is successfully modified in accordance with the state of the en
closed representation, then the origin server must send either a 200 (ok) or a 204 (no content) response to indicate successful completion of the request.
Network Error Logging - HTTP
tcp.timed_out tcp connection to the server timed out tcp.
closed the tcp connection was
closed by the server tcp.reset the tcp connection was reset tcp.refused the tcp connection was refused by the server tcp.aborted the tcp connection was aborted tcp.address_invalid the ip address is invalid tcp.address_unreachable the ip address is unreachable tcp.failed the tcp connection failed due to reasons not covered by previous errors http.error the use...
A typical HTTP session - HTTP
as of http/1.1, the connection is no longer
closed after completing the third phase, and the client is now granted a further request: this means the second and third phases can now be performed any number of times.
203 Non-Authoritative Information - HTTP
the http 203 non-authoritative information response status indicates that the request was successful but the en
closed payload has been modified by a transforming proxy from that of the origin server's 200 (ok) response .
Closures - JavaScript
a closure is the combination of a function bundled together (en
closed) with references to its surrounding state (the lexical environment).
Assertions - JavaScript
// in this example, two meanings of '^' control symbol are represented: // 1) matching begining of the input // 2) a negated or complemented character set: [^a] // that is, it matches anything that is not en
closed in the brackets.
Regular expressions - JavaScript
creating a regular expression you construct a regular expression in one of two ways: using a regular expression literal, which consists of a pattern en
closed between slashes, as follows: let re = /ab+c/; regular expression literals provide compilation of the regular expression when the script is loaded.
Text formatting - JavaScript
template literals are en
closed by the back-tick (` `) (grave accent) character instead of double or single quotes.
Working with objects - JavaScript
for example, let's create an object named mycar and give it properties named make, model, and year as follows: var mycar = new object(); mycar.make = 'ford'; mycar.model = 'mustang'; mycar.year = 1969; the above example could also be written using an object initializer, which is a comma-delimited list of zero or more pairs of property names and associated values of an object, en
closed in curly braces ({}): var mycar = { make: 'ford', model: 'mustang', year: 1969 }; unassigned properties of an object are undefined (and not null).
Arrow function expressions - JavaScript
this.age++; }, 1000); } var p = new person(); in ecmascript 3/5, the this issue was fixable by assigning the value in this to a variable that could be
closed over.
Functions - JavaScript
(like foo => 1) statements or expression multiple statements need to be en
closed in brackets.
JSON.stringify() - JavaScript
r" }) //'{"baz":"quux","foo":"bar"}' console.log(a !== b) // true // some memoization functions use json.stringify to serialize arguments, // which may cause a cache miss when encountering the same object like above example of using json.stringify() with localstorage in a case where you want to store an object created by your user and allowing it to be restored even after the browser has been
closed, the following example is a model for the applicability of json.stringify(): // creating an example of json var session = { 'screens': [], 'state': true }; session.screens.push({ 'name': 'screena', 'width': 450, 'height': 250 }); session.screens.push({ 'name': 'screenb', 'width': 650, 'height': 350 }); session.screens.push({ 'name': 'screenc', 'width': 750, 'height': 120 }); session.screens.
eval() - JavaScript
for example, trailing commas are not allowed in json, and property names (keys) in object literals must be en
closed in quotes.
Lexical grammar - JavaScript
[1954, 1974, 1990, 2014] string literals a string literal is zero or more unicode code points en
closed in single or double quotes.
Object initializer - JavaScript
an object initializer is a comma-delimited list of zero or more pairs of property names and associated values of an object, en
closed in curly braces ({}).
yield* - JavaScript
the value of yield* expression itself is the value returned by that iterator when it's
closed (i.e., when done is true).
for - JavaScript
the for statement creates a loop that consists of three optional expressions, en
closed in parentheses and separated by semicolons, followed by a statement (usually a block statement) to be executed in the loop.
Statements and declarations - JavaScript
for creates a loop that consists of three optional expressions, en
closed in parentheses and separated by semicolons, followed by a statement executed in the loop.
Strict mode - JavaScript
it doesn't apply to block statements en
closed in {} braces; attempting to apply it to such contexts does nothing.
Template literals (Template strings) - JavaScript
syntax `string text` `string text line 1 string text line 2` `string text ${expression} string text` tag`string text ${expression} string text` description template literals are en
closed by the backtick (` `) (grave accent) character instead of double or single quotes.
<math> - MathML
display this enumerated attribute specifies how the en
closed mathml markup should be rendered.
<mo> - MathML
form specifies the role of the operator in an en
closed expression, which affects spacing and other default properties.
<mpadded> - MathML
the mathml <mpadded> element is used to add extra padding and to set the general adjustment of position and size of en
closed contents.
<ms> - MathML
by default, string literals are displayed as en
closed by double quotes ("); by using the lquote and rquote attributes, you can set custom characters to display.
MathML element reference - MathML
mathml presentation elements a to z math <math> (top-level element) a <maction> (binded actions to sub-expressions) <maligngroup> (alignment group) <malignmark> (alignment points) e <menclose> (en
closed contents) <merror> (en
closed syntax error messages) f <mfenced> (parentheses) <mfrac> (fraction) g <mglyph> (displaying non-standard symbols) i <mi> (identifier) l <mlabeledtr> (labeled row in a table or a matrix) <mlongdiv> (long division notation) m <mmultiscripts> (prescripts and tensor indices) n <mn> (number) o <mo> (operator) <mover> (overscript) p...
OpenSearch description format
ampersands (&) in the template url must be escaped as &, and tags must be
closed with a trailing slash or matching end tag.
SVG 2 support in Mozilla - SVG: Scalable Vector Graphics
deprecated xml:space attribute implementation status unknown kerning property removed implementation status unknown path attribute for <textpath> implemented (bug 1446617) reference basic shapes to <textpath> implementation status unknown side attribute for <textpath> implemented (bug 1446650) render characters for one loop of a single
closed path, effected by the startoffset attribute and text-anchor property implementation status unknown <tref> removed implementation status unknown <altglyph>, <altglyphdef>, <altglyphitem> and <glyphref> removed <altglyph>, <altglyphdef> and <altglyphitem> removed (bug 1260032), <glyphref> never really implemented (bug 1302693) svgtextcontentelement.selectsubstrin...
Same-origin policy - Web security
window the following cross-origin access to these window properties is allowed: methods window.blur window.close window.focus window.postmessage attributes window.
closed read only.