Search completed in 1.13 seconds.
DOMHighResTimeStamp - Web APIs
This type can be used to describe a discrete point in time or a time interval (the difference in time between two discrete points in time). The time, given in milliseconds, should be accurate to 5 us (microseconds), with the fractional part of the number indicating fractions of a millisecond. However, if the browser is unable to provide a time value accurate to 5 us (due, for example, to hardware or software constraints), the browser can represent the value as a time in milliseconds accurate to a millisecond. Also note the section below on reduced time precision controlled by browser preferences to avoid timing attacks and fingerprinting. ...
...y may only be accurate to the millisecond. Reduced time precision To offer protection against timing attacks and fingerprinting, the precision of time stamps might get rounded depending on browser settings. In Firefox, the privacy.reduceTimerPrecision preference is enabled by default and defaults to 20 us in Firefox 59; in 60 it will be 2ms. // reduced time precision (2ms) in Firefox 60 event.
timeStamp // 1519211809934 // 1519211810362 // 1519211811670 // ... // reduced time precision with `privacy.resistFingerprinting` enabled event.
timeStamp; // 1519129853500 // 1519129858900 // 1519129864400 // ... In Firefox, you can also enable privacy.resistFingerprinting, the precision will be 100ms or the value of privacy.resistFingerprinting.reduceTimerPrecision.microseconds, whichever is larger. ...
...` enabled event.
timeStamp; // 1519129853500 // 1519129858900 // 1519129864400 // ... In Firefox, you can also enable privacy.resistFingerprinting, the precision will be 100ms or the value of privacy.resistFingerprinting.reduceTimerPrecision.microseconds, whichever is larger. Properties This type has no properties. It is a double-precision floating-point value. Value The value of a DOMHighRes
TimeStamp is a double-precision floating-point number which describes the number of milliseconds (accurate to within 5 microseconds if the device supports it) elapsed between two points in time. The starting time can be either a specific time determined by the script for a site or app, or the time origin. The time origin The time origin is a standard time which is considered to be the beginning of the cu...
...And 3 more matches
AudioContext.getOutputTimestamp() - Web APIs
The getOutput
Timestamp() property of the AudioContext interface returns a new Audio
Timestamp object containing two audio
timestamp values relating to the current audio context. The two values are as follows: Audio
Timestamp.contextTime: The time of the sample frame currently being rendered by the audio output device (i.e., output audio stream position), in the same units and origin as the context's AudioContext.currentTime. Basically, this is the time after the audio context was first created. Audio
Timestamp.performanceTime: An estimation of the moment when the sample frame corresponding to the stored contextTime value was rendered by the audio output device, in the same units and origin as performance.now(). This is the time after the document containing the audio context was first rendered. ...
...entTime. Basically, this is the time after the audio context was first created. Audio
Timestamp.performanceTime: An estimation of the moment when the sample frame corresponding to the stored contextTime value was rendered by the audio output device, in the same units and origin as performance.now(). This is the time after the document containing the audio context was first rendered. Syntax var
timestamp = AudioContext.getOutput
Timestamp() Parameters None. Returns An Audio
Timestamp object, which has the following properties. contextTime: A point in the time coordinate system of the currentTime for the BaseAudioContext; the time after the audio context was first created. performanceTime: A point in the time coordinate system of a Performance interface; the time after the document containin...
...point in the time coordinate system of a Performance interface; the time after the document containing the audio context was first rendered Examples In the following code we start to play an audio file after a play button is clicked, and start off a requestAnimationFrame loop running, which constantly outputs the contextTime and performanceTime. You can see full code of this example at output-
timestamp (see it live also). play.addEventListener('click', () => { if(!audioCtx) { audioCtx = new window.AudioContext(); } getData(); source.start(0); play.setAttribute('disabled', 'disabled'); rAF = requestAnimationFrame(output
Timestamps); }); stop.addEventListener('click', () => { source.stop(0); play.removeAttribute('disabled'); cancelAnimationFrame(rAF); }); // function to ...
...And 2 more matches
Sensor.timestamp - Web APIs
Candidate Recommendation Initial definition. ...
... Candidate Recommendation Initial definition. ...
... Candidate Recommendation Initial definition. ...
...And 2 more matches
Event.timeStamp - Web APIs
The
timeStamp read-only property of the Event interface returns the time (in milliseconds) at which the event was created. Note: This property only works if the event system supports it for the particular event. Syntax time = event.
timeStamp; Value This value is the number of milliseconds elapsed from the beginning of the current document's lifetime till the event was created. In newer implementations, the value is a DOMHighRes
TimeStamp accurate to 5 microseconds (0.005 ms). In older implementations, the value is a DOM
TimeStamp, accurate to a millisecond. Example HTML <p> Focus this iframe and press any key to get the current
timestamp for the keypress event. ...
...conds elapsed from the beginning of the current document's lifetime till the event was created. In newer implementations, the value is a DOMHighRes
TimeStamp accurate to 5 microseconds (0.005 ms). In older implementations, the value is a DOM
TimeStamp, accurate to a millisecond. Example HTML <p> Focus this iframe and press any key to get the current
timestamp for the keypress event. </p> <p>
timeStamp: <span id="time">-</span></p> JavaScript function getTime(event) { var time = document.getElementById("time"); time.firstChild.nodeValue = event.
timeStamp; } document.body.addEventListener("keypress", getTime); Result Reduced time precision To offer protection against timing attacks and fingerprinting, the precision of Event.
timeStamp might get rounded depending on browser settings. I...
...istener("keypress", getTime); Result Reduced time precision To offer protection against timing attacks and fingerprinting, the precision of Event.
timeStamp might get rounded depending on browser settings. In Firefox, the privacy.reduceTimerPrecision preference is enabled by default and defaults to 20us in Firefox 59; in 60 it will be 2ms. // reduced time precision (2ms) in Firefox 60 event.
timeStamp; // 1519211809934 // 1519211810362 // 1519211811670 // ... // reduced time precision with `privacy.resistFingerprinting` enabled event.
timeStamp; // 1519129853500 // 1519129858900 // 1519129864400 // ... In Firefox, if you also enable privacy.resistFingerprinting, the precision will be 100ms or the value of privacy.resistFingerprinting.reduceTimerPrecision.microseconds, whichever is larger. ...
....resistFingerprinting` enabled event.
timeStamp; // 1519129853500 // 1519129858900 // 1519129864400 // ... In Firefox, if you also enable privacy.resistFingerprinting, the precision will be 100ms or the value of privacy.resistFingerprinting.reduceTimerPrecision.microseconds, whichever is larger. Specifications Specification Status Comment DOMThe definition of 'Event.
timeStamp' in that specification. Living Standard ...
RTCIceCandidatePairStats.lastRequestTimestamp - Web APIs
The RTCIceCandidatePairStats property lastRequest
Timestamp indicates the time at which the most recent STUN request was sent on the described candidate pair. Syntax lastRequest
Timestamp = rtcIceCandidatePairStats.lastRequest
Timestamp; Value A DOMHighRes
TimeStamp object indicating the
timestamp at which the last (most recent) STUN request was sent on the connection indicated by the described pair of candidates. ...
...ime at which the most recent STUN request was sent on the described candidate pair. Syntax lastRequest
Timestamp = rtcIceCandidatePairStats.lastRequest
Timestamp; Value A DOMHighRes
TimeStamp object indicating the
timestamp at which the last (most recent) STUN request was sent on the connection indicated by the described pair of candidates. ...
... Candidate Recommendation Initial specification. ...
...
timestamp at which the last (most recent) STUN request was sent on the connection indicated by the described pair of candidates. You can use this value in combination with firstRequest
Timestamp and requestsSent to compute the average interval between consecutive connectivity checks: avgCheckInterval = (candidatePairStats.lastRequest
Timestamp - candidatePairStats.firstRequest
Timestamp) / candidatePairStats.requestsSent; Specifications Specification Status Comment Identifiers for WebRTC's Statistics APIThe definition of 'RTCIceCandidatePairStats.lastRequest
Timestamp' in that specification. Candidate Recommendation Initial specification. ...
RTCRemoteOutboundRtpStreamStats.remoteTimestamp - Web APIs
This is different from the value
timestamp, which gives the time at which the statistics were generated or received by the local peer. If this property is present, it comes from the RTCP Sender Report (SR) block, which reflects the clock on the remote peer at the time the message was sent. ...
...This is different from the value
timestamp, which gives the time at which the statistics were generated or received by the local peer. If this property is present, it comes from the RTCP Sender Report (SR) block, which reflects the clock on the remote peer at the time the message was sent. ...
... The RTCRemoteOutboundRtpStreamStats property remote
Timestamp indicates the
timestamp on the remote peer at which these statistics were sent. This differs from
timestamp, which indicates the time at which the statistics were generated or received locally. Syntax let remote
Timestamp = rtcRemoteOutboundRtpStreamStats.remote
Timestamp; Value A DOMHighRes
TimeStamp value indicating the
timestamp on the remote peer at which it sent these statistics. This is different from the value
timestamp, which gives the time at which the statistics were generated or received by the local peer. If this property is present, it comes from the RTCP Sender Report (SR) block, which reflects the clock on the remote peer at the time the message was sent. Keep in mind that this means the clock may not be synchronized wi...
... on the remote peer at the time the message was sent. Keep in mind that this means the clock may not be synchronized with the local clock, and that both the current time and the pace at which the clock runs may differ to some extent. Specifications Specification Status Comment Identifiers for WebRTC's Statistics APIThe definition of 'RTCRemoteOutboundRtpStreamStats.remote
Timestamp' in that specification. Candidate Recommendation Initial definition. ...
RTCIceCandidatePairStats.firstRequestTimestamp - Web APIs
The RTCIceCandidatePairStats property firstRequest
Timestamp specifies the time at which the first STUN request was sent on the described candidate pair. Syntax firstRequest
Timestamp = rtcIceCandidatePairStats.firstRequest
Timestamp; Value A DOMHighRes
TimeStamp object indicating the
timestamp at which the first STUN request was sent on the connection described by the described pair of candidates. ...
...mp specifies the time at which the first STUN request was sent on the described candidate pair. Syntax firstRequest
Timestamp = rtcIceCandidatePairStats.firstRequest
Timestamp; Value A DOMHighRes
TimeStamp object indicating the
timestamp at which the first STUN request was sent on the connection described by the described pair of candidates. ...
...ts.firstRequest
Timestamp; Value A DOMHighRes
TimeStamp object indicating the
timestamp at which the first STUN request was sent on the connection described by the described pair of candidates. You can use this value in combination with lastRequest
Timestamp and requestsSent to compute the average interval between consecutive connectivity checks: avgCheckInterval = (candidatePairStats.lastRequest
Timestamp - candidatePairStats.firstRequest
Timestamp) / candidatePairStats.requestsSent; Specifications Specification Status Comment Identifiers for WebRTC's Statistics APIThe definition of 'RTCIceCandidatePairStats.firstRequest
Timestamp' in that specification. Candidate Recommendation Initial specification. ...
SourceBuffer.timestampOffset - Web APIs
Exceptions The following exceptions may be thrown when setting a new value for this property. Exception Explanation InvalidStateError One or more of the SourceBuffer objects in MediaSource.sourceBuffers are being updated (i.e. ...
... Exceptions The following exceptions may be thrown when setting a new value for this property. Exception Explanation InvalidStateError One or more of the SourceBuffer objects in MediaSource.sourceBuffers are being updated (i.e. ...
...re of the SourceBuffer objects in MediaSource.sourceBuffers are being updated (i.e. their SourceBuffer.updating property is currently true), a media segment inside the SourceBuffer is currently being parsed, or this SourceBuffer has been removed from the MediaSource. Example TBD Specifications Specification Status Comment Media Source ExtensionsThe definition of '
timestampOffset' in that specification. Recommendation Initial definition. ...
Gamepad.timestamp - Web APIs
The Gamepad.
timestamp property of the Gamepad interface returns a DOMHighRes
TimeStamp representing the last time the data for this gamepad was updated. The idea behind this is to allow developers to determine if the axes and button data have been updated from the hardware. The value must be relative to the navigationStart attribute of the PerformanceTiming interface. Values are monotonically increasing, meaning that they can be compared to determine the ordering of updates, as newer values will always be greater than or equal to older values. Note: This property is not currently supported anywhere. Syntax readonly attribute DOMHighRes
TimeStamp timestamp; Example var gp = navigator.getGamepads()[0]; console.log(gp.
timestamp); Value A DOMHighRes
TimeStamp. Specifications Speci...
...s newer values will always be greater than or equal to older values. Note: This property is not currently supported anywhere. Syntax readonly attribute DOMHighRes
TimeStamp timestamp; Example var gp = navigator.getGamepads()[0]; console.log(gp.
timestamp); Value A DOMHighRes
TimeStamp. Specifications Specification Status Comment GamepadThe definition of 'Gamepad.
timestamp' in that specification. Working Draft Initial definition ...
Notification.timestamp - Web APIs
Note: This feature is available in Web Workers. The
timestamp read-only property of the Notification interface returns a DOM
TimeStamp, as specified in the
timestamp option of the Notification() constructor. The notification's
timestamp can represent the time, in milliseconds since 00:00:00 UTC on 1 January 1970, of the event for which the notification was created, or it can be an arbitrary
timestamp that you want associated with the notification. For example, a
timestamp for an upcoming meeting could be set in the future, whereas a
timestamp for a missed message could be set in the past. Syntax var
timestamp = Notification.
timestamp; Value A DOM
TimeStamp. Examples The following snippet fires a notification; a simple options object is created, then the notification is fired using th...
...n the future, whereas a
timestamp for a missed message could be set in the past. Syntax var
timestamp = Notification.
timestamp; Value A DOM
TimeStamp. Examples The following snippet fires a notification; a simple options object is created, then the notification is fired using the Notification() constructor. var dts = Math.floor(Date.now()); var options = { body: 'Do you like my body?',
timestamp: dts } var n = new Notification('Test notification',options); console.log(n.
timestamp) // should log original
timestamp Specifications Specification Status Comment Notifications APIThe definition of '
timestamp' in that specification. Living Standard Living standard ...
RTCIceCandidatePairStats.consentExpiredTimestamp - Web APIs
The RTCIceCandidatePairStats property consentExpired
Timestamp indicates the time at which the most recent STUN binding response expired. This indicates when the current STUN bindings -- the mapping of the IP address and port configurations for both peers on the WebRTC connection -- are due to expire. If this time has arrived or passed, the bindings have expired. Syntax consentExpiration = rtcIceCandidatePairStats.consentExpired
Timestamp; Value A DOMHighRes
TimeStamp object that indicates the time at which the STUN binding that allows the two peers described by this RTCIceCandidatePair to communicate will expire (or the time at which the binding did expire, if the time has passed). This property's value is undefined if there have been no STUN binding responses yet on the candidate pair. This is...
... (or the time at which the binding did expire, if the time has passed). This property's value is undefined if there have been no STUN binding responses yet on the candidate pair. This is only possible if responsesReceived is 0. Specifications Specification Status Comment Identifiers for WebRTC's Statistics APIThe definition of 'RTCIceCandidatePairStats.consentExpired
Timestamp' in that specification. Candidate Recommendation Initial specification. ...
RTCStats.timestamp - Web APIs
The
timestamp property of the RTCStats dictionary is a DOMHighRes
TimeStamp object specifying the time at which the data in the object was sampled. For reports related to RTCP packets, for instance, this indicates the time at which the data covered by the statistics was received at the corresponding endpoint. The time is given in milliseconds elapsed since the UNIX epoch (the first moment of January 1, 1970, UTC). Syntax var
timestamp = RTCStats.
timestamp; Value A DOMHighRes
TimeStamp value indicating the time at which the activity described by the statistics in this object was recorded, in milliseconds elapsed since the beginning of January 1, 1970, UTC. This should be accurate to within a few milliseconds but may not be entirely pricise, either because of hardware or operating system limitati...
..., 1970, UTC. This should be accurate to within a few milliseconds but may not be entirely pricise, either because of hardware or operating system limitations or because of fingerprinting protection in the form of reduced clock precision or accuracy. Specifications Specification Status Comment WebRTC 1.0: Real-time Communication Between BrowsersThe definition of 'RTCStats.
timestamp' in that specification. Candidate Recommendation Initial definition. ...
Console.timeStamp() - Web APIs
Adds a single marker to the browser's Performance or Waterfall tool. This lets you correlate a point in your code with the other events recorded in the timeline, such as layout and paint events. You can optionally supply an argument to label the
timestamp, and this label will then be shown alongside the marker. Note: This feature is available in Web Workers. Syntax console.
timeStamp(label); Parameters label Label for the
timestamp. Optional. ...
DOMTimeStamp - Web APIs
The DOM
TimeStamp type represents an absolute or relative number of milliseconds, depending on the specification in which it appears. Specifications Specification Status Comment Web IDLThe definition of 'DOM
TimeStamp' in that specification. Candidate Recommendation Initial specification ...
GeolocationPosition.timestamp - Web APIs
The GeolocationPosition.
timestamp read-only property returns a DOM
TimeStamp object, represents the date and the time of the creation of the GeolocationPosition object it belongs to. The precision is to the millisecond. Syntax var
timestamp = geolocationPositionInstance.
timestamp Value A DOM
TimeStamp object instance. Specifications Specification Status Comment Geolocation APIThe definition of 'GeolocationPosition.
timestamp' in that specification. Recommendation Initial definition ...
RTCIceCandidatePairStats.lastPacketReceivedTimestamp - Web APIs
The RTCIceCandidatePairStats property lastPacketReceived
Timestamp indicates the time at which the connection described by the candidate pair last received a packet. STUN packets are not included. Syntax lastPacketReceived
Timestamp = rtcIceCandidatePairStats.lastPacketReceived
Timestamp; Value A DOMHighRes
TimeStamp object indicating the
timestamp at which the connection described by pair of candidates last received a packet, STUN packets excluded. Specifications Specification Status Comment Identifiers for WebRTC's Statistics APIThe definition of 'RTCIceCandidatePairStats.lastPacketReceived
Timestamp' in that specification. Candidate Recommendation Initial specification. ...
RTCIceCandidateStats.lastPacketSentTimestamp - Web APIs
The RTCIceCandidatePairStats property lastPacketSent
Timestamp indicates the time at which the connection described by the candidate pair last sent a packet, not including STUN packets. Syntax lastPacketSent
Timestamp = rtcIceCandidatePairStats.lastPacketSent
Timestamp; Value A DOMHighRes
TimeStamp object indicating the
timestamp at which the connection described by pair of candidates last sent a packet, STUN packets excluded. Specifications Specification Status Comment Identifiers for WebRTC's Statistics APIThe definition of 'RTCIceCandidatePairStats.lastPacketSent
Timestamp' in that specification. Candidate Recommendation Initial specification. ...
RTCIceCandidateStats.lastResponseTimestamp - Web APIs
The RTCIceCandidatePairStats property lastResponse
Timestamp indicates the time at which the last STUN response was received on the described candidate pair. Syntax lastResponse
Timestamp = rtcIceCandidatePairStats.lastResponse
Timestamp; Value A DOMHighRes
TimeStamp object indicating the
timestamp at which the most recent STUN response was received on the connection defined by the described pair of candidates. Specifications Specification Status Comment Identifiers for WebRTC's Statistics APIThe definition of 'RTCIceCandidatePairStats.lastResponse
Timestamp' in that specification. Candidate Recommendation Initial specification. ...
RTCInboundRtpStreamStats.lastPacketReceivedTimestamp - Web APIs
The lastPacketReceived
Timestamp property of the RTCInboundRtpStreamStats dictionary indicates the time at which the most recently received packet arrived from this source. Syntax var lastPacket
Timestamp = rtcInboundRtpStreamStats.lastPacketReceived
Timestamp; Value A DOMHighRes
TimeStamp which specifies the time at which the most recently received packet arrived on this RTP stream. Note: This value differs from the
timestamp, which represents the time at which the statistics object was created. Specifications Specification Status Comment Identifiers for WebRTC's Statistics APIThe definition of 'RTCInboundRtpStreamStats.lastPacketReceived
Timestamp' in that specification. Candidate Recommendation Initial definition. ...
RTCOutboundRtpStreamStats.lastPacketSentTimestamp - Web APIs
The lastPacketSent
Timestamp property of the RTCOutboundRtpStreamStats dictionary indicates the time at which the RTCRtpSender described by this RTCOutboundRtpStreamStats object last transmitted a packet to the remote receiver. Syntax var lastPacket
Timestamp = RTCOutboundRtpStreamStats.lastPacketSent
Timestamp; Value A DOMHighRes
TimeStamp which specifies the time at which the most recently received packet arrived on this RTP stream. Note: This value differs from the
timestamp, which represents the time at which the statistics object was created. Specifications Specification Status Comment Identifiers for WebRTC's Statistics APIThe definition of 'RTCOutboundRtpStreamStats.lastPacketSent
Timestamp' in that specification. Candidate Recommendation Initial definition...
RTCRtpContributingSource.rtpTimestamp - Web APIs
The read-only rtp
Timestamp property of the RTCRtpContributingSource interface returns a DOMHighRes
TimeStamp indicating the source-generated time at which the media contained int he packet was first sampled or obtained. Syntax let rtp
Timestamp = RTCRtpContributingSource.rtp
Timestamp Value An integer value specifiying a source-generated
timestamp indicating the time at which the media in this packet, scheduled for play out at the time indicated by
timestamp, was initially sampled or generated. This value may be useful for sequencing and synchronization purposes. Specifications Specification Status Comment WebRTC 1.0: Real-time Communication Between BrowsersThe definition of 'rtp
Timestamp' in that specification. Candidate Recommendation Initial definition. ...
RTCRtpContributingSource.timestamp - Web APIs
The read-only
timestamp property of the RTCRtpContributingSource interface returns a DOMHighRes
TimeStamp indicating the most recent time of playout of an RTP packet from the source. Syntax var domHighRes
TimeStamp = RTCRtpContributingSource.
timestamp Value A DOMHighRes
TimeStamp which indicates the time at which the most recent RTP packet from the corresponding source was played out. Specifications Specification Status Comment WebRTC 1.0: Real-time Communication Between BrowsersThe definition of '
timestamp' in that specification. Candidate Recommendation Initial definition. ...
Index - Web APIs
MediaStreamTrackAudioSourceNode object which acts as a source for audio data found in the specified audio track. 131 AudioContext.createWaveTable() API, AudioContext, Method, Obsolete, Reference, Web Audio API, createWaveTable The AudioContext method createWaveTable() is now obsolete; you should instead use the method createPeriodicWave(). 132 AudioContext.getOutput
Timestamp() API, Audio, AudioContext, Method, Reference, Web Audio API, getOutput
Timestamp, sound The getOutput
Timestamp() property of the AudioContext interface returns a new Audio
Timestamp object containing two correlated context's audio stream position values. 133 AudioContext.outputLatency API, Audio, AudioContext, Experimental, Property, Reference, Web Audio API, outputLatenc...
...reateWaveShaper() API, AudioContext, BaseAudioContext, Method, Reference, Web Audio API, createWaveShaper A WaveShaperNode. 246 BaseAudioContext.currentTime API, AudioContext, BaseAudioContext, Property, Reference, Web Audio API, currentTime The currentTime read-only property of the BaseAudioContext interface returns a double representing an ever-increasing hardware
timestamp in seconds that can be used for scheduling audio playback, visualizing timelines, etc. It starts at 0. 247 BaseAudioContext.decodeAudioData() API, Audio, AudioContext, BaseAudioContext, Method, Reference, Web Audio API, decodeAudioData This is the preferred method of creating an audio source for Web Audio API from an audio track. This method only works on complete file data, ...
... 297 BlobEvent.data API, BlobEvent, DOM, DOM Reference, Experimental, Media Stream Recording, Property, Reference The BlobEvent.data read-only property represents a Blob associated with the event. 298 BlobEvent.timecode API, BlobEvent, Media, Media Stream Recording, Property, Reference The timecode readonlyinline property of the BlobEvent interface a DOMHighRes
TimeStamp indicating the difference between the
timestamp of the first chunk in data, and the
timestamp of the first chunk in the first BlobEvent produced by this recorder. 299 Bluetooth API, Bluetooth, Experimental, Interface, Reference, Web Bluetooth API The Bluetooth interface of the Web Bluetooth API returns a Promise to a BluetoothDevice object with the specified options. 3...
...And 56 more matches
Resource Timing API - Web APIs
rce Timing interfaces enable retrieving and analyzing detailed network timing data regarding the loading of an application's resource(s). An application can use the timing metrics to determine, for example, the length of time it takes to load a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. The interface's properties create a resource loading timeline with high-resolution
timestamps for network events such as redirect start and end times, DNS lookup start and end times, request start, response start and end times, etc. The interface also includes other properties that provide data about the size of the fetched resource as well as the type of resource that initiated the fetch. This document provides an overview of the Resource Timing interfaces. For more details about the i...
...terfaces including examples see each interface's reference page, Using the Resource Timing API, and the references in the See also section. For a graphical representation of the resource timing processing model see the resource timing phases figure. The PerformanceResourceTiming interface extends the PerformanceEntry for performance entries which have an entryType of "resource". High-resolution
timestamps Several of the Resource Timing properties return high-resolution
timestamps. These
timestamps have a DOMHighRes
TimeStamp type and as its name implies, they represent a high-resolution point in time. This type is a double and its value is a discrete point in time or the difference in time between two discrete points in time. The unit of DOMHighRes
TimeStamp is milliseconds and should be accurate...
...ifference in time between two discrete points in time. The unit of DOMHighRes
TimeStamp is milliseconds and should be accurate to 5 us (microseconds). However, If the browser is unable to provide a time value accurate to 5 us (because, for example, due to hardware or software constraints), the browser can represent a the value as a time in milliseconds accurate to a millisecond. ...
...And 8 more matches
PerformanceResourceTiming - Web APIs
urceTiming interface enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. The interface's properties create a resource loading timeline with high-resolution
timestamps for network events such as redirect start and end times, fetch start, DNS lookup start and end times, response start and end times, etc.. Additionally, the interface extends PerformanceEntry with other properties which provide data about the size of the fetched resource as well as the type of resource that initiated the fetch. <div id="interfaceDiagram" style="display: inline-block; positio...
...s: all;} Note: This feature is available in Web Workers. Properties This interface extends the following PerformanceEntry properties for resource performance entry types by qualifying and constraining them as follows: PerformanceEntry.entryTypeRead only Returns "resource". PerformanceEntry.nameRead only Returns the resources URL. PerformanceEntry.startTimeRead only Returns the
timestamp for the time a resource fetch started. This value is equivalent to PerformanceEntry.fetchStart. PerformanceEntry.durationRead only Returns a
timestamp that is the difference between the responseEnd and the startTime properties. The interface also supports the following properties which are listed in the order in which they are recorded for the fetching of a single resource. An alphabetical l...
...orTypeRead only A string representing the type of resource that initiated the performance entry, as specified in PerformanceResourceTiming.initiatorType. PerformanceResourceTiming.nextHopProtocolRead only A string representing the network protocol used to fetch the resource, as identified by the ALPN Protocol ID (RFC7301). ...
...And 5 more matches
Anatomy of a video game - Game development
on Time. The Date object is no longer the recognised method for timing events because it is very imprecise and can be modified by the system clock. High Resolution Time, on the other hand, counts the number of milliseconds since navigationStart (when the previous document is unloaded). This value is returned as a decimal number accurate to a thousandth of a millisecond. It is known as a DOMHighRes
TimeStamp but, for all intents and purposes, consider it a floating point number. Note: Systems (hardware or software) that are not capable of microsecond accuracy are allowed to provide millisecond accuracy as a minimum. They should provide 0.001ms accuracy if they are capable of it, however. This value is not too useful alone, since it is relative to a fairly uninteresting event, but it can be subtra...
...nts and purposes, consider it a floating point number. Note: Systems (hardware or software) that are not capable of microsecond accuracy are allowed to provide millisecond accuracy as a minimum. They should provide 0.001ms accuracy if they are capable of it, however. This value is not too useful alone, since it is relative to a fairly uninteresting event, but it can be subtracted from another
timestamp to accurately and precisely determine how much time elapsed between those two points. To acquire one of these
timestamps, you can call window.performance.now() and store the result as a variable. var tNow = window.performance.now(); Back to the topic of the main loop. You will often want to know when your main function was invoked. Because this is common, window.requestAnimationFrame() always ...
...ecisely determine how much time elapsed between those two points. To acquire one of these
timestamps, you can call window.performance.now() and store the result as a variable. var tNow = window.performance.now(); Back to the topic of the main loop. You will often want to know when your main function was invoked. Because this is common, window.requestAnimationFrame() always provides a DOMHighRes
TimeStamp to callbacks as an argument when they are executed. This leads to another enhancement to our previous main loops. /* * Starting with the semicolon is in case whatever line of code above this example * relied on automatic semicolon insertion (ASI). The browser could accidentally * think this whole example continues from the previous line. The leading semicolon * marks the beginning of our new lin...
...And 4 more matches
Cooperative asynchronous JavaScript: Timeouts and intervals - Learn web development
ences using JavaScript. You probably want to create a variable that starts at 0, then increments by one every second using a constant loop. It is easier to create this example without using a Date() object, like we've done in our version, but less accurate -- you can't guarantee that the callback will fire after exactly 1000ms. A more accurate way would be to run startTime = Date.now() to get a
timestamp of exactly when the user clicked the start button, and then do Date.now() - startTime to get the number of milliseconds after the start button was clicked. You also want to calculate the number of hours, minutes, and seconds as separate values, and then show them together in a string after each loop iteration. From the second counter, you can work out each of these. How would you calculate them...
... hand requires an interval to be specified. We arrived at our final value of 17 via the formula 1000 milliseconds / 60Hz, and then rounded it up. Rounding up is a good idea; if you rounded down, the browser might try to run the animation faster than 60 FPS, and it wouldn't make any difference to the animation's smoothness, anyway. As we said before, 60Hz is the standard refresh rate. Including a
timestamp The actual callback passed to the requestAnimationFrame() function can be given a parameter, too: a
timestamp value, that represents the time since the requestAnimationFrame() started running. This is useful as it allows you to run things at specific times and at a constant pace, regardless of how fast or slow your device might be. The general pattern you'd use looks something like this: let s...
...the requestAnimationFrame() function can be given a parameter, too: a
timestamp value, that represents the time since the requestAnimationFrame() started running. This is useful as it allows you to run things at specific times and at a constant pace, regardless of how fast or slow your device might be. The general pattern you'd use looks something like this: let startTime = null; function draw(
timestamp) { if (!startTime) { startTime =
timestamp; } currentTime =
timestamp - startTime; // Do something based on current time requestAnimationFrame(draw); } draw(); Browser support requestAnimationFrame() is supported in more recent browsers than setInterval()/setTimeout(). Interestingly, it is available in Internet Explorer 10 and above. So, unless you need to support o...
...And 4 more matches
HTTP logging
find the "Run..." command in the Start menu's "All Programs" submenu. On all newer versions of Windows, you can hold down the Windows key and press "R". Type CMD and press enter, a new Command Prompt window with a black background will appear. Copy and paste the following lines one at a time into the Command Prompt window. ...
...indow with a black background will appear. Copy and paste the following lines one at a time into the Command Prompt window. Press the enter key after each one.: For 64-bit Windows: set MOZ_LOG=
timestamp,rotate:200,nsHttp:5,cache2:5,nsSocketTransport:5,nsHostResolver:5,cookie:5 set MOZ_LOG_FILE=%TEMP%\log.txt "c:\Program Files\Mozilla Firefox\firefox.exe" For 32-bit Windows: set MOZ_LOG=
timestamp,rotate:200,nsHttp:5,cache2:5,nsSocketTransport:5,nsHostResolver:5,cookie:5 set MOZ_LOG_FILE=%TEMP%\log.txt "c:\Program Files (x86)\Mozilla Firefox\firefox.exe" (These instructions assume that you installed Firefox to the default location, and that drive C: is your Windows startup disk. Make the appropriate adjustments if those aren't the case.) Reproduce whatever problem it is that you're havi...
...to the Windows Explorer location bar to get there quickly. Linux This section offers information on how to capture HTTP logs for Firefox running on Linux. Quit out of Firefox if it's running. Open a new shell. The commands listed here assume a bash-compatible shell. Copy and paste the following commands into the shell one at a time. Make sure to hit enter after each line. export MOZ_LOG=
timestamp,rotate:200,nsHttp:5,cache2:5,nsSocketTransport:5,nsHostResolver:5,cookie:5 export MOZ_LOG_FILE=/tmp/log.txt cd /path/to/firefox ./firefox Reproduce the problem you're debugging. When the problem has been reproduced, exit Firefox and look for the generated log files, which you can find at /tmp/log.txt. Mac OS X These instructions show how to log HTTP traffic in Firefox on Mac OS X. Quit...
...And 4 more matches
Gecko Logging
r. You can specify one or more special module names without logging level. Special module name append Append new logs to existing log file. sync Print each log synchronously, this is useful to check behavior in real time or get logs immediately before crash. ...
...ecial module names without logging level. Special module name append Append new logs to existing log file. sync Print each log synchronously, this is useful to check behavior in real time or get logs immediately before crash. raw Print exactly what has been specified in the format string, without the process/thread/
timestamp, etc. prefix. ...
...ithout logging level. Special module name append Append new logs to existing log file. sync Print each log synchronously, this is useful to check behavior in real time or get logs immediately before crash. raw Print exactly what has been specified in the format string, without the process/thread/
timestamp, etc. prefix.
timestamp Insert
timestamp at start of each log line. ...
...And 4 more matches
Waterfall - Firefox Developer Tools
atching calls to console.time() and console.timeEnd(). Timer name The argument passed to the console functions. Stack at start Call stack console.time(), with links to functions. Stack at End (New in Firefox 41). Call stack at console.timeEnd(). If this is inside a callback from a Promise, this will also show the "Async stack".
Timestamp A single call to console.
timeStamp(). Label The argument passed to
timeStamp(). DOMContentLoaded The document's DOMContentLoaded event. Load The document's load event. Worker event in main thread Shown when the main thread sends a message to a worker, or receives a message fro...
...eason it was non-incremental starting in Firefox 46, if the GC event was caused by allocation pressure, a link appears, labeled "Show Allocation Triggers". Click the link to see the allocation profile leading up to this GC event. See Allocations and Garbage Collection for more details. Adding markers with the console API Two markers are directly controlled by console API calls: "Console" and "
Timestamp". Console markers These enable you to mark a specific section of the recording. To make a console marker, call console.time() at the start of the section, and console.timeEnd() at the end. These functions take an argument which is used to name the section. For example, suppose we have code like this: var iterations = 70; var multiplier = 1000000000; function calculatePrimes() { console.t...
... To make a
timestamp marker, call console.
timeStamp(). You can pass an argument to label the
timestamp. For example, suppose we adapt the code above to make a
timestamp every 10 iterations of the loop, labeled with the iteration number: var iterations = 70; var multiplier = 1000000000; function calculatePrimes() { console.ti...
...And 4 more matches
PerformanceNavigationTiming - Web APIs
{ fill: #0095DD; pointer-events: all;} Properties This interface extends the following PerformanceEntry properties for navigation performance entry types by qualifying and constraining them as follows: PerformanceEntry.entryType Read only Returns "navigation". PerformanceEntry.name Read only Returns the document's address. PerformanceEntry.startTime Read only Returns a DOMHighRes
TimeStamp with a value of "0". PerformanceEntry.duration Read only Returns a
timestamp that is the difference between the PerformanceNavigationTiming.loadEventEnd and PerformanceEntry.startTime properties. This interface also extends following PerformanceResourceTiming properties for navigation performance entry types by qualifying and constraining them as follows: PerformanceResourceTiming.initiat...
...rformanceEntry.startTime properties. This interface also extends following PerformanceResourceTiming properties for navigation performance entry types by qualifying and constraining them as follows: PerformanceResourceTiming.initiatorTypeRead only Returns "navigation". The interface also supports the following properties: PerformanceNavigationTiming.domComplete Read only A DOMHighRes
TimeStamp representing a time value equal to the time immediately before the browser sets the current document readiness of the current document to complete. PerformanceNavigationTiming.domContentLoadedEventEnd Read only A DOMHighRes
TimeStamp representing the time value equal to the time immediately after the current document's DOMContentLoaded event completes. PerformanceNavigationTiming.domContentLoa...
...e time immediately before the browser sets the current document readiness of the current document to complete. PerformanceNavigationTiming.domContentLoadedEventEnd Read only A DOMHighRes
TimeStamp representing the time value equal to the time immediately after the current document's DOMContentLoaded event completes. PerformanceNavigationTiming.domContentLoadedEventStart Read only A DOMHighRes
TimeStamp representing the time value equal to the time immediately before the user agent fires the DOMContentLoaded event at the current document. PerformanceNavigationTiming.domInteractive Read only A DOMHighRes
TimeStamp representing a
timestamp representing the time value equal to the time immediately before the user agent sets the current document readiness of the current document to interactive. P...
...And 4 more matches
NSS 3.22 release notes
version of PK11_Verify(). These functions take an explicit mechanism and parameters as arguments rather than inferring it from the key type using PK11_MapSignKeyType(). The mechanism type CKM_RSA_PKCS_PSS is now supported for RSA in addition to CKM_RSA_PKCS. The CK_RSA_PKCS_PSS mechanism takes a parameter of type CK_RSA_PKCS_PSS_PARAMS. ...
... These functions take an explicit mechanism and parameters as arguments rather than inferring it from the key type using PK11_MapSignKeyType(). The mechanism type CKM_RSA_PKCS_PSS is now supported for RSA in addition to CKM_RSA_PKCS. The CK_RSA_PKCS_PSS mechanism takes a parameter of type CK_RSA_PKCS_PSS_PARAMS. ...
...arameters as arguments rather than inferring it from the key type using PK11_MapSignKeyType(). The mechanism type CKM_RSA_PKCS_PSS is now supported for RSA in addition to CKM_RSA_PKCS. The CK_RSA_PKCS_PSS mechanism takes a parameter of type CK_RSA_PKCS_PSS_PARAMS. ...
...And 3 more matches
RTCIceCandidatePairStats - Web APIs
An integer value indicating the number of times the circuit-breaker has been triggered for this particular 5-tuple (the set of five values comprising a TCP connection: source IP address, source port number, destination IP address, destination port number, and protocol). The circuit breaker is triggered whenever a connection times out or otherwise needs to be automatically aborted. consentExpired
Timestamp Optional A DOMHighRes
TimeStamp value indicating the time at which the most recent STUN binding response expired. This value is undefined if no valid STUN binding responses have been sent on the candidate pair; this can only happen if responsesReceived is 0. consentRequestsSent Optional The total number of consent requests that have been sent on this candidate pair. currentRoundTripTime Option...
...ent Optional The total number of consent requests that have been sent on this candidate pair. currentRoundTripTime Optional A floating-point value indicating the total time, in seconds, that elapsed elapsed between the most recently-sent STUN request and the response being received. This may be based upon requests that were involved in confirming permission to open the connection. ...
...f consent requests that have been sent on this candidate pair. currentRoundTripTime Optional A floating-point value indicating the total time, in seconds, that elapsed elapsed between the most recently-sent STUN request and the response being received. This may be based upon requests that were involved in confirming permission to open the connection. firstRequest
Timestamp Optional A DOMHighRes
TimeStamp value which specifies the time at which the first STUN request was sent from the local peer to the remote peer for this candidate pair. lastPacketReceived
Timestamp Optional A DOMHighRes
TimeStamp value indicating the time at which the last packet was received by the local peer from the remote peer for this candidate pair.
Timestamps are not recorded for STUN packets. lastPacketSent
Timestamp Opt...
...And 3 more matches
Rendering and the WebXR frame animation callback - Web APIs
your app or site window. In this context, "repaint" simply means the process of ensuring that the screen's displayed content matches what the DOM and the elements within are trying to present at the moment. Hardare vertical refresh rate When the browser is ready to refresh the <canvas> within which your WebXR content is displayed, it calls your frame rendering callback, which uses the specified
timestamp and any other relevant data, such as models and textures, as well as application state, to render the scene--as it should appear at the specified time--into the WebGL backbuffer. When your callback returns, the browser transfers that backbuffer to the display or XR device, along with anything else that's changed since the last time the screen was refreshed. Historically, displays have refreshed ...
...s when the amount of time it takes to render a frame exceeds the time available between frames, whether because rendering was delayed or because rendering itself took more time than was available. In the diagram above, frame 3 is dropped because frame 2 did not complete rendering until after frame 3 was due to be painted. The next frame drawn will be frame 4 instead. This is another reason the
timestamp passed into your render callback is useful. By configuring the scene based on time rather than frame number, you can ensure your rendered frames match what's expected instead of falling behind. When a frame is dropped, the contents of the affected display area simply don't change for that pass through the frame loop. For that reason, the occasional dropped frame isn't usually particularly notice...
...rPose(). The XRFrame doesn't directly keep track of the positions or orientations of the objects in your world. Instead, it offers a way to convert positions and orientations into the scene's coordinate system, and it collects the viwer's position and orientation data from the XR hardware, converts it into the reference space you've configured, and delivers it to your frame rendering code with a
timestamp. You use that
timestamp and your own data to determine how to render the scene. After rendering the scene twice--once into the left half of the framebuffer and once into the right half of the framebuffer--the framebuffer is sent to the XR hardware, which displays each half of the framebuffer to the corresponding eye. This is often (but not always) done by drawing the image to a single screen and...
...And 3 more matches
Performance API - Web APIs
raints). The interfaces support a number of use cases including calculating frame-rates (potentially important in animations) and benchmarking (such as the time to load a resource). Since a platform's system clock is subject to various skews (such as NTP adjustments), the interfaces support a monotonic clock i.e. a clock that is always increasing. ...
...ating frame-rates (potentially important in animations) and benchmarking (such as the time to load a resource). Since a platform's system clock is subject to various skews (such as NTP adjustments), the interfaces support a monotonic clock i.e. a clock that is always increasing. As such, the Performance API defines a DOMHighRes
TimeStamp type rather than using the Date.now() interface. DOMHighRes
TimeStamp The DOMHighRes
TimeStamp type, as its name implies, represents a high resolution point in time. This type is a double and is used by the performance interfaces. The value could be a discrete point in time or the difference in time between two discrete points in time. The unit of DOMHighRes
TimeStamp is milliseconds and should be accurate to 5 us (microseconds). However, If the browser is unable t...
...meStamp is milliseconds and should be accurate to 5 us (microseconds). However, If the browser is unable to provide a time value accurate to 5 microseconds (because, for example, due to hardware or software constraints), the browser can represent the value as a time in milliseconds accurate to a millisecond. Methods The Performance interface has two methods. The now() method returns a DOMHighRes
TimeStamp whose value that depends on the navigation start and scope. If the scope is a window, the value is the time the browser context was created and if the scope is a worker, the value is the time the worker was created. The toJSON() method returns a serialization of the Performance object, for those attributes that can be serialized. Properties The Performance interface has two properties. The tim...
...And 2 more matches
platform/xpcom - Archive of obsolete content
teInstance(Ci.nsISupports); Registration By default, factories are registered and unregistered automatically. To learn more about this, see Registering and Unregistering. Implementing XPCOM Services The xpcom module exports a class called Service which you can use to define XPCOM services, making them available to all XPCOM users. This example implements a logging service that just appends a
timestamp to all logged messages. The logger itself is implemented by subclassing the Unknown class, then we create a service which associates the logger's constructor with its contract ID. After this, XPCOM users can access the service using the getService() API: var { Class } = require('sdk/core/heritage'); var { Unknown, Service } = require('sdk/platform/xpcom'); var { Cc, Ci } = require('chrome'); va...
... The logger itself is implemented by subclassing the Unknown class, then we create a service which associates the logger's constructor with its contract ID. ...
...we create a service which associates the logger's constructor with its contract ID. ...
... = require('chrome'); var contractId = '@me.org/
timestampedlogger'; // Implement the service by subclassing Unknown var
TimeStampedLogger = Class({ extends: Unknown, get wrappedJSObject() this, log: function(message) { console.log(new Date().getTime() + ' : ' + message); } }); // Register the service using the contract ID var service = Service({ contract: contractId, Component:
TimeStampedLogger }); // Access the service using getService() var wrapper = Cc[contractId].getService(Ci.nsISupports); var logger = wrapper.wrappedJSObject; logger.log('a
timestamped message'); By default, services are registered and unregistered automatically. To learn more about this, see Registering and Unregistering. Registering and Unregistering By default, factories and services are registered w...
Choosing the right approach - Learn web development
If you need to run your animat...
...If you need to run your animation at a slower framerate, you'll need to use setInter...
...If you need to run your animation at a slower framerate, you'll need to use setInterval() or recursive setTimeout(). Br...
...t 24 Full support 10Prefixed Prefixed Implemented with the vendor prefix: webkitEdge Full support 12Firefox Full support 23Notes Full support 23Notes Notes Callback parameter is a DOMHighRes
Timestamp. This means ten microsecond precision and zero time as performance.now(). No support 11 -- 42Prefixed Notes Prefixed Implemented with the vendor prefix: mozNotes Callback parameter is a DOM
Timestamp. This means millisecond precision and zero time as Date.now(). No support 4 -- 11Prefixed Notes Prefixed Implemented with the vendor prefix: mozNote...
Makefiles - Best practices and suggestions
encies will contribute to wasted cycles and can contribute to circular dependencies. Directory dependencies Do not use directories as a dependency for generated targets, ever. Any activity within a directory will alter inodes forcing targets to always be stale. ...
... dependencies Do not use directories as a dependency for generated targets, ever. Any activity within a directory will alter inodes forcing targets to always be stale. For ex, individual unit tests would invalidate all prior test activity whenever a test touched a
timestamp file in the directory to signal success. Parallel make: add an explicit
timestamp dependency (.done) that make can synchronize threaded calls on to avoid a race condition. ...
... forcing targets to always be stale. For ex, individual unit tests would invalidate all prior test activity whenever a test touched a
timestamp file in the directory to signal success. Parallel make: add an explicit
timestamp dependency (.done) that make can synchronize threaded calls on to avoid a race condition. ...
...a dep needed to synchronize parallel execution ##################################################### $(TS): $(TS)/.done $(TS)/.done: $(MKDIR) -p $(dir $@) touch $@ # "clean" target GARBAGE_DIRS += $(TS) Maintain clean targets - makefiles should be able to remove all content that is generated so "make clean" will return the sandbox/directory back to a clean state. targets = foo bar tans
timestampDIR = .ts all: $(
timestampDIR) $(targets) %: %.c $(CC) -o $@ $< $(
timestampDIR): $(MKDIR) $@ # "clean" target GARBAGE += $(targets) GARBAGE_DIRS += $(
timestampDIR) Wrapper check/unit tests with a ENABLE_TESTS conditional so tests can be disabled on demand. ifdef ENABLE_TESTS ifeq ($(NULL),$(filter WINNT OS2,$(OS_ARCH))) DIRS += test endif # WIN endif # ENABLE_TESTS...
NSS 3.24 release notes
to the empty string. In FIPS mode, you may move from Level 1 to Level 2 (by setting an appropriate password), but not the reverse. A SSL_ConfigServerCert function has been added for configuring SSL/TLS server sockets with a certificate and private key. Use this new function in place of SSL_ConfigSecureServer, SSL_ConfigSecureServerWithCertChain, SSL_SetStapledOCSPResponses, and SSL_SetSignedCert
Timestamps. SSL_ConfigServerCert automatically determines the certificate type from the certificate and private key. The caller is no longer required to use SSLKEAType explicitly to select a "slot" into which the certificate is configured (which incorrectly identifies a key agreement type rather than a certificate). Separate functions for configuring Online Certificate Status Protocol (OCSP) responses or S...
...rCert automatically determines the certificate type from the certificate and private key. The caller is no longer required to use SSLKEAType explicitly to select a "slot" into which the certificate is configured (which incorrectly identifies a key agreement type rather than a certificate). Separate functions for configuring Online Certificate Status Protocol (OCSP) responses or Signed Certificate
Timestamps are not needed, since these can be added to the optional SSLExtraServerCertData struct provided to SSL_ConfigServerCert. Also, partial support for RSA Probabilistic Signature Scheme (RSA-PSS) certificates has been added. Although these certificates can be configured, they will not be used by NSS in this version. For functions that use temporary arenas, allocating a PORTCheapArena on the stack ...
...CheapArenaPool.) PORT_DestroyCheapArena - Destroys an arena that was created on the stack. (See PORTCheapArenaPool.) New types In sslt.h SSLExtraServerCertData - Optionally passed as an argument to SSL_ConfigServerCert. This struct contains supplementary information about a certificate, such as the intended type of the certificate, stapled OCSP responses, or Signed Certificate
Timestamps (used for certificate transparency). In secport.h PORTCheapArenaPool - A stack-allocated arena pool, to be used for temporary arena allocations. New macros In pkcs11t.h CKM_TLS12_MAC In secoidt.h SEC_OID_TLS_ECDHE_PSK - This OID governs the use of the TLS_ECDHE_PSK_WITH_AES_128_GCM_SHA256 cipher suite, which is used only for session resumption in TLS 1.3.
...erns the use of the TLS_ECDHE_PSK_WITH_AES_128_GCM_SHA256 cipher suite, which is used only for session resumption in TLS 1.3. Notable changes in NSS 3.24 Additions, deprecations, and other changes in NSS 3.24 are listed below. Deprecate the following functions. (Applications should instead use the new SSL_ConfigServerCert function.) SSL_SetStapledOCSPResponses SSL_SetSignedCert
Timestamps SSL_ConfigSecureServer SSL_ConfigSecureServerWithCertChain Deprecate the NSS_FindCertKEAType function, as it reports a misleading value for certificates that might be used for signing rather than key exchange. Update SSLAuthType to define a larger number of authentication key types. Deprecate the member attribute authAlgorithm of type SSLCipherSuiteInfo. Instead, applications shoul...
Using the Performance API - Web APIs
Additionally, there must be a way to create a
timestamp for a specific point in time; this is done with the now() method. Web performance interfaces are defined in a suite of standards. The base interface for these standards is the Performance interface and its methods and properties are extended by different standards. This guide describes how to use the Performance interfaces that are defined in the High-Resolution Time standard. ...
...ethods and properties are extended by different standards. This guide describes how to use the Performance interfaces that are defined in the High-Resolution Time standard. Other web performance guides (listed in the See also section) describe how to use additional methods and properties of the Performance interface. ...
...By calling this method before and after a task, the time it takes to do the task can be measured. ...
...uld be accurate to 5 us (microseconds). However, if the browser is unable to provide a time value accurate to 5 microseconds (because of hardware or software constraints, for example), the browser can represent the value as a time in milliseconds accurate to a millisecond. The following code example shows the use of DOMHighRes
TimeStamp and the Performance.now() method. The now() method returns a
timestamp (of type DOMHighRes
TimeStamp) that is a discrete point in time. By calling this method before and after a task, the time it takes to do the task can be measured. function calculate_time() { var startTime; var endTime; startTime = performance.now(); do_task(); endTime = performance.now(); return (endTime - startTime); } Serializing the Performance object JSON serialization of the...
RTCPeerConnection.getStats() - Web APIs
ics for an RTCPeerConnection every second, generating an HTML-formatted report and inserting it into a specific element in the DOM. ...
...every second, generating an HTML-formatted report and inserting it into a specific element in the DOM. ...
...A section is created for each report wi...
...Name}:</strong> ${report[statName]}<br>\n`; } }); }); document.querySelector(".stats-box").innerHTML = statsOutput; }); }, 1000); This works by calling getStats(), then, when the promise is resolved, iterates over the RTCStats objects on the returned RTCStatsReport. A section is created for each report with a header and all of the statistics below, with the type, ID, and
timestamp handled specially to place them at the top of the list. Once the HTML for the report is generated, it is injected into the element whose class is "stats-box" by setting its innerHTML property. Specifications Specification Status Comment WebRTC 1.0: Real-time Communication Between BrowsersThe definition of 'RTCPeerConnection.getStats()' in that specification. Candidat...
User Timing API - Web APIs
There are two types of user defined timing event types: the "mark" event type and the "measure" event type. mark events are named by the application and can be set at any location in an application. measure events are also named by the application but they are placed between two marks thus they are effectively a midpoint between two marks. This document provides an overview of the mark and measure performance event types including the four User Timing methods that extend the Performance interface. ...
...document provides an overview of the mark and measure performance event types including the four User Timing methods that extend the Performance interface. For more details and example code regarding these two performance event types and the methods, see Using the User Timing API. Performance marks A performance mark is a named performance entry that is created by the application. The mark is a
timestamp in the browser's performance timeline. Creating a performance mark The performance.mark() method is used to create a performance mark. The method takes one argument, the name of the mark (for example performance.mark("mark-1")). The mark's performance entry will have the following property values: entryType - set to "mark". name - set to the "name" given when the mark was created. startTi...
...s performance timeline. Creating a performance mark The performance.mark() method is used to create a performance mark. The method takes one argument, the name of the mark (for example performance.mark("mark-1")). The mark's performance entry will have the following property values: entryType - set to "mark". name - set to the "name" given when the mark was created. startTime - set to the
timestamp when mark() was called. duration - set to "0" (a mark has no duration). Retrieving performance marks The Performance interface has three methods that can be used to retrieve a mark: performance.getEntries() Returns all performance entries in the performance timeline. Finding only mark entries requires checking each entry's entryType for "mark". performance.getEntriesByName(name, entryTyp...
...dMarkName) where measureName is the measure's name and startMarkName and endMarkName are the start and end names, respectively, of the marks the measure will be placed between (in the performance timeline). The measure's performance entry will have the following property values: entryType - set to "measure". name - set to the "name" given when the measure was created. startTime - set to the
timestamp when measure() was called. duration - set to a DOMHighRes
TimeStamp that is the duration of the measure (typically, the end mark
timestamp minus the start mark
timestamp). Retrieving performance measures The Performance interface has three methods that can be used to retrieve a measure: performance.getEntries() Returns all performance entries in the performance timeline. Finding the measur...
Web Video Text Tracks Format (WebVTT) - Web APIs
m (e.g., 1, 2, 3, ...). Example 8 - Cue identifier from Example 7 1 - Title Crawl Example 9 - Common usage of identifiers WEBVTT 1 00:00:22.230 --> 00:00:24.606 This is the first subtitle. 2 00:00:30.739 --> 00:00:34.074 This is the second. 3 00:00:34.159 --> 00:00:35.743 Third Cue timings A cue timing indicates when the cue is shown. It has a start and end time which are represented by
timestamps. The end time must be greater than the start time, and the start time must be greater than or equal to all previous start times. Cues may have overlapping timings. If the WebVTT file is being used for chapters (<track> kind is chapters) then the file cannot have overlapping timings. Each cue timing contains five components:
Timestamp for start time. At least one space. The string "-->". ...
... Which must be greater than the start time. ...
...all previous start times. Cues may have overlapping timings. If the WebVTT file is being used for chapters (<track> kind is chapters) then the file cannot have overlapping timings. Each cue timing contains five components:
Timestamp for start time. At least one space. The string "-->". At least one space.
Timestamp for end time. Which must be greater than the start time. The
timestamps must be in one of two formats: mm:ss.ttt hh:mm:ss.ttt Where the components are defined as follows: hh is hours. Must be at least two digits. Hours can be greater than two digits (e.g., 9999:00:00.000). mm is minutes. Must be between 00 and 59 inclusive. ss is seconds. Must be between 00 and 59 inclusive. ttt is miliseconds. Must be between 0...
... Less-than < < Greater-than > > Left-to-right mark ‎ Right-to-left mark ‏ Non-breaking space Cue payload text tags There are a number of tags, such as <bold>, that can be used. However, if the WebVTT file is used in a <track> element where the attribute kind is chapters then you cannot use tags.
Timestamp tag The
timestamp must be greater that the cue's start
timestamp, greater than any previous
timestamp in the cue payload, and less than the cue's end
timestamp. The active text is the text between the
timestamp and the next
timestamp or to the end of the payload if there is not another
timestamp in the payload. Any text before the active text in the payload is previous text . Any text beyo...
Promises - Archive of obsolete content
These older interfaces should be avoided, even in their asynchronous forms, due to their performance penalties and needless complexity. Representative Example Usage Components.utils.import("resource://gre/modules/osfile.jsm"); Task.spawn(function* () { // Retrieve file metadata to check modification time. let info = yield OS.File.stat(configPath); if (info.lastModificationDate <=
timestamp) return;
timestamp = info.lastModificationDate; // Read the file as a UTF-8 string, parse as JSON. let config = JSON.parse( yield OS.File.read(configPath, { encoding: "utf-8" })); let files = []; // Get the directory contents from a list of directories. for (let dir of config.directories) { // Iterate over the contents of the directory. l...
... processor.process(), { tmpPath: config.processedPath + "." + Math.random() }); // And write out a new config file. config.indexStats = processor.stats; yield OS.File.writeAtomic(configPath, JSON.stringify(config), { tmpPath: configPath + "." + Math.random(), encoding: "UTF-8" })
timestamp = new Date; }); HTTP Requests HTTP requests should, in nearly all circumstances, be made via the standard XMLHttpRequest API. While this API does not have direct support for promises, its standard usage is very easy to adapt to a promise-based approach. Moreover, many third-party wrappers for the XMLHttpRequest API now support Promises out of the box. Example Direct Usage Task.spawn(function*...
... owner.id = nodes.owner \ WHERE nodes.key = 'task';", { onRow: row => { runTask(row.getResultByName("task"), row.getResultByName("group")); } }); // And quickly grab a single row value. let [row] = yield db.execute( "SELECT value FROM nodes WHERE key = '
timestamp' \ ORDER BY value DESC LIMIT 1"); latest
Timestamp = row.getResultByIndex(0); } finally { // Make sure to close the database when finished. // Failure to do this will prevent Firefox from shutting down // cleanly. yield db.close(); } }); Promise Wrappers and Helpers The following are some example Promise-based wrappers for common ...
Redis Tips
sh log.bacon yes publish log.bacon yes (integer) 1 See message received in first client: redis1> 1) "pmessage" 2) "log.*" 3) "log.bacon" 4) "yes" Pubsub is useful for things like: Chat programs Message passing among application components Log routing from applications in multiple languages It's good stuff. Heartbeats and Time-based Event Logs It's a common pattern to use numerical
timestamps for ranking members in a ZSET. I'll show this in the node console, to illustrate how the optional parameters are done. > var r = require('redis').createClient(); // and I'll define these utility functions just for this example > function now() { return (new Date()).getTime() / 1000 } > function print(err, results) { console.log(JSON.stringify(results, null, 2)) } Whenever someone logs int...
...'last-login', now(), 'lloyd'); > r.zadd('last-login', now(), 'jparsons'); > r.zadd('last-login', now(), 'zarter'); > r.zadd('last-login', now(), 'lloyd'); // he logged in again! w00t! Here's what the zset contains now: > r.zrange('last-login', 0, -1, print); // remember, I defined 'print' above ["jparsons", "zcarter", "lloyd"] Since this is a set, lloyd only appears once, with updated login
timestamp. ZRANGE gives you everything in the zset, in order of score, from the beginning offset to the end offset. (0 from the front, -1 from the end.) As you can see, the scores are sorted smallest to biggest. To get the most recent, you can use ZREVRANGE: > r.zrevrange('last-login', 0, -1, print); ["lloyd", "zcarter", "jparsons"] To see the scores, use the optional WITHSCORES argument. As a ...
...n in seconds from the present. TTL tells you the time-to-live for the key, if there is an expiration set on it. Otherwise, you get -1. Note that you get -1 both when there's no expiration and when there's no key. If you change your mind, and you want to save the key from oblivion, you can PERSIST it to undo the EXPIRE command. EXPIREAT lets you specify the expiration date of a key in unix
timestamp. SETEX is an atomic shortcut for SET + EXPIRE. Using ZSETs, you can periodically cull expired objects by using the ZREMRANGEBYSCORE and ZREMRANGEBYRANK commands. Mutex Locks In the case where you need a mutex, here's a recipe for using the atomic GETSET and SETNX to orchestrate locking: https://redis.io/commands/setnx (scroll down). I have used this recipe in production. Bit Strings Bi...
nsIAppStartup
rs None. 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. Bracket the code where the last window could close with these. void exitLastWindowClosingSurvivalArea(); Parameters None. getStartupInfo() Returns a JavaScript object with events from startup and the
timestamps indicating when they occurred. Parameters None. Return value A JavaScript object with the following fields. Keys are the event names and their values are the times. Events that didn't occur are not in the object. Event identifier (key) Description main Time at which main application core was loaded. Note: Only available with libxul builds. ...
... hideSplashScreen() Obsolete since Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0) Remove the splash screen (if visible). This need be called only once per application session. void hideSplashScreen(); Parameters None. initialize() Obsolete since Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMon...
... hideSplashScreen() Obsolete since Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0) Remove the splash screen (if visible). This need be called only once per application session. void hideSplashScreen(); Parameters None. initialize() Obsolete since Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0) ...
nsIHttpActivityObserver
erver.idlScriptable This interface provides a way for http transport activities to be reported to observers. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Method overview void observeActivity(in nsISupports aHttpChannel, in PRUint32 aActivityType, in PRUint32 aActivitySubtype, in PRTime a
Timestamp, in PRUint64 aExtraSizeData, in ACString aExtraStringData); Attributes Attribute Type Description isActive boolean true when the interface is active and should observe HTTP activity, otherwise false. If this is false, the observeActivity() method should not be called. Read only. Note: This attribute is present only for compatibility and should not be used. Constants Activity type con...
...ved. ACTIVITY_SUBTYPE_TRANSACTION_CLOSE 0x5006 The HTTP transaction has been closed. Methods observeActivity() Called when activity occurs on the HTTP transport. You should implement this method to perform whatever tasks you wish to perform when HTTP activity occurs. void observeActivity( in nsISupports aHttpChannel, in PRUint32 aActivityType, in PRUint32 aActivitySubtype, in PRTime a
Timestamp, in PRUint64 aExtraSizeData, in ACString aExtraStringData ); Parameters aHttpChannel The nsIHttpChannel on which the activity occurred. aActivityType The type of activity that occurred; this will be one of the values specified in Activity type constants. aActivitySubtype The subtype that further narrows the type of activity that occurred. If the activity type is ACTIVITY_TYPE_SOCKET_TRANSPO...
...s specified in Activity type constants. aActivitySubtype The subtype that further narrows the type of activity that occurred. If the activity type is ACTIVITY_TYPE_SOCKET_TRANSPORT, this value will be one of the STATUS_* constants defined by nsISocketTransport. If the activity type is ACTIVITY_TYPE_HTTP_TRANSACTION, this will be one of the constants specified in Activity subtype constants above. a
Timestamp The time at which the activity occurred, specified as microseconds elapsed since the epoch of midnight on January 1, 1970. aExtraSizeData Any additional size data available with this activity. See Interpreting activity data below. aExtraStringData Any additional string data available with this activity. See Interpreting activity data below. Interpreting activity data Depending on the values of t...
Web Console remoting - Firefox Developer Tools
the nsIConsoleService. Each allowed page error is an nsIScriptError object. The pageError packet is: { "from": "conn0.console9", "type": "pageError", "pageError": { "errorMessage": "ReferenceError: foo is not defined", "sourceName": "http://localhost/~mihai/mozilla/test.js", "lineText": "", "lineNumber": 6, "columnNumber": 0, "category": "content javascript", "
timeStamp": 1347294508210, "error": false, "warning": false, "exception": true, "strict": false, "private": false, } } The packet is similar to nsIScriptError - for simplicity. We only removed several unneeded properties and changed how flags work. The private flag tells if the error comes from a private window/tab (added in Firefox 24). Starting with Firefox 24 the errorMessage a...
...verService - the console object implementation lives in dom/base/ConsoleAPI.js. ...
...hich is used to indicate which node is currently selected in the Inspector, if any. This NodeActor can then be referred to by the $0 JSTerm helper. The response packet: { "from": "conn0.console9", "input": "document", "result": { "type": "object", "className": "HTMLDocument", "actor": "conn0.consoleObj20" "extensible": true, "frozen": false, "sealed": false }, "
timestamp": 1347306273605, "exception": null, "exceptionMessage": null, "helperResult": null } exception holds the JSON-ification of the exception thrown during evaluation. exceptionMessage holds the exception.toString() result. result has the result ObjectActor instance. helperResult is anything that might come from a JSTerm helper result, JSON stuff (not content objects!). In Firefox 23: ...
PerformanceResourceTiming.connectEnd - Web APIs
Note: This feature is available in Web Workers. Syntax resource.connectEnd; Return value A DOMHighRes
TimeStamp representing the time after a connection is established. Example In the following example, the value of the *Start and *End properties of all "resource" type events are logged. ...
...turns the
timestamp immediately after the browser finishes establishing the connection to the server to retrieve the resource. The
timestamp value includes the time interval to establish the transport connection, as well as other time intervals such as SSL handshake and SOCKS authentication. Note: This feature is available in Web Workers. Syntax resource.connectEnd; Return value A DOMHighRes
TimeStamp representing the time after a connection is established. Example In the following example, the value of the *Start and *End properties of all "resource" type events are logged. function print_PerformanceEntries() { // Use getEntriesByType() to just get the "resource" events var p = performance.getEntriesByType("resource"); for (var i=0; i < p.length; i++) { print_start_and_end_proper...
...ng example, the value of the *Start and *End properties of all "resource" type events are logged. ...
PerformanceResourceTiming.redirectStart - Web APIs
Example In the following example, the value of the *Start and *End properties of all "resource" type events are logged. ...
...rects when fetching the resource and if any of the redirects are not from the same origin as the current document, but the timing allow check algorithm passes for each redirected resource, this property returns the starting time of the fetch that initiates the redirect; otherwise, zero is returned. Note: This feature is available in Web Workers. Syntax resource.redirectStart; Return value A
timestamp representing the start time of the fetch which initiates the redirect. Example In the following example, the value of the *Start and *End properties of all "resource" type events are logged. function print_PerformanceEntries() { // Use getEntriesByType() to just get the "resource" events var p = performance.getEntriesByType("resource"); for (var i=0; i < p.length; i++) { print_start_...
...ng example, the value of the *Start and *End properties of all "resource" type events are logged. ...
PerformanceResourceTiming.workerStart - Web APIs
Example In the following example, the value of the *Start and *End properties of all "resource" type events are logged. ...
... Example In the following example, the value of the *Start and *End properties of all "resource" type events are logged. ...
...ng example, the value of the *Start and *End properties of all "resource" type events are logged. ...
Using the Resource Timing API - Web APIs
Timing API provides a way to retrieve and analyze detailed network timing data regarding the loading of an application's resource(s). An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource such as an XMLHttpRequest, <SVG>, image, script, etc.). The interface's properties create a resource loading timeline with high-resolution
timestamps for network events such as redirect start and end times, fetch start, DNS lookup start and end times, response start and end times, etc. The interface also includes other properties that provide data about the size of the fetched resource as well as the type of resource that initiated the fetch. This document shows the use of Resource Timing interfaces. For more details about the interfaces, in...
...rce that initiated the fetch. This document shows the use of Resource Timing interfaces. For more details about the interfaces, including examples, see each interface's reference page and the references in the See also section. A live version of the examples is available on Github, as is the source code. Pull requests and bug reports are welcome. Resource loading phases An application can get
timestamps for the various phases of resource loading such as redirection, DNS lookup, and TCP connection setup. Those phases and their property names are illustrated in Figure 1. Figure 1. Resource timing properties An application developer can use the property values to calculate the length of time a phase takes and that information can help diagnose performance issues. Timing resource loading phases...
...esourcetimingbufferfull = buffer_full; } Coping with CORS When CORS is in effect, many of the timing properties' values are returned as zero unless the server's access policy permits these values to be shared. This requires the server providing the resource to send the Timing-Allow-Origin HTTP response header with a value specifying the origin or origins which are allowed to get the restricted
timestamp values. The properties which are returned as 0 by default when loading a resource from a domain other than the one of the web page itself: redirectStart, redirectEnd, domainLookupStart, domainLookupEnd, connectStart, connectEnd, secureConnectionStart, requestStart, and responseStart. ...
SourceBuffer.mode - Web APIs
The mode property of the SourceBuffer interface controls whether media segments can be appended to the SourceBuffer in any order, or in a strict sequence. The two available values are: segments: The media segment
timestamps determine the order in which the segments are played. The segments can be appended to the SourceBuffer in any order. sequence: The order in which the segments are appended to the SourceBuffer determines the order in which they are played. Segment
timestamps are generated automatically for the segments that observe this order. ...
...ments are played. The segments can be appended to the SourceBuffer in any order. sequence: The order in which the segments are appended to the SourceBuffer determines the order in which they are played. Segment
timestamps are generated automatically for the segments that observe this order. The mode value is initially set when the SourceBuffer is created using MediaSource.addSourceBuffer(). If
timestamps already exist for the media segments, then the value will be set to segments; if they don't, then the value will be set to sequence. If you try to set the mode property value to segments when the initial value is sequence, an exception will be thrown. The existing segment order must be maintained in sequence mode. You can, however, change the value from segments to sequence. It just means the p...
...ments, then the value will be set to segments; if they don't, then the value will be set to sequence. If you try to set the mode property value to segments when the initial value is sequence, an exception will be thrown. The existing segment order must be maintained in sequence mode. You can, however, change the value from segments to sequence. It just means the play order will be fixed, and new
timestamps generated to reflect this. This property cannot be changed during while the SourceBuffer is processing either an appendBuffer() or remove() call. Syntax var myMode = sourceBuffer.mode; sourceBuffer.mode = 'sequence'; Value A DOMString. Exceptions The following exceptions may be thrown when setting a new value for this property. Exception Explanation InvalidAcce...
SourceBuffer - Web APIs
SourceBuffer.audioTracks Read only A list o...
...<text x="211" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SourceBuffer</text></a></svg></div> a:hover text { fill: #0095DD; pointer-events: all;} Properties SourceBuffer.appendWindowEnd Controls the
timestamp for the end of the append window. SourceBuffer.appendWindowStart Controls the
timestamp for the start of the append window. This is a
timestamp range that can be used to filter what media data is appended to the SourceBuffer. Coded media frames with
timestamps within this range will be appended, whereas those outside the range will be filtered out. SourceBuffer.audioTracks Read only A list of the audio tracks currently contained inside the SourceBuffer. SourceBuffer.buffered Rea...
...ead only Returns the time ranges that are currently buffered in the SourceBuffer. SourceBuffer.mode Controls how the order of media segments in the SourceBuffer is handled, in terms of whether they can be appended in any order, or they have to be kept in a strict sequence. SourceBuffer.textTracks Read only A list of the text tracks currently contained inside the SourceBuffer. SourceBuffer.
timestampOffset Controls the offset applied to
timestamps inside media segments that are subsequently appended to the SourceBuffer. SourceBuffer.trackDefaults Specifies the default values to use if kind, label, and/or language information is not available in the initialization segment of the media to be appended to the SourceBuffer. SourceBuffer.updating Read only A boolean indicating whether the Sou...
Using the User Timing API - Web APIs
There are two types of user defined timing entry types: the "mark" entry type and the "measure" entry type. mark events are named by the application and can be set at any location in an application. measure events are also named by the application but they are placed between two marks thus they are effectively a midpoint between two marks. This document shows how to create mark and measure performance entry types and how to use User Timing methods (which are extensions of the Performance interface) to retrieve and remove entries from the browser's performance timeline. ...
... of the Performance interface) to retrieve and remove entries from the browser's performance timeline. A live version of the examples is available on Github, as is the source code. Pull requests, enhancement requests and bug reports are welcome. Performance marks A performance mark is a named performance entry that is created by the application at some location in an application. The mark is a
timestamp in the browser's performance timeline. Creating a performance mark The performance.mark() method is used to create a performance mark. The method takes one argument, the name of the mark, as shown in the following example. function create_marks(ev) { if (performance.mark === undefined) { log("Create Marks: performance.mark Not supported", 0); return; } else { log("Create marks", ...
...ot supported", 0); return; } log("Clear marks", 0); if (typeof obj == "string") { log("... cleared '" + obj + "' mark(s)", 0); performance.clearMarks(obj); } else { // No argument specified so clear all marks log("... cleared All marks", 0); performance.clearMarks(); } } Performance measures A measure performance entry type is named by the application and its
timestamp is placed between two named marks thus a measure is effectively a midpoint between two marks in the browser's performance timeline. Creating a performance measure A measure is created by calling performance.measure(measureName, startMarkName, endMarkName) where measureName is the measure's name and startMarkName and endMarkName are the start and end names, respectively, of the marks the measure...
Window.requestAnimationFrame() - Web APIs
forms the next repaint. The number of callbacks is usually 60 times per second, but will generally match the display refresh rate in most web browsers as per W3C recommendation. requestAnimationFrame() calls are paused in most browsers when running in background tabs or hidden <iframe>s in order to improve performance and battery life. The callback method is passed a single argument, a DOMHighRes
TimeStamp, which indicates the current time (based on the number of milliseconds since time origin). When callbacks queued by requestAnimationFrame() begin to fire multiple callbacks in a single frame, each receives the same
timestamp even though time has passed during the computation of every previous callback's workload. This
timestamp is a decimal number, in milliseconds, but with a minimal precision of...
... calculate how much the animation will progress in a frame, otherwise the animation will run faster on high refresh rate screens. Check the example below for a way to do this. Syntax window.requestAnimationFrame(callback); Parameters callback The function to call when it's time to update your animation for the next repaint. The callback function is passed one single argument, a DOMHighRes
TimeStamp similar to the one returned by performance.now(), indicating the point in time when requestAnimationFrame() starts to execute callback functions. Return value A long integer value, the request id, that uniquely identifies the entry in the callback list. This is a non-zero value, but you may not make any other assumptions about its value. You can pass this value to window.cancelAnimationFrame()...
...t moves at a speed of 0.1px/ms to the right, so its relative position (in CSS pixels) can be calculated in function of the time elapsed since the start of the animation (in milliseconds) with 0.1 * elapsed. The element's final position is 200px (0.1 * 2000) to the right of its initial position. const element = document.getElementById('some-element-you-want-to-animate'); let start; function step(
timestamp) { if (start === undefined) start =
timestamp; const elapsed =
timestamp - start; // `Math.min()` is used here to make sure that the element stops at exactly 200px. element.style.transform = 'translateX(' + Math.min(0.1 * elapsed, 200) + 'px)'; if (elapsed < 2000) { // Stop the animation after 2 seconds window.requestAnimationFrame(step); } } window.requestAnimationFrame(st...
Getting Started - Developer guides
Internet Explorer. If you do not set header Content-Type: application/xml, IE will throw a JavaScript "Object Expected" error after the line where you tried to access an XML element. Note 2: If you do not set header Cache-Control: no-cache the browser will cache the response and never re-submit the request, making debugging challenging. You can also add an always-different GET parameter, like a
timestamp or random number (see bypassing the cache) Note 3: If the httpRequest variable is used globally, competing functions calling makeRequest() can overwrite each other, causing a race condition. Declaring the httpRequest variable local to a closure containing the AJAX functions avoids this. In the event of a communication error (such as the server going down), an exception will be thrown in the onr...
... <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>XHR log time</title> ...
...ple follows -- here we are loading a text file via XHR, the structure of which is assumed to be like this: TIME: 312.05 TIME: 312.07 TIME: 312.10 TIME: 312.12 TIME: 312.14 TIME: 312.15 Once the text file is loaded, we split() the items into an array at each newline character (\n -- basically where each line break is in the text file), and then print the complete list of
timestamps, and the last
timestamp, onto the page. This is repeated every 5 seconds, using a setInterval() call. The idea would be that a server-side script of some kind would continually update the text file with new
timestamps, and our XHR code would be used to report the latest
timestamp on the client-side. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>XHR log time</title> <style> </style> <...
places/bookmarks - Archive of obsolete content
SORTED This is a constant, default Group on the Firefox platform, the Unsorted Bookmarks group. It can be used in queries or specifying the parent of a bookmark item, but it cannot be modified. Bookmark Properties title The bookmark's title. url The bookmark's URL. group The group instance that the bookmark lives under. index The index of the bookmark within its group. updated A Unix
timestamp indicating when the bookmark was last updated on the platform. tags A Set of tags that the bookmark is tagged with. Group Properties title The bookmark group's title. group The group instance that the bookmark group lives under. index The index of the bookmark group within its group. updated A Unix
timestamp indicating when the bookmark was last updated on the platform. Separator Pr...
... PlacesEmitter The PlacesEmitter is not exported from the module, but returned from the save and search functions. ...
Introducing the Audio API extension - Archive of obsolete content
time. Those samples may or may not have been played yet at the time of the event and have not been adjusted for mute or volume settings on the media element. Playing, pausing, and seeking the audio also affect the streaming of this raw audio data. The MozAudioAvailable event has 2 attributes: frameBuffer: Framebuffer (i.e., an array) containing decoded audio sample data (i.e., floats) time:
Timestamp for these samples measured from the start in seconds The framebuffer contains an array of audio samples. It's important to note that the samples are not separated by channels; they are all delivered together. For example, for a two-channel signal: Channel1-Sample1 Channel2-Sample1 Channel1-Sample2 Channel2-Sample2 Channel1-Sample3 Channel2-Sample3. We can extend the previous example to visual...
...se samples measured from the start in seconds The framebuffer contains an array of audio samples. It's important to note that the samples are not separated by channels; they are all delivered together. For example, for a two-channel signal: Channel1-Sample1 Channel2-Sample1 Channel1-Sample2 Channel2-Sample2 Channel1-Sample3 Channel2-Sample3. ...
Running Tamarin performance tests - Archive of obsolete content
avmplus command to use -a --asc compiler to use -g --globalabc DEPRECATED but still works - use builtin.abc (used to be location of global.abc) -b --builtinabc location of builtin.abc -s --shellabc location of shell_toplevel.abc -x --exclude comma separated list of directories to skip -h --help display help and exit -t --notime do not generate
timestamps (cleaner diffs) -f --forcerebuild force rebuild all test files -c --config sets the config string [default OS-tvm] -q --quiet display minimum output during testrun -l --log also log all output to given logfile --summaryonly only display final summary --rebuildtests rebuild the tests only - do not run against VM --showtimes shows the time for each test...
... not run against VM --showtimes shows the time for each test --ascargs args to pass to asc on rebuild of test files --vmargs args to pass to vm --timeout max time to run all tests --testtimeout max time to let a test run, in sec (default -1 = never timeout) --html also create an html output file --notimecheck do not recompile .abc if
timestamp is older than .as --java location of java executable (default=java) --javaargs arguments to pass to java --random run tests in random order --seed explicitly specify random seed for --random -S --avm2 second avmplus command to use --avmname nickname for avm to use as column header --avm2name nickname for avm2 to use as colu...
Efficient animation for web games - Game development
browser will take to draw a particular frame. requestAnimationFrame causes the browser to redraw and call your function before that frame gets to the screen. The downside of using this vs. setTimeout is that your animations must be time-based instead of frame-based, i.e. you must keep track of time and set your animation properties based on elapsed time. requestAnimationFrame includes a DOMHighRes
TimeStamp in its callback function prototype, which you definitely should use (as opposed to using the Date object), as this will be the time the frame began rendering, and ought to make your animations look more fluid. You may have a callback that ends up looking something like this: var startTime = -1; var animationLength = 2000; // Animation length in milliseconds function doAnimation(
timestamp) { /...
... Date object), as this will be the time the frame began rendering, and ought to make your animations look more fluid. You may have a callback that ends up looking something like this: var startTime = -1; var animationLength = 2000; // Animation length in milliseconds function doAnimation(
timestamp) { // Calculate animation progress var progress = 0; if (startTime < 0) { startTime =
timestamp; } else { progress =
timestamp - startTime; } // Do animation ... if (progress < animationLength) { requestAnimationFrame(doAnimation); } } // Start animation requestAnimationFrame(doAnimation); You will note that we set startTime to -1 at the beginning, when we could just as easily have set the time using the Date() object and avoided the extra code in the animation call...
MozBeforePaint
rval should be considered to have started running. With that value in hand, you can then schedule all your subsequent animation frames. Whenever you're ready to refresh your animation, you call the window.requestAnimationFrame() method. Once you've called this, the MozBeforePaint event will be fired one time, when it's time for animations to be updated for the window's next animation frame. The
timeStamp property of this event will be set to the time when the animation frame is sampled; this is relevant when trying to synchronize mozRequestAnimationFrame animations with SMIL animations or CSS transitions. This allows multiple animations to remain in sync with one another within the context of a given window. Frame rate control MozBeforePaint won't fire more than a fixed number of times per sec...
...ing overall system performance. Example This example performs a simple animation, moving a box a short distance after a short period of time. ...
NSPR LOG MODULES
moduleName. Special log module names are provided for controlling NSPR's log service at execution time. These controls should be set in the NSPR_LOG_MODULES environment variable at execution time to affect NSPR's log service for your application. all The name all enables all log modules. To enable all log module calls to PR_LOG, set the variable as follows: set NSPR_LOG_MODULES=all:5
timestamp Including
timestamp results in a
timestamp of the form "2015-01-15 21:24:26.049906 UTC - " prefixing every logged line. append Including append results in log entries being appended to the existing contents of the file referenced by NSPR_LOG_FILE. If not specified, the existing contents of NSPR_LOG_FILE will be lost as a new file is created with the same filename. sync The name sync enables un...
...e lost as a new file is created with the same filename. sync The name sync enables unbuffered logging. This ensures that all log messages are flushed to the operating system as they are written, but may slow the program down. bufsize:size The name bufsize:size sets the log buffer to size. Examples Log everything from the Toolkit::Storage component that happens, prefixing each line with the
timestamp when it was logged to the file /tmp/foo.log (which will be replaced each time the executable is run). set NSPR_LOG_MODULES=
timestamp,mozStorage:5 set NSPR_LOG_FILE=/tmp/foo.log Logging with Try Server For mochitest, edit variable NSPR_LOG_MODULES in testing/mochitest/runtests.py before pushing to try. You would be able to download the log file as an artifact from the Log viewer. (other t...
Statistics API
total_time: number (milliseconds) - The amount of wall time that this GC consumed. Note: this is the sum of all the slice durations, not end time - start time. compartments_collected: integer - The number of compartments that were collected by the GC. compartment_count: integer - The number of compartments that were pr...
...with these fields: slice: integer - The slice index, starting at 0. pause: number (milliseconds) - The slice duration. when: number (milliseconds) - The time this slice started, relative to the first slice's start time. reason: string - A string describing the API that initiated this GC slice. page_faults: integer - Number of page faults incurred during the processing of this slice. start_
timestamp: integer (microseconds) - Time of slice start from epoch. end_
timestamp: integer (microseconds) - Time of slice end from epoch. times: Object - A map from phase names to the total time taken by that phase during this slice. ...
imgIContainer
Obsolete since Gecko 2.0 void setDiscardable(in string aMimeType); Native code only! Obsolete since Gecko 2.0 void setFrameBlendMethod(in unsigned long framenumber, in PRInt32 aBlendMethod); Obsolete since Gecko 2.0 void setFrameDisposal...
...d, do nothing. void requestDiscard(); Parameters None. Exceptions thrown Missing Exception Missing Description Violates the XPCOM interface guidelines requestRefresh() Indicates that this imgIContainer has been triggered to update its internal animation state. Likely this should only be called from within nsImageFrame or objects of similar type. void requestRefresh( [const] in
TimeStamp aTime ); Parameters aTime Missing Description Exceptions thrown Missing Exception Missing Description resetAnimation() void resetAnimation(); Parameters None. Exceptions thrown Missing Exception Missing Description Native code only!restoreDataDone Obsolete since Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)This feature is obsolete. Although it may stil...
nsISmsService
ed by: @mozilla.org/sms/smsservice;1. ...
...sForText(in DOMString text); boolean hasSupport(); void send(in DOMString number, in DOMString message, in long requestId, [optional] in unsigned long long processId); Methods createSmsMessage() [implicit_jscontext] nsIDOMMozSmsMessage createSmsMessage( in long id, in DOMString delivery, in DOMString sender, in DOMString receiver, in DOMString body, in jsval
timestamp, in bool read ); Parameters id A number representing the id of the message. delivery A DOMString which can either be "received" or "sent" and is representing the way the SMS was delivered. sender A DOMString with the name of the sender. receiver A DOMString with the name of the receiver. body A DOMString with the text of the message.
timestamp A Date object with the
timestamp of...
nsIWindowMediator
zLevelBottom 2 Send window to bottom. zLevelBelow 3 Place window below some window. Methods addListener() Regist...
...nored for zLevelTop and zLevelBottom.) inBelow The window inWindow is behind, if zLevelBelow. Native code only!unregisterWindow Remove the window from the list of known windows. Listeners (see addListener()) will be be notified through their onCloseWindow method. void unregisterWindow( in nsIXULWindow aWindow ); Parameters aWindow The window to remove. Native code only!updateWindow
TimeStamp Call this method when a window gains focus. It's a primitive means of determining the most recent window. It's no longer necessary and it really should be removed. void updateWindow
TimeStamp( in nsIXULWindow aWindow ); Parameters aWindow The window which has gained focus. Native code only!updateWindowTitle Call this method when a window's title changes. Listeners (see addListener()) ...
BlobEvent.timecode - Web APIs
Specifications Specification Status Comment MediaStream RecordingThe definition of 'timecode' in that specification. Working Draft Initial definition. Browser Compatibility The compatibility table on this page is generated from structured data. ...
... Specifications Specification Status Comment MediaStream RecordingThe definition of 'timecode' in that specification. Working Draft Initial definition. Browser Compatibility The compatibility table on this page is generated from structured data. ...
EXT_disjoint_timer_query.getQueryEXT() - Web APIs
pname A GLenum specifying which information to return. Must be ext.CURRENT_QUERY_EXT or ext.QUERY_COUNTER_BITS_EXT. Return value Depends on pname: If pname is ext.CURRENT_QUERY_EXT: A WebGLQuery object, which is the currently active query for the given target. ...
...on pname: If pname is ext.CURRENT_QUERY_EXT: A WebGLQuery object, which is the currently active query for the given target. If pname is ext.QUERY_COUNTER_BITS_EXT: A GLint indicating the number of bits used to hold the query result for the given target. Examples var ext = gl.getExtension('EXT_disjoint_timer_query'); var startQuery = ext.createQueryEXT(); ext.queryCounterEXT(startQuery, ext.
TIMESTAMP_EXT); var currentQuery = ext.getQueryEXT(ext.
TIMESTAMP_EXT, ext.CURRENT_QUERY_EXT); Specifications Specification Status Comment EXT_disjoint_timer_queryThe definition of 'EXT_disjoint_timer_query' in that specification. Working Draft Initial definition. ...
Frame Timing API - Web APIs
is included in Using the Frame Timing API. Performance frames The PerformanceFrameTiming interface extends the following PerformanceEntry properties (for "frame" performance entry types) by qualifying and constrainting the properties as follows: PerformanceEntry.entryType Set to "frame". PerformanceEntry.name Set to the document's address. PerformanceEntry.startTime Set to the DOMHighRes
TimeStamp when the frame was started. PerformanceEntry.duration Set to a
timestamp indicating the difference between the startTimes of two successive frames. This data, particularly the duration
timestamp, can be used to help identify performance problems. Frame observers The performance observer interfaces allow an application to register an observer for specific performance event types. When one o...
...er adds a new frame to the performance timeline, the specified observer callback will be invoked. Accessing frame data When a frame observer is invoked, frame performance entries can be retrieved by calling PerformanceObserverEntryList.getEntriesByType() with an argument of "frame". This method returns a list of "frame" PerformanceEntry objects. Each frame object's duration property returns the
timestamp of two consecutive frames. If this value is greater than the time needed to provide a good user experience, further analysis might be warranted. ...
GlobalEventHandlers.onreset - Web APIs
reset property of the GlobalEventHandlers mixin is an EventHandler that processes reset events. The reset event fires when the user clicks a reset button in a form (<input type="reset">). Syntax target.onreset = functionRef; Value functionRef is a function name or a function expression. The function receives an Event object as its sole argument. ...
...pression. The function receives an Event object as its sole argument. Example This example logs the current Event.
timeStamp whenever you reset the form. HTML <form id="form"> <label>Test field: <input type="text"></label> <br><br> <button type="reset">Reset form</button> </form> <p id="log"></p> JavaScript function logReset(event) { log.textContent = `Form reset! Time stamp: ${event.
timeStamp}`; } const form = document.getElementById('form'); const log = document.getElementById('log'); form.onreset = logReset; Result Specification Specification Status Comment HTML Living StandardThe definition of 'onreset' in that specification. Living Standard ...
HTMLFormElement: reset event - Web APIs
The reset event fires when a <form> is reset. Bubbles Yes (although specified as a simple event that doesn't bubble) Cancelable Yes Interface Event Event handler property GlobalEventHandlers.onreset Examples This example uses EventTarget.addEventListener() to listen for form resets, and logs the current Event.
timeStamp whenever that occurs. ...
...et Examples This example uses EventTarget.addEventListener() to listen for form resets, and logs the current Event.
timeStamp whenever that occurs. HTML <form id="form"> <label>Test field: <input type="text"></label> <br><br> <button type="reset">Reset form</button> </form> <p id="log"></p> JavaScript function logReset(event) { log.textContent = `Form reset! Time stamp: ${event.
timeStamp}`; } const form = document.getElementById('form'); const log = document.getElementById('log'); form.addEventListener('reset', logReset); Result Specifications Specification Status Comment HTML Living StandardThe definition of 'reset' in that specification. Working Draft No change HTML 5.2The definition of 'reset' in that specification. Recommend...
HTMLFormElement: submit event - Web APIs
ype="text">) in a form. The event is not sent to the form when calling the form.submit() method directly. Note: Trying to submit a form that does not pass validation triggers an invalid event. In this case, the validation prevents form submission, and thus there is no submit event. ...
...er() to listen for form submit, and logs the current Event.
timeStamp whenever that occurs, then prevents the default action of submitting the form. HTML <form id="form"> <label>Test field: <input type="text"></label> <br><br> <button type="submit">Submit form</button> </form> <p id="log"></p> JavaScript function logSubmit(event) { log.textContent = `Form Submitted! Time stamp: ${event.
timeStamp}`; event.preventDefault(); } const form = document.getElementById('form'); const log = document.getElementById('log'); form.addEventListener('submit', logSubmit); Result Specifications Specification Status Comment HTML Living StandardThe definition of 'submit' in that specification. Working Draft No change HTML 5.2The definition of 'submit' in th...
IntersectionObserverEntry.time - Web APIs
The time is specified in milliseconds since the creation of the containing document. Example See Timing element visibility with the Intersection Observer API for a complete example which uses the time property to track how long elements are visible to the user. ...
...The time is specified in milliseconds since the creation of the containing document. Example See Timing element visibility with the Intersection Observer API for a complete example which uses the time property to track how long elements are visible to the user. ...
performance.now() - Web APIs
Note: This feature is available in Web Workers. The returned value represents the time elapsed since the time origin. Bear in mind the following points: In dedicated workers created from a Window context, the value in the worker will be lower than performance.now() in the window who spawned that worker. It used to be the same as t0 of the main context, but this was changed. In shared or service workers, the value in the worker might be higher than that of the main context because that window can be created after those workers. ...
...d increments. The precision of the returned value is subject to change if/when the security concerns are alleviated through other means. Syntax t = performance.now(); Example const t0 = performance.now(); doSomething(); const t1 = performance.now(); console.log(`Call to doSomething took ${t1 - t0} milliseconds.`); Unlike other timing data available to JavaScript (for example Date.now), the
timestamps returned by performance.now() are not limited to one-millisecond resolution. Instead, they represent times as floating-point numbers with up to microsecond precision. Also unlike Date.now(), the values returned by performance.now() always increase at a constant rate, independent of the system clock (which might be adjusted manually or skewed by software like NTP). Otherwise, performance.timing.
Performance - Web APIs
Performance.timing Read only A legacy PerformanceTiming object containing latency-related performance information. Not available in workers. Performance.memory Read only A non-standard extension added in Chrome, this property provides an object with basic memory usage information. You should not use this non-standard API. Performance.timeOrigin Read only Returns the high resolution
timestamp of the start time of the performance measurement. Methods The Performance interface doesn't inherit any methods. Performance.clearMarks() Removes the given mark from the browser's performance entry buffer. Performance.clearMeasures() Removes the given measure from the browser's performance entry buffer. Performance.clearResourceTimings() Removes all performance entries with a entryType...
..."resource" from the browser's performance data buffer. Performance.getEntries() Returns a list of PerformanceEntry objects based on the given filter. Performance.getEntriesByName() Returns a list of PerformanceEntry objects based on the given name and entry type. Performance.getEntriesByType() Returns a list of PerformanceEntry objects of the given entry type. Performance.mark() Creates a
timestamp in the browser's performance entry buffer with the given name. Performance.measure() Creates a named
timestamp in the browser's performance entry buffer between two specified marks (known as the start mark and end mark, respectively). Performance.now() Returns a DOMHighRes
TimeStamp representing the number of milliseconds elapsed since a reference instant. Performance.setResourceTimingBufferS...
PerformanceEntry.startTime - Web APIs
The startTime property returns the first recorded
timestamp of the performance entry. Note: This feature is available in Web Workers. The value returned by this property depends on the performance entry's type: "frame" - returns the
timestamp when the frame was started. "mark" - returns the
timestamp when the mark was created by a call to performance.mark(). "measure" - returns the
timestamp when the measure was created by a call to performance.measure(). "navigation" - returns the
timestamp with a value of "0". "resource" - returns the
timestamp immediately before the browser starts fetching the resource. This property is Read only . Syntax entry.startTime; Return value A DOMHighRes
TimeStamp representing the first
timestamp when the performance entry was created. Note: if the perf...
... Example The following example shows the use of the startTime property. function run_PerformanceEntry() { log("PerformanceEntry support ..."); if (performance.mark === undefined) { log("... ...
PerformanceMark - Web APIs
PerformanceMark is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighRes
TimeStamp (the mark) to the browser's performance timeline. <div id="interfaceDiagram" style="display: inline-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: inline-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveAspectRatio="xMinYMin meet"><a xlink:href="/docs/Web/API/PerformanceEntry" target="_top"><rect x="1" y="1" width="160" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="81" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E...
...5DD; pointer-events: all;} Properties This interface has no properties but it extends the following PerformanceEntry properties by qualifying/constraining the properties as follows: PerformanceEntry.entryType Returns "mark". PerformanceEntry.name Returns the name given to the mark when it was created via a call to performance.mark(). PerformanceEntry.startTime Returns the DOMHighRes
TimeStamp when performance.mark() was called. PerformanceEntry.duration Returns "0". (A mark has no duration.) Methods This interface has no methods. Example See the example in Using the User Timing API. Specifications Specification Status Comment User Timing Level 2The definition of 'PerformanceMark' in that specification. Working Draft User TimingThe defin...
PerformanceMeasure - Web APIs
PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighRes
TimeStamp (the measure) between two marks to the browser's performance timeline. <div id="interfaceDiagram" style="display: inline-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: inline-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveAspectRatio="xMinYMin meet"><a xlink:href="/docs/Web/API/PerformanceEntry" target="_top"><rect x="1" y="1" width="160" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="81" y="30" font-size="12px" font-family="Consolas,Monaco,Anda...
...095DD; pointer-events: all;} Properties This interface has no properties but it extends the following PerformanceEntry properties by qualifying/constrainting the properties as follows: PerformanceEntry.entryType Returns "measure". PerformanceEntry.name Returns the name given to the measure when it was created via a call to performance.measure(). PerformanceEntry.startTime Returns a
timestamp given to the measure when performance.measure() was called. PerformanceEntry.duration Returns a DOMHighRes
TimeStamp that is the duration of the measure (typically, the measure's end mark
timestamp minus its start mark
timestamp). Methods This interface has no methods. Example See the example in Using the User Timing API. Specifications Specification Status Comment ...
PerformanceResourceTiming.connectStart - Web APIs
Note: This feature is available in Web Workers. Syntax resource.connectStart; Return value A DOMHighRes
TimeStamp immediately before the browser starts to establish the connection to the server to retrieve the resource. Example In the following example, the value of the *Start and *End properties of all "resource" type events are logged. ...
...ng example, the value of the *Start and *End properties of all "resource" type events are logged. ...
PerformanceResourceTiming.domainLookupEnd - Web APIs
If the user agent has the domain information in cache, domainLookupStart and domainLookupEnd represent the times when the user agent starts and ends the domain data retrieval from the cache. Note: This feature is available in Web Workers. Syntax resource.domainLookupEnd; Return value A DOMHighRes
TimeStamp representing the time immediately after the browser finishes the domain name lookup for the resource. Example In the following example, the value of the *Start and *End properties of all "resource" type events are logged. ...
...ng example, the value of the *Start and *End properties of all "resource" type events are logged. ...
PerformanceResourceTiming.domainLookupStart - Web APIs
The domainLookupStart read-only property returns the
timestamp immediately before the browser starts the domain name lookup for the resource. Note: This feature is available in Web Workers. Syntax resource.domainLookupStart; Return value A DOMHighRes
TimeStamp immediately before the browser starts the domain name lookup for the resource. Example In the following example, the value of the *Start and *End properties of all "resource" type events are logged. ...
...ng example, the value of the *Start and *End properties of all "resource" type events are logged. ...
PerformanceResourceTiming.fetchStart - Web APIs
If there are HTTP redirects the property returns the time immediately before the user agent starts to fetch the final resource in the redirection. Note: This feature is available in Web Workers. Syntax resource.fetchStart; Return value A DOMHighRes
TimeStamp immediately before the browser starts to fetch the resource. Example In the following example, the value of the *Start and *End properties of all "resource" type events are logged. ...
...ng example, the value of the *Start and *End properties of all "resource" type events are logged. ...
PerformanceResourceTiming.redirectEnd - Web APIs
The redirectEnd read-only property returns a
timestamp immediately after receiving the last byte of the response of the last redirect. When fetching a resource, if there are multiple HTTP redirects, and any of the redirects have an origin that is different from the current document, and the timing allow check algorithm passes for each redirected resource, this property returns the time immediately after receiving the last byte of the response of the last redirect; otherwise, zero is returned. Note: This feature is available in Web Workers. Syntax resource.redirectEnd; Return value A
timestamp immediately after receiving the last byte of the response of the last redirect. Example In the following example, the value of the *Start and *End properties of all "resource" type events are logged.
...ng example, the value of the *Start and *End properties of all "resource" type events are logged. ...
PerformanceResourceTiming.requestStart - Web APIs
If the transport connection fails and the browser retires the request, the value returned will be the start of the retry request. There is no end property for requestStart. Note: This feature is available in Web Workers. Syntax resource.requestStart; Return value A DOMHighRes
TimeStamp representing the time immediately before the browser starts requesting the resource from the server Example In the following example, the value of the *Start and *End properties of all "resource" type events are logged. ...
...ng example, the value of the *Start and *End properties of all "resource" type events are logged. ...
PerformanceResourceTiming.responseEnd - Web APIs
Note: This feature is available in Web Workers. Syntax resource.responseEnd; Return value A DOMHighRes
TimeStamp immediately after the browser receives the last byte of the resource or immediately before the transport connection is closed, whichever comes first. Example In the following example, the value of the *Start and *End properties of all "resource" type events are logged. ...
...ng example, the value of the *Start and *End properties of all "resource" type events are logged. ...
PerformanceResourceTiming.responseStart - Web APIs
Note: This feature is available in Web Workers. Syntax resource.responseStart; Return value A DOMHighRes
TimeStamp immediately after the browser receives the first byte of the response from the server. Example In the following example, the value of the *Start and *End properties of all "resource" type events are logged. ...
...ng example, the value of the *Start and *End properties of all "resource" type events are logged. ...
PerformanceResourceTiming.secureConnectionStart - Web APIs
If a secure connection is not used, the property returns zero. Note: This feature is available in Web Workers. Syntax resource.secureConnectionStart; Return value If the resource is fetched over a secure connection, a DOMHighRes
TimeStamp immediately before the browser starts the handshake process to secure the current connection. If a secure connection is not used, this property returns zero. Example In the following example, the value of the *Start and *End properties of all "resource" type events are logged. ...
...ng example, the value of the *Start and *End properties of all "resource" type events are logged. ...
PushSubscription.expirationTime - Web APIs
Specifications Specification Status Comment Push APIThe definition of 'expirationTime' in that specification. Working Draft Initial definition. Browser Compatibility The compatibility table on this page is generated from structured data. ...
... Specifications Specification Status Comment Push APIThe definition of 'expirationTime' in that specification. Working Draft Initial definition. Browser Compatibility The compatibility table on this page is generated from structured data. ...
RTCIceCandidatePairStats.writable - Web APIs
bed by this candidate pair has received acknowledgement of receipt (ACK) for at least one ICE request and that STUN consent hasn't expired. ...
...E request and that STUN consent hasn't expired. ...
RTCIceCandidateStats.deleted - Web APIs
included in the output. ...
...dow.setInterval(function() { myPeerConnection.getStats(null).then(stats => { let statsOutput = ""; stats.forEach(report => { if ((stats.type === "local-candidate" || stats.type === "remote.candidate") && !stats.deleted) { statsOutput += `<h2>Report: ${report.type}</h3>\n<strong>ID:</strong> ${report.id}<br>\n` + `<strong>
Timestamp:</strong> ${report.
timestamp}<br>\n`; // Now the statistics for this report; we intentially drop the ones we // sorted to the top above Object.keys(report).forEach(statName => { if (statName !== "id" && statName !== "
timestamp" && statName !== "type") { statsOutput += `<strong>${statName}:</strong> ${report[statName]}<br>\n`; } }); } }); documen...
RTCIceCandidateStats.networkType - Web APIs
view. ...
...nction() { myPeerConnection.getStats(null).then(stats => { let statsOutput = ""; stats.forEach(report => { if ((stats.type === "local-candidate" || stats.type === "remote.candidate") && stats.networkType === "cellular") { statsOutput += `<h2>Report: ${report.type}</h3>\n<strong>ID:</strong> ${report.id}<br>\n` + `<strong>
Timestamp:</strong> ${report.
timestamp}<br>\n`; // Now the statistics for this report; we intentially drop the ones we // sorted to the top above Object.keys(report).forEach(statName => { if (statName !== "id" && statName !== "
timestamp" && statName !== "type") { statsOutput += `<strong>${statName}:</strong> ${report[statName]}<br>\n`; } }); } }); documen...
RTCRemoteOutboundRtpStreamStats.localId - Web APIs
RemoteOutbound.type === "remote-outbound-rtp") { let startRemoteOutbound = startReport.get(endRemoteOutbound.id); if (startRemoteOutbound) { let startInboundStats = findReportEntry(startReport, "remoteId", startRemoteOutbound.id); let endInboundStats = findReportEntry(endReport, "remoteId", endRemoteOutbound.id); let elapsedTime = (endRemoteOutbound.
timestamp - startRemoteOutbound.
timestamp) / 1000; /* in seconds */ let packetsSent = endRemoteOutbound.packetsSent - startRemoteOutbound.packetsSent; let bytesSent = endRemoteOutbound.bytesSent - startRemoteOutbound.bytesSent; let framesDecoded = endInboundStats.framesDecoded - startInboundStats.framesDecoded; let frameRate = framesDecoded / elapsedTime; ...
...nd-rtp record. We use the findReportEntry() function described in the previous section for that, storing the located inbound-rtp records in startInboundStats and endInboundStats. Now we have all the raw statistics needed to calculate the information we want to display, so we do so: We calculate the amount of time--elapsedTime--that elapsed between the two reports being sent by subtracting the
timestamp startReport from that of endReport. We then divide by 1000 to convert the result from milliseconds to seconds. We compute the number of packets sent during this interval--packetsSent--by subtracting the two reports' values for the packetsSent property. Similarly, the number of bytes sent during this interval--bytesSent--is calculated by subtracting the starting statistics object's bytesSent pro...
RTCRemoteOutboundRtpStreamStats - Web APIs
ing metrics specific to outgoing RTP streams. Properties In addition to the properties defined by RTCSentRtpStreamStats and its underlying RTCRtpStreamstats and RTCStats dictionaries, RTCRemoteOutboundRtpStreamStats defines the following properties. localId A DOMString which is used to find the local RTCInboundRtpStreamStats object which shares the same Synchronization Source (SSRC). remote
Timestamp A DOMHighRes
TimeStamp specifying the
timestamp (on the remote device) at which the statistics in the RTCRemoteOutboundRtpStreamStats object were sent by the remote endpoint. This is different from the
timestamp found in the base RTCStats dictionary; it represents the time at which the object's statistics were received or generated by the local endpoint. reportsSent An integer value indicating ...
...were sent by the remote endpoint. This is different from the
timestamp found in the base RTCStats dictionary; it represents the time at which the object's statistics were received or generated by the local endpoint. reportsSent An integer value indicating the total number of RTCP Sender Report (SR) blocks that this SSRC has sent. Usage notes The RTCRemoteOutboundRtpStreamStats object's remote
Timestamp proeprty provides statistics based on the received data's NTP
timestamp taken from an RTCP Sender Report (SR) block. Be aware that the remote clock may not be synchronized with the local clock (either in current time or speed at which time elapses). Specifications Specification Status Comment Identifiers for WebRTC's Statistics APIThe definition of 'RTCRemoteOutboundRtpS...
Geometry and reference spaces in WebXR - Web APIs
. The following code snippet shows two simple functions, degreesToRadians() and radiansToDegrees(), which convert back and forth between the two units for measuring angles. const RADIANS_PER_DEGREE = Math.PI / 180.0; let degreesToRadians = (deg) => deg * RADIANS_PER_DEGREE; let radiansToDegrees = (rad) => rad / RADIANS_PER_DEGREE; Times and durations Note that for security reasons, DOMHighRes
TimeStamp usually introduces a small amount of imprecision to the clock in order to prevent it from being used in fingerprinting and timing-based attacks. All times and durations in WebXR are measured using the DOMHighRes
TimeStamp type, which is a double-precision floating-point value specifying the time in milliseconds relative to the starting time. Since the value is a floating-point number, it may be a...
...entation management is between you and WebGL, though you do make use of the origin offset from the reference space in order to position the objects correctly in the 3D world. When it's time to render an animation frame, the callback function specified when you called the WebXR session's XRSession object's requestAnimationFrame() method is invoked. The callback receives as one of its parameters a
timestamp indicating the time at which the frame takes place, and should perform all rendering for the corresponding animation frame. As the callback is repeatedly called with increasing time values, the callback generates a sequence of frames which are presented using the XR hardware, thereby showing a 3D scene to the user. You can learn more about the animation process in the article Rendering and the ...
window.cancelAnimationFrame() - Web APIs
ndow.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame; var cancelAnimationFrame = window.cancelAnimationFrame || window.mozCancelAnimationFrame; var start = window.mozAnimationStartTime; // Only supported in FF. Other browsers can use something like Date.now(). ...
...window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame; var cancelAnimationFrame = window.cancelAnimationFrame || window.mozCancelAnimationFrame; var start = window.mozAnimationStartTime; // Only supported in FF. Other browsers can use something like Date.now(). ...
<input type="datetime-local"> - HTML: Hypertext Markup Language
ing attributes: Attribute Description max The latest date and time to accept min The earliest date and time to accept step The stepping interval to use for this input, such as when clicking arrows on spinner controls or performing validation max The latest date and time to accept. ...
...If the value of the min attribute isn't a valid string which follows the format yyyy-MM-ddThh:mm, then the element has no minimum value. This value must specify a date string earlier than or equal to the one specified by the max attribute. ...
Date() constructor - JavaScript
is by using the new operator. If you simply call the Date object directly, such as now = Date(), the returned value is a string rather than a Date object. Parameters There are four basic forms for the Date() constructor: No parameters When no parameters are provided, the newly-created Date object represents the current date and time as of the time of instantiation. Time value or
timestamp number value An integer value representing the number of milliseconds since January 1, 1970, 00:00:00 UTC (the ECMAScript epoch, equivalent to the UNIX epoch), with leap seconds ignored. Keep in mind that most UNIX
Timestamp functions are only accurate to the nearest second.
Timestamp string dateString A string value representing a date, specified in a format recogniz...
...econds since January 1, 1970, 00:00:00 UTC (the ECMAScript epoch, equivalent to the UNIX epoch), with leap seconds ignored. Keep in mind that most UNIX
Timestamp functions are only accurate to the nearest second.
Timestamp string dateString A string value representing a date, specified in a format recognized by the Date.parse() method. (These formats are IETF-compliant RFC 2822
timestamps, and also strings in a version of ISO8601.) Note: Parsing of date strings with the Date constructor (and Date.parse(), which works the same way) is strongly discouraged due to browser differences and inconsistencies. Support for RFC 2822 format strings is by convention only. Support for ISO 8601 formats differs in that date-only strings (e.g. "1970-01-01") are treated as UTC,...
Date - JavaScript
represent a single moment in time in a platform-independent format. Date objects contain a Number that represents milliseconds since 1 January 1970 UTC. TC39 is working on Temporal, a new Date/Time API. Read more about it on the Igalia blog and fill out the survey. It needs real-world feedback from web developers, but is not yet ready for production use! Description The ECMAScript epoch and
timestamps A JavaScript date is fundamentally specified as the number of milliseconds that have elapsed since midnight on January 1, 1970, UTC. This date and time is the same as the UNIX epoch, which is the predominant base value for computer-recorded date and time values. Note: It's important to keep in mind that while the time value at the heart of a Date object is UTC, the basic methods to fetch the d...
... equivalent) is strongly discouraged due to browser differences and inconsistencies. let today = new Date() let birthday = new Date('December 17, 1995 03:24:00') let birthday = new Date('1995-12-17T03:24:00') let birthday = new Date(1995, 11, 17) // the month is 0-indexed let birthday = new Date(1995, 11, 17, 3, 24, 0) let birthday = new Date(628021800000) // passing epoch
timestamp To get Date, Month and Year or Time let [month, date, year] = ( new Date() ).toLocaleDateString().split("/") let [hour, minute, second] = ( new Date() ).toLocaleTimeString().slice(0,7).split(":") Two digit years map to 1900 - 1999 In order to create and get dates between the years 0 and 99 the Date.prototype.setFullYear() and Date.prototype.getFullYear() methods should be used. let dat...
Certificate Transparency - Web security
logarithmic O(log n) time. Certificate transparency initially came about in 2013 against a backdrop of CA compromises (DigiNotar breach in 2011), questionable decisions (Trustwave subordinate root incident in 2012) and technical issuance issues (weak, 512 bit certificate issuance by Digicert Sdn Bhd of Malaysia). ...
...gned certificate
timestamp (SCT) is generated and returned. This serves as a proof that the certificate has been submitted and will be added to the log. The specification states that compliant servers must provide a number of these SCTs to TLS clients when they connect. This can be accomplished via a number of different mechanisms: X.509v3 certificate extension which embeds signed certificate
timestamps directly into the leaf certificate A TLS extension of type signed_certificate_
timestamp sent during the handshake OCSP stapling (that is, the status_request TLS extension) and providing a SignedCertificate
TimestampList with one or more SCTs With the X.509 certificate extension, the included SCTs are decided by the issuing CA. There should be no need for web servers to be modified if this mec...
Finding window handles - Archive of obsolete content
_data(browserWindow_madeIntoGdkWinPtr, gptr.address()); console.info('rez_gwgud:', rez_gwgud, /*rez_gwgud.toString(),*/ uneval(rez_gwgud)); // return is void so cant do .toString on it var browserWindow_madeIntoGtkWindowPtr = ctypes.cast(gptr, GtkWindow.ptr); // focusing window this way is better, so it maintains proper history in case you or some other app want to focus "most recent window" by
timestamp // var rez_gst = gdk_x11_get_server_time(browserWindow_madeIntoGdkWinPtr); // console.info('rez_gst:', rez_gst, uneval(rez_gst)); // return is a number of ms since the computer (XServer) was on // var rez_gwpwt = gtk_window_present_with_time(browserWindow_madeIntoGtkWindowPtr, rez_gst); // console.info('rez_gwaf:', rez_gwpwt, uneval(rez_gwpwt)); var rez_gwp = gtk_window_present(browserWindow_mad...
JavaScript timers - Archive of obsolete content
some code snippets which simplify and abstract the management of daemons. requestAnimationFrame() requestAnimationFrame() tells the browser that you wish to perform an animation and requests that the browser schedule a repaint of the window for the next animation frame. The method takes as an argument a callback to be invoked before the repaint. performance.now() performance.now() returns a
timestamp, measured in milliseconds, accurate to one thousandth of a millisecond. This
timestamp is equal to the number of milliseconds since the navigationStart attribute of the performance.timing interface. Date.now() Date.now() returns the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC. Using JavaScript timers within workers Workers can use timeouts and intervals just like the ma...
XPCOM Objects - Archive of obsolete content
or most cases is AUTF8String. You can read more about it in the XPCOM String Guide. Integers short, unsigned short, long, unsigned long, PRInt32, PRUInt32 PRInt32 is the equivalent to long. Most PR* types have an easier to read equivalent, so it is better to use those. Floating point float Boolean boolean, PRBool Void void
Timestamps PRTime This type is used to pass
timestamps measured in milliseconds, such as the output of the getTime() method in a Javascript Date object. There are more details about XPIDL in the XPDIL Syntax definition. Creating Your Own Components JavaScript XPCOM Components As we've said before, we recommend using JSM whenever you can. Yet there are some cases where you don't have a choic...
MozAudioAvailable - Archive of obsolete content
arget (the topmost target in the DOM tree). type Read only DOMString The type of event. bubbles Read only boolean Does the event normally bubble? cancelable Read only boolean Is it possible to cancel the event? frameBuffer Read only FrameBuffer (array) The decoded audio sample data (i.e., floats). time Read only float
Timestamp for these samples measured from the start in seconds. ...
2006-11-03 - Archive of obsolete content
aborting a new event/edit event dialog Discussions about behaves of new event/edit event. wcap calendar subscription Discussions about calendar subscriptions. ...
Plug-in Development Overview - Gecko Plugin API Reference
ypes DOM object. NPP_GetValue is called after the plug-in is initialized to get the scripting interface while NP_GetValue is called during initialization to retrieve the plug-in's name and description, which will appear in the navigator.plugins DOM object which is used to populate about:plugins. Caution: Gecko caches the values returned by these functions and will only call it if the plug-in's
timestamp has changed. See bug 125469. Mac OS X Mac OS X plug-ins are found according to the section How Gecko Finds Plug-ins. Plug-ins are identified by file type NSPL. To determine the supported MIME types, Gecko first checks for registry information in the plugins Info.plist. If nothing is found there, Gecko checks for an NP_GetMIMEDescription entry point, and will use the information returned by th...
Basic native form controls - Learn web development
nd have warnings to deter users from using insecure forms. For more information on what Firefox implements, see Insecure passwords. Hidden content Another original text control is the hidden input type. This is used to create a form control that is invisible to the user, but is still sent to the server along with the rest of the form data once submitted -- for example you might want to submit a
timestamp to the server stating when an order was placed. Because it is hidden, the user can not see nor intentionally edit the value, it will never receive focus, and a screen reader will not notice it either. <input type="hidden" id="
timestamp" name="
timestamp" value="1286705410"> If you create such an element, it's required to set its name and value attributes. The value can be dynamically set via Ja...
Accessibility/LiveRegionDevGuide
e heart of any live region support module is the priority queue. It is responsible for queuing messages derived from live region events, where priority is determined by chronological order and the live politeness properties. In addition to the standard priority queue methods, additional methods will need to be implemented that purge the queue based on one of the priority criterion. The "purge by
timestamp" method will be used to remove old messages that are no longer deemed relevant while "purge by politeness" is used to satisfy the ARIA live politeness specification. The later method will be explained in detail below. Event Types The table for web page mutation event types lists the two major event types associated with live regions, namely text-changed and object changed events. Both will be...
How to investigate Disconnect failures
t sp we close Firefox with the modal frozen. We cannot investigate failures via mozmill, because we do not catch the crashes, so the crashes' information is not logged; we have to go to ci machines and investigate directly. Check if Firefox crashed: Windows: [user]/AppData\Roaming\Mozilla\Firefox\Crash Reports Ubuntu: [user/home]/.mozilla/firefox/Crash Reports And there we can check by
timestamp if Firefox crashed when we had the disconnect. Check the Event Viewer to check if an OS event interfered with the test run. The event viewer can be found on Windows: Computer Management > Event Viewer > Windows Logs > Application And here we look for errors that overlapped with the test run; we cannot see the freezes (the main thread is blocked). Crashes (not freezes) If we have a c...
PopupNotifications.jsm
is selected by the user. Notification options The notification options object lets you further customize the notification panel. Any combination of the following properties may be provided: persistence An integer value indicating the number of page loads for which the notification will persist; once this many page loads have occurred, the notification may dismiss automatically. timeout A
timestamp (milliseconds since the epoch) indicating the earliest time after which the notification can be automatically dismissed. Notifications that specify a timeout value will not be automatically dismissed until this time. The user may manually dismiss the notification, however. For most use cases, the value of this parameter should be Date.now() plus an offset indicating the amount of time the notific...
Webapps.jsm
r: function(aHandler) unregisterUpdateHandler: function(aHandler) notifyUpdateHandlers: function(aApp, aManifest, aZipPath) _getAppDir: function(aId) _writeFile: function(aPath, aData) doGetList: function() doExport: function(aMsg, aMm) doImport: function(aMsg, aMm) doExtractManifest: function(aMsg, aMm) doLaunch: function (aData, aMm) launch: function launch(aManifestURL, aStartPoint, a
TimeStamp, aOnSuccess, aOnFailure) close: function close(aApp) cancelDownload: function cancelDownload(aManifestURL, aError) startOfflineCacheDownload: function(aManifest, aApp, aProfileDir, aIsUpdate) computeManifestHash: function(aManifest) updateAppHandlers: function(aOldManifest, aNewManifest, aApp) checkForUpdate: function(aData, aMm) doInstall: function doInstall(aData, aMm) doInstallPackage:...
DMD
JavaScript code you can do the following. const Cc = Components.classes; let mydumper = Cc["@mozilla.org/memory-info-dumper;1"] .getService(Ci.nsIMemoryInfoDumper); mydumper.dumpMemoryInfoToTempDir(identifier, anonymize, minimize); This will dump memory reports and DMD output to the temporary directory. identifier is a string that will be used for part of the filename (or a
timestamp will be used if it is an empty string); anonymize is a boolean that indicates if the memory reports should be anonymized; and minimize is a boolean that indicates if memory usage should be minimized first. (Linux only) You can send signal 34 to the firefox process, e.g. with the following command. $ killall -34 firefox Each one of these steps triggers all the memory reporters and then DMD ...
Gecko Profiler FAQ
this stack in the "after" profile> minus <number of samples under this stack in the "before" profile>. That tree is then displayed in the usual way, with weights in decreasing order from top to bottom. Then the call stacks whose cost increased the most in the "after" profile will be at the top, and those are the ones you usually want to look at if you caused a regression. In this view, the
timestamps of individual samples / stacks will not be meaningful. profiler.firefox.com does not have a comparison view at the moment. I can help you add one, though. There is documentation for the Gecko profile format. Is it worth slowing down CPU to increase the profiler resolution? It depends on what you are trying to profile to some extent. Usually...
TraceMalloc
ne identified by logfd, returning the previous fd (so you can maintain a number of open files; keep their fds in a JS Array!). TraceMallocCloseLogFD(logfd) - close the log file identified by logfd, flushing its buffer of any events first. If logfd identifies the current log file, change the current log file to the default log file given by the --trace-malloc command line argument. TraceMallocLog
Timestamp(caption) - log a
timestamp event to the current log file, annotating the log even with the caption string. TraceMallocDumpAllocations(pathname) - dump a human-readable listing of all traced, live allocations. See nsTraceMalloc.h for detailed comments on the log file format. Analyzing the shutdown log The shutdown log is a basic tool for finding memory leaks. The shutdown log contains the stack ...
Index
l X.509 certificate extensions are described in RFC 5280. -6 | --extKeyUsage keyword,keyword Add an extended key usage extension to a certificate that is being created or added to the database. Several keywords are available: o serverAuth o clientAuth o codeSigning o emailProtection o
timeStamp o ocspResponder o stepUp o critical X.509 certificate extensions are described in RFC 5280. -7 emailAddrs Add a comma-separated list of email addresses to the subject alternative name extension of a certificate or certificate request that is being created or added to the database. Subject alt...
NSS 3.28 release notes
Portable Runtime (NSPR) 4.13.1 or newer. NSS 3.28 source distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_28_RTM/src/ New in NSS 3.28 New Functionality NSS includes support for TLS 1.3 draft -18. This includes a number of improvements to TLS 1.3: The signed certificate
timestamp, used in certificate transparency, is supported in TLS 1.3 (bug 1252745). Key exporters for TLS 1.3 are supported (bug 1310610). This includes the early key exporter, which can be used if 0-RTT is enabled. Note that there is a difference between TLS 1.3 and key exporters in older versions of TLS. TLS 1.3 does not distinguish between an empty context and no context. The TLS 1.3 (draft) pro...
NSS 3.53 release notes
ag (Bug 1622033) to disable that deprecation in order to use the algorithm. Algorithms marked as deprecated will ultimately be removed. Several root certificates in the Mozilla program now set the CKA_NSS_SERVER_DISTRUST_AFTER attribute, which NSS consumers can query to further refine trust decisions. (Bug 1618404, Bug 1621159) If a builtin certificate has a CKA_NSS_SERVER_DISTRUST_AFTER
timestamp before the SCT or NotBefore date of a certificate that builtin issued, then clients can elect not to trust it. This attribute provides a more graceful phase-out for certificate authorities than complete removal from the root certificate builtin store. Bugs fixed in NSS 3.53 Bug 1640260 - Initialize PBE params (ASAN fix) Bug 1618404 - Set CKA_NSS_SERVER_DISTRUST_AFTER for Symante...
NSS environment variables
the default before NSS 3.12.3. 3.12.3 PKIX_OBJECT_LEAK_TEST_ABORT_ON_LEAK String (any non-empty value) Debug variable for PKIX leak checking. Note: The code must be built with PKIX_OBJECT_LEAK_TEST defined to use this functionality. 3.12 SOCKETTRACE Boolean (1 to enable) Controls tracing of socket activity by libPKIX. Messages sent and received will be
timestamped and dumped (to stdout) in standard hex-dump format. 3.12 SQLITE_FORCE_PROXY_LOCKING Boolean (1 to enable) 1 means force always use proxy, 0 means never use proxy, NULL means use proxy for non-local files only. 3.12.6 SSLBYPASS Boolean (1 to enable) Uses PKCS#11 bypass for performance improvement. Do not set this variable if FIPS is enabled. 3.1...
NSS tools : certutil
itical X.509 certificate extensions are described in RFC 5280. -6 | --extKeyUsage keyword,keyword Add an extended key usage extension to a certificate that is being created or added to the database. Several keywords are available: + serverAuth + clientAuth + codeSigning + emailProtection +
timeStamp + ocspResponder + stepUp + critical X.509 certificate extensions are described in RFC 5280. -7 emailAddrs Add a comma-separated list of email addresses to the subject alternative name extension of a certificate or certificate request that is being created or added to the database. Subject alternative n...
certutil
l X.509 certificate extensions are described in RFC 5280. -6 | --extKeyUsage keyword,keyword Add an extended key usage extension to a certificate that is being created or added to the database. Several keywords are available: o serverAuth o clientAuth o codeSigning o emailProtection o
timeStamp o ocspResponder o stepUp o critical X.509 certificate extensions are described in RFC 5280. -7 emailAddrs Add a comma-separated list of email addresses to the subject alternative name extension of a certificate or certificate request that is being created or added to the database. Subject alt...
The Publicity Stream API
not allowed to access the publicity stream networkError - if the publicity server is unreachable for_apps is a json list of apps that this store has (each represented as its origin URL), so that stream events not relating to applications in a given presentation context can be excluded from the return value. If null or an empty list is passed, events for all apps are returned. since The
timestamp of the earliest event you want returned. If not specified, will default to the beginning of the stream. before The
timestamp of the latest event you want returned. If not specified, will default to now. count The maximum number of events to return, with preference given to more recent events [make this preference its own parameter?]. If not specified, will default to [25]. ...
Monitoring HTTP activity
s very simple, requiring you to implement a single method, nsIHttpActivityObserver.observeActivity(), which gets called each time an action of interest takes place on the HTTP channel. ...
nsIDOMEvent
Target differs from .originalTarget in that it will never contain anonymous content. Read only. isTrusted boolean Read only. originalTarget nsIDOMEventTarget The original target of the event, before any retargetings. Read only. target nsIDOMEventTarget Used to indicate the EventTarget to which the event was originally dispatched. Read only.
timeStamp DOM
TimeStamp Used to specify the time (in milliseconds relative to the epoch) at which the event was created. Due to the fact that some systems may not provide this information the value of
timeStamp may be not available for all events. When not available, a value of 0 will be returned. Examples of epoch time are the time of the system start or 0:0:0 UTC 1st January 1970. Read only. ...
nsIDOMGeoPosition
c time. 1.0 66 Introduced Gecko 1.9.1 Inherits from: nsISupports Last changed in Gecko 1.9.2 (Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0) Attributes Attribute Type Description address nsIDOMGeoPositionAddress The address of the user's current location, if available. Read only. coords nsIDOMGeoPositionCoords The user's current position information. Read only.
timestamp DOM
TimeStamp The time at which the reading was taken. Read only. See also Using geolocation ...
nsIMsgDBHdr
sition of the offline copy of an IMAP or news messages within the offline store. offlineMessageSize unsigned long Indicates the size of the offline copy of an IMAP or news message. date PRTime Indicates the date of this message; the equivalent header is the Date: header. dateInSeconds unsigned long Readonly: Indicates the date of this message as a Unix
timestamp. messageId string Indicates the message ID of this message, without angle brackets. If setting this value, outer angle brackets will be stripped if present. ccList string Indicates the Cc list of this message; the equivalent header is the Cc: header. bccList string [new in .31] Indicates the Bcc list of this message; the equivalent header is the Bcc: h...
nsIPermissionManager
viously registered using the add() method. removePermission() Remove a given permission from the stored permissions. void removePermission( in nsIPermission perm ); Parameters nsIPermission The permission which will be removed. removeAllSince() Remove permission information for a given host string and permission type. void remove( in int64_t since ); Parameters since Epoch
timestamp. Permission information stored after this
timestamp will be removed. removeAll() Remove permission information for all URIs. void removeAll(); Parameters None. testExactPermission() Checks if a URI is permitted to perform an action. This requires an exact hostname match, subdomains are not a match. PRUint32 testExactPermission( in nsIURI uri, in string type ); Parameters uri T...
nsIScriptError
d by sourceName. You are responsible for providing that line. You may pass null if you are lazy; that will prevent showing the source line in JavaScript Console. Read only. sourceName AString The URL of the file in which the error occurred. This will be a hyperlink in the JavaScript Console, so you should use a real URL. You may pass null if it's not applicable. Read only.
timeStamp long long Elapsed time, in milliseconds, from a platform-specific zero time to the time the message was created. Read only. Flag constants Constant Value Description errorFlag 0x0 Error messages. A pseudo-flag for the default, error case. warningFlag 0x1 Warning messages. exceptionFlag 0x2 An exception was thrown for this ...
nsIScriptError2
The inner window ID with which the error is associated. This is zero if the error was initialized by calling nsIScriptError.init() instead of initWithWindowID(). Read only. outerWindowID unsigned long long The window ID with which the error is associated. This is zero if the error was initialized by calling nsIScriptError.init() instead of initWithWindowID(). Read only.
timeStamp long long Elapsed time, in milliseconds, from a platform-specific zero time to the time the message was created. Read only. Methods initWithWindowID() void init( in wstring message, in wstring sourceName, in wstring sourceLine, in PRUint32 lineNumber, in PRUint32 columnNumber, in PRUint32 flags, in string category, in unsigned long long innerWindowID ); Parameter...
nsISmsDatabaseService
void markMessageRead(in long messageId, in boolean value, in long requestId, [optional] in unsigned long long processId) Methods saveReceivedMessage() void saveReceivedMessage( in DOMString aSender, in DOMString aBody, in unsigned long long aDate ); Parameters aSender A DOMString with the sender of the text message. aBody A DOMString containing the body text of the message. aDate The
timestamp of the message. saveSentMessage() void saveSentMessage( in DOMString a Receiver, in DOMString aBody, in unsigned long long aDate ); Parameters aReceiver A DOMString with the receiver of the text message. aBody A DOMString containing the body text of the message. aDate The
timestamp of the message. getMessage() void getMessage( in long messageId, in long requestId, [optional] in un...
LDAP Support
See Bug #119291 for more details. Original Document Information Author(s): Scott MacGregor Copyright Information: Portions of this content are (C) 1998-2010 by individual mozilla.org contributors; content available under a Creative Commons license | Details. ...
WebIDL bindings
nsISupports* for the global on the main thread, if such is available. It also has a Context() method that returns the JSContext* the call is happening on. A caveat: the compartment of the JSContext may not match the compartment of the global! Date Date is a class declared in BindingDeclarations.h and exported to mozilla/dom/BindingDeclarations.h that is used to represent WebIDL Dates. It has a
TimeStamp() method returning a double which represents a number of milliseconds since the epoch, as well as Set
TimeStamp() methods that can be used to initialize it with a double
timestamp or a JS Date object. It also has a ToDateObject() method that can be used to create a new JS Date. ErrorResult ErrorResult is a class declared in ErrorResult.h and exported to mozilla/ErrorResult.h that is used to repr...
Plug-in Development Overview - Plugins
ypes DOM object. NPP_GetValue is called after the plug-in is initialized to get the scripting interface while NP_GetValue is called during initialization to retrieve the plug-in's name and description, which will appear in the navigator.plugins DOM object which is used to populate about:plugins. Caution: Gecko caches the values returned by these functions and will only call it if the plug-in's
timestamp has changed. See bug 125469. Mac OS X Mac OS X plug-ins are found according to the section How Gecko Finds Plug-ins. Plug-ins are identified by file type NSPL. To determine the supported MIME types, Gecko first checks for registry information in the plugins Info.plist. If nothing is found there, Gecko checks for an NP_GetMIMEDescription entry point, and will use the information returned by th...
Debugger.Memory - Firefox Developer Tools
GC cycle. It has the following properties: collections The collections property's value is an array. Because SpiderMonkey's collector is incremental, a full collection cycle may consist of multiple discrete collection slices with the JS mutator running interleaved. For each collection slice that occurred, there is an entry in the collections array with the following form: { "start
Timestamp":
timestamp, "end
Timestamp":
timestamp, } Here the
timestamp values are
timestamps of the GC slice's start and end events. reason A very short string describing the reason why the collection was triggered. Known values include the following: "API" "EAGER_ALLOC_TRIGGER" "DESTROY_RUNTIME" "LAST_DITCH" "TOO_MUCH_MALLOC" "ALLOC_TRIGGER" "DEBUG_GC" "COMPARTMEN...
Basic operations - Firefox Developer Tools
ings, and check the "Memory" box under "Default Firefox Developer Tools": From Firefox 50 onwards, the Memory tool is enabled by default. Taking a heap snapshot To take a snapshot of the heap, click the "Take snapshot" button, or the camera icon on the left: The snapshot will occupy the large pane on the right-hand side. On the left, you'll see an entry for the new snapshot, including its
timestamp, size, and controls to save or clear this snapshot: Clearing a snapshot To remove a snapshot, click the "X" icon: Saving and loading snapshots If you close the Memory tool, all unsaved snapshots will be discarded. To save a snapshot click "Save": You'll be prompted for a name and location, and the file will be saved with an .fxsnapshot extension. To load a snapshot from an existing .f...
Frame rate - Firefox Developer Tools
l the updates that need to be made synchronously in response to some event. However, consistency is especially important: if you can't deliver 60fps, it's better to deliver lower frame rates more consistently, and avoid sudden dips in the frame rate which cause the site to freeze. Frame rate graph The frame rate graph is found in the Recording overview part of the Performance tool. It takes a
timestamp when the browser finishes a frame, and uses this to keep track of the frame rate over the course of the recording. The x-axis is time over the profile period, and there are three annotations: the maximum frame rate, the average frame rate, and the lowest frame rate. Using the frame rate graph The great value of the frame rate graph is that, like the Web Console, it gives you a quick indication...
Settings - Firefox Developer Tools
eshold at which attributes are truncated, you can edit the about:config preference "devtools.markup.collapseAttributeLength". Default color unit A setting to control how colors are represented in the inspector: Hex HSL(A) RGB(A) color name As authored. Enable layout panel Enable the experimental layout panel. This setting only exists in Firefox Nightly. Web Console Enable
timestamps Controls whether the Web Console displays
timestamps. The Web Console defaults to hiding
timestamps. Enable new console frontend Switch to the experimental new console. This setting only exists in Firefox Nightly. Debugger Enable Source Maps Enable source map support in the debugger. Enable new debugger frontend Enable the new debugger. This setting only exists in Firefox Nightly. S...
Tips - Firefox Developer Tools
just the section visible in the browser windows. The file name will have -fullpage appended to it as well. See Web Console Helpers for all parameters. In the console output: Click on the inspector icon () next to an element in the output to select it within the Inspector. Check "Enable persistent logs" in the settings to keep logged messages from before even after navigation. Check "Enable
timestamps" in the settings to show
timestamps besides the logged messages. Debugger Skip JavaScript libraries in debugging sessions via the black box icon (). Press Ctrl+Alt+F to search in all scripts. Press Ctrl+D to search for a function definition. Press Ctrl+L to go to a specific line. Style Editor The black box icon () in the style sheet pane toggles the visibility of a style sheet. Cli...
Web Console UI Tour - Firefox Developer Tools
le. Filter categories: You can click a filter category (such as Errors, Warnings, CSS, or XHR) to display just those types of messages. Settings ("gear" menu): New in Firefox 71, you can click the gear icon to access the new settings menu, where you can toggle the following features on and off: Persist Logs: When enabled, the console doesn't clear on page reload, or new page load. Show
Timestamps: When enabled,
timestamps are shown on the left-hand side of each message row to say when the messages were logged. Group Similar Messages: When enabled, similar types of messages are grouped together, with an indicator of the number of occurrences. Enable Autocompletion: When enabled, the JavaScript interpreter attempts to autocomplete while you type. Instant Evaluation: When enabled, ...
AudioContext - Web APIs
r sources. AudioContext.createMediaStreamDestination() Creates a MediaStreamAudioDestinationNode associated with a MediaStream representing an audio stream which may be stored in a local file or sent to another computer. AudioContext.createMediaStreamTrackSource() Creates a MediaStreamTrackAudioSourceNode associated with a MediaStream representing an media stream track. AudioContext.getOutput
Timestamp() Returns a new Audio
Timestamp object containing two audio
timestamp values relating to the current audio context. AudioContext.resume() Resumes the progression of time in an audio context that has previously been suspended/paused. AudioContext.suspend() Suspends the progression of time in the audio context, temporarily halting audio hardware access and reducing CPU/battery usage in the proc...
BaseAudioContext.currentTime - Web APIs
It starts at 0. Syntax var curTime = baseAudioContext.currentTime; Example var AudioContext = window.AudioContext || window.webkitAudioContext; var audioCtx = new AudioContext(); // Older webkit/blink browsers require a prefix ... console.log(audioCtx.currentTime); Reduced time precision To offer protection against timing attacks and fingerprinting, the precision of audioCtx.currentTime might get rounded depending on browser settings. ...
BlobEvent.BlobEvent() - Web APIs
The BlobEvent() constructor returns a newly created BlobEvent object with an associated Blob. Syntax blobEvent = new BlobEvent({data: aSpecificBlob}[, timecode]); Arguments The BlobEvent() constructor also inherits arguments from Event(). data Is a Blob associated with the event. timecode Optional A DOMHighRes
TimeStamp to be used in initializing the blob event. Specifications Specification Status Comment MediaStream RecordingThe definition of 'BlobEvent: BlobEvent' in that specification. Working Draft Initial definition. ...
BlobEvent - Web APIs
rily, associated with media content. Constructor BlobEvent() Creates a BlobEvent event with the given parameters. Properties Inherits properties from its parent Event. BlobEvent.data Read only A Blob representing the data associated with the event. The event was fired on the EventTarget because of something happening on that specific Blob. BlobEvent.timecode Read only A DOMHighRes
TimeStamp indicating the difference between the
timestamp of the first chunk in data and the
timestamp of the first chunk in the first BlobEvent produced by this recorder. Note that the timecode in the first produced BlobEvent does not need to be zero. Methods No specific method; inherits methods from its parent Event. Specifications Specification Status Comment MediaStream ...
BudgetState.time - Web APIs
Browser Compatibility The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
BudgetState - Web APIs
Methods None. Browser Compatibility The compatibility table on this page is generated from structured data. ...
console - Web APIs
e Firefox performance tool). console.table() Displays tabular data as a table. console.time() Starts a timer with a name specified as an input parameter. Up to 10,000 simultaneous timers can run on a given page. console.timeEnd() Stops the specified timer and logs the elapsed time in seconds since it started. console.timeLog() Logs the value of the specified timer to the console. console.
timeStamp() Adds a marker to the browser's Timeline or Waterfall tool. console.trace() Outputs a stack trace. console.warn() Outputs a warning message. You may use string substitution and additional arguments with this method. Examples Outputting text to the console The most frequently-used feature of the console is logging of text and other data. There are four categories of output you can gene...
CustomEvent - Web APIs
preventDefault() and Event.defaultPrevented instead, but you can use returnValue if you choose to do so. Event.srcElement A non-standard alias (from old versions of Microsoft Internet Explorer) for Event.target. Some other browsers are starting to support it for web compatibility purposes. Event.target Read only A reference to the target to which the event was originally dispatched. Event.
timeStamp Read only The time at which the event was created (in milliseconds). By specification, this value is time since epoch--but in reality, browsers' definitions vary. In addition, work is underway to change this to be a DOMHighRes
TimeStamp instead. Event.type Read only The name of the event. Case-insensitive. Event.isTrusted Read only Indicates whether or not the event was initiated by the br...
Document Object Model (DOM) - Web APIs
e event handlers attached to them. Once an event is triggered, the event handlers get executed. To learn more about what the DOM is and how it represents documents, see our article Introduction to the DOM. ...
EXT_disjoint_timer_query.queryCounterEXT() - Web APIs
The EXT_disjoint_timer_query.queryCounterEXT() method of the WebGL API records the current time into the corresponding query object. Syntax void ext.queryCounterEXT(query, target); Parameters query A WebGLQuery object for which to record the current time. target A GLenum specifying the target of the time query. Must be ext.
TIMESTAMP_EXT. Return value None. Examples var ext = gl.getExtension('EXT_disjoint_timer_query'); var startQuery = ext.createQueryEXT(); var endQuery = ext.createQueryEXT(); ext.queryCounterEXT(startQuery, ext.
TIMESTAMP_EXT); // ... ext.queryCounterEXT(endQuery, ext.
TIMESTAMP_EXT); Specifications Specification Status Comment EXT_disjoint_timer_queryThe definition of 'EXT_disjoint_timer_query' in that specification. Working Draft ...
EXT_disjoint_timer_query - Web APIs
the number of bits used to hold the query result for the given target. ext.CURRENT_QUERY_EXT A WebGLQuery object, which is the currently active query for the given target. ext.QUERY_RESULT_EXT A GLuint64EXT containing the query result. ext.QUERY_RESULT_AVAILABLE_EXT A GLboolean indicating whether or not a query result is available. ext.TIME_ELAPSED_EXT Elapsed time (in nanoseconds). ext.
TIMESTAMP_EXT The current time. ext.GPU_DISJOINT_EXT A GLboolean indicating whether or not the GPU performed any disjoint operation. Methods This extension exposes eight new methods. ext.createQueryEXT() Creates a new WebGLQuery. ext.deleteQueryEXT() Deletes a given WebGLQuery. ext.isQueryEXT() Returns true if a given object is a WebGLQuery. ext.beginQueryEXT() The timer starts ...
Element.innerHTML - Web APIs
Then the message is appended to the box with the class "log". We add a second method that logs information about MouseEvent based events (such as mousedown, click, and mouseenter): function logEvent(event) { var msg = "Event <strong>" + event.type + "</strong> at <em>" + event.clientX + ", " + event.clientY + "</em>"; log(msg); } Then we use this as the ev...
Event - Web APIs
preventDefault() and Event.defaultPrevented instead, but you can use returnValue if you choose to do so. Event.srcElement A non-standard alias (from old versions of Microsoft Internet Explorer) for Event.target. Some other browsers are starting to support it for web compatibility purposes. Event.target Read only A reference to the target to which the event was originally dispatched. Event.
timeStamp Read only The time at which the event was created (in milliseconds). By specification, this value is time since epoch--but in reality, browsers' definitions vary. In addition, work is underway to change this to be a DOMHighRes
TimeStamp instead. Event.type Read only The name of the event. Case-insensitive. Event.isTrusted Read only Indicates whether or not the event was initiated by the br...
Using the Frame Timing API - Web APIs
Firefox performance tool Firefox's performance tool allows the developer to record a piece of the user's interaction and the data obtained during the recording is used to create a profile of the browser's activity. The profile includes a waterfall of the activity such as event handling, layout, painting, scripting, etc. Firefox's performance tool also includes a frame rate graph which provides
timestamps for each frame including the average frame rate and the minimum and maximum rates (for a specific recording session). This data, along with the waterfall data, gives an indication of where a site might be having frame related performance problems (for example, by correlating the recording's minimum rates with their respective waterfall events). The performance tool's flame chart and call tree t...
Gamepad - Web APIs
gamepad is still connected to the system. Gamepad.id Read only A DOMString containing identifying information about the controller. Gamepad.index Read only An integer that is auto-incremented to be unique for each device currently connected to the system. Gamepad.mapping Read only A string indicating whether the browser has remapped the controls on the device to a known layout. Gamepad.
timestamp Read only A DOMHighRes
TimeStamp representing the last time the data for this gamepad was updated. Experimental extensions to Gamepad The following interfaces are defined in the Gamepad Extensions specification, and provide access to experimental features like haptic feedback and WebVR controller pose information. Gamepad.hand Read only An enum defining what hand the controller is being ...
Using the Gamepad API - Web APIs
to the range 0.0..1.0, with 0.0 representing a button that is not pressed, and 1.0 representing a button that is fully pressed. axes: An array representing the controls with axes present on the device (e.g. analog thumb sticks). Each entry in the array is a floating point value in the range -1.0 - 1.0, representing the axis position from the lowest value (-1.0) to the highest value (1.0).
timestamp: This returns a DOMHighRes
TimeStamp representing the last time the data for this gamepad was updated, allowing developers to determine if the axes and button data have been updated from the hardware. The value must be relative to the navigationStart attribute of the PerformanceTiming interface. Values are monotonically increasing, meaning that they can be compared to determine the ordering of upd...
GeolocationCoordinates.longitude - Web APIs
The GeolocationCoordinates interface's read-only longitude property is a double-precision floating point value which represents the longitude of a geographical position, specified in decimal degrees. Together with a DOM
TimeStamp indicating a time of measurement, the GeolocationCoordinates object is part of the GeolocationPosition interface, which is the object type returned by Geolocation API functions that obtain and return a geographical position. Syntax let longitude = geolocationCoordinatesInstance.longitude Value The value in longitude is the geographical longitude of the location on Earth described by the Coordinates object, in decimal degrees. The value is defined by the World Geodetic System 1984 specification (WGS 84). Note: The zero meridian (also known as the prime meri...
GeolocationPosition - Web APIs
tion, represented by a GeolocationCoordinates object, comprehends the 2D position of the device, on a spheroid representing the Earth, but also its altitude and its speed. Properties The GeolocationPosition interface doesn't inherit any properties. GeolocationPosition.coords Read only Secure context Returns a GeolocationCoordinates object defining the current location. GeolocationPosition.
timestamp Read only Secure context Returns a DOM
TimeStamp representing the time at which the location was retrieved. Methods The GeolocationPosition interface neither implements, nor inherits any methods. Specifications Specification Status Comment Geolocation APIThe definition of 'GeolocationPosition' in that specification. Recommendation Initial specification. ...
Using the Geolocation API - Web APIs
timeout: 27000 }; const watchID = navigator.geolocation.watchPosition(success, error, options); Describing a position The user's location is described using a GeolocationPosition object instance, which itself contains a GeolocationCoordinates object instance. The GeolocationPosition instance contains only two things, a coords property that contains the GeolocationCoordinates instance, and a
timestamp property that contains a DOM
TimeStamp instance representing the time at which the position data was retrieved. The GeolocationCoordinates instance contains a number of properties, but the two you'll use most commonly are latitude and longitude, which are what you need to draw your position on a map. Hence many Geolocation success callbacks look fairly simple: function success(position) { cons...
Geolocation API - Web APIs
nterfaces Geolocation The main class of this API -- contains methods to retrieve the user's current position, watch for changes in their position, and clear a previously-set watch. GeolocationPosition Represents the position of a user. A GeolocationPosition instance is returned by a successful call to one of the methods contained inside Geolocation, inside a success callback, and contains a
timestamp plus a GeolocationCoordinates object instance. GeolocationCoordinates Represents the coordinates of a user's position; a GeolocationCoordinates instance contains latitude, longitude, and other important related information. GeolocationPositionError A GeolocationPositionError is returned by an unsuccessful call to one of the methods contained inside Geolocation, inside an error callback, and c...
HTMLModElement - Web APIs
</a></svg></div> a:hover text { fill: #0095DD; pointer-events: all;} Properties Inherits properties from its parent, HTMLElement. HTMLModElement.cite Is a DOMString reflecting the cite HTML attribute, containing a URI of a resource explaining the change. HTMLModElement.dateTime Is a DOMString reflecting the datetime HTML attribute, containing a date-and-time string representing a
timestamp for the change. Specifications Specification Status Comment HTML Living StandardThe definition of 'HTMLAnchorElement' in that specification. Living Standard No change from HTML5. HTML5The definition of 'HTMLAnchorElement' in that specification. Recommendation No change from Document Object Model (DOM) Level 2 HTML Specification. Document Ob...
IdleDeadline.timeRemaining() - Web APIs
all timeRemaining() to see if there's enough time to complete the next task. If there isn't, the callback can just return immediately, or look for other work to do with the remaining time. By the time timeRemaining() reaches 0, it is suggested that the callback should return control to the user agent's event loop. Syntax timeRemaining = IdleDeadline.timeRemaining(); Return value A DOMHighRes
TimeStamp value (which is a floating-point number) representing the number of milliseconds the user agent estimates are left in the current idle period. The value is ideally accurate to within about 5 microseconds. If the IdleDeadline object's didTimeout property is true, this method returns zero. Example See our complete example in the article Cooperative Scheduling of Background Tasks API. Specificat...
IdleDeadline - Web APIs
ing because its timeout duration expired. To learn more about how request callbacks work, see Collaborative Scheduling of Background Tasks. Properties IdleDeadline.didTimeout Read only A Boolean whose value is true if the callback is being executed because the timeout specified when the idle callback was installed has expired. Methods IdleDeadline.timeRemaining() Returns a DOMHighRes
TimeStamp, which is a floating-point value providing an estimate of the number of milliseconds remaining in the current idle period. If the idle period is over, the value is 0. Your callback can call this repeatedly to see if there's enough time left to do more work before returning. Example See our complete example in the article Cooperative Scheduling of Background Tasks API. Specifications ...
IntersectionObserverEntry - Web APIs
a transition into a state of intersection; if it's false, then you know the transition is from intersecting to not-intersecting. IntersectionObserverEntry.rootBounds Read only Returns a DOMRectReadOnly for the intersection observer's root. IntersectionObserverEntry.target Read only The Element whose intersection with the root changed. IntersectionObserverEntry.time Read only A DOMHighRes
TimeStamp indicating the time at which the intersection was recorded, relative to the IntersectionObserver's time origin. Methods This interface has no methods. Specifications Specification Status Comment Intersection ObserverThe definition of 'IntersectionObserverEntry' in that specification. Working Draft Initial definition ...
MIDIMessageEvent - Web APIs
is tweaked, or a slider is moved. Constructor MIDIMessageEvent.MIDIMessageEvent Creates a new MIDIMessageEvent object instance. Properties MIDIConnectionEvent.data A Uint8Array containing the data bytes of a single MIDI message. See the MIDI specification for more information on its form. Note: Even though the Web MIDI API specifies a receivedTime property that returns a DOMHighRes
TimeStamp, Chrome (the only implementation at the time of writing) does not support that property since the basic Event.
timeStamp property already returns a DOMHighRes
TimeStamp in Chrome. Examples // Printing all messages to console navigator.requestMIDIAccess().then(midiAccess => { Array.from(midiAccess.inputs).forEach(input => { input[1].onmidimessage = console.log; }) }); Specifications ...
MSSiteModeEvent - Web APIs
es whether the default action should be canceled. eventPhase Gets the event phase that is being evaluated. isTrusted Gets a value that indicates whether a trusted event source created an event. srcElement Gets the element that the event was originally dispatched to. Compare to target. target Gets the element that is the target of the event.
timeStamp Gets the time, in milliseconds, when an event occurred. type Gets the name of an event. Although this event inherits from the Event object, it cannot be created by using createEvent. Example interface MSSiteModeEvent extends Event { buttonID: number; actionURL: string; } declare var MSSiteModeEvent: { prototype: MSSiteModeEvent; new(): MSSiteModeEvent; } ...
MediaSessionActionDetails.seekOffset - Web APIs
the action handler callback to provide the number of seconds the seekforward and seekbackward actions should move the playback time by. Syntax let mediaSessionActionDetails = { seekOffset: deltaTimeInSeconds }; let deltaTime = mediaSessionActionDetails.seekOffset; Value A floating-point value indicating the time delta in seconds by which to move the playback position relative to its current
timestamp. If the offset isn't specified, the user agent will choose an appropriate offset automatically. This is typically in the range of five to ten seconds. Specifications Specification Status Comment Media Session StandardThe definition of 'MediaSessionActionDetails.seekOffset' in that specification. Draft Initial definition. ...
MediaSource.setLiveSeekableRange() - Web APIs
rce interface sets the range that the user can seek to in the media element. Syntax mediaSource.setLiveSeekableRange(start, end) Parameters start The start of the seekable range to set in seconds measured from the beginning of the source. If the duration of the media source is positive infinity, then the TimeRanges object returned by the HTMLMediaElement.seekable property will have a start
timestamp no greater than this value. end The end of the seekable range to set in seconds measured from the beginning of the source. If the duration of the media source is positive infinity, then the TimeRanges object returned by the HTMLMediaElement.seekable property will have an end
timestamp no less than this value. Return value undefined Example // TBD Specifications Specification ...
Metadata.modificationTime - Web APIs
specifies the date and time the file system entry (or the data referenced by the entry) was last modified.A file system entry is considered to have been modified if the metadata or the contents of the referenced file (or directory, or whatever other kind of file system entry might exist on the platform in use) has changed. Syntax var modificationTime = Metadata.modificationTime; Value A Date
timestamp indicating when the file system entry was last changed. Example This example tries to get a particular working file at tmp/workfile.json. Once that file has been found, its metadata is obtained and the file's modification
timestamp year is compared to the current year. If it was last modified in a year at least five prior to the current year, the file is removed and a new one is created. worki...
Navigator.buildID - Web APIs
20181001000000 in Firefox 64 onwards. Syntax buildID = navigator.buildID; Value A string representing the build identifier of the application. The build ID is in the form YYYYMMDDHHMMSS. ...
Navigator - Web APIs
ons and estimating available storage on a site-by-site/app-by-app basis. NavigatorID.userAgent Read only Returns the user agent string for the current browser. Navigator.xr Read only Returns XR object, which represents the entry point into the WebXR API. Non-standard Navigator.buildID Returns the build identifier of the browser. In modern browsers this property now returns a fixed
timestamp as a privacy measure, e.g. 20181001000000 in Firefox 64 onwards. Navigator.credentials Returns the CredentialsContainer interface which exposes methods to request credentials and notify the user agent when interesting events occur such as successful sign in or sign out. Navigator.deviceMemory Read only Returns the amount of device memory in gigabytes. This value is an approximation give...
Notification - Web APIs
notification replaces an old one. Notification.requireInteraction Read only A Boolean indicating that a notification should remain active until the user clicks or dismisses it, rather than closing automatically. Notification.silent Read only Specifies whether the notification should be silent -- i.e., no sounds or vibrations should be issued, regardless of the device settings. Notification.
timestamp Read only Specifies the time at which a notification is created or applicable (past, present, or future). Notification.title Read only The title of the notification as specified in the first parameter of the constructor. Notification.vibrate Read only Specifies a vibration pattern for devices with vibration hardware to emit. Event handlers Notification.onclick A handler for the clic...
performance.clearMarks() - Web APIs
removes the named mark from the browser's performance entry buffer. If the method is called with no arguments, all performance entries with an entry type of "mark" will be removed from the performance entry buffer. Note: This feature is available in Web Workers. Syntax performance.clearMarks(); performance.clearMarks(name); Arguments name Optional A DOMString representing the name of the
timestamp. If this argument is omitted, all performance entries with an entry type of "mark" will be removed. Return value void Example The following example shows both uses of the clearMarks() method. // Create a small helper to show how many PerformanceMark entries there are. function logMarkCount() { console.log( "Found this many entries: " + performance.getEntriesByType("mark").length...
performance.clearMeasures() - Web APIs
named measure from the browser's performance entry buffer. If the method is called with no arguments, all performance entries with an entry type of "measure" will be removed from the performance entry buffer. Note: This feature is available in Web Workers. Syntax performance.clearMeasures(); performance.clearMeasures(name); Arguments name Optional A DOMString representing the name of the
timestamp. If this argument is omitted, all performance entries with an entry type of "measure" will be removed. Return value void Example The following example shows both uses of the clearMeasures() method. // Create a small helper to show how many PerformanceMeasure entries there are. function logMeasureCount() { console.log( "Found this many entries: " + performance.getEntriesByType("m...
performance.mark() - Web APIs
The mark()'s stores its data internally as PerformanceEntry. Note: This feature is available in Web Workers. Syntax performance.mark(name); Arguments name A DOMString representing the name of the mark. If the name given to this method already exists in the PerformanceTiming interface, SyntaxError is thrown. Return value void Example The following example shows how to use mark() to create and retrieve PerformanceMark entries. // Create a bunch of marks. ...
performance.measure() - Web APIs
The measure() method creates a named
timestamp in the browser's performance entry buffer between marks, the navigation start time, or the current time. When measuring between two marks, there is a start mark and end mark, respectively. The named
timestamp is referred to as a measure. The measure can be retrieved by one of the Performance interfaces: (getEntries(), getEntriesByName() or getEntriesByType()). The measure's performance entry will have the following property values: entryType - set to "measure". name - set to the "name" given when the measure was created. startTime - set to the start mark
timestamp. duration - set to a DOMHighRes
TimeStamp that is the duration of the measure (typically, the end mark
timestamp minus the start mark
timestamp). Note: This feature is available in ...
Performance.timeOrigin - Web APIs
Specifications Specification Status High Resolution Time Level 2The definition of 'timeOrigin' in that specification. Recommendation Browser Compatibility The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
PerformanceEntry - Web APIs
e Read only A value that further specifies the value returned by the PerformanceEntry.entryType property. The value of both depends on the subtype. See property page for valid values. PerformanceEntry.entryType Read only A DOMString representing the type of performance metric such as, for example, "mark". See property page for valid values. PerformanceEntry.startTime Read only A DOMHighRes
TimeStamp representing the starting time for the performance metric. PerformanceEntry.duration Read only A DOMHighRes
TimeStamp representing the time value of the duration of the performance event. Methods PerformanceEntry.toJSON() Returns a JSON representation of the PerformanceEntry object. Example The following example checks all PerformanceEntry properties to see if the browser supports them...
PerformanceEventTiming - Web APIs
t hidden, see: // https://github.com/w3c/page-visibility/issues/29 // NOTE: ideally this check would be performed in the document <head> // to avoid cases where the visibility state changes before this code runs. let firstHiddenTime = document.visibilityState === 'hidden' ? 0 : Infinity; document.addEventListener('visibilitychange', (event) => { firstHiddenTime = Math.min(firstHiddenTime, event.
timeStamp); }, {once: true}); // Sends the passed data to an analytics endpoint. This code // uses `/analytics`; you can replace it with your own URL. function sendToAnalytics(data) { const body = JSON.stringify(data); // Use `navigator.sendBeacon()` if available, falling back to `fetch()`. (navigator.sendBeacon && navigator.sendBeacon('/analytics', body)) || fetch('/analytics', {body, method:...
PerformanceFrameTiming - Web APIs
:hover text { fill: #0095DD; pointer-events: all;} Properties This interface has no properties but it extends the following PerformanceEntry properties (for "frame" performance entry types) by qualifying and constraining the properties as follows: PerformanceEntry.entryType Returns "frame". PerformanceEntry.name Returns the document's address. PerformanceEntry.startTime Returns the
timestamp when the frame was started. PerformanceEntry.duration Returns a
timestamp indicating the difference between the startTimes of two successive frames. Methods This interface has no methods. Example See the example in Using the Frame Timing API. Specifications Specification Status Comment Frame TimingThe definition of 'PerformanceFrameTiming' in that specification. ...
PerformanceNavigationTiming.redirectCount - Web APIs
This property is Read only . Syntax perfEntry.redirectCount; Return Value A number representing the number of redirects since the last non-redirect navigation under the current browsing context. Example The following example illustrates this property's usage. ...
PerformancePaintTiming - Web APIs
D; pointer-events: all;} Properties This interface has no properties but it extends the following PerformanceEntry properties (for "paint" performance entry types) by qualifying and constraining the properties as follows: PerformanceEntry.entryType Returns "paint". PerformanceEntry.name Returns either "first-paint" or "first-contentful-paint". PerformanceEntry.startTime Returns the
timestamp when the paint ocurred. PerformanceEntry.duration Returns 0. Methods This interface has no methods. Example function showPaintTimings() { if (window.performance) { let performance = window.performance; let performanceEntries = performance.getEntriesByType('paint'); performanceEntries.forEach( (performanceEntry, i, entries) => { console.log("The time to " + performanceEn...
Performance Timeline - Web APIs
-- that is, a single data point or metric in the performance timeline. This interface has the following four properties, and these properties are extended (with additional constraints) by other interfaces (such as PerformanceMark): name The name of the performance entry when the metric was created. entryType The type of performance metric (for example, "mark"). startTime A high resolution
timestamp representing the starting time for the performance entry. duration A high resolution
timestamp representing the time value of the duration of the performance event. (Some performance entry types have no concept of duration and this value is set to '0' for such types.) This interface includes a toJSON() method that returns the serialization of the PerformanceEntry object. The serialization is ...
PushSubscription - Web APIs
The PushSubscription interface of the Push API provides a subcription's URL endpoint and allows unsubscription from a push service. An instance of this interface can be serialized. Properties PushSubscription.endpoint Read only A USVString containing the endpoint associated with the push subscription. PushSubscription.expirationTime Read only A DOMHighRes
TimeStamp of the subscription expiration time associated with the push subscription, if there is one, or null otherwise. PushSubscription.options Read only An object containing the options used to create the subscription. PushSubscription.subscriptionId Read only A DOMString containing the subscription ID associated with the push subscription. Methods PushSubscription.getKey() Returns an ArrayBuffer which con...
RTCDataChannel.send() - Web APIs
imits in Using WebRTC data channels. Example In this example, a routine called sendMessage() is created; it accepts an object as input and sends to the remote peer, over the RTCDataChannel, a JSON string with the specified object and a time stamp. var pc = new RTCPeerConnection(); var dc = pc.createDataChannel("BackChannel"); function sendMessage(msg) { let obj = { "message": msg, "
timestamp": new Date() } dc.send(JSON.stringify(obj)); } Specifications Specification Status Comment WebRTC 1.0: Real-time Communication Between BrowsersThe definition of 'RTCDataChannel.send()' in that specification. Candidate Recommendation Initial specification. ...
RTCInboundRtpStreamStats - Web APIs
e stream has lagged, requiring frames to be skipped in order to catch up. This value is only available for video streams. framesDecoded A long integer value indicating the total number of frames of video which have been correctly decoded so far for this media source. This is the number of frames that would have been rendered if none were dropped. Only valid for video streams. lastPacketReceived
Timestamp A DOMHighRes
TimeStamp indicating the time at which the last packet was received for this source. The
timestamp property, on the other hand, indicates the time at which the statistics object was generated. nackCount An integer value indicating the total number of Negative ACKnolwedgement (NACK) packets this receiver has sent. packetsDuplicated An integer value indicating the total number of p...
RTCOutboundRtpStreamStats - Web APIs
ber of Full Intra Request (FIR) packets which this RTCRtpSender has sent to the remote RTCRtpReceiver. This is an indicator of how often the stream has lagged, requiring frames to be skipped in order to catch up. Valid only for video streams. framesEncoded The number of frames that have been successfully encoded so far for sending on this RTP stream. Only valid for video streams. lastPacketSent
Timestamp A DOMHighRes
TimeStamp indicating the time at which the last packet was sent for this SSRC. The
timestamp property, on the other hand, indicates the time at which the RTCOutboundRtpStreamStats object was generated. nackCount An integer value indicating the total number of Negative ACKnolwedgement (NACK) packets this RTCRtpSender has received from the remote RTCRtpReceiver. perDscpPacketsSent ...
RTCRtpCodecParameters - Web APIs
Properties payloadType Optional The RTP payload type used to identify this codec. mimeType Optional The codec's MIME media type and subtype specified as a DOMString of the form "type/subtype". IANA maintains a registry of valid MIME types. clockRate Optional An unsigned long integer value specifying the codec's clock rate in hertz (Hz). The clock rate is the rate at which the codec's RTP
timestamp advances. Most codecs have specific values or ranges of values they permit; see the IANA payload format media type registry for details. channels Optional An unsigned short integer indicating the number of channels the codec should support. For example, for audio codecs, a value of 1 specifies monaural sound while 2 indicates stereo. sdpFmtpLine Optional A DOMString containing the format-spec...
RTCRtpContributingSource - Web APIs
de information about a given contributing source (CSRC), including the most recent time a packet that the source contributed was played out. The information provided is based on the last ten seconds of media received. Properties audioLevel Optional A double-precision floating-point value between 0 and 1 specifying the audio level contained in the last RTP packet played from this source. rtp
Timestamp Optional The RTP
timestamp of the media played out at the time indicated by
timestamp. This value is a source-generated time value which can be used to help with sequencing and synchronization. source Optional A 32-bit unsigned integer value specifying the CSRC identifier of the contributing source.
timestamp Optional A DOMHighRes
TimeStamp indicating the most recent time at which a frame ori...
RTCRtpReceiver.getSynchronizationSources() - Web APIs
tingSources = rtcRtpReceiver.getContributingSources() Parameters None. Return value An array of RTCRtpSynchronizationSource instances. Each instance describes one of the synchronization sources that provided data to the incoming stream in the past ten seconds. As you'll see in the documentarion for RTCRtpSynchronizationSource, it inherits the properties of RTCRtpContributingSource, including
timestamp, source, and audioLevel. The synchronization source objects add a voiceActivityFlag property, which indicates if the last RTP packet received contained voice activity. Specifications Specification Status Comment WebRTC 1.0: Real-time Communication Between BrowsersThe definition of 'getSynchronizationSources()' in that specification. Candidate Recommendation Initia...
RTCStats - Web APIs
tatistics monitoring model, providing the properties required of all statistics data objects. Specific classes of statistic are defined as dictionaries based on RTCStats. For example, statistics about a received RTP stream are represented by RTCReceivedRtpStreamStats. Properties id A DOMString which uniquely identifies the object which was inspected to produce this object based on RTCStats.
timestamp A DOMHighRes
TimeStamp object indicating the time at which the sample was taken for this statistics object. type A DOMString indicating the type of statistics the object contains, taken from the enum type RTCStatsType. The statistics type hierarchy The various dictionaries that are used to define the contents of the objects that contain each of the various types of statistics for WebRTC are ...
RTCStatsReport - Web APIs
stics available to the incoming or outgoing stream on which you call them. The statistics objects For each category of statistic information, there is a dictionary whose properties provide the relevant information. Properties common to all statistic categories All WebRTC statistics objects are fundamentally based on the RTCStats dictionary, which provides the most fundamental information: the
timestamp, the statistic type string, and an ID uniquely identifying the source of the data: id A DOMString which uniquely identifies the object which was inspected to produce this object based on RTCStats.
timestamp A DOMHighRes
TimeStamp object indicating the time at which the sample was taken for this statistics object. type A DOMString indicating the type of statistics the object contains, taken...
Sensor - Web APIs
rfaces based on Sensor Below is a list of interfaces based on the Sensor interface. Accelerometer AmbientLightSensor Gyroscope LinearAccelerationSensor Magnetometer OrientationSensor Properties Sensor.activated Read only Returns a Boolean indicating whether the sensor is active. Sensor.hasReading Read only Returns a Boolean indicating whether the sensor has a reading. Sensor.
timestamp Read only Returns the time stamp of the latest sensor reading. Event handlers Sensor.onerror Called when an error occurs on one of the child interfaces of the Sensor interface. Sensor.onreading Called when a reading is taken on one of the child interfaces of the Sensor interface. Sensor.onactivate Called when one of the Sensor interface's becomes active. Methods Sensor.start() A...
Using server-sent events - Web APIs
"' . $curDate . '"}'; echo "\n\n"; // Send a simple message at random intervals. $counter--; if (!$counter) { echo 'data: This is a message at time ' . $curDate . "\n\n"; $counter = rand(1, 10); } ob_end_flush(); flush(); sleep(1); } The code above generates an event every second, with the event type "ping". Each event's data is a JSON object containing the ISO 8601
timestamp corresponding to the time at which the event was generated. At random intervals, a simple message (with no event type) is sent. Note: You can find a full example that uses the code shown in this article on GitHub -- see Simple SSE demo using PHP. Error handling When problems occur (such as a network timeout or issues pertaining to access control), an error event is generated. You can take ac...
ServiceWorkerRegistration.showNotification() - Web APIs
ons after approximately twenty seconds. The default value is false. silent: When set indicates that no sounds or vibrations should be made. If options's silent is true and options's vibrate is present a TypeError exception will be thrown. The default value is false. tag: An ID for a given notification that allows you to find, replace, or remove the notification using a script if necessary.
timestamp: A DOM
TimeStamp representing the time when the notification was created. It can be used to indicate the time at which a notification is actual. For example, this could be in the past when a notification is used for a message that couldn't immediately be delivered because the device was offline, or in the future for a meeting that is about to start. vibrate: A vibration pattern to run with the d...
SourceBuffer.appendWindowEnd - Web APIs
The default value of appendWindowEnd is positive infinity. Syntax var myAppendWindowEnd = sourceBuffer.appendWindowEnd; sourceBuffer.appendWindowEnd = 120.0; Value A double, indicating the end time of the append window, in seconds. Exceptions The following exceptions may be thrown when setting a new value for this property. ...
SourceBuffer.appendWindowStart - Web APIs
The default value of appendWindowStart is the presentation start time, which is the beginning time of the playable media. Syntax var myAppendWindowStart = sourceBuffer.appendWindowStart; sourceBuffer.appendWindowStart = 2.0; Value A double, indicating the start time of the append window, in seconds. ...
VideoPlaybackQuality - Web APIs
A VideoPlaybackQuality object is returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. Properties The VideoPlaybackQuality interface doesn't inherit properties from any other interfaces. creationTime Read only A DOMHighRes
TimeStamp containing the time in miliseconds between the start of the navigation and the creation of the object. droppedVideoFrames Read only An unsigned long giving the number of video frames dropped since the creation of the associated HTMLVideoElement. totalVideoFrames Read only An unsigned long giving the number of video frames created and dropped since the creation of the associated HTMLVideoElement. Obsolete properties corruptedVideoFrames Read only An unsigne...
WebGLRenderingContext.getParameter() - Web APIs
ER8_WEBGL ext.DRAW_BUFFER9_WEBGL ext.DRAW_BUFFER10_WEBGL ext.DRAW_BUFFER11_WEBGL ext.DRAW_BUFFER12_WEBGL ext.DRAW_BUFFER13_WEBGL ext.DRAW_BUFFER14_WEBGL ext.DRAW_BUFFER15_WEBGL GLenum WEBGL_draw_buffers Drawing buffers. ext.VERTEX_ARRAY_BINDING_OES WebGLVertexArrayObjectOES OES_vertex_array_object Bound vertex array object (VAO). ext.
TIMESTAMP_EXT GLuint64EXT EXT_disjoint_timer_query The current time. ext.GPU_DISJOINT_EXT GLboolean EXT_disjoint_timer_query Returns whether or not the GPU performed any disjoint operation. ext.MAX_VIEWS_OVR GLint OVR_multiview2 Maximum number of views. Examples gl.getParameter(gl.DITHER); gl.getParameter(gl.VERSION); gl.getParameter(gl...
WebGL constants - Web APIs
0x8864 The number of bits used to hold the query result for the given target. CURRENT_QUERY_EXT 0x8865 The currently active query. QUERY_RESULT_EXT 0x8866 The query result. QUERY_RESULT_AVAILABLE_EXT 0x8867 A Boolean indicating whether or not a query result is available. TIME_ELAPSED_EXT 0x88BF Elapsed time (in nanoseconds).
TIMESTAMP_EXT 0x8E28 The current time. GPU_DISJOINT_EXT 0x8FBB A Boolean indicating whether or not the GPU performed any disjoint operation. Specifications Specification Status Comment WebGL 1.0The definition of 'WebGLRenderingContext' in that specification. Recommendation Initial definition WebGL 2.0The definition of 'WebGL2RenderingConte...
Movement, orientation, and motion: A WebXR example - Web APIs
sed by the session and binding its frame buffer to be used as the WebGL frame buffer (so that rendering WebGL draws into the layer and therefore the XR device's display). With WebGL now configured to render to the XR device, we clear the frame to black and are ready to begin rendering. The time elapsed since the last frame was rendered (in seconds) is computed by subtracting the previous frame's
timestamp, lastFrameTime, from the current time as specified by the time parameter and then multiplying by 0.001 to convert milliseconds to seconds. The current time is then saved into lastFrameTime; The drawScene() function ends by iterating over every view found in the XRViewerPose, setting up the viewport for the view, and calling drawScene() to render the frame. By setting the viewport for each view, ...
Window.onmozbeforepaint - Web APIs
vaScript code. Syntax window.onmozbeforepaint = funcRef; funcRef is the handler function. Example See window.mozRequestAnimationFrame() for an example. Notes This event fires immediately before the browser window is repainted, if the event has been requested by one or more scripts calling window.mozRequestAnimationFrame(). The event handler receives as an input parameter an event whose
timeStamp property is the time, in milliseconds since epoch, that is the "current time" for the current animation frame. This time is the same for all animations being run in the same browser window, including those using the window.mozRequestAnimationFrame() method, CSS transitions, and SMIL animations. Specification Not part of a specification. ...
Using XMLHttpRequest - Web APIs
s-site XMLHttpRequest Modern browsers support cross-site requests by implementing the Cross-Origin Resource Sharing (CORS) standard. As long as the server is configured to allow requests from your web application's origin, XMLHttpRequest will work. Otherwise, an INVALID_ACCESS_ERR exception is thrown. Bypassing the cache A cross-browser compatible approach to bypassing the cache is appending a
timestamp to the URL, being sure to include a "?" or "&" as appropriate. For example: http://foo.com/bar.html -> http://foo.com/bar.html?12345 http://foo.com/bar.html?foobar=baz -> http://foo.com/bar.html?foobar=baz&12345 As the local cache is indexed by URL, this causes every request to be unique, thereby bypassing the cache. You can automatically adjust URLs using the following code: var oReq = new ...
XRFrameRequestCallback - Web APIs
The XRFrameRequestCallback is a callback function passed into XRSession.requestAnimationFrame (part of WebXR API) to obtain the current time and the current XRFrame. Syntax function XRFrameRequestCallback(time, XRFrame){ // Process XRFrame here } XRSession.requestAnimationFrame(XRFrameRequestCallback) Parameters DOMHighRes
TimeStamp A
timestamp corresponding to the returned XRFrame. XRFrame An XRFrame representing a snapshot of the state of all of the tracked objects for the XRSession. Return Value None. Specifications Specification Status Comment WebXR Device APIThe definition of 'XRFrameRequestCallback' in that specification. Working Draft Initial definition. ...
XRInputSourceEventInit.frame - Web APIs
Of course, as a general rule, you won't need to create XRInputSourceEventInit objects yourself. These events are generated by and sent to you by the WebXR infrastructure. ...
XRSession.requestAnimationFrame() - Web APIs
mmersive XR session is underway. Syntax requestID = xrSession.requestAnimationFrame(animationFrameCallback); Parameters animationFrameCallback A function which is called before the next repaint in order to allow you to update and render the XR scene based on elapsed time, animation, user input changes, and so forth. The callback receives as input two parameters: time A DOMHighRes
TimeStamp indicating the time offset at which the updated viewer state was received from the WebXR device. xrFrame An XRFrame object describing the state of the objects being tracked by the session. This can be used to obtain the poses of the viewer and the scene itself, as well as other information needed to render a frame of an AR or VR scene. Return value An integer value which serves as a un...
Web APIs
d ClipboardEvent ClipboardItem CloseEvent Comment CompositionEvent ConstantSourceNode ConstrainBoolean ConstrainDOMString ConstrainDouble ConstrainULong ContentIndex ContentIndexEvent ConvolverNode CountQueuingStrategy CrashReportBody Credential CredentialsContainer Crypto CryptoKey CryptoKeyPair CustomElementRegistry CustomEvent D DOMConfiguration DOMError DOMException DOMHighRes
TimeStamp DOMImplementation DOMImplementationList DOMLocator DOMMatrix DOMMatrixReadOnly DOMObject DOMParser DOMPoint DOMPointInit DOMPointReadOnly DOMQuad DOMRect DOMRectReadOnly DOMString DOMStringList DOMStringMap DOM
TimeStamp DOMTokenList DOMUserData DataTransfer DataTransferItem DataTransferItemList DedicatedWorkerGlobalScope DelayNode DeprecationReportBody DeviceLightEvent DeviceMotio...
<input type="date"> - HTML: Hypertext Markup Language
the parsed value is always formatted yyyy-mm-dd. You can get and set the date value in JavaScript with the input element's value and valueAsNumber properties. For example: var dateControl = document.querySelector('input[type="date"]'); dateControl.value = '2017-06-01'; console.log(dateControl.value); // prints "2017-06-01" console.log(dateControl.valueAsNumber); // prints 1496275200000, a UNIX
timestamp This code finds the first <input> element whose type is date, and sets its value to 2017-06-01 (June 1st, 2017). It then reads that value back in string and number formats. Additional attributes Along with the attributes common to all <input> elements, date inputs have the following attributes: Attribute Description max The latest acceptable date min Th...
ETag - HTTP
vent caching when byte range requests are used, but strong etags mean range requests can still be cached. "<etag_value>" Entity tag uniquely representing the requested resource. They are a string of ASCII characters placed between double quotes, like "675af34563dc-tr34". The method by which ETag values are generated is not specified. Often, a hash of the content, a hash of the last modification
timestamp, or just a revision number is used. For example, MDN uses a hexadecimal hash of the wiki article content. Examples ETag: "33a64df551425fcc55e4d42a148795d9f25f89d4" ETag: W/"0815" Avoiding mid-air collisions With the help of the ETag and the If-Match headers, you can detect mid-air edit collisions. For example, when editing MDN, the current wiki content is hashed and put into an Etag in the ...
Expect-CT - HTTP
The Expect-CT header lets sites opt in to reporting and/or enforcement of Certificate Transparency requirements, to prevent the use of misissued certificates for that site from going unnoticed. CT requirements can be satisfied via any one of the following mechanisms: X.509v3 certificate extension to allow embedding of signed certificate
timestamps issued by individual logs A TLS extension of type signed_certificate_
timestamp sent during the handshake Supporting OCSP stapling (that is, the status_request TLS extension) and providing a SignedCertificate
TimestampList When a site enables the Expect-CT header, they are requesting that the browser check that any certificate for that site appears in public CT logs. Browsers ignore the Expect-CT header over HTTP; the header only has effect on ...
Expires - HTTP
sent a date in the past and mean that the resource is already expired. If there is a Cache-Control header with the max-age or s-maxage directive in the response, the Expires header is ignored. Header type Response header Forbidden header name no CORS-safelisted response header yes Syntax Expires: <http-date> Directives <http-date> An HTTP-date
timestamp. Examples Expires: Wed, 21 Oct 2015 07:28:00 GMT Specifications Specification Title RFC 7234, section 5.3: Expires Hypertext Transfer Protocol (HTTP/1.1): Caching ...
Set-Cookie - HTTP
dash is part of the prefix) must be set with the secure flag from a secure page (HTTPS). __Host- prefix: Cookies with names starting with __Host- must be set with the secure flag, must be from a secure page (HTTPS), must not have a domain specified (and therefore aren't sent to subdomains) and the path must be /. Expires=<date> Optional The maximum lifetime of the cookie as an HTTP-date
timestamp. See Date for the required formatting. If unspecified, the cookie becomes a session cookie. A session finishes when the client shuts down, and session cookies will be removed. Warning: Many web browsers have a session restore feature that will save all tabs and restore them next time the browser is used. Session cookies will also be restored, as if the browser was never closed. When an ...