Search completed in 1.47 seconds.
153 results for "held":
Your results are loading. Please wait...
Inputs and input sources - Web APIs
the information for each input source includes which hand it's held in (if applicable), what targeting method it uses, xrspaces that can be used to draw the targeting ray and to find the targeted object or location as well as to draw objects in the user's hands, and profile strings specifying the preferred way to represent the controller in the user's viewing area as well as how the input operates.
...it can also be set to none if the controller isn't hand-held, or if it's unknown which hand the controller is in.
... more flexible is the tracked-pointer mode, in which the ray's origin is at a handheld controller or hand tracking system's origin and extends outward in the direction in which the controller is pointing.
...And 16 more matches
Index - Web APIs
WebAPIIndex
in particular, hand-held devices such as mobile phones can use this information to automatically rotate the display to remain upright, presenting a wide-screen view of the web content when the device is rotated so that its width is greater than its height.
... 1441 gamepad.hand api, experimental, gamepad, gamepad api, property, reference, hand the hand read-only property of the gamepad interface returns an enum defining what hand the controller is being held in, or is most likely to be held in.
... 2220 keyboardevent.repeat api, dom, keyboardevent, property, read-only, reference the repeat read-only property of the keyboardevent interface returns a boolean that is true if the given key is being held down such that it is automatically repeating.
...And 5 more matches
FinalizationRegistry - JavaScript
you create the registry passing in the callback: const registry = new finalizationregistry(heldvalue => { // ....
... }); then you register any objects you want a cleanup callback for by calling the `register` method, passing in the object and a *held value* for it: registry.register(theobject, "some value"); the registry does not keep a strong reference to the object, as that would defeat the purpose (if the registry held it strongly, the object would never be reclaimed).
... if theobject is reclaimed, your cleanup callback may be called at some point with the held value you provided for it ("some value" in the above).
...And 5 more matches
LockManager.request() - Web APIs
request an "exclusive" lock when it should only be held by one code instance at a time.
...when an "exclusive" lock for a given name is held, no other lock with the same name can be held.
...when a "shared" lock for a given name is held, other "shared" locks for the same name can be granted, but no "exclusive" locks with that name can be held or granted.
...And 3 more matches
XRInputSource.handedness - Web APIs
syntax let hand = xrinputsource.handedness; value a domstring indicating whether the input controller is held in one of the user's hands, and if it is, which hand.
... left the input controller is being held in, worn on, or is attached to the user's left hand.
... right the input controller is being held in, worn on, or is attached to the user's right hand.
...And 3 more matches
Screen.lockOrientation() - Web APIs
a screen is considered in its primary portrait mode if the device is held in its normal position and that position is in portrait, or if the normal position of the device is in landscape and the device held turned by 90° clockwise.
...a screen is considered in its secondary portrait mode if the device is held 180° from its normal position and that position is in portrait, or if the normal position of the device is in landscape and the device held is turned by 90° anticlockwise.
...a screen is considered in its primary landscape mode if the device is held in its normal position and that position is in landscape, or if the normal position of the device is in portrait and the device held is turned by 90° clockwise.
...a screen is considered in its secondary landscape mode if the device held is 180° from its normal position and that position is in landscape, or if the normal position of the device is in portrait and the device held is turned by 90° anticlockwise.
Web Locks API - Web APIs
while held, no other script executing in the same origin can acquire the same lock, which allows a web app running in multiple tabs or workers to coordinate work and the use of resources.
...}); while a lock is held, requests for the same lock from this execution context, or from other tabs/workers, will be queued.
...the results are a snapshot of the lock manager state, which identifies held and requested locks and some additional data (e.g.
... return p; // now lock will be held until either resolve() or reject() is called.
XRSession.onsqueezeend - Web APIs
in response to the end of the squeeze operation, this code looks to see if there is an object currently being held by the user by checking to see if the variable user.heldobject contains a reference to an object representing the held item.
... if heldobject has an object reference, that object is passed to a function called cancelobjectdrag(), which would be written to return the object to its original position.
... xrsession.onsqueezeend = event => { if (event.inputsource.handedness == user.handedness) { let targetraypose = event.frame.getpose(event.inputsource.targetrayspace, myrefspace; if (user.heldobject) { cancelobjectdrag(user.heldobject); } } }; this code presumes that if the user actually intentionally completed the drag, user.heldobject will be null here.
... that's because (in this example, at least) the handler for the squeeze event has already dropped the object into its new location and then cleared the value of heldobject to indicate that the user is no longer holding anything.
FinalizationRegistry.prototype.unregister() - JavaScript
examples using unregister this example shows registering a target object using that same object as the unregister token, then later unregistering it via unregister: class thingy { #cleanup = label => { // ^^^^^−−−−− held value console.error( `the \`release\` method was never called for the object with the label "${label}"` ); }; #registry = new finalizationregistry(this.#cleanup); /** * constructs a `thingy` instance.
... */ constructor(label) { // vvvvv−−−−− held value this.#registry.register(this, label, this); // target −−−−−^^^^ ^^^^−−−−− unregister token } /** * releases resources held by this `thingy` instance.
... */ release() { this.#registry.unregister(this); // ^^^^−−−−− unregister token } } this example shows registering a target object using a different object as its unregister token: { // ^^^^−−−−− held value console.error( `the \`release\` method was never called for the \`thingy\` for the file "${file.name}"` ); }; #registry = new finalizationregistry(this.#cleanup); /** * constructs a `thingy` instance for the given file.
... */ constructor(filename) { this.#file = file.open(filename); // vvvvv−−−−− held value this.#registry.register(this, label, this.#file); // target −−−−−^^^^ ^^^^^^^^^^−−−−− unregister token } /** * releases resources held by this `thingy` instance.
2006-10-13 - Archive of obsolete content
firefox feature brainstorming you can help suggest features for firefox 3 here meetings project meeting a project meeting was held on oct.
...(meeting notes) bon echo status meeting a bon echo status meeting was held on oct.
... 10 (meeting notes) gecko 1.9/gran paradiso status meeting a gecko 1.9/gran paradiso status meeting was held on oct.
Desktop gamepad controls - Game development
if we want to check the button is not held already (so it's a new press), then looping through the cached states from the previous frame does the job — if the button was already pressed, then we ignore the new press and set it to false.
...there's an option wired up to show screengamepadhelp, which holds an image with all the button controls explained — if the y button is pressed and held, the help becomes visible; when it is released the help diappears.
... for the shooting controls, we used the a button — when it is held down, a new bullet is spawned, and everything else is handled by the game: if(gamepadapi.buttons.pressed('a','hold')) { this.spawnbullet(); } showing the screen with all the controls looks exactly the same as in the main menu: if(gamepadapi.buttons.pressed('y','hold')) { if(!this.screengamepadhelp.visible) { this.screengamepadhelp.visible = true; } } else { if(this.scre...
nsIXPConnect
obsolete since gecko 2.0 methods native code only!addjsholder root js objects held by aholder.
... return value missing description exceptions thrown missing exception missing description releasejscontext() void releasejscontext( in jscontextptr ajscontext, in prbool nogc ); parameters ajscontext missing description nogc missing description exceptions thrown missing exception missing description native code only!removejsholder stop rooting the js objects held by aholder.
...as long as this holder is held the jsobject will be protected from collection by javascript's garbage collector.
LockManager.query() - Web APIs
WebAPILockManagerquery
the query() method of the lockmanager interface returns a promise which resolves with an object containing information about held and pending locks.
... held: an array of lock objects for held locks.
... example const state = await navigator.locks.query(); for (const lock of state.held) { console.log(`held lock: name ${lock.name}, mode ${lock.mode}`); } for (const request of state.pending) { console.log(`requested lock: name ${request.name}, mode ${request.mode}`); } specifications specification status comment web locks apithe definition of 'query()' in that specification.
Fundamentals of WebXR - Web APIs
webxr additionally provides support for accepting inputs from control devices such as handheld vr controllers or specialized mixed reality gamepads.
...this is most common when the user either doesn't have a dedicated xr device, or when the user is viewing the ar or vr app on a phone or other handheld device.
... the user's activity may be monitored using motion sensors that are worn or held by the user, or, increasingly commonly, using infrared cameras that detect the user's movements.
XRHandedness - Web APIs
left the input controller is being held in, worn on, or is attached to the user's left hand.
... right the input controller is being held in, worn on, or is attached to the user's right hand.
...if a gripspace is present, that means the input source is a hand-held device of some sort, so it should be rendered visibly if possible.
XRSession.onsqueeze - Web APIs
then we pass the currently held object and the target ray's transform matrix into a function we call dropobjectusingray() to drop the object, using the target ray to determine the surface upon which the object should be placed.
... this also clears the value of heldobject so we know that there's no longer an object in hand.
... xrsession.onsqueeze = event => { if (event.inputsource.handedness == user.handedness) { let targetraypose = event.frame.getpose(event.inputsource.targetrayspace, myrefspace); if (user.heldobject && targetraypose) { dropobjectusingray(user.heldobject, targetraypose.transform.matrix): } } }; see the examples in the onsqueezestart and onsqueezeend event handlers for the reset of the event handling related to this approach.
FinalizationRegistry.prototype.register() - JavaScript
syntax registry.register(target, heldvalue, [unregistertoken]); parameters target the target object to register.
... heldvalue the value to pass to the finalizer for this object.
... examples using register the following registers the target object referenced by target, passing in the held value "some value" and passing the target object itself as the unregistration token: registry.register(target, "some value", target); the following registers the target object referenced by target, passing in another object as the held value, and not passing in any unregistration token (which means target can't be unregistered): registry.register(target, {"useful": "info about target"}); sp...
Enhanced Extension Installation - Archive of obsolete content
in the profile directory, the file compatibility.ini stores information about the version of the application (build info) that last started this profile - during startup this file is checked and if the version info held by the running app disagrees with the info held by this file, a compatibility check is run on all installed items.
... if the item is not compatible, the extension system asks the appropriate update service (either the one specified by the item, or the default one) if there is remote compatibility information that supercedes the compatibility information held by the item.
Mozilla Crypto FAQ - Archive of obsolete content
export regulations in january 2000 to allow export of source code for open source software implementing encryption, the major remaining legal obstacle to mozilla crypto development was the fact that rsa security, inc., held a u.s.
...9th circuit court of appeals, and on may 6, 1999, the court upheld the district court's ruling in a 2-1 decision, with judge betty fletcher writing for the majority that the itar and ear export restrictions against encryption are an unconstitutional prior restraint of free expression, impermissible under the first amendment to the u.s.
Implementing controls using the Gamepad API - Game development
if we find it there it means that the button is being held, so there's no new press.
...the buttonpressed function is used in the update loop of the game like this: if(gamepadapi.turbo) { if(gamepadapi.buttonpressed('a','hold')) { this.turbo_fire(); } if(gamepadapi.buttonpressed('b')) { this.managepause(); } } if gamepadapi.turbo is true and the given buttons are pressed (or held), we execute the proper functions assigned to them.
HTML parser threading
note that mtokenizermutex is being held by the parser thread for the entire time that the tokenizer runs.
...after some tree ops have been moved to the staging queue, the nsirunnable held in mexecutorflusher is dispatched to the main thread.
Investigating leaks using DMD heap scan mode
secondly, notice that the load request is being held alive by the very same script element that is causing the window leak!
...for instance, if the script element was being held alive by some container being held alive by a runnable, we’d first need to figure out that the container was holding the element.
PR_WaitCondVar
description before the call to pr_waitcondvar, the lock associated with the condition variable must be held by the calling thread.
...when scheduled, the thread attempts to reacquire the lock that it held when pr_waitcondvar was called.
Invariants
a general rule about the state of all threads at a given time: either exactly one thread is "in gc" and no threads are in requests; or no thread is doing gc, in which case any number of threads may be in requests; or the gc lock is held.
... there are the usual invariants regarding locks: we do not reenter them (it would be nice to check this as there might be an exception or two); we do not wait on a condition variable unless the corresponding lock is held.
Tracing JIT
the recorder in jstracer inserts lins values into a lir buffer held in a page, itself contained within a logical fragment, and the nanojit compilation pipeline and assembler transform the lins values into nins values.
... the trace monitor maintains some book-keeping information, as well as the collection of recorded fragments, held in a hashtable keyed by the interpreter's program counter and global object shape at the time of recording.
Index
MozillaTechXPCOMIndex
this method will fail unless called while the left mouse button is held down, callers must check this.
...g class declaration 1180 nsadoptingstring class declaration 1181 nsautoref nsautoref<t> is a template class implementing an object that holds a handle to a resource that must be released, typically on destruction of the object.</t> 1182 nsautoreftraits nsautoreftraits<t> is a template class describing traits of resources held by objects of class nsautoref<t> and/or nscountedref<t>.</t> 1183 nsautostring class declaration 1184 nsautostring (external) needscontent, reference, référence(2), strings class declaration 1185 nscautostring class declaration 1186 nscautostring (external) needscontent, reference, référence(2), strings clas...
Gamepad.hand - Web APIs
WebAPIGamepadhand
the hand read-only property of the gamepad interface returns an enum defining what hand the controller is being held in, or is most likely to be held in.
...the controller is held in both hands, or would be fine in either.
KeyboardEvent.key - Web APIs
WebAPIKeyboardEventkey
if the key is held down further and the key produces a character key, then the event continues to be emitted in a platform implementation dependent interval and the keyboardevent.repeat read only property is set to true.
...the events will be fired repeatedly while the key is held down.
KeyboardEvent - Web APIs
keyboardevent.repeat read only returns a boolean that is true if the key is being held down such that it is automatically repeating.
... auto-repeat handling when a key is pressed and held down, it begins to auto-repeat.
XRInputSource.gripSpace - Web APIs
the read-only xrinputsource property gripspace returns an xrspace whose native origin tracks the pose used to render virtual objects so they appear to be held in (or part of) the user's hand.
... imagine that the controller is shaped like a straight rod, held in the user's fist.
XRInputSource - Web APIs
gripspaceread only an xrspace whose origin tracks the pose which is used to render objects which should appear as if they're held in the hand indicated by handedness.
...the grip space's coordinate system can then be used to render objects so they appear to be held in the user's hand.
XRSession.onsqueezestart - Web APIs
this object is then stored in a heldobject variable in the user object we're using to represent user information.
... xrsession.onsqueezestart = event => { if (event.inputsource.handedness == user.handedness) { let targetraypose = event.frame.getpose(event.inputsource.targetrayspace, myrefspace; if (targetraypose) { user.heldobject = findobjectusingray(targetraypose.transform); } } }; specifications specification status comment webxr device apithe definition of 'xrsession.onsqueezestart' in that specification.
A typical HTTP session - HTTP
WebHTTPSession
example responses successful web page response: http/1.1 200 ok content-type: text/html; charset=utf-8 content-length: 55743 connection: keep-alive cache-control: s-maxage=300, public, max-age=0 content-language: en-us date: thu, 06 dec 2018 17:37:18 gmt etag: "2e77ad1dc6ab0b53a2996dfd4653c1c3" server: meinheld/0.6.1 strict-transport-security: max-age=63072000 x-content-type-options: nosniff x-frame-options: deny x-xss-protection: 1; mode=block vary: accept-encoding,cookie age: 7 <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>a simple webpage</title> </head> <body> <h1>simple html5 webpage</h1> <p>hello, world!</p> </body> </html> notification that the requested resour...
...stomized page helping the user to find the missing resource) notification that the requested resource doesn't exist: http/1.1 404 not found content-type: text/html; charset=utf-8 content-length: 38217 connection: keep-alive cache-control: no-cache, no-store, must-revalidate, max-age=0 content-language: en-us date: thu, 06 dec 2018 17:35:13 gmt expires: thu, 06 dec 2018 17:35:13 gmt server: meinheld/0.6.1 strict-transport-security: max-age=63072000 x-content-type-options: nosniff x-frame-options: deny x-xss-protection: 1; mode=block vary: accept-encoding,cookie x-cache: error from cloudfront <!doctype html...
Keyed collections - JavaScript
the object references in the keys are held weakly, meaning that they are a target of garbage collection (gc) if there is no other reference to the object anymore.
... the weakset is weak: references to objects in the collection are held weakly.
WeakSet - JavaScript
the weakset object lets you store weakly held objects in a collection.
... the weakset is weak, meaning references to objects in a weakset are held weakly.
Default Preferences - Archive of obsolete content
remember that preferences are held in two separate trees.
Listening to events in Firefox extensions - Archive of obsolete content
the filters are held in the array mfilters, the internal listeners in the array mtablisteners.
Tabbed browser - Archive of obsolete content
t in background if default is to select new tabs, and vice versa "window" new window "save" save to disk (with no filename hint!) openuilink( url, e, ignorebutton, ignorealt, allowkeywordfixup, postdata, referrerurl ) the following code will open a url in a new tab, an existing tab, or an existing window based on which mouse button was pressed and which hotkeys (ex: ctrl) are being held.
CSS3 - Archive of obsolete content
this was due to the fact that a few secondary features held back the whole specification.
Index - Archive of obsolete content
the value is held in a union, and the type is one of types defined in the npvarianttype enumeration.
Layout System Overview - Archive of obsolete content
the presentation shell owns and maintains a reflow queue where requests for reflow are held until it is time to perform a reflow, and then pulled out and executed.
How to Write and Land Nanojit Patches - Archive of obsolete content
you can explicitly manipulate the revision from which the copying process begins by writing a nanojit-central revision id to the file nanojit-import-rev, held in your target repository.
button.type - Archive of obsolete content
repeat this button will fire its command event repeatedly while the mouse button is held down.
handleCtrlTab - Archive of obsolete content
if the shift key is also held down, the previous tab will be displayed.
reloadWithFlags - Archive of obsolete content
this is the flag used when the reload button is pressed while the shift key is held down.
Simple Query Syntax - Archive of obsolete content
the member data, or results, are held in the variable represented here by '?2'.
Focus and Selection - Archive of obsolete content
getting the currently focused element the currently focused element is held by an object called a command dispatcher, of which there is only one for the window.
browser - Archive of obsolete content
this is the flag used when the reload button is pressed while the shift key is held down.
button - Archive of obsolete content
repeat this button will fire its command event repeatedly while the mouse button is held down.
prefpane - Archive of obsolete content
void userchangedvalue(in domelement element); the user changed the value in a widget that the preferences system does not automatically track state changes for (1) and the preference element associated with the widget should be updated based on the state held by the widget.
tabbox - Archive of obsolete content
if the shift key is also held down, the previous tab will be displayed.
tabbrowser - Archive of obsolete content
this is the flag used when the reload button is pressed while the shift key is held down.
2006-10-20 - Archive of obsolete content
agenda project status meeting project meeting was held on oct 16 2006.
2006-11-03 - Archive of obsolete content
the event will be held on the irc server irc.mozilla.org in the channel #javascript.
2006-12-01 - Archive of obsolete content
peter wilson's reply was to add a method that does the deleting with a native implementation that releases the resources held by the object as seen in this database interface: var mydbase = new pgsqlconnection; mydbase.connect("database"); mydbase.exec("select * from mytable where ..."); // use the result data - (native implementation function) mydbase.close() spidermonkey for server side inquiry about why javascript hasn't caught on for general server-side scripting.
NPVariant - Archive of obsolete content
the value is held in a union, and the type is one of types defined in the npvarianttype enumeration.
NPAPI plugin reference - Archive of obsolete content
the value is held in a union, and the type is one of types defined in the npvarianttype enumeration.
Shipping a plugin as a Toolkit bundle - Archive of obsolete content
the library and scripting interfaces are held in the plugins directory.
Using SSH to connect to CVS - Archive of obsolete content
the passphrase will be held for the length of the x session, and be passed on to all child shells.
Browser Detection and Cross Browser Support - Archive of obsolete content
this ignores the existence of opera as well as the newer handheld devices which are being used to access the web today and in the future.
XForms Custom Controls - Archive of obsolete content
for example, you might want to render images that are held inside an instance document or you would like to show a disabled trigger when its bound node becomes irrelevant rather than having it not display (the current default behavior).
Choosing Standards Compliance Over Proprietary Practices - Archive of obsolete content
as users become more sophisticated, and as additional devices become more affordable, they will be accessing the same information across a variety of devices – and expect them to look and act the same – regardless of whether they are accessing a web site from their desktop, phone, or handheld.
Unconventional controls - Game development
we next add these lines after all the event listeners for keyboard and mouse, but before the draw method: var todegrees = 1 / (math.pi / 180); var horizontaldegree = 0; var verticaldegree = 0; var degreethreshold = 30; var grabstrength = 0; right after that we use the leap's loop method to get the information held in the hand variable on every frame: leap.loop({ hand: function(hand) { horizontaldegree = math.round(hand.roll() * todegrees); verticaldegree = math.round(hand.pitch() * todegrees); grabstrength = hand.grabstrength; output.innerhtml = 'leap motion: <br />' + ' roll: ' + horizontaldegree + '° <br />' + ' pitch: ' + verticaldegree + '°...
Visual-js game engine - Game development
in no event shall the author of this software be held liable for data loss, damages, loss of profits or any other kind of loss while using or misusing this software.
Mutable - MDN Web Docs Glossary: Definitions of Web-related terms
(you can make a variable name point to a new value, but the previous value is still held in memory.
Gecko info for Windows accessibility vendors
*/ } } the get_nodeinfo method is used to get basic information about a node such as the tag name and namespace id, node type (see isimpledomnode.idl for definitions), node value (text held in the node), a unique id for use in tracking where events occur, and the number of children.
A bird's-eye view of the Mozilla framework
the xpcom component keeps track of all interface pointers currently held by its clients using an internal reference count it increments via client calls to addref().
Experimental features in Firefox
due to a bug that came up during testing of the user interface, we have decided to postpone shipping this api while discussions over potential changes to the api are held.
HTTP Cache
provides methods to clear the whole disk and memory cache content or purge any intermediate memory structures: clear – after it returns, all entries are no longer accessible through the cache apis; the method is fast to execute and non-blocking in any way; the actual erase happens in background purgefrommemory – removes (schedules to remove) any intermediate cache data held in memory for faster access (more about the intermediate cache below) nsiloadcontextinfo distinguishes the scope of the storage demanded to open.
BloatView
note that this number does not reflect any memory held onto by the class, such as internal buffers, etc.
GC and CC logs
it also creates a file named cc-edges-nnnn.log to which it dumps the parts of the heap visible to the cycle collector, which includes native c++ objects that participate in cycle collection, as well as js objects being held alive by those c++ objects.
AsyncTestUtils extended framework
accessing synthetic messages and headers synmessages [attribute] the js list of syntheticmessages held in the set.
Introduction to NSPR
should another thread (or the same thread) already have the lock held, the calling thread blocks, waiting for the situation to improve.
PR_CWait
pr_failure indicates either that the monitor could not be located in the cache or that the monitor was located and the calling thread was not the thread that held the monitor's mutex.
PR_EnterMonitor
attempts to acquire the lock for a monitor that is held by some other thread will result in the caller blocking.
Rhino history
originally rhino classfile generation had been held back from release.
GCIntegration - SpiderMonkey Redirect 1
before the pointer is modified (except initializing writes, which don't need a barrier), you should call incrementalreferencebarrier() or incrementalvaluebarrier(), passing it the value the pointer held before the write.
Exact Stack Rooting
root - a gcpointer held live because it is a member of the rootset.
JS::Rooted
js::rooted<t> should be used whenever a local variable's value may be held live across a call which can trigger a gc.
JSPrincipalsTranscoder
the callback xdr-encodes or -decodes a principals instance, based on whether xdr->mode is jsxdr_encode, in which case *principalsp should be encoded; or jsxdr_decode, in which case implementations must return a held (via jsprincipals_hold), non-null *principalsp out parameter.
Web Replay
if this difference can affect the recording, the weak pointer must be instrumented so that during replay it holds onto its target for the same duration it was held while recording.
Using RAII classes in Mozilla
for example, instead of writing: autolock lock(mmutex); which causes the lock to be held until the end of the block, one might write: autolock(mmutex); which erroneously causes the lock to be released at the end of the statement.
Handling Mozilla Security Bugs
as noted above, information about security bugs can be held confidential for some period of time; there is no pre-determined lmit on how long that time period might be.
An Overview of XPCOM
the requirements of a factory class can be handled in a strictly functional way, with state being held by global variables, but there are benefits to using classes for factories.
Finishing the Component
if you care to extend this implementation so that the list of urls is held remotely on a server somewhere - as might be the case when the weblock component is used in a corporate intranet, for example - there are networking apis in gecko that will support this.
Using XPCOM Utilities to Make Things Easier
instead, to explicitly release the object being held by a nscomptr, you can assign zero to that pointer.
Interfacing with the XPCOM cycle collector
firstly it must be held in a js::heap<jsobject *> field.
Components.utils.getWeakReference
example in this example here, a weak reference to a window is held.
nsAutoRef
no copy constructor nor copy assignment operators are available, so the handle to the resource will be held until released on destruction of the nsautoref or until explicitly reset() or transferred through provided methods.
nsAutoRefTraits
nsautoreftraits<t> is a template class describing traits of resources held by objects of class nsautoref<t> and/or nscountedref<t>.
XPCOM glue classes
this class is typically used to represent unicode character arrays.nsastring (external)class declarationnsastring_internalclass declarationnsautorefnsautoref<t> is a template class implementing an object that holds a handle to a resource that must be released, typically on destruction of the object.</t>nsautoreftraitsnsautoreftraits<t> is a template class describing traits of resources held by objects of class nsautoref<t> and/or nscountedref<t>.</t>nsautostringclass declarationnsautostring (external)class declarationnscautostringclass declarationnscautostring (external)class declarationnscomptrthis utility class simplifies managing xpcom interface references from c++ code.nscountedrefnscountedref<t> is a template class implementing an object that takes a strong reference to a refer...
nsICachingChannel
this is valid for as long as a reference to the cache token is held.
nsIDOMChromeWindow
this method will fail unless called while the left mouse button is held down, callers must check this.
nsIObserverService
if set to true and anobserver supports the nsisupportsweakreference interface, a weak reference will be held.
Component; nsIPrefBranch
the observer can request to be held as a weak reference when it is registered.
nsIPrefBranch2
the observer can request to be held as a weak reference when it is registered.
nsIRadioInterfaceLayer
speakerenabled bool constants call state constants constant value description call_state_unknown 0 call_state_dialing 1 call_state_alerting 2 call_state_busy 3 call_state_connecting 4 call_state_connected 5 call_state_holding 6 call_state_held 7 call_state_resuming 8 call_state_disconnecting 9 call_state_disconnected 10 call_state_incoming 11 datacall_state_unknown 0 datacall_state_connecting 1 datacall_state_connected 2 datacall_state_disconnecting 3 datacall_state_disconnected 4 call_state_ringing 2 obsolete since gecko 14.0 methods answercall() void answercall( in unsigned long callindex ...
nsISupports
violates the xpcom interface guidelines release() notifies the object that an interface pointer has been destroyed and any resources the object held on behalf of the client can be released.
nsITransaction
if the transient state is false, a reference to the transaction is held by the transaction manager so that the transactions' undotransaction() and redotransaction() methods can be called.
Address book sync client design
the static information that is held on the client for address book sync operations is stored in a file called absync.dat which is located in the root directory of the users profile information.
Using the Multiple Accounts API
news.mozilla.org +- netscape.public.mozilla.announce +- netscape.public.mozilla.mail-news relevant api calls: nsimsgaccount.incomingserver nsimsgaccountmanager.allservers: a list of all servers held by all accounts.
Debugger.Frame - Firefox Developer Tools
(this is not like a with statement:code may access, assign to, and delete the introduced bindings without having any effect on thebindings object.) this method allows debugger code to introduce temporary bindings that are visible to the given debuggee code and which refer to debugger-held debuggee values, and do so without mutating any existing debuggee environment.
Debugger.Object - Firefox Developer Tools
(this is not like a with statement:code may access, assign to, and delete the introduced bindings without having any effect on thebindings object.) this method allows debugger code to introduce temporary bindings that are visible to the given debuggee code and which refer to debugger-held debuggee values, and do so without mutating any existing debuggee environment.
Debugger.Object - Firefox Developer Tools
(this is not like a with statement:code may access, assign to, and delete the introduced bindings without having any effect on thebindings object.) this method allows debugger code to introduce temporary bindings that are visible to the given debuggee code and which refer to debugger-held debuggee values, and do so without mutating any existing debuggee environment.
Detecting device orientation - Web APIs
in particular, hand-held devices such as mobile phones can use this information to automatically rotate the display to remain upright, presenting a wide-screen view of the web content when the device is rotated so that its width is greater than its height.
Gamepad - Web APIs
WebAPIGamepad
gamepad.hand read only an enum defining what hand the controller is being held in, or is most likely to be held in.
Using the Gamepad API - Web APIs
ds()[gamepad.index] if (connecting) { gamepads[gamepad.index] = gamepad; } else { delete gamepads[gamepad.index]; } } window.addeventlistener("gamepadconnected", function(e) { gamepadhandler(e, true); }, false); window.addeventlistener("gamepaddisconnected", function(e) { gamepadhandler(e, false); }, false); this previous example also demonstrates how the gamepad property can be held after the event has completed — a technique we will use for device state querying later.
The HTML DOM API - Web APIs
htmlmediaelement defines the methods and properties held in common between audio and video elements.
KeyboardEvent.charCode - Web APIs
if the key pressed generates a character (e.g., 'a'), charcode is set to the code of that character; charcode respects the letter case (in other words, charcode takes into account whether the shift key is held down).
KeyboardEvent.repeat - Web APIs
the repeat read-only property of the keyboardevent interface returns a boolean that is true if the given key is being held down such that it is automatically repeating.
LockManager - Web APIs
lockmanager.query() returns a promise that resolves with a lockmanagersnapshot which contains information about held and pending locks.
MediaDevices.getUserMedia() - Web APIs
user privacy as an api that may involve significant privacy concerns, getusermedia() is held by the specification to very specific requirements for user notification and permission management.
Pointer Lock API - Web APIs
locked state when pointer lock is enabled, the standard mouseevent properties clientx, clienty, screenx, and screeny are held constant, as if the mouse is not moving.
StyleSheet.media - Web APIs
WebAPIStyleSheetmedia
dia="screen, print"> body { background-color: snow; } </style> </head> <body> <script> for (var isheetindex = 0; isheetindex < document.stylesheets.length; isheetindex++) { console.log('document.stylesheets[' + string(isheetindex) + '].media: ' + json.stringify(document.stylesheets[isheetindex].media)); if (isheetindex === 0) document.stylesheets[isheetindex].media.appendmedium('handheld'); if (isheetindex === 1) document.stylesheets[isheetindex].media.deletemedium('print'); console.log('document.stylesheets[' + string(isheetindex) + '].media: ' + json.stringify(document.stylesheets[isheetindex].media)); } /* will log: document.stylesheets[0].media: {"0":"screen"} document.stylesheets[0].media: {"0":"screen","1":"handheld"} document.stylesheets[1].media: {"0":"screen"...
WEBGL_compressed_texture_atc - Web APIs
atc is a proprietary compression algorithm for compressing textures on handheld devices.
Movement, orientation, and motion: A WebXR example - Web APIs
since the "mouselook" feature functions only while the right mouse button is held down, and clicking using the right mouse button triggers the context menu, we add a handler for the contextmenu event to the canvas to prevent the context menu fom appearing when the user initially begins their drag of the mouse.
Spaces and reference spaces: Spatial tracking in WebXR - Web APIs
the target ray; each controller or other handheld device may have a targeting ray associated with it, which is represented by a space whose origin is at the point on the controller at which the ray is emitted, and is oriented so that -z extends in the direction of the target it's pointing at.
Starting up and shutting down a WebXR session - Web APIs
these devices include things such as the handheld controllers, motion-sensing cameras, motion-sensitive gloves and other feedback devices.
WebXR Device API - Web APIs
webxr-compatible devices include fully-immersive 3d headsets with motion and orientation tracking, eyeglasses which overlay graphics atop the real world scene passing through the frames, and handheld mobile phones which augment reality by capturing the world with a camera and augment that scene with computer-generated imagery.
Advanced techniques: Creating and sequencing audio - Web APIs
to do so, we need to pass real and imaginary values into the baseaudiocontext.createperiodicwave() method.: let wave = audioctx.createperiodicwave(wavetable.real, wavetable.imag); note: in our example the wavetable is held in a separate javascript file (wavetable.js), because there are so many values.
Using the Web Audio API - Web APIs
<audio src="mycooltrack.mp3"></audio> note: if the sound file you're loading is held on a different domain you will need to use the crossorigin attribute; see cross origin resource sharing (cors) for more information.
WritableStream.WritableStream() - Web APIs
it can clean up any held resources, much like close(), but abort() will be called even if writes are queued up — those chunks will be thrown away.
XMLHttpRequest.getAllResponseHeaders() - Web APIs
an example of what a raw header string looks like: date: fri, 08 dec 2017 21:04:30 gmt\r\n content-encoding: gzip\r\n x-content-type-options: nosniff\r\n server: meinheld/0.6.1\r\n x-frame-options: deny\r\n content-type: text/html; charset=utf-8\r\n connection: keep-alive\r\n strict-transport-security: max-age=63072000\r\n vary: cookie, accept-encoding\r\n content-length: 6502\r\n x-xss-protection: 1; mode=block\r\n each line is terminated by both carriage return and line feed characters (\r\n).
XRInputSource.targetRayMode - Web APIs
tracked-pointer targeting is being performed using a handheld device or hand-tracking system which the user points in the direction of the target.
XRSession.inputSources - Web APIs
these controllers may include handheld controllers, xr-equipped gloves, optically tracked hands, and gaze-based input methods.
XRSession.onselect - Web APIs
example this example handles select event which occur on the user's main hand (as given by a user object's handedness property); if that value matches the value of the xrinputsource property handedness, we know that the device is held in the user's main hand.
XRSession: select event - Web APIs
examples of comon kinds of primary action are users pressing triggers or buttons, tapping a touchpad, speaking a command, or performing a recognizable gesture when using a video tracking system or handheld controller with an accelerometer.
XRSession: selectend event - Web APIs
primary actions include things like users pressing triggers or buttons, tapping a touchpad, speaking a command, or performing a recognizable gesture when using a video tracking system or handheld controller with an accelerometer.
XRSession: selectstart event - Web APIs
primary actions include things like users pressing triggers or buttons, tapping a touchpad, speaking a command, or performing a recognizable gesture when using a video tracking system or handheld controller with an accelerometer.
XRSession: squeeze event - Web APIs
examples of comon kinds of primary action are users pressing triggers or buttons, tapping a touchpad, speaking a command, or performing a recognizable gesture when using a video tracking system or handheld controller with an accelerometer.
XRSession: squeezeend event - Web APIs
primary squeeze actions include things like users pressing triggers or buttons, tapping a touchpad, speaking a command, or performing a recognizable gesture when using a video tracking system or handheld controller with an accelerometer.
XRTargetRayMode - Web APIs
tracked-pointer targeting is being performed using a handheld device or hand-tracking system which the user points in the direction of the target.
ARIA: listbox role - Accessibility
multiple selection: authors may implement either of two interaction models to support multiple selection: a recommended model that does not require the user to hold a modifier key, such as shift or control, while navigating the list or an alternative model that does require modifier keys to be held while navigating in order to avoid losing selection states.
-webkit-touch-callout - CSS: Cascading Style Sheets
when a target is touched and held on ios, safari displays a callout information about the link.
@media - CSS: Cascading Style Sheets
WebCSS@media
deprecated media types: css2.1 and media queries 3 defined several additional media types (tty, tv, projection, handheld, braille, embossed, and aural), but they were deprecated in media queries 4 and shouldn't be used.
Relationship of flexbox to other layout methods - CSS: Cascading Style Sheets
the reason that the box alignment properties remain detailed in the flexbox specification as well as being in box alignment is to ensure that completion of the flexbox spec is not held up by box alignment, which has to detail these methods for all layout types.
Using media queries - CSS: Cascading Style Sheets
deprecated media types: css2.1 and media queries 3 defined several additional media types (tty, tv, projection, handheld, braille, embossed, and aural), but they were deprecated in media queries 4 and shouldn't be used.
Event reference
fterscriptexecute beforescriptexecute menu events dommenuitemactive dommenuiteminactive window events close popup events popuphidden popuphiding popupshowing popupshown tab events visibilitychange battery events chargingchange chargingtimechange dischargingtimechange levelchange call events alerting busy callschanged cfstatechange connecting dialing disconnected disconnecting error held, holding incoming resuming statechange voicechange sensor events compassneedscalibration devicemotion deviceorientation orientationchange smartcard events icccardlockerror iccinfochange smartcard-insert smartcard-remove stkcommand stksessionend cardstatechange sms and ussd events delivered received sent ussdreceived frame events mozbrowserclose mozbrowsercontextmenu mozbrowsererror mozbro...
Index - Developer guides
WebGuideIndex
this lets it work effectively both for users of powerful desktop systems as well as for handheld devices with less power.
Optimization and performance - Developer guides
this lets it work effectively both for users of powerful desktop systems as well as for handheld devices with less power.
Developer guides
this lets it perform effectively for both powerful desktop systems and weaker handheld devices.
Link types - HTML: Hypertext Markup Language
otherwise, the link defines an alternative page, of one of these types: for another medium, like a handheld device (if the media attribute is set) in another language (if the hreflang attribute is set), in another format, such as a pdf (if the type attribute is set) a combination of these <a>, <area>, <link> <form> archives defines a hyperlink to a document that contains an archive link to this one.
Connection management in HTTP/1.x - HTTP
this simple model held an innate limitation on performance: opening each tcp connection is a resource-consuming operation.
Set-Cookie - HTTP
lax: the cookie is withheld on cross-site subrequests, such as calls to load images or frames, but is sent when a user navigates to the url from an external site, such as by following a link.
FinalizationRegistry() constructor - JavaScript
examples creating a new registry you create the registry passing in the callback: const registry = new finalizationregistry(heldvalue => { // ....
Object - JavaScript
when a function is called, the arguments to the call are held in the array-like "variable" arguments.
TypedArray - JavaScript
typedarray.prototype.length returns the number of elements held in the typed array.
Uint8Array - JavaScript
uint8array.prototype.length returns the number of elements held in the uint8array.
WeakRef - JavaScript
complex factors may lead to objects being held alive for unexpected amounts of time, such as use with certain apis.
WeakSet() constructor - JavaScript
the weakset constructor lets you create weakset objects that store weakly held objects in a collection.
delete operator - JavaScript
the javascript delete operator removes a property from an object; if no more references to the same property are held, it is eventually released automatically.
Web video codec guide - Web media technologies
h.263 is a proprietary format, with patents held by a number of organizations and companies, including telenor, fujitsu, motorola, samsung, hitachi, polycom, qualcomm, and so on.
Web Performance
mobile performance checklist a concise checklist of performance considerations impacting mobile network users on hand-held, battery operated devices.