Search completed in 4.17 seconds.
246 results for "Clients":
Your results are loading. Please wait...
Clients.matchAll() - Web APIs
WebAPIClientsmatchAll
the matchall() method of the clients interface returns a promise for a list of service worker client objects.
... include the options parameter to return all service worker clients whose origin is the same as the associated service worker's origin.
... if options are not included, the method returns only the service worker clients controlled by the service worker.
...And 6 more matches
Clients - Web APIs
WebAPIClients
the clients interface provides access to client objects.
... access it via self.clients within a service worker.
... methods clients.get() returns a promise for a client matching a given id.
...And 6 more matches
Clients.claim() - Web APIs
WebAPIClientsclaim
the claim() method of the clients interface allows an active service worker to set itself as the controller for all clients within its scope.
... this triggers a "controllerchange" event on navigator.serviceworker in any clients that become controlled by this service worker.
... syntax await clients.claim(); parameters none.
...And 2 more matches
Clients.openWindow() - Web APIs
the openwindow() method of the clients interface creates a new top level browsing context and loads a given url.
... syntax self.clients.openwindow(url).then(function(windowclient) { // do something with your windowclient }); parameters url a usvstring representing the url of the client you want to open in the window.
...'click here to view your messages.', data: { url: self.location.origin + '/some/path' }, // data: { url: 'http://example.com' }, }; self.registration.shownotification('you\'ve got messages!', notificationobject); } // notification click event listener self.addeventlistener('notificationclick', e => { // close the notification popout e.notification.close(); // get all the window clients e.waituntil(clients.matchall({ type: 'window' }).then(clientsarr => { // if a window tab matching the targeted url already exists, focus that; const hadwindowtofocus = clientsarr.some(windowclient => windowclient.url === e.notification.data.url ?
...And 2 more matches
Clients.get() - Web APIs
WebAPIClientsget
the get() method of the clients interface gets a service worker client matching a given id and returns it in a promise.
... syntax self.clients.get(id).then(function(client) { // do something with your returned client }); parameters id a domstring representing the id of the client you want to get.
... examples self.clients.get(id).then(function(client) { self.clients.openwindow(client.url); }); specifications specification status comment service workersthe definition of 'get()' in that specification.
ServiceWorkerGlobalScope.clients - Web APIs
the clients read-only property of the serviceworkerglobalscope interface returns the clients object associated with the service worker.
... syntax swclients = self.clients value the clients object associated with the specific worker.
... specifications specification status comment service workersthe definition of 'serviceworkerregistration.clients' in that specification.
An Overview of XPCOM
interfaces allow developers to encapsulate the implementation and inner workings of their software, and allow clients to ignore how things are made and just use that software.
... interfaces and programming by contract an interface forms a contractual agreement between components and clients.
...in component-based programming, a component guarantees that the interfaces it provides will be immutable - that they will provide the same access to the same methods across different versions of the component - establishing a contract with the software clients that use it.
...And 11 more matches
Index - Web APIs
WebAPIIndex
window clients are represented by the more-specific windowclient.
... you can get client/windowclient objects from methods such as clients.matchall() and clients.get().
... 630 clients api, clients, experimental, interface, reference, service workers, service worker api, serviceworker, workers the clients interface provides access to client objects.
...And 10 more matches
Index
MozillaTechXPCOMIndex
111 using xpcom components xpcom applications like the mozilla browser are sophisticated, modularized clients of xpcom components.
... 200 moziregistry outdated_articles clients will rely on nsrepository to create instances of a given class.
... clients requiring dynamic "binding" of clsids will be required to use some higher-level services (tbd) to figure out the clsids they should use.
...And 7 more matches
Introduction to SSL - Archive of obsolete content
ssl has been universally accepted on the world wide web for authenticated and encrypted communication between clients and servers.
...clients and servers may support different cipher suites, or sets of ciphers, depending on factors such as the version of ssl they support, company policies regarding acceptable encryption strength, and government restrictions on export of ssl-enabled software.
...administrators can enable or disable any of the supported cipher suites for both clients and servers.
...And 3 more matches
Getting Started with Chat
you will need to use the following information to configure the server connection: server: irc.mozilla.org port: 6667 (default) or 6697 (ssl) desktop clients desktop clients tens to allow the most detailed configuration.
... note: for a complete list of irc clients go here.
... web-based clients there are also a few web-based clients which allow connecting to irc by clicking on irc:// links.
...And 3 more matches
sslfnc.html
you must turn this option off to interoperate with tls clients ( such as certain versions of microsoft internet explorer) that do not conform to the tls specification regarding rollback attacks.
...the client-auth certificate cache is used to remember the certificates previously presented by clients for client certificate authentication.
...the client-auth certificate cache is used to remember the certificates previously presented by clients for client certificate authentication.
...And 3 more matches
Starting WebLock
the next step is to expose additional functionality to gecko applications and other clients to query and control the weblock component.
...what, in other words, is the interaction of clients with the weblock component?
... instead of starting with the implementation, developers use xpidl (see xpidl and type libraries for more information about xpidl) to define the interface to the component: how the functionality should be organized, expressed, and exposed to its clients.
...And 3 more matches
Using XPCOM Components
« previousnext » one of the best ways to begin working with xpcom - especially when you are designing the interface to a component that will be used by others, as we do in starting weblock - is to look at how clients are already using xpcom components.
... applications like the mozilla browser are sophisticated, modularized clients of xpcom components.
...it's divided into three subsections: one about actually finding all these binary components in mozilla and two others corresponding to the two main ways that clients typically access xpcom components: finding mozilla components this book attempts to provide reference information for xpcom components and their interfaces that are frozen as of the time of this writing.
...And 2 more matches
mozIRegistry
it's not really about any "registry interface" so much as it's about how mozilla supports a more dynamic binding between interface clients and the code that actually provides the implementation of those interfaces.
... summary clients will rely on nsrepository to create instances of a given class.
... clients requiring dynamic "binding" of clsids will be required to use some higher-level services (tbd) to figure out the clsids they should use.
...And 2 more matches
Getting Started Guide
clients don't get to know much about the implementation of any such object.
...that is, the interface keeps a count of the number of clients holding references to it.
...clients are expected to keep this reference count accurate by incrementing it when they acquire a reference to the interface, and decrementing it before they let go.
...And 2 more matches
HTTP conditional requests - HTTP
which client's changes are to be kept, will vary with the speed they commit; this depends on the performance of the clients, of the server, and even of the human editing the document at the client.
...this is a race condition and leads to problematic behaviors, which are difficult to detect and to debug: there is no way to deal with this problem without annoying one of the two clients.
...we want predictable results, and expect that the clients are notified when their changes are rejected.
...And 2 more matches
Tinderbox - Archive of obsolete content
although there are multiple tinderbox clients machines doing different kinds of builds (f.e.
...whether or not any clients have failed.
...if any clients have failed to build, we will display a red icon that signifies a build failure; if all clients built successfully but some failed tests we will display an orange icon that signifies a test failure.
... only if all clients reported both successful builds and successful tests will we display a green icon that signifies all is well with the code.
Index - MDN Web Docs Glossary: Definitions of Web-related terms
79 client hints client hints, glossary, performance, reference, web performance client hints are a set of http request header fields for proactive content negotiation allowing clients to indicate a list of device and agent specific preferences.
...this secure connection allows clients to safely exchange sensitive data with a server, such as when performing banking activities or online shopping.
... a software server (often running on a hardware server) is a program that provides services to client programs or a user interface to human clients.
...to do that, clients will look for identifiers (for example public keys) stored locally.
About NSPR
today nspr may still be appropriate as the platform dependent layer under java, but its primary application is supporting clients written entirely in c or c++.
...nspr, while far from perfect, does provide a single api to which clients may program and expect reasonably consistent behavior.
...while the object is not declared as opaque, the api provides methods that allow and encourage clients to treat the addresses as polymorphic items.
...nspr does not provide an epoch , but expects clients to deal with that issue.
sslintro.html
for clients only.
...required for clients.
...specifies a callback function used to authenticate an incoming certificate (optional for servers, necessary for clients to avoid "man-in-the-middle" attacks).
... functions that can be used by both clients and servers during communication include the following: pr_send or pr_write pr_read or pr_recv pr_geterror pr_getpeername pr_sleep pr_malloc pr_free pr_poll pr_now pr_intervaltomilliseconds pr_millisecondstointerval pr_shutdown pr_close ssl_invalidatesession after establishing a connection, an application first calls pr_send, pr_recv, pr_read, pr_write, or ssl_forceha...
nsIWindowWatcher
clients may expect this property to be always current, so to properly integrate this component the application will need to keep it current by setting the property as the active window changes.
...embedding clients need do nothing special about that requirement.
... registernotification() clients of this service can register themselves to be notified when a window is opened or closed (added to or removed from this service).
... unregisternotification() clients of this service can register themselves to be notified when a window is opened or closed (added to or removed from this service).
HTTP caching - HTTP
WebHTTPCaching
this achieves several goals: it eases the load of the server that doesn’t need to serve all clients itself, and it improves performance by being closer to the client, i.e., it takes less time to transmit the resource back.
...use pragma only for backwards compatibility with http/1.0 clients.
...as http is a client-server protocol, servers can't contact caches and clients when a resource changes; they have to communicate an expiration time for the resource.
... vary: user-agent because the user-agent header value is different ("varies") for mobile and desktop clients, caches will not be used to serve mobile content mistakenly to desktop users or vice versa.
Protocol upgrade mechanism - HTTP
upgrading http/1.1 connections the upgrade header field is used by clients to invite the server to switch to one of the listed protocols, in descending preference order.
...this header can be used when insecure (http) clients wish to upgrade, in order to offer some degree of protection against abuse.
...instead, it helps to prevent non-websocket clients from inadvertently, or through misuse, requesting a websocket connection.
... in essence, then, this key simply confirms that "yes, i really mean to open a websocket connection." this header is automatically added by clients that choose to use it; it cannot be added using the xmlhttprequest.setrequestheader() method.
platform/xpcom - Archive of obsolete content
by creating a factory and passing it the contract id for the helloworld component and the helloworld constructor, we enable xpcom clients to access the helloworld component, given its contract id.
...r { unknown, factory } = require('sdk/platform/xpcom'); var { cc, ci } = require('chrome'); var contractid = '@me.org/helloworld'; // define a component var helloworld = class({ extends: unknown, get wrappedjsobject() this, hello: function() {return 'hello world';} }); // create and register the factory var factory = factory({ contract: contractid, component: helloworld }); // xpcom clients can retrieve and use this new // component in the normal way var wrapper = cc[contractid].createinstance(ci.nsisupports); var helloworld = wrapper.wrappedjsobject; console.log(helloworld.hello()); using class id you can specify a class id for the factory by setting the id option in the factory's constructor.
... the contract id and/or class id may be used by xpcom clients to retrieve the factory.
Introduction to Public-Key Cryptography - Archive of obsolete content
ssl protocol signed and encrypted email single sign-on object signing ssl protocol the secure sockets layer (ssl) protocol is a set of rules governing server authentication, client authentication, and encrypted communication between servers and clients.
...used to identify clients to servers via ssl (client authentication).
...used to identify servers to clients via ssl (server authentication).
How the Web works - Learn web development
clients and servers computers connected to the web are called clients and servers.
... a simplified diagram of how they interact might look like this: clients are the typical web user's internet-connected devices (for example, your computer connected to your wi-fi, or your phone connected to your mobile network) and web-accessing software available on those devices (usually a web browser like firefox or chrome).
... http: hypertext transfer protocol is an application protocol that defines a language for clients and servers to speak to each other.
Introduction to automated testing - Learn web development
it has several clients available to allow you to make calls to the api using your favourite environment, be it php, java, node.js, etc.
... it has several clients available to allow you to make calls to the api using your favourite environment, be it php, java, node.js, etc.
... testingbot has several api clients you can use to interact with the api, including clients for nodejs, python, ruby, java and php.
NSPR Poll Method
to remain compatible with this potential semantic change, nspr clients should only use *out_flags as described in the how to use the poll method section below.
...therefore, nspr clients should only use the return value as described in how to use the poll method section below.) if the poll method stores zero in *out_flags, the return value will be the bottom layer's desires with respect to the in_flags.
...most nspr clients call pr_poll and do not call the poll method directly.
Notes on TLS - SSL 3.0 Intolerant Servers
this incorrect implementation causes them to reject connection attempts from clients that are compliant with the ssl 3.0 and tls (aka ssl 3.1) specifications.
...tls is now available and used, and products that have implemented the roll-back detection incorrectly are not interoperable with tls/ssl spec-compliant clients.
...there will be other network clients which implement tls/ssl 3.0 specification correctly and have a problem with your site.
Creating the Component Code
registration is a process that happens in all xpcom applications, whether they're embedded gecko clients, mozilla, netscape 7, compuserve, or any other software that uses xpcom.
...you also have to create weblockmodule to implement the necessary nsimodule interface, and you have to create weblockfactory to implement nsifactory and create a factory that hands instances of your component to clients.
...this prevents clients from ever accessing the component with a contract id.) to be accessible to others, you need to publish the cid and/or contract id of the component along with the interfaces it supports.
Signaling and video calling - Web APIs
this involves a change near the end of the "connection" message handler: if (sendtoclients) { var msgstring = json.stringify(msg); var i; if (msg.target && msg.target !== undefined && msg.target.length !== 0) { sendtooneuser(msg.target, msgstring); } else { for (i=0; i<connectionarray.length; i++) { connectionarray[i].send(msgstring); } } } this code now looks at the pending message to see if it has a target property.
...our clients can now send messages of unknown types to any specific user, letting them send signaling messages back and forth as desired.
... this example's server uses stringified json objects to communicate with its clients.
Cross-Origin Resource Sharing (CORS) - HTTP
WebHTTPCORS
servers can also inform clients whether "credentials" (such as cookies and http authentication) should be sent with requests.
...to allow code from the origin https://mozilla.org to access the resource, you can specify: access-control-allow-origin: https://mozilla.org vary: origin if the server specifies a single origin (that may dynamically change based on the requesting origin as part of a white-list) rather than the "*" wildcard, then the server should also include origin in the vary response header — to indicate to clients that server responses will differ based on the value of the origin request header.
... access-control-allow-headers: <header-name>[, <header-name>]* the http request headers this section lists headers that clients may use when issuing http requests in order to make use of the cross-origin sharing feature.
An overview of HTTP - HTTP
WebHTTPOverview
clients and servers communicate by exchanging individual messages (as opposed to a stream of data).
...the server can instruct proxies and clients, about what to cache and for how long.
... proxy and tunneling servers or clients are often located on intranets and hide their true ip address from other computers.
Proxy servers and tunneling - HTTP
forward proxies a forward proxy, or gateway, or just "proxy" provides proxy services to a client or a group of clients.
... reverse proxies as the name implies, a reverse proxy does the opposite of what a forward proxy does: a forward proxy acts in behalf of clients (or requesting hosts), a reverse proxy acts in behalf of servers.
... forward proxies can hide the identities of clients whereas reverse proxies can hide the identities of servers.
Preferences - Archive of obsolete content
this interface is described as: // "nsiprefbranch2 allows clients to observe changes to pref values." // this is only necessary prior to gecko 13 if (!("addobserver" in this.branch)) this.branch.queryinterface(components.interfaces.nsiprefbranch2); // finally add the observer.
... user's/administrator's pov mozilla xpcom interfaces of the preferences system most used interfaces (these are frozen and will not change): nsiprefbranch and nsiprefservice nsiprefbranch2 interface (before gecko 1.8 it was called nsiprefbranchinternal) preferences system - an easy way to create a xul options window for your extension or application syncing preferences across clients using sync lxr pages for libpref, the source code module that implements the preferences system a javascript wrapper for preferences api adding preferences to an extension — a simple tutorial with a working extension that illustrates the use of preference observers inline options - how to use the new preference ui that appears inline in the add-on manager window starting in firefox 7 .
Index - Archive of obsolete content
ssl has been universally accepted on the world wide web for authenticated and encrypted communication between clients and servers.
... 3746 ssl and tls security, tutorial the secure sockets layer (ssl) and transport layer security (tls) protocols are universally accepted standards for authenticated and encrypted communication between clients and servers.
Layout System Overview - Archive of obsolete content
frames are basic formatting objects used in layout, and the frame manager is responsible for making frames available to clients.
...clients generally do not want to incur the expense of traversing all of the frames from the root to find the frame they are interested in, so the frame manager provides some other mappings based on the needs of the clients.
Code snippets - Archive of obsolete content
for each (let client in tabsengine.getallclients()) { for each (let tab in client.tabs) { let url = tab.urlhistory[0]; // load the tab via the tabbed browser api.
...envelope.payload = json.stringify(payload); r.put(json.stringify(envelope)); generate new keys // clients always wipe the server when they generate new keys.
Firefox Sync - Archive of obsolete content
clients communicate through it.
...these include: an http api for client-server interaction storage formats used by the the clients cryptographic model for encrypting client data the definitive source for these specifications is http://docs.services.mozilla.com/.
Space Manager Detailed Design - Archive of obsolete content
*/ nsiframe* getframe() const { return mframe; } implementation notes algorithm 1: getbanddata getbanddata is used to provide information to clients about what space if available and unavailable in a band of space.
... algorithm 2: addrectregion clients call into this method to notify the space manager that a new frame is occupying some space.
Space Manager High Level Design - Archive of obsolete content
the classes that are considered part of the space manager are: nsspacemanager nsbanddata nsblockbanddata bandrect / bandlist (private structs) frameinfo (private struct) nsbandtrapezoid outside of the space manager itself, the clients of the space manager also play an important part in the management of he available and used space.
...this is used to communicate information about the space in the band to the clients of the space manager.
Using XPInstall to Install Plugins - Archive of obsolete content
when serving xpi packages from servers to clients, make sure that xpi packages are served with this mime type in the http headers.
...when serving xpi packages from servers to clients, make sure that xpi packages are served with this mime type in the http headers.
SSL and TLS - Archive of obsolete content
the secure sockets layer (ssl) and transport layer security (tls) protocols are universally accepted standards for authenticated and encrypted communication between clients and servers.
...clients and servers may support different cipher suites, or sets of ciphers.
IMAP - MDN Web Docs Glossary: Definitions of Web-related terms
clients accessing a mailbox can receive information about state changes made from other clients.
... imap also provides a mode for clients to stay connected and receive information on demand.
POP3 - MDN Web Docs Glossary: Definitions of Web-related terms
clients usually retrieve all messages and then delete them from the server, but pop3 does allow retaining a copy on the server.
... nearly all email servers and clients currently support pop3.
How much does it cost to do something on the Web? - Learn web development
however, people often choose dedicated (s)ftp clients to display local or remote directories side-by-side and store server passwords.
...at the time of writing, clients are seeking single pages with complex parallax will you need the agency to think up user stories or solve complex ux problems?
How do you upload your files to a web server? - Learn web development
in this article we'll discuss how to do that, using various available options such as sftp clients, rsync and github.
... sftp there are several sftp clients out there.
What is a web server? - Learn web development
for now, just be aware of these things: only clients can make http requests, and then only to servers.
... when requesting a file via http, clients must provide the file's url.
Index - Learn web development
in this article we'll discuss how to do that, using various available options such as sftp clients, rsync and github.
...but how do you convince your clients and/or management to prioritize and invest in performance?
The business case for web performance - Learn web development
but how do you convince your clients and/or management to prioritize and invest in performance?
... objective: to gain confidence in working with clients and management to get them to make web performance a priority.
Package management basics - Learn web development
there are also a number of other emerging clients, such as pnpm.
... a rough guide to package manager clients this tutorial installed the parcel package using npm, but as mentioned earlier on there are some alternatives and it's worth at least knowing they exist and having some vague idea of the common commands across the tools.
Mozilla accessibility architecture
you may also wish to read gecko info for windows accessibility vendors, a primer for vendors of 3rd party accessibility software, on how msaa clients can utilize gecko's support.
...also, msaa clients need to access the event accessibles using the unique child id we give it.
Gecko info for Windows accessibility vendors
embedded clients (support msaa) embedded clients use gecko only in the content window, at the moment for html and generic xml only.
... k-meleon: a light, ultra-fast and more advanced (fully configurable) gecko-based web browser available on the windows platform xul-based clients (support msaa) xul-based clients make full use of the gecko architecture, not only for html content, as well as for menus, dialogs and the entire user interface via an xml language called xul (extensible user-interface language).
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().
... xpcom in summary to summarize, the xpcom object model specifies the structure of xpcom components, builds a central registry based on the xpcom components loaded at startup, generates xpcom component instances on demand using the registry, which specifies the supported interfaces, their corresponding implementation objects, and the nsifactory interface, provides api facilities clients can use to dynamically create xpcom components, and specifies the mechanism clients use to query an xpcom component for one of its interfaces, and to release the interface when it’s no longer needed.
Embedding the editor
more than one editor per window current composer clients in the mozilla codebase all assume that there is only one <editor> tag per window.
...fixing this would require js changes of the following kind: standardize the way that clients get at the editorshell (or its replacement, post-embedding work) from the window.
OSFile.jsm
in this mode, main thread clients use the api to request off main thread file i/o.
...for this reason, api clients can also spawn their own worker threads and make use of os.file directly from these threads.
Optimizing Applications For NSPR
the casual client may not encounter a need to know the details of the shortcomings to the level described here, but if and when clients become more sophisticated, these issues will certainly surface.
...the implementation is well suited for high performance application, such as a server, but clients may find the win-95 version more suited (and adequate) for interactive applications such as are prevalent on today's workstations.
Network Addresses
to facilitate the transition to ipv6, it is recommended that clients treat all structures containing network addresses as transparent objects and use the functions documented here to manipulate the information.
...by using these functions with other network address functions, clients can support either version 4 or version 6 of the internet protocol transparently.
NSS 3.12.6 release notes
[3|t|t]: ssl_renegotiate_transitional disallows unsafe renegotiation in server sockets only, but allows clients to continue to renegotiate with vulnerable servers.
... note: the tls server name indication for clients is already fully implemented in nss.
nss tech note8
every ssl socket has two function pointers, ss->sec.cache and ss->sec.uncache, which have the following types: typedef void (*sslsessionidcachefunc) (sslsessionid *sid); typedef void (*sslsessioniduncachefunc)(sslsessionid *sid); there are two separate implementations of each function, one for clients and one for servers.
... for clients these pointers point to sec->cache = cachesid; sec->uncache = lockanduncachesid; which are functions defined in sslnonce.c, the client session cache source file.
Mozilla Projects
this api is used in many mozilla-based client applications (including firefox) and can be used for writing other networking clients.
...the api is used in the mozilla clients, many of red hat's and oracle's server applications, and other software offerings.
Component Internals
the component is an abstraction sitting between the actual module in which it is implemented and the objects that its factory code creates for use by clients.
...most xpcom interfaces are not frozen and are only meant to be used by the gecko internals and not by clients.
nsICacheEntryDescriptor
this is meant as a tool for clients that wish to instruct pending requests to skip the cache.
...this is meant as a tool for clients that wish to instruct pending requests to skip the cache.
nsIChannel
netwerk/base/nsichannel.idlscriptable this interface allows clients to construct 'get' requests for specific protocols, and manage them in a uniform way.
...this is set by clients, who wish to provide a means to receive progress, status and protocol-specific notifications.
nsIClipboard
supportsselectionclipboard() this method allows clients to determine if the implementation supports the concept of a separate clipboard for selection.
... supportsfindclipboard() this method allows clients to determine if the implementation supports the concept of a separate clipboard for find search strings.
nsIWeakReference
inherits from: nsisupports last changed in gecko 0.9.9 an instance of nsiweakreference is a proxy object that cooperates with its referent to give clients a non-owning, non-dangling reference.
... clients own the nsiweakreference instance.
Client - Web APIs
WebAPIClient
window clients are represented by the more-specific windowclient.
... you can get client/windowclient objects from methods such as clients.matchall() and clients.get().
CloseEvent - Web APIs
a closeevent is sent to clients using websockets when the connection is closed.
...it is overloaded and is casting off some of its clients.
Browser storage limits and eviction criteria - Web APIs
we term them "quota clients" in this context: indexeddb asm.js caching cache api cookies note: in firefox, web storage will soon start to use the same storage management tools too, as described in this document.
... the "last access time" of origins is updated when any of these are activated/deactivated — origin eviction will delete data for all these quota clients.
Transcoding assets for Media Source Extensions - Web APIs
most dash clients expect a corresponding media presentation description (mpd) manifest file, which is typically generated while generating the multiple resolution asset files.
...bento4's mp4-dash.py python script can then be used to generate the corresponding mpd file needed by clients.
Media Source API - Web APIs
it lays the groundwork for adaptive bitrate streaming clients (such as those using dash or hls) to be built on its extensible api.
...it is effectively a layer built on top of mse for building adaptive bitrate streaming clients.
PushEvent.data - Web APIs
WebAPIPushEventdata
examples the following example takes data from a pushevent and displays it on all of the service workers' clients.
...ta = event.data.json(); } var title = data.title || "something has happened"; var message = data.message || "here's something you might want to check out."; var icon = "images/new-notification.png"; var notification = new notification(title, { body: message, tag: 'simple-push-demo-notification', icon: icon }); notification.addeventlistener('click', function() { if (clients.openwindow) { clients.openwindow('https://example.blog.com/2015/03/04/something-new.html'); } }); }); specifications specification status comment push apithe definition of 'data' in that specification.
PushEvent - Web APIs
WebAPIPushEvent
examples the following example takes data from a pushevent and displays it on all of the service worker's clients.
...event.data.json(); } var title = data.title || "something has happened"; var message = data.message || "here's something you might want to check out."; var icon = "images/new-notification.png"; var notification = new self.notification(title, { body: message, tag: 'simple-push-demo-notification', icon: icon }); notification.addeventlistener('click', function() { if (clients.openwindow) { clients.openwindow('https://example.blog.com/2015/03/04/something-new.html'); } }); }); specifications specification status comment push apithe definition of 'pushevent' in that specification.
ServiceWorkerGlobalScope: notificationclick event - Web APIs
ionevent event handler onnotificationclick examples you can use the notificationclick event in an addeventlistener method: self.addeventlistener('notificationclick', function(event) { console.log('on notification click: ', event.notification.tag); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: "window" }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus' in client) return client.focus(); } if (clients.openwindow) return clients.openwindow('/'); })); }); or use the onnotificationclick event handler property: self.onnotificationclick = fun...
...ction(event) { console.log('on notification click: ', event.notification.tag); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: "window" }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus' in client) return client.focus(); } if (clients.openwindow) return clients.openwindow('/'); })); }; specifications specification status notifications apithe definition of 'onnotificationclick' in that specification.
ServiceWorkerGlobalScope.onpush - Web APIs
}) example the following example takes data from a pushevent and displays it on all of the service worker's clients.
...ta = event.data.json(); } var title = data.title || "something has happened"; var message = data.message || "here's something you might want to check out."; var icon = "images/new-notification.png"; var notification = new notification(title, { body: message, tag: 'simple-push-demo-notification', icon: icon }); notification.addeventlistener('click', function() { if (clients.openwindow) { clients.openwindow('https://example.blog.com/2015/03/04/something-new.html'); } }); }); specifications specification status comment push apithe definition of 'onpush' in that specification.
ServiceWorkerGlobalScope - Web APIs
rect x="361" y="1" width="240" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="481" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">serviceworkerglobalscope</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties serviceworkerglobalscope.clients read only contains the clients object associated with the service worker.
... methods serviceworkerglobalscope.skipwaiting() allows the current service worker registration to progress from waiting to active state while service worker clients are using it.
Service Worker API - Web APIs
activation can happen sooner using serviceworkerglobalscope.skipwaiting() and existing pages can be claimed by the active worker using clients.claim().
... clients represents a container for a list of client objects; the main way to access the active service worker clients at the current origin.
Writing WebSocket servers - Web APIs
websocket servers are often separate and specialized servers (for load-balancing or other practical reasons), so you will often use a reverse proxy (such as a regular http server) to detect websocket handshakes, pre-process them, and send those clients to a real websocket server.
... keeping track of clients this doesn't directly relate to the websocket protocol, but it's worth mentioning here: your server must keep track of clients' sockets so you don't keep handshaking again with clients who have already completed the handshake.
Architecture - Accessibility
they are kept in iaccessible2 for backward compatibility with msaa clients that expect text in leaf nodes.
...this is done for backward compatibility with older msaa clients which didn't have access to a text interface.
Setting up adaptive streaming media sources - Developer guides
apple uses the .m3u8 format (an extension of its .m3u playlist format) for index files — see below for an example: #ext-x-version:3 #extm3u #ext-x-targetduration:10 #ext-x-media-sequence:1 # old-style integer duration; avoid for newer clients.
... #extinf:10, http://media.example.com/segment0.ts # new-style floating-point duration; use for modern clients.
Cache-Control - HTTP
clients that aren't aware of this extension must ignore them as per the http specification.
... cache-control: public, max-age=604800, immutable requiring revalidation specifying no-cache or max-age=0 indicates that clients can cache a resource and must revalidate each time before using it.
HTTP headers - HTTP
WebHTTPHeaders
the file may define a policy to grant clients, such as adobe's flash player, adobe acrobat, microsoft silverlight, or apache flex, permission to handle data across domains that would otherwise be restricted due to the same-origin policy.
... public-key-pins-report-only sends reports to the report-uri specified in the header and does still allow clients to connect to the server even if the pinning is violated.
HTTP Index - HTTP
WebHTTPIndex
over the years, algorithms also got more efficient, and new ones are supported by clients and servers.
...when traffic is intercepted between clients and servers, server access logs contain the ip address of the proxy or load balancer only.
HTTP Public Key Pinning (HPKP) - HTTP
web clients such as browsers trust a lot of these cas, which can all create certificates for arbitrary domain names.
...this allows for changing the server's public key without breaking accessibility for clients that have already noted the pins.
Authoring MathML - MathML
"http://www.w3.org/math/dtd/mathml2/xhtml-math11-f.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>xhtml+mathml example</title> </head> <body> <h1>xhtml+mathml example</h1> <p> square root of two: <math xmlns="http://www.w3.org/1998/math/mathml"> <msqrt> <mn>2</mn> </msqrt> </math> </p> </body> </html> mathml in email and instant messaging clients modern mail clients may send and receive emails in the html5 format and thus can use mathml expressions.
... gecko-based instant messaging clients can integrate a javascript-based text-to-mathml converter (mentioned below) and then render the mathml expressions generated from the (plaintext) instant messages.
dev/panel - Archive of obsolete content
clients connect to the server and send it messages to examine and modify the state of the program being debugged.
MCD, Mission Control Desktop, AKA AutoConfig - Archive of obsolete content
hence you can change all of your mozilla clients preferences by simply modifying a single file on a web server, great!
Enabling the behavior - retrieving tinderbox status - Archive of obsolete content
it displays a list of active tinderbox clients along with the result of their last build attempt.
Enabling the behavior - updating the status periodically - Archive of obsolete content
to confirm this state, go to tinderbox and verify that the panel displays the current worst state of active tinderbox clients.
Repackaging Firefox - Archive of obsolete content
firefox can be customized for the needs of a particular group of users (for example, your organization's employees or clients).
JavaScript Client API - Archive of obsolete content
records are transformed to wbo's, uploaded to a collection in a sync server and eventually downloaded by other sync clients.
Migrate apps from Internet Explorer to Mozilla - Archive of obsolete content
not only does this make the code easier to read, it simplifies adding support for new clients: var elm = getelmbyid("myid"); function getelmbyid(aid){ var element = null; if (ismozilla || isie5) element = document.getelementbyid(aid); else if (isnetscape4) element = document.layers[aid]; else if (isie4) element = document.all[aid]; return element; } the above code still has the issue of browser sniffing, or detecting which browser the user is using.
Venkman - Archive of obsolete content
this api augments the existing javascript api, providing clients with a useful set of debugger functionality implemented in c.
Install script template - Archive of obsolete content
library to the current browser's plugin directory errblock1 = addfile (plid, version, plugin_file, pluginsfolder, null); if (errblock1!=0) { logcomment("could not add " + plugin_file + " to " + pluginsfolder + ":" + errblock1); cancelinstall(errblock1); } // start installing xpt file if this is a scriptable plugin // install to the plugins directory -- this works well in mozilla 1.0 clients // in mozilla 1.0 clients, the components directory can be avoided for xpt files errblock1 = addfile (plid, version, component_file, pluginsfolder, null); if (errblock1!=0) { logcomment("could not add " + component_file + " to " + pluginsfolder + ":" + errblock1); cancelinstall(errblock1); } } else { logcomment("cancelling current browser install due to lack of space..."); cancell...
Introduction to XUL - Archive of obsolete content
the intention is to build cross-platform applications like browsers and mail clients from a set of tools designed for that purpose.
Gecko Compatibility Handbook - Archive of obsolete content
if possible, also download the actual clients (netscape, aol, compuserve) for testing.
Mozilla release FAQ - Archive of obsolete content
other irc clients can be found at irchelp.org.
TCP/IP Security - Archive of obsolete content
for example, all network communications between two hosts or networks can be protected at this layer without modifying any applications on the clients or the servers.
Security - Archive of obsolete content
ssl has been universally accepted on the world wide web for authenticated and encrypted communication between clients and servers.nspr release engineering guidethis paper is for engineers performing formal release for the netscape portable runtime (nspr) across all platforms.ssl and tlsthe secure sockets layer (ssl) and transport layer security (tls) protocols are universally accepted standards for authenticated and encrypted communication between clients and servers.
Client hints - MDN Web Docs Glossary: Definitions of Web-related terms
client hints are a set of http request header fields for proactive content negotiation allowing clients to indicate a list of device and agent specific preferences.
Server - MDN Web Docs Glossary: Definitions of Web-related terms
a software server (often running on a hardware server) is a program that provides services to client programs or a user interface to human clients.
TOFU - MDN Web Docs Glossary: Definitions of Web-related terms
to do that, clients will look for identifiers (for example public keys) stored locally.
WebDAV - MDN Web Docs Glossary: Definitions of Web-related terms
webdav allows clients to add, delete, and retrieve webpage metadata (e.g.
HTTPS - MDN Web Docs Glossary: Definitions of Web-related terms
this secure connection allows clients to safely exchange sensitive data with a server, such as when performing banking activities or online shopping.
How CSS is structured - Learn web development
you may also see a lot of inline styles in html email to achieve compatibility with as many email clients as possible.
What software do I need to build a website? - Learn web development
for now, here's a short list of free basic (s)ftp clients: operating system ftp software windows winscp moba xterm filezilla (all os) linux nautilus/files (gnome) dolphin (kde) mac os cyberduck chrome os shiftedit (all os) browsing websites as you already know, you ...
Common questions - Learn web development
the term "web server" can refer to the hardware or software that serves websites to clients across the web — or both of them working together.
Add a hitmap on top of an image - Learn web development
learn more <img> <map> <area> online image map editor advice on handling email clients ...
Aprender y obtener ayuda - Learn web development
how to advertise my business and attract clients.
Introduction to the server side - Learn web development
customised user experience servers can store and use information about clients to provide a convenient and tailored user experience.
Server-side web frameworks - Learn web development
previous overview: first steps next the previous article showed you what the communication between web clients and servers looks like, the nature of http requests and responses, and what a server-side web application needs to do in order to respond to requests from a web browser.
Interface Compatibility
where appropriate, new apis should be designed so that they are compatible with future plans, and clients do not need xpcom boilerplate.
Displaying Places information using views
nsinavhistoryresultobserver notifies observing clients about updates when the underlying data changes.
Roll your own browser: An embedding how-to
the sections marked 'mozilla examples' refer to clients and sample code to be found within the mozilla source tree.
Integrated Authentication
moreover, with windows clients ntlm may be negotiated as the authentication protocol.
Mozilla DOM Hacking Guide
const nsiid *mprotochaininterface: pointer to the iid of the first interface available to javascript clients.
Productization guide
but we also suggest a few web-based clients (like yahoo!
Atomic Operations
therefore, to preserve portability, it is recommended that clients use the nspr api for atomic operations.
Dynamic Library Linking
it also provides a method by which to condition symbols of statically linked code so that to other clients it appears as though they are dynamically loaded.
Introduction to NSPR
it's also possible for nspr clients to define their own per-thread-data.
PRErrorCode
if nspr's error handling is adopted by calling clients, then some sort of partitioning of the namespace will have to be employed.
PRHostEnt
clients should avoid directly accessing any of the structure's fields.
PRIntervalTime
they are chosen to be appropriate for the host os, yet provide sufficient resolution and period to be useful to clients.
PRLock
syntax #include <prlock.h> typedef struct prlock prlock; description nspr represents a lock as an opaque entity to clients of the functions described in "locks".
PRMonitor
clients create them when needed and must destroy them when no longer needed.
PRStaticLinkTable
a static link table entry can be created by a client of the runtime so that other clients can access static or dynamic libraries transparently.
PR_GetOSError
for portability, clients should not create dependencies on the values of os-specific error codes.
PR_SetErrorText
clients may use it for their own purposes.
NSPR
the api is used in the mozilla clients, many of red hat's and oracle's server applications, and other software offerings.
NSS FAQ
MozillaProjectsNSSFAQ
because nss provides complete support for all versions of ssl and tls, it is particularly well-suited for applications that need to communicate with the many clients and servers that already support the ssl protocol.
Index
digital signatures allow ssl-enabled clients to perform two important operations: * confirm the identity of the individual, company, or other entity whose digital signature is associated with the files * check whether the files have been tampered with since being signed if you have a signing certificate, you can use netscape signing tool to digitally sign files and package them as a jar file.
NSS 3.15 release notes
ssl_setstapledocspresponses - set's a stapled ocsp response for a tls server socket to return when clients send the status_request extension.
NSS 3.20 release notes
nss optionally supports the use of weak dhe parameters with dhe ciphersuites in order to support legacy clients.
NSS 3.23 release notes
clients that perform a version downgrade (which is a dangerous practice) call this with the highest version number that they possibly support.
NSS 3.27.1 release notes
this resulted in connectivity failures, as some tls servers are version 1.3 intolerant, and failed to negotiate an earlier tls version with nss 3.27 clients.
NSS 3.28.2 release notes
bugs fixed in nss 3.28.2 bug 1334114 - nss 3.28 regression in signature scheme flexibility, causes connectivity issue between ios 8 clients and nss servers with ecdsa certificates bug 1330612 - x25519 is the default curve for ecdhe in nss bug 1323150 - crash [@ readdbentry ] compatibility nss 3.28.2 shared libraries are backward compatible with all older nss 3.x shared libraries.
NSS 3.29 release notes
nss 3.29 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_29_rtm/src/ notable changes in nss 3.29 fixed a nss 3.28 regression in the signature scheme flexibility that causes connectivity issues between ios 8 clients and nss servers with ecdsa certificates (bug1334114).
NSS 3.35 release notes
several experimental apis were added in support of tls 1.3 features: tls servers are able to send session tickets to clients on demand, using the experimental ssl_sendsessionticket function.
NSS 3.45 release notes
only relevant for clients that might have copied the unit test code verbatim bug 1550022 - ensure nssutil3 gets built on android bug 1528174 - chacha20poly1305 should no longer modify output length on failure bug 1549382 - don't leak in pkcs#11 modules if c_getslotinfo() returns error bug 1551041 - fix builds using gcc < 4.3 on big-endian architectures bug 1554659 - add versioning to openbsd builds to fix link tim...
NSS 3.53 release notes
(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.
nss tech note3
the list of known seccertusages is short: certusagesslclient ........... an ssl client authentication cert certusagesslserver ........... an ordinary ssl server cert certusagesslserverwithstepup.. an ssl server cert that allows export clients to use strong crypto.
PKCS11 FAQ
MozillaProjectsNSSPKCS11FAQ
key generation in mozilla clients is triggered either by the standard <keygen> tag, or by the keygen functions off the window.crypto object.
NSS environment variables
[3|t|t]: ssl_renegotiate_transitional disallows unsafe renegotiation in server sockets only, but allows clients to continue to renegotiate with vulnerable servers.
gtstd.html
your ssl clients), or use professional grade ca software, such as red hat's dogtag certificate system, to set up and operate your own ca and issue your own certificates.
sslerr.html
ssl_error_bad_server -12281 "the client has encountered bad data from the server." this error code should occur only on sockets that are acting as clients.
NSS tools : signtool
digital signatures allow ssl-enabled clients to perform two important operations: * confirm the identity of the individual, company, or other entity whose digital signature is associated with the files * check whether the files have been tampered with since being signed if you have a signing certificate, you can use netscape signing tool to digitally sign files and package them as a jar file.
Necko walkthrough
but the interface for clients of necko is important to consider: send request uri helps creates channel setup channel (headers, request data, response callback...) channel->asyncopen.
Necko
this api is used in many mozilla-based client applications (including firefox) and can be used for writing other networking clients.
Scripting Java
however, there are a few instances where that is not enough: many apis in java work by providing interfaces that clients must implement.
JS_NewGlobalObject
this lets us be sure that debugger clients never miss breakpoints.
JS_SetDefaultLocale
note that the internationalization api encourages clients to specify their own locales.
JS_StringHasLatin1Chars
clients can use js_stringhaslatin1chars and can then call either the latin1* or twobyte* functions.
TPS Tests
a test file may contain an arbitrary number of sections, each involving the same or different profiles, so that one test file may be used to test the effect of syncing and modifying a common set of data (from a single sync account) over a series of different events and clients.
Redis Tips
so subscribers are dedicated clients.
A Web PKI x509 certificate primer
this type of hierarchy allows for a relatively simple long term root to be distributed to clients, and some flexibility on the intermediate cert so that you can change parameters based on best practices and security research.
Gecko states
if this second state is defined, then clients can communicate the information about the object to users.
Implementation Details
msaa at-spi how to find the content window and load the document in xul-based clients, screen readers may need to find the content window so that they know where to start grabbing the accessible tree, in order to load the current document into a buffer in their own process.
AT APIs Support
gecko based applications gecko can be used in two ways to create application: embedded clients embedded clients use gecko only in the content window, at the moment for html and generic xml only.
Finishing the Component
moreover, since this interface was never supposed to be used by clients other than gecko or mozilla, the maintainers of the interface don't know that it's being used, and don't change the iid of the interface.
imgIEncoder
png-only clients always display the first frame (and only that frame).
nsIAccessNode
accessible/public/nsiaccessnode.idlscriptable an interface used by in-process accessibility clients to get style, window, markup and other information about a dom node.
nsIAccessible
can also be used by in-process accessibility clients to get information about objects in the accessible tree.
nsIAccessibleDocument
accessible/public/nsiaccessibledocument.idlscriptable an interface for in-process accessibility clients that wish to retrieve information about a document.
nsIAccessibleEvent
accessible/public/nsiaccessibleevent.idlscriptable an interface for accessibility events listened to by in-process accessibility clients, which can be used to find out how to get accessibility and dom interfaces for the event and its target.
nsIAccessibleImage
accessible/public/nsiaccessibleimage.idlscriptable this interface allows in-process accessibility clients to retrieve information about an image.
nsIAccessibleRetrieval
accessible/public/nsiaccessibleretrieval.idlscriptable an interface for in-process accessibility clients wishing to get an nsiaccessible or nsiaccessnode for a given dom node.
nsIAccessibleSelectable
accessible/public/nsiaccessibleselectable.idlscriptable an interface for the accessibility module and in-process accessibility clients for dealing with getting and changing the selection of accessible nodes.
nsIAccessibleStates
if this second state is defined, then clients can communicate the information about the object to users.
nsIApplicationCache
clients can open a session with nsicacheservice.createsession() using this client id and a storage policy of store_offline to access this cache.
nsICacheService
the offline cache lets clients accumulate entries in a temporary client and merge them in as a group using nsiofflinecachesession.mergetemporaryclient().
nsICacheSession
if false, expired entries will be returned (useful for offline mode and clients, such as http, that can update the valid lifetime of cached content).
nsICachingChannel
a channel may optionally implement this interface to allow clients to affect its behavior with respect to how it uses the cache service.
nsIClipboardCommands
webshell/public/nsiclipboardcommands.idlscriptable an interface for embedding clients who wish to interact with the system-wide os clipboard.
nsIDNSService
to access the service, use: var dnsservice = components.classes["@mozilla.org/network/dns-service;1"] .createinstance(components.interfaces.nsidnsservice); note: starting in gecko 7.0, the "happy eyeballs" strategy is used to reduce lengthy timeouts when attempting backup connections during attempts to connect from clients that have broken ipv6 connectivity.
nsIDeviceMotionListener
xpcom/system/nsidevicemotion.idlscriptable this interface can be implemented by clients that want to be notified orientation or acceleration changes on supported devices.
nsIEditorSpellCheck
for spell checking clients with no modal ui (such as inline spell checkers), this flag is not relevant.
nsIFeedResult
it's generally intended for use by clients designed to work with specific feeds.
nsIHttpActivityDistributor
netwerk/protocol/http/nsihttpactivityobserver.idlscriptable this interface is used to register and unregister clients that wish to observe http transport activity.
nsIMessageListenerManager
dom/base/nsimessagemanager.idlscriptable this interface enables clients to listen for messages sent using the nsimessagebroadcaster, nsimessagesender, or nsisyncmessagesender interfaces.
nsIMessageSender
idl file: mozilla-central/source/dom/base/nsimessagemanager.idl inherits from: nsimessagelistenermanager message senders enable clients to send asynchronous messages to a single "other side".
nsINavHistoryResultObserver
toolkit/components/places/nsinavhistoryservice.idlscriptable lets clients observe changes to a result as the result updates itself according to bookmark and history system events.
nsINavHistoryResultViewObserver
toolkit/components/places/public/nsinavhistoryservice.idlscriptable this interface is used by clients of the history results to define domain-specific handling of specific nsitreeview methods that the history result doesn't implement.
nsINavHistoryResultViewer
removed in gecko 2.0 and replaced with the nsinavhistoryresultobserver interface, which is similar but allows multiple clients to observe the result at once.
nsITaskbarPreviewController
1.0 66 introduced gecko 1.9.2 inherits from: nsisupports last changed in gecko 1.9.2 (firefox 3.6 / thunderbird 3.1 / fennec 1.0) clients should provide their own implementation of this interface.
nsITaskbarWindowPreview
there is existing infrastructure in place to let clients handle those events.
nsITransportEventSink
netwerk/base/public/nsitransport.idlscriptable implemented by clients that wish to receive transport events.
nsIUploadChannel
history here is that we need to support both streams that already have headers (for example, content-type and content-length) information prepended to the stream (by plugins) as well as clients (composer, uploading application) that want to upload data streams without any knowledge of protocol specifications.
nsIWebProgressListener
uriloader/base/nsiwebprogresslistener.idlscriptable this interface is implemented by clients wishing to listen in on the progress associated with the loading of asynchronous requests in the context of a nsiwebprogress instance as well as any child nsiwebprogress instances.
nsIWifiListener
netwerk/wifi/nsiwifilistener.idlscriptable this interface is implemented by clients interested in receiving notifications when the list of available wifi access points changes.
Status, Recent Changes, and Plans
bug 59414: making operator& private may help prevent some leaks caused by casting move the factored nscomptr routines into their own library, to reduce nscomptr clients' dependency on the xpcom library.
XPCOM tasks
like the standard libraries, xpcom must be a fairly self-contained library, so as not to encumber clients with any unnecessary external dependencies.
XPCOM
like the standard libraries, xpcom must be a fairly self-contained library, so as not to encumber clients with any unnecessary external dependencies.xpcom thread synchronizationxpcom thread synchronization primitives have the same semantics as those in nspr, and each method of these synchronization objects (e.g.
Thunderbird
currently one of the most popular open source email clients, it is used by tens of millions of people around the world to bring together all their email accounts, chat, newsgroup and feed reading in a familiar high-productivity environment.
Client.postMessage() - Web APIs
const client = await clients.get(event.clientid); // exit early if we don't get the client.
Client.url - Web APIs
WebAPIClienturl
example self.addeventlistener('notificationclick', function(event) { console.log('on notification click: ', event.notification.tag); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: 'window' }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus' in client) return client.focus(); } if (clients.openwindow) return clients.openwindow('/'); })); }); specifications specification status comment service workersthe...
FetchEvent.client - Web APIs
WebAPIFetchEventclient
note: this feature has been deprecated, with its functionality replaced by fetchevent.clientid and clients.get().
FetchEvent.clientId - Web APIs
the clients.get() method could then be passed this id to retrieve the associated client.
Basic concepts - Web APIs
indexeddb is useful for applications that store a large amount of data (for example, a catalog of dvds in a lending library) and applications that don't need persistent internet connectivity to work (for example, mail clients, to-do lists, and notepads).
NotificationAction - Web APIs
self.registration.shownotification("new mail from alice", { actions: [ { action: 'archive', title: 'archive' } ] }); self.addeventlistener('notificationclick', function(event) { event.notification.close(); if (event.action === 'archive') { // archive action was clicked archiveemail(); } else { // main body of notification was clicked clients.openwindow('/inbox'); } }, false); specifications specification status comment notifications api living standard living standard ...
NotificationEvent.action - Web APIs
example self.registration.shownotification("new articles available", { actions: [{action: "get", title: "get now."}] }); self.addeventlistener('notificationclick', function(event) { event.notification.close(); if (event.action === 'get') { synchronizereader(); } else { clients.openwindow("/reader"); } }, false); specifications specification status comment notifications apithe definition of 'action' in that specification.
NotificationEvent.notification - Web APIs
console.log('notification tag:', event.notification.tag); console.log('notification data:', event.notification.data); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: "window" }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus' in client) return client.focus(); } if (clients.openwindow) return clients.openwindow('/'); })); }); specifications specification status comment notifications...
NotificationEvent - Web APIs
example self.addeventlistener('notificationclick', function(event) { console.log('on notification click: ', event.notification.tag); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: "window" }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus' in client) return client.focus(); } if (clients.openwindow) return clients.openwindow('/'); })); }); specifications specification status comment notifications...
RTCDTMFSender - Web APIs
the primary purpose for webrtc's dtmf support is to allow webrtc-based communication clients to be connected to a public-switched telephone network (pstn) or other legacy telephone service, including extant voice over ip (voip) services.
RTCIceTransport.state - Web APIs
the transport may revert from the "connected" state to the "checking" state if either peer decides to cancel consent to use the selected candidate pair, and may revert to "disconnected" if there are no candidates left to check but one or both clients are still gathering candidates.
RTCIceTransportState - Web APIs
the transport may revert from the "connected" state to the "checking" state if either peer decides to cancel consent to use the selected candidate pair, and may revert to "disconnected" if there are no candidates left to check but one or both clients are still gathering candidates.
ServiceWorkerContainer: message event - Web APIs
bubbles no cancelable no interface messageevent event handler property onmessage examples in this example the service worker get the client's id from a fetch event and then sends it a message using client.postmessage: // in the service worker async function messageclient(clientid) { const client = await clients.get(clientid); client.postmessage('hi client!'); } addeventlistener('fetch', (event) => { messageclient(event.clientid); event.respondwith(() => { // ...
ServiceWorkerGlobalScope.onnotificationclick - Web APIs
}; example self.onnotificationclick = function(event) { console.log('on notification click: ', event.notification.tag); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: "window" }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus' in client) return client.focus(); } if (clients.openwindow) return clients.openwindow('/'); })); }; specifications specification status comment notifications apit...
ServiceWorkerGlobalScope.skipWaiting() - Web APIs
use this method with clients.claim() to ensure that updates to the underlying service worker take effect immediately for both the current client and all other active clients.
ServiceWorkerRegistration - Web APIs
the lifetime of a service worker registration is beyond that of the serviceworkerregistration objects that represent them within the lifetime of their corresponding service worker clients.
Using Service Workers - Web APIs
also note: the service worker will only catch requests from clients under the service worker's scope.
WebGL best practices - Web APIs
likewise the limits of your system will be different than your clients' systems!
WindowClient.focus() - Web APIs
example self.addeventlistener('notificationclick', function(event) { console.log('on notification click: ', event.notification.tag); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: "window" }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus' in client) return client.focus(); } if (clients.openwindow) return clients.openwindow('/'); })); }); specifications specification status comment service workersthe...
WindowClient.focused - Web APIs
example self.addeventlistener('notificationclick', function(event) { console.log('on notification click: ', event.notification.tag); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: "window" }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus' in client) { if(!client.focused) return client.focus(); } } } if (clients.openwindow) return clients.openwindow('/'); })); }); specifications specificatio...
WindowClient.visibilityState - Web APIs
example event.waituntil(clients.matchall({ type: "window" }).then(function(clientlist) { for (let i = 0; i < clientlist.length; i++) { let client = clientlist[i]; if (client.url == '/' && 'focus' in client) { if (client.visibilitystate === 'hidden') return client.focus(); } } } if (clients.openwindow) { return clients.openwindow('/'); } })); }); specifications specification status comment service worke...
WindowClient - Web APIs
example self.addeventlistener('notificationclick', function(event) { console.log('on notification click: ', event.notification.tag); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: "window" }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus' in client) { client.focus(); break; } } if (clients.openwindow) return clients.openwindow('/'); })); }); specifications specification status comment ...
Web APIs
WebAPI
rule cssrulelist cssstyledeclaration cssstylerule cssstylesheet cssstylevalue csssupportsrule cssunitvalue cssunparsedvalue cssvalue cssvaluelist cssvariablereferencevalue cache cachestorage canvascapturemediastreamtrack canvasgradient canvasimagesource canvaspattern canvasrenderingcontext2d caretposition channelmergernode channelsplitternode characterdata childnode client clients clipboard 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...
Implementing a Microsoft Active Accessibility (MSAA) Server - Accessibility
if you're interested in more about gecko's msaa implementation, read gecko info for windows accessibility vendors to learn how msaa clients can utilize gecko's msaa support.
Live streaming web audio and video - Developer guides
through its plugin system, gstreamer provides support for more than a hundred codecs (including mpeg-1, mpeg-2, mpeg-4, h.261, h.263, h.264, realvideo, mp3, wmv, and flv.) gstreamer plugins such as souphttpclientsink and shout2send exist to stream media over http.
Graphics on the Web - Developer guides
webrtc the rtc in webrtc stands for real-time communications, a technology that enables audio/video streaming and data sharing between browser clients (peers).
HTML attribute reference - HTML: Hypertext Markup Language
note: although browsers and email clients may still support this attribute, it is obsolete.
HTTP authentication - HTTP
location /status { auth_basic "access to the staging site"; auth_basic_user_file /etc/apache2/.htpasswd; } access using credentials in the url many clients also let you avoid the login prompt by using an encoded url containing the username and the password like this: https://username:password@www.example.com/ the use of these urls is deprecated.
Evolution of HTTP - HTTP
the drawback of the rest model resides in the fact that each website defines its own non-standard restful api and has total control on it; unlike the *dav extensions were clients and servers are interoperable.
Compression in HTTP - HTTP
over the years, algorithms also got more efficient, and new ones are supported by clients and servers.
Access-Control-Allow-Origin - HTTP
if the server supports clients from multiple origins, it must return the origin for the specific client making the request.
Access-Control-Expose-Headers - HTTP
by default, only the 7 cors-safelisted response headers are exposed: cache-control content-language content-length content-type expires last-modified pragma if you want clients to be able to access other headers, you have to list them using the access-control-expose-headers header.
Expect - HTTP
WebHTTPHeadersExpect
no common browsers send the expect header, but some other clients such as curl do so by default.
Index - HTTP
WebHTTPHeadersIndex
when traffic is intercepted between clients and servers, server access logs contain the ip address of the proxy or load balancer only.
Pragma - HTTP
WebHTTPHeadersPragma
use pragma only for backwards compatibility with http/1.0 clients.
Proxy-Authenticate - HTTP
if no realm is specified, clients often display a formatted host name instead.
Retry-After - HTTP
examples dealing with scheduled downtime support for the retry-after header on both clients and servers is still inconsistent.
Set-Cookie - HTTP
for clients that don't implement cookie prefixes, you cannot count on these additional assurances, and prefixed cookies will always be accepted.
Upgrade-Insecure-Requests - HTTP
a vary header can be used so that the site isn't served by caches to clients that don’t support the upgrade mechanism.
Upgrade - HTTP
WebHTTPHeadersUpgrade
header type request header, response header forbidden header name yes overview the upgrade header field may be used by clients to invite a server to switch to one (or more) of the listed protocols, in descending preference order.
WWW-Authenticate - HTTP
if no realm is specified, clients often display a formatted hostname instead.
X-Forwarded-For - HTTP
when traffic is intercepted between clients and servers, server access logs contain the ip address of the proxy or load balancer only.
Redirections in HTTP - HTTP
javascript redirections redirections in javascript are performed by setting a url string to the window.location property, loading the new page: window.location = "https://example.com/"; like html redirections, this can't work on all resources, and obviously, this will only work on clients that execute javascript.
307 Temporary Redirect - HTTP
WebHTTPStatus307
with 302, some old clients were incorrectly changing the method to get: the behavior with non-get methods and 302 is then unpredictable on the web, whereas the behavior with 307 is predictable.
511 Network Authentication Required - HTTP
WebHTTPStatus511
they often identify clients who have not done so using their media access control (mac) addresses.
HTTP response status codes - HTTP
WebHTTPStatus
clients are expected to remove their caches and links to the resource.
Codecs used by WebRTC - Web media technologies
it's used by google talk, qq, and other instant messaging clients and is specifically designed for voice transmissions which are encapsulated within an rtp stream.
Web Performance
ks.recommended web performance timings: how long is too long?there are no clear set rules as to what constitutes a slow pace when loading pages, but there are specific guidelines for indicating content will load (1 second), idling (50ms), animating (16.7s) and responding to user input (50 to 200ms).the business case for web performanceyou know web performance is important, but how do you convince clients and management to invest in performance and make it a priority.
Privacy, permissions, and information security
cess http public key pinning (hpkp) hpkp is used by servers to instruct a client to associate a specific public key with the server going forward in order to decrease the likelihood of man-in-the-middle attacks http strict transport security (hsts) hsts is used by servers to let them protect themselves from protocol downgrade and cookie hijack attacks by letting sites tell clients that they can only use https to communicate with the server http/2 while http/2 technically does not have to use encryption, most browser developers are only supporting it when used with https, so it can be thought of in that regard as being security-related permissions api provides a way to determine the status of permissions for the current browser context trans...
Certificate Transparency - Web security
the specification states that compliant servers must provide a number of these scts to tls clients when they connect.
Transport Layer Security - Web security
clients that reconnect to the server can send requests immediately, eliminating the latency of the tls handshake entirely.
Web security
this secure connection allows clients to be sure that they are connected with the intended server, and to exchange sensitive data.