Search completed in 1.50 seconds.
nsIDOMMozNetworkStatsManager
please check dom/
network/interfaces/nsidom
networkstatsmanager.idl to make sure this data is accurate.
... dom/
network/interfaces/nsidom
networkstatsmanager.idlscriptable interface that provides access to
network usage statistics.
... inherits from: nsisupports last changed in gecko 18.0 (firefox 18.0 / thunderbird 18.0 / seamonkey 2.15) implemented by: @mozilla.org/
networkstatsmanager;1.
...And 36 more matches
Network request list - Firefox Developer Tools
the request list of the
network monitor shows a list of all the
network requests made in the course of loading the page.
...
network request list by default, the
network monitor shows a list of all the
network requests made in the course of loading the page.
... each request is displayed in its own row: by default, the
network monitor is cleared each time you navigate to a new page or reload the current page.
...And 11 more matches
RTCIceCandidateStats.networkType - Web APIs
the rtcicecandidatestats dictionary's
networktype property specifies the type of
network used by a local candidate to communicate with a remote peer.
... note: the
networktype property is only included in rtcicecandidatestats objects for local candidates (that is, candidates generated locally and included in an sdp offer or answer that has been sent to the remote peer).
... syntax
networktype = rtcicecandidatestats.
networktype; value a domstring whose value is taken from the rtc
networktype enumerated type.
...And 10 more matches
Network Error Logging - HTTP
network error logging is a mechanism that can be configured via the nel http response header.
... this experimental header allows web sites and applications to opt-in to receive reports about failed (and, if desired, successful)
network fetches from supporting browsers.
... the following object keys can be specified in the nel header: report_to the reporting api group to send
network error reports to (see below).
...And 8 more matches
Network Monitor - Firefox Developer Tools
the
network monitor shows you all the
network requests firefox makes (for example, when it loads a page, or due to xmlhttprequests), how long each request takes, and details of each request.
... opening the
network monitor there are a few different ways to open the
network monitor: press ctrl + shift + e ( command + option + e on a mac).
... select "
network" from the web developer menu, (which is a submenu of the tools menu on os x and linux).
...And 7 more matches
NetworkInformation - Web APIs
the
networkinformation interface provides information about the connection a device is using to communicate with the
network and provides a means for scripts to be notified if the connection type changes.
... the
networkinformation interfaces cannot be instantiated.
...
networkinformation.downlink read only returns the effective bandwidth estimate in megabits per second, rounded to the nearest multiple of 25 kilobits per seconds.
...And 7 more matches
RTCNetworkType - Web APIs
the webrtc rtc
networktype enumerated type defines a set of strings used to identify the type of
network used by a connection between two peers.
... this type is used as the value or the following properties: rtcicecandidate's
networktype rtcstunserverconnectionstats's
networktype values bluetooth a bluetooth connection is used by the described connection.
... ethernet the described connection uses an ethernet
network.
...And 7 more matches
Network throttling - MDN Web Docs Glossary: Definitions of Web-related terms
network throttling is an intentional slowing down of internet speed.
... in web performance,
network throttling, or
network condition emulation, it is used to emulate low bandwidth conditions experienced by likely a large segment of a site's target user base.
... it’s important not to overlook
network conditions users experience on mobile.
...And 6 more matches
Network monitor toolbar - Firefox Developer Tools
the
network monitor provides two toolbar areas, one above the main section, and another below.
... toolbar the toolbar is at the top of the main
network monitor window.
... (prior to firefox 77, this toolbar was arranged somewhat differently.) it provides: an icon to clear the
network request list.
...And 6 more matches
HTMLMediaElement.networkState - Web APIs
the htmlmediaelement.
networkstate property indicates the current state of the fetching of media over the
network.
... syntax var
networkstate = audioorvideo.
networkstate; value an unsigned short.
... possible values are: constant value description
network_empty 0 there is no data yet.
...And 6 more matches
Network request details - Firefox Developer Tools
the request details pane appears when you click on a
network request in the request list.
...
network request details clicking on a row displays a new pane in the right-hand side of the
network monitor, which provides more detailed information about the request.
...if the response is html, js, or css, it will be shown as text: if the response is json, it will be shown as an inspectable object: if the response is an image, the tab displays a preview: for
network responses that are initiated by a websocket connection, the details pane shows any associated messages.
...And 5 more matches
Network Addresses
this chapter describes the nspr types and functions used to manipulate
network addresses.
...
network address types and constants
network address functions the api described in this chapter recognizes the emergence of internet protocol version 6 (ipv6).
... 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.
...And 4 more matches
BasicCardRequest.supportedNetworks - Web APIs
the supported
networks property of the basiccardrequest dictionary contains an array of domstrings representing the card
networks that the retailer supports (e.g.
... syntax supported
networks : [value [, ...
... value]] value an array containing one or more domstrings, which describe the card
networks the retailer supports.
...And 4 more matches
Network Information API - Web APIs
the
network information api provides information about the system's connection in terms of general connection type (e.g., 'wifi', 'cellular', etc.).
...the entire api consists of the addition of the
networkinformation interface and a single property to the navigator interface: navigator.connection.
...a real-world use case would likely use a switch statement or some other method to check all of the possible values of
networkinformation.type.
...And 4 more matches
Network monitor recording - Firefox Developer Tools
you can pause and resume the monitoring of
network traffic using the pause button.
... pausing and resume
network traffic recording the
network monitor has a button that pauses and resumes recording of the current page's
network traffic.
... this is useful in situations where, for example, you are trying to get a stable view of a page for debugging purposes, but under normal circumstances the view keeps evolving due to persistent
network requests.
...And 3 more matches
nsINetworkLinkService
netwerk/base/public/nsi
networklinkservice.idlscriptable
network link status monitoring service.
... 1.0 66 introduced gecko 1.8 inherits from: nsisupports last changed in gecko 8.0 (firefox 8.0 / thunderbird 8.0 / seamonkey 2.5) implemented by: @mozilla.org/
network/
network-link-service;1 as a service: var
networklinkservice = components.classes["@mozilla.org/
network/
network-link-service;1"] .getservice(components.interfaces.nsi
networklinkservice); attributes attribute type description islinkup boolean this is set to true when the system is believed to have a usable
network connection.
... the link is only up when
network connections can be established.
...And 2 more matches
nsIDOMMozNetworkStats
dom/
network/interfaces/nsidom
networkstats.idlscriptable interface of the
network stats object.
... inherits from: nsisupports last changed in gecko 1.0 implemented by: @mozilla.org/
networkstats;1.
... to create an instance, use: var
networkstatsmanager = components.classes["@mozilla.org/
networkstats;1"] .createinstance(components.interfaces.nsidom
networkstats); attributes attribute type description connectiontype domstring connection type of the stats.
... data nsidommoz
networkstatsdata array stats samples.
511 Network Authentication Required - HTTP
the http 511
network authentication required response status code indicates that the client needs to authenticate to gain
network access.
... this status is not generated by origin servers, but by intercepting proxies that control access to the
network.
...
network operators sometimes require some authentication, acceptance of terms, or other user interaction before granting access (for example in an internet café or at an airport).
... status 511
network authentication required specifications specification title rfc 6585, section 6: 511
network authentication required additional http status codes ...
NetworkInformation.downlink - Web APIs
the downlink read-only property of the
networkinformation interface returns the effective bandwidth estimate in megabits per second, rounded to the nearest multiple of 25 kilobits per seconds.
... syntax var downlink =
networkinformation.downlink value a double.
... specifications specification status comment
network information apithe definition of 'downlink' in that specification.
NetworkInformation.downlinkMax - Web APIs
the
networkinformation.downlinkmax read-only property returns the maximum downlink speed, in megabits per second (mbps), for the underlying connection technology.
... syntax var max =
networkinformation.downlinkmax return value an unrestricted double representing the maximum downlink speed, in megabits per second (mb/s), for the underlying connection technology.
...fectivetype; if ('downlinkmax' in navigator.connection) { downlinkmax = navigator.connection.downlinkmax; } } console.log('current connection type: ' + connectiontype + ' (downlink max: ' + downlinkmax + ')'); } logconnectiontype(); navigator.connection.addeventlistener('change', logconnectiontype); specifications specification status comment
network information apithe definition of 'downlinkmax' in that specification.
NetworkInformation.effectiveType - Web APIs
the effectivetype read-only property of the
networkinformation interface returns the effective type of the connection meaning one of 'slow-2g', '2g', '3g', or '4g'.
... syntax var effectivetype =
networkinformation.effectivetype value a string containing one of 'slow-2g', '2g', '3g', or '4g'.
... specifications specification status comment
network information apithe definition of 'effectivetype' in that specification.
NetworkInformation.rtt - Web APIs
the
networkinformation.rtt read-only property returns the estimated effective round-trip time of the current connection, rounded to the nearest multiple of 25 milliseconds.
... syntax rtt =
networkinformation.rtt return value a number.
... specifications specification status comment
network information apithe definition of 'rtt' in that specification.
Introduction to Network Security Services
network security services (nss) is a set of libraries designed to support cross-platform development of communications applications that support ssl, s/mime, and other internet security standards.
... shared libraries
network security services provides both static libraries and shared libraries.
Network Security Services
network security services (nss) is a set of libraries designed to support cross-platform development of security-enabled client and server applications.
... nss apis introduction to
network security services provides an overview of the nss libraries and what you need to know to use them.
NetworkInformation.onchange - Web APIs
the
networkinformation.onchange event handler contains the code that is fired when connection information changes, and the change is received by the
networkinformation object.
...} // register for event changes: navigator.connection.onchange = changehandler; // another way: navigator.connection.addeventlistener('change', changehandler); specifications specification status comment
network information apithe definition of 'onchange' in that specification.
NetworkInformation.saveData - Web APIs
the
networkinformation.savedata read-only property of the
networkinformation interface returns true if the user has set a reduced data usage option on the user agent.
... syntax var savedata =
networkinformation.savedata; value a boolean.
NetworkInformation.type - Web APIs
the
networkinformation.type read-only property returns the type of connection a device is using to communicate with the
network.
... syntax var type = netinfo.type return value an enumerated value that is one of the following values: "bluetooth" "cellular" "ethernet" "none" "wifi" "wimax" "other" "unknown" specifications specification status comment
network information apithe definition of 'type' in that specification.
nsIDOMMozNetworkStatsData
dom/
network/interfaces/nsidom
networkstats.idlscriptable represents a single record in the
network statistics database, as reported using the nsidommoz
networkstatsmanager interface.
Index
found 353 pages: # page tags and summary 1
network security services jss, nss, needsmigration
network security services (nss) is a set of libraries designed to support cross-platform development of security-enabled client and server applications.
... 2 an overview of nss internals api, intermediate, intro, nss, tools a high-level overview to the internals of
network security services (nss) software developed by the mozilla.org projects traditionally used its own implementation of security protocols and cryptographic algorithms, originally called netscape security services, nowadays called
network security services (nss).
...in order to support multiple operating systems (os), it is based on a cross platform portability layer, called the netscape portable runtime (nspr), which provides cross platform application programming interfaces (apis) for os specific apis like file system access, memory management,
network communication, and multithreaded programming.
...And 141 more matches
Index - Web APIs
it's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the
network.
... 254 basiccardrequest.supported
networks api, basic card payment, basiccardrequest, experimental, payment request, payment request api, property, reference, supported
networks the supported
networks property of the basiccardrequest dictionary contains an array of domstrings representing the card
networks that the retailer supports (e.g.
... 1298 fetch api api, experimental, fetch, landing, reference, response, xmlhttprequest, request the fetch api provides an interface for fetching resources (including across the
network).
...And 94 more matches
Index - MDN Web Docs Glossary: Definitions of Web-related terms
22 arpanet glossary, infrastructure the arpanet (advanced research projects agency
network) was an early computer
network, constructed in 1969 as a robust medium to transmit sensitive military data and to connect leading research groups throughout the united states.
... arpanet first ran ncp (
network control protocol) and subsequently the first version of the internet protocol or tcp/ip suite, making arpanet a prominent part of the nascent internet.
... 45 cdn glossary, infrastructure a cdn (content delivery
network) is a group of servers spread out over many locations.
...And 61 more matches
TCP/IP Security - Archive of obsolete content
tcp/ip is widely used throughout the world to provide
network communications.
... when a user wants to transfer data across
networks, the data is passed from the highest layer through intermediate layers to the lowest layer, with each layer adding information.
... the lowest layer sends the accumulated data through the physical
network; the data is then passed up through the layers to its destination.
...And 25 more matches
Web Console remoting - Firefox Developer Tools
the
networkeventactor is used for each new
network request.
... the client can request further
network event details - like response body or request headers.
...these can be: page errors, window.console api messages,
network activity, and file activity.
...And 19 more matches
Python binding for NSS
project information python-nss is a python binding for nss (
network security services) and nspr (netscape portable runtime).
... nss is built upon nspr because nspr provides an abstraction of common operating system services, particularly in the areas of
networking and process management.
... for information on nss and nspr, see the following:
network security services (nss).
...And 18 more matches
Introduction to Public-Key Cryptography - Archive of obsolete content
in the context of
network interactions, authentication involves the confident identification of one party by another party.
... authentication over
networks can take many forms.
...
network interactions typically take place between a client, such as browser software running on a personal computer, and a server, such as the software and hardware used to host a web site.
...And 17 more matches
Index
load notifications are fired as the image is loaded from the
network or filesystem.
... 468 nsidnsservice interfaces, interfaces:scriptable, xpcom, xpcom api reference, xpcom interface reference implemented by: @mozilla.org/
network/dns-service;1.
... 502 nsidommoz
networkstats interfaces, reference, référence(2), xpcom implemented by: @mozilla.org/
networkstats;1.
...And 16 more matches
Using the application cache - HTML: Hypertext Markup Language
loading documents the use of an application cache modifies the normal process of loading a document: if an application cache exists, the browser loads the document and its associated resources directly from the cache, without accessing the
network.
...the offline cache can be cleared for each site separately using the "remove..." button in tools -> options -> advanced ->
network -> offline data.
... prior to firefox 11, neither tools -> clear recent history nor tools -> options -> advanced ->
network -> offline data -> clear now cleared the offline cache.
...And 16 more matches
Migrating from Firebug - Firefox Developer Tools
the
network monitor can be opened via ctrl+shift+q / cmd+opt+q, the web console via ctrl+shift+k / cmd+opt+k and the debugger via ctrl+shift+s / cmd+opt+s.
... show
network requests the console panel in firebug allows to log ajax requests (aka xmlhttprequests).
...furthermore, the web console even allows to display all other
network requests via net > log.
...And 15 more matches
How does the Internet work? - Learn web development
at its most basic, the internet is a large
network of computers which communicate all together.
... deeper dive a simple
network when two computers need to communicate, you have to link them, either physically (usually with an ethernet cable) or wirelessly (for example with wifi or bluetooth systems).
... note: for the rest of this article, we will only talk about physical cables, but wireless
networks work the same.
...And 14 more matches
Visual typescript game engine - Game development
networking is based on websocket full-duplex communication only.you must be conform with classic socket connection methodology.
... client config if you want web app without any
networking then setup: appuse
network: boolean = false; you want to use communication for multiplayer but you don't want to use server database account sessions.
...appuseaccountssystem: boolean = false;
networking is disabled by default.
...And 10 more matches
Client-side storage - Learn web development
saving data and assets locally so a site will be quicker (and potentially less expensive) to download, or be usable without a
network connection.
...this api is designed for storing http responses to specific requests, and is very useful for doing things like storing website assets offline so the site can subsequently be used without a
network connection.
...when you first run the example, it downloads all the videos from the
network, stores them in an indexeddb database, and then displays the videos in the ui inside <video> elements.
...And 10 more matches
HTTP Index - HTTP
15 connection management in http/1.x connection management, guide, http,
networking, performance, webmechanics connection management is a key topic in http: opening and maintaining connections largely impacts the performance of web sites and web applications.
...there are a couple of reasons why preflighting might fail: 27 reason: cors request did not succeed cors, corsdidnotsucceed, cross-origin, error, http, https, messages, reasons, security, console, troubleshooting the http request which makes use of cors failed because the http connection failed at either the
network or protocol level.
... the error is not directly related to cors, but is a fundamental
network error of some kind.
...And 9 more matches
Proxy UI - Archive of obsolete content
products firefox menu: preferences > advanced tab >
networking tab > connection button.
... thunderbird menu: preferences > advanced tab >
networking tab > connection button.
... camino configured in os (
networking preferences) (recently added - some support for reading os and account settings.)ui elements preferences panel overview the ui is based on selecting a proxy mode, then filling out any additional needed information in "related" ui.
...And 7 more matches
PRIOMethods
connect connect to the specified
network address.
... accept accept a connection from a
network peer.
... bind associate a
network address with the file descriptor.
...And 7 more matches
Lifetime of a WebRTC session - Web APIs
network address translation (nat) is a standard which supports this address sharing by handling routing of data inbound and outbound to and from devices on a lan, all of which are sharing a single wan (global) ip address.
... the problem for users is that each individual computer on the internet no longer necessarily has a unique ip address, and, in fact, each device’s ip address may change not only if they move from one
network to another, but if their
network’s address is changed by nat and/or dhcp.
... for developers trying to do peer-to-peer
networking, this introduces a conundrum: without a unique identifier for every user device, it’s not possible to instantly and automatically know how to connect to a specific device on the internet.
...And 7 more matches
Web audio codec guide - Web media technologies
for web developers, an even bigger concern is the
network bandwidth needed in order to transfer audio, whether for streaming or to download it for use during gameplay.
... the effect of codec configuration on encoded audio output audio codecs typically employ cleverly-designed and highly-complex mathematical algorithms to take source audio data and compress it to take substantially less space in memory or
network bandwidth.
...for real-time streaming of audio, a lossy codec is usually required in order to ensure the flow of data can keep up with the audio playback rate regardless of
network performance.
...And 7 more matches
Populating the page: how browsers work - Web Performance
network latency is the time it takes to transmit bytes over-the-air to computers.
... this can be problematic for performance, particularly on mobile
networks.
... when a user is on a mobile
network, each dns lookup has to go from the phone to the cell tower to reach an authoritative dns server.
...And 7 more matches
Index - Archive of obsolete content
55 request needsupdate, sdk, add-on make simple
network requests.
... 676 urischeme necko, needsupdate, uri, url list of mozilla supported uri schemes 677 uris and urls guide, mozilla, necko, needsupdate handling
network and locally retrievable resources is a central part of necko.
... resources are identified by uri "uniform resource identifier" (taken from rfc 2396): 678 uriloader uriloader uriloader: responsible for the dispatch of content to content handlers as it comes in from the
network.
...And 6 more matches
Autodial for Windows NT - Archive of obsolete content
if you turn on the autodial feature, windows will automatically dial whenever any application tries to access a
network address that can't be reached.
...despite this fact, the feature is triggered by any application that uses
networking.
...if this service is running, and control panel |
network connections | advanced | dialup preferences is set to enable autodial, then any application trying to access the internet will trigger the autodial feature whenever an internet address cannot be reached.
...And 6 more matches
Packet - MDN Web Docs Glossary: Definitions of Web-related terms
a packet, or
network packet, is a formatted chunk of data sent over a
network.
... the maincomponents of a
network packet are the user data and control information.
...it consists of
network addresses for the source and destination, sequencing information, and error detection codes and is generally found in packet headers and footer.
...And 6 more matches
Storage access policy: Block cookies from trackers
network connections: tls sessions will not be resumed using a session ticket when an https connection is made to an embedded third-party resource that is classified as a tracker.
... developer tools notifications the
network monitor in firefox developer tools now includes an indicator for all resource requests that have been classified as tracking resources.
...we expect that most view-through conversion tracking techniques will no longer work, including those offered by display
networks.
...And 6 more matches
NSPR Poll Method
we consider a stack of nspr i/o layers on top of the
network transport.
...the bottom layer is a wrapper for the underlying
network transport.
... the nspr library provides a reference implementation of the bottom layer using the sockets api, but you can provide your own implementation of the bottom layer using another
network transport api.
...And 6 more matches
NSPR Error Handling
pr_address_not_available_error the
network address (prnetaddr) is not available (probably in use).
... pr_address_not_supported_error the type of
network address specified is not supported.
... pr_is_connected_error an attempt to connect on an already connected
network file descriptor.
...And 6 more matches
RTCRemoteOutboundRtpStreamStats.localId - Web APIs
example in this example, we have a pair of functions: the first,
networkteststart(), captures an initial report, and the second,
networkteststop(), captures a second report, then uses the two reports to output some information about the
network conditions...
...
networkteststart() this function simply calls the rtcpeerconnection method getstats() to request an rtcstatsreport and store it in the variable startreport.
... let startreport; async function
networkteststart(pc) { if (pc) { startreport = await pc.getstats(); } } given an rtcpeerconnection, pc, this calls its getstats() method to obtain a statistics report object, which it stores in startreport for use once the end-of-test data has been collected by
networkteststop().
...And 6 more matches
Using Service Workers - Web APIs
but the overriding problem is that there still isn’t a good overall control mechanism for asset caching and custom
network requests.
...using a service worker you can easily set an app up to use cached assets first, thus providing a default experience even when offline, before then getting more data from the
network (commonly known as offline first).
...ect) => { var request = new xmlhttprequest(); request.open('get', url); request.responsetype = 'blob'; request.onload = () => { if (request.status == 200) { resolve(request.response); } else { reject(error('image didn\'t load successfully; error code:' + request.statustext)); } }; request.onerror = () => { reject(error('there was a
network error.')); }; request.send(); }); } we return a new promise using the promise() constructor, which takes as an argument a callback function with resolve and reject parameters.
...And 6 more matches
Digital audio concepts - Web media technologies
in order to represent a sound wave in a way computers can manipulate and work with (let alone transmit over a
network), the sound has to be converted into a digital form.
...that's a lot of storage, but worse, it's an insane amount of
network bandwidth to use for a relatively short piece of audio.
... audio file size and
network bandwidth once you know the size of a single audio frame and how many frames per second make up your audio data, you can easily calculate how much space the raw sound data itself will occupy (and therefore how much bandwidth it would consume on a
network).
...And 6 more matches
No Proxy For configuration - Archive of obsolete content
overview as browsers rapidly grew in popularity in the mid-90's, many
network administrators added proxy servers.
...many
networks had limited access to the public
network via proxy servers.
... because the public
network was small in scope and connections were slow, a caching proxy could often improve the overall performance.
...And 5 more matches
PR_InitializeNetAddr
initializes or reinitializes a
network address.
... the storage for the
network address structure is allocated by, and remains the responsibility of, the calling client.
... syntax #include <prnetdb.h> prstatus pr_initializenetaddr( prnetaddrvalue val, pruint16 port, prnetaddr *addr); parameters the function has the following parameters: val the value to be assigned to the ip address portion of the
network address.
...And 5 more matches
An overview of NSS Internals
a high-level overview to the internals of
network security services (nss) software developed by the mozilla.org projects traditionally used its own implementation of security protocols and cryptographic algorithms, originally called netscape security services, nowadays called
network security services (nss).
...in order to support multiple operating systems (os), it is based on a cross platform portability layer, called the netscape portable runtime (nspr), which provides cross platform application programming interfaces (apis) for os specific apis like file system access, memory management,
network communication, and multithreaded programming.
...nss will usually create an in-memory (ram) presentation of certificates, once a certificate has been received from the
network, read from disk, or looked up from the database, and prepare in-memory data structures that contain the certificate's properties, as well as providing a handle for the programmer to use.
...And 5 more matches
Index - Firefox Developer Tools
46
network monitor debugging, dev tools, firefox, guide,
networking, tools, l10n:priority the
network monitor shows you all the
network requests firefox makes (for example, when it loads a page, or due to xmlhttprequests), how long each request takes, and details of each request.
... 47 inspecting web sockets javascript,
network monitor, webapis, web socket inspector, web sockets since firefox 71, the
network monitor has had the ability to inspect web socket connections.
... 48
network monitor recording 110n:priority, debugging, dev tools, firefox, guide,
networking, tools you can pause and resume the monitoring of
network traffic using the pause button.
...And 5 more matches
Understanding latency - Web Performance
latency describes the amount of delay on a
network or internet connection.
...we can determine the amount of latency by measuring the speed with which the data moves from one
network location to another.
...
network throttling to emulate the latency of a low bandwidth
network, you can use developer tools and switch to a lower end
network connection.
...And 5 more matches
File I/O - Archive of obsolete content
profld f local settings on windows; where the
network cache and fastload files are stored.
... reading a file // |file| is nsifile var data = ""; var fstream = components.classes["@mozilla.org/
network/file-input-stream;1"].
... // open an input stream from file var istream = components.classes["@mozilla.org/
network/file-input-stream;1"].
...And 4 more matches
Chapter 4: Using XPCOM—Implementing advanced processes - Archive of obsolete content
listing 1: calling xpcom functions using xpconnect <?xml version="1.0" encoding="utf-8"?> <page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script type="application/javascript"><![cdata[ var ioservice = components.classes['@mozilla.org/
network/io-service;1'] .getservice(components.interfaces.nsiioservice); alert(ioservice); ]]></script> </page> calling xpconnect using local files try saving the contents of listing 1 as the file test.xul, somewhere on your desktop, and drag and drop it into firefox to open it.
... listing 11: converting a local file path to a url var path = 'c:\\temp\\temp.txt'; var file = components.classes['@mozilla.org/file/local;1'] .createinstance(components.interfaces.nsilocalfile); file.initwithpath(path); var ioservice = components.classes['@mozilla.org/
network/io-service;1'] .getservice(components.interfaces.nsiioservice); var url = ioservice.newfileuri(file); var fileurl = url.spec; alert(fileurl); // "file:///c:/temp/temp.txt" listing 12: converting a url to a local file path var url = 'file:///c:/temp/test.txt'; var ioservice = components.classes['@mozilla.org/
network/io-service;1'] .getservice(components.interfaces...
... listing 13: reading the contents of a binary file file.initwithpath('c:\\temp\\temp.txt'); var filestream = components.classes['@mozilla.org/
network/file-input-stream;1'] .createinstance(components.interfaces.nsifileinputstream); filestream.init(file, 1, 0, false); var binarystream = components.classes['@mozilla.org/binaryinputstream;1'] .createinstance(components.interfaces.nsibinaryinputstream); binarystream.setinputstream(filestream); var array = binarystream.readbytearray(filestream.available()); binary...
...And 4 more matches
Effective connection type - MDN Web Docs Glossary: Definitions of Web-related terms
effective connection type (ect) refers to the measured
network performance, returning a cellular connection type, like 3g, even if the actual connection is tethered broadband or wifi, based on the time between the browser requesting a page and effective type of the connection.
... table of effective connection types ect minimum rtt maximum downlink explanation slow-2g 2000ms 50 kbps the
network is suited for small transfers only such as text-only pages.
... 2g 1400ms 70 kbps the
network is suited for transfers of small images.
...And 4 more matches
Places Developer Guide
var bookmarkuri = cc["@mozilla.org/
network/io-service;1"] .getservice(ci.nsiioservice) .newuri("http://www.mozilla.com", null, null); var bookmarkid = bookmarks.insertbookmark( bookmarks.toolbarfolder, // the id of the folder the bookmark will be placed in.
... creating a livemark var ioservice = cc["@mozilla.org/
network/io-service;1"] .getservice(ci.nsiioservice); var siteuri = ioservice.newuri("http://www.mozilla.com", null, null); var feeduri = ioservice.newuri("http://www.mozilla.org/news.rdf", null, null); var livemarks = cc["@mozilla.org/browser/livemark-service;2"] .getservice(ci.nsilivemarkservice); livemarks.createlivemark(bookmarks.toolbarfolder, // the id of the folde...
...function uri(spec) { return cc["@mozilla.org/
network/io-service;1"].
...And 4 more matches
XPCOM Stream Guide
lass contract id interface how to bind to a data source generic nsstorageinputstream n/a nsiinputstream, nsiseekablestream storagestream.newinputstream(); string (8-bit characters) nsstringstream @mozilla.org/io/string-input-stream;1 nsistringinputstream stream.setdata(data, length); file nsfileinputstream @mozilla.org/
network/file-input-stream;1 nsifileinputstream stream.init(file, ioflags, perm, behaviorflags); zip nsjarinputstream n/a nsiinputstream zipreader.getinputstream(zipentry); similarly, each of these implements nsioutputstream.
... primitive output streams type native class contract id interface how to bind to a data target generic nsstoragestream @mozilla.org/storagestream;1 nsistoragestream stream.getoutputstream(); // returns nsioutputstream file nsfileoutputstream @mozilla.org/
network/file-output-stream;1 nsifileoutputstream stream.init(file, ioflags, perm, behaviorflags); file nssafefileoutputstream @mozilla.org/
network/safe-file-output-stream;1 nsisafefileoutputstream, nsifileoutputstream stream.init(file, ioflags, perm, behaviorflags); channels have streams too any implementation of nsichannel will have an input stream as well, but unless you own the channel, you shouldn't try to read from the input stream...
...(this is particularly true of streams that reach out over a
network connection, like http and ftp channels.) stream listeners implement three methods.
...And 4 more matches
nsIServerSocket
last changed in gecko 1.6 inherits from: nsisupports implemented by: @mozilla.org/
network/server-socket;1.
... to create an instance, use: var serversocket = components.classes["@mozilla.org/
network/server-socket;1"] .createinstance(components.interfaces.nsiserversocket); method overview void init(in long aport, in boolean aloopbackonly, in long abacklog); void initwithaddress([const] in prnetaddrptr aaddr, in long abacklog);native code only!
...since a server socket may be bound to multiple
network devices, this address may not necessarily be specific to a single
network device.
...And 4 more matches
2015 MDN Fellowship Program - Archive of obsolete content
github: jdm twitter: @lastontheboat service workers brief project description service workers essentially act as proxy servers that sit between web applications, the browser and (when available) the
network.
... required skills and experience experienced web developer with expertise in javascript, css, html as well as with efficient
network interaction (queuing resource fetching, etc.).
...finding and addressing performance bottlenecks depends on tooling the browser
networking and rendering but also, often more important, user perception.
...And 3 more matches
JXON - Archive of obsolete content
/*\ |*| |*| jxon snippet #1 mdndeveloper
network |*| |*| https://developer.mozilla.org/docs/jxon |*| https://developer.mozilla.org/user:fusionchess |*| |*| this framework is released under the gnu public license, version 3 or later.
... /*\ |*| |*| jxon snippet #2 mdndeveloper
network |*| |*| https://developer.mozilla.org/docs/jxon |*| https://developer.mozilla.org/user:fusionchess |*| |*| this framework is released under the gnu public license, version 3 or later.
... /*\ |*| |*| jxon snippet #3 mdndeveloper
network |*| |*| https://developer.mozilla.org/docs/jxon |*| https://developer.mozilla.org/user:fusionchess |*| |*| this framework is released under the gnu public license, version 3 or later.
...And 3 more matches
MCD, Mission Control Desktop, AKA AutoConfig - Archive of obsolete content
[root@calaz firefox]# cat firefox.cfg //put everything in a try/catch try { //privacy & security defaultpref("signon.remembersignons", false); //proxy and cache, as it is on nfs volume, we don't want cache lockpref("browser.cache.disk.capacity", 0); lockpref("
network.cookie.cookiebehavior", 0); defaultpref("
network.proxy.autoconfig_url", "http://wpad.int-evry.fr/wpad.dat"); defaultpref("
network.proxy.type", 2); lockpref("
network.protocol-handler.app.mailto", "/usr/bin/thunderbird"); //firefox3 urlclassifier3.sqlite iowait/cpu pb //http://forums.mozillazine.org/viewtopic.php?p=3381133#3381133 defaultpref("browser.safebrowsing.enabled", false); defaultpref("br...
...; defaultpref("browser.startup.homepage", "http://www.int-evry.fr/mci/user/"); */ lockpref("browser.startup.homepage", "http://www.int-evry.fr/mci/user/"); lockpref("browser.startup.homepage_override", true); lockpref("general.config.vendor", "mci-mozilla-web-tux"); lockpref("startup.homepage_override_url", "http://www.int-evry.fr/mci/user/"); lockpref("browser.cache.disk.capacity", 0); lockpref("
network.cookie.cookiebehavior", 0); lockpref("
network.proxy.autoconfig_url", "http://www.int-evry.fr/local/config.proxy"); lockpref("
network.proxy.type", 2); //account lockpref("mail.account.account1.identities", "id1"); lockpref("mail.account.account1.server", "server1"); lockpref("mail.account.account2.server", "server2"); lockpref("mail.account.account3.server", "server3"); lockpref("mail.accountmana...
...values = values; var uid = getldapvalue(values, "uid"); var cn = getldapvalue(values, "cn"); var mail = getldapvalue(values, "mail"); // lock ldap variable (mail & cn) dependent preferences while we have access to them lockpref("mail.server.server1.name", mail); lockpref("mail.identity.id1.fullname", cn); lockpref("mail.identity.id1.useremail", mail); defaultpref("
network.ftp.anonymous_password", mail); // if $mozilla_debug=1, popup a debug message if (env_mozdebug) { displayerror("no error -> mci (jehan.procaccia@int-evry.fr)" + "\nthis message is displayed with displayerror()!
...And 3 more matches
TCP slow start - MDN Web Docs Glossary: Definitions of Web-related terms
tcp slow start helps buildup transmission speeds to the
network's capabilities.
...tcp slow start is an algorithm used to detect the available bandwidth for packet transmission, and balances the speed of a
network connection.
... it prevents the appearance of
network congestion whose capabilities are initially unknown, and slowly increases the volume of information diffused until the
network's maximum capacity is found.
...And 3 more matches
HTML parser threading
html parser threading the html parser parses data received from the
network off the main thread.
...(for historical reasons, it also contains unrelated fragment parsing code that should be refactored into a separate class in due course.) nshtml5streamparser contains the code for dealing with data from the
network.
...nshtml5streamparser has one tokenizer/tree builder pair for parsing data from the
network.
...And 3 more matches
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.
...the
networking library, necko, deals only with these interfaces when handling requests.
...nsiioservice is the part of the
networking library ("necko") that's responsible for kicking off
network requests, managing protocols such as http, ftp, or file, and creating nsiuris.
...And 3 more matches
Observer Notifications
profile-change-net-teardown the
network connection is going offline at this point.
...
network:offline-about-to-go-offline called just before all
network io is taken offline.
...
network:offline-status-changed called when the offline state has changed.
...And 3 more matches
Streams - Plugins
the plug-in can set the output parameter type to one of these transmission modes: np_normal: (default): the plug-in can process the data progressively as it arrives from the
network or file system through a series of calls to npp_writeready and npp_write.
... npres_user_break: the user canceled the stream directly by clicking the stop button or indirectly by some action, such as by deleting the instance or initiating higher-priority
network operations.
... npres_
network_err: the stream failed because of problems with the
network, disk i/o error, lack of memory, or some other problem.
...And 3 more matches
Console messages - Firefox Developer Tools
the following icons may be used: informational message warning error blocked; for
network messages in addition, a disclosure triangle indicates that further information is available; clicking it displays or collapses that information.
... message categories
network network log messages are not shown by default.
...
network requests are logged with a line that looks like this: time the time the message was recorded.
...And 3 more matches
FetchEvent.respondWith() - Web APIs
specifying the final url of a resource from firefox 59 onwards, when a service worker provides a response to fetchevent.respondwith(), the response.url value will be propagated to the intercepted
network request as the final resolved url.
... for most types of
network request this change has no impact because you can't observe the final url.
...otherwise, a
network error is returned to fetch.
...And 3 more matches
RTCPeerConnectionIceErrorEvent.address - Web APIs
syntax let address = rtcpeerconnectioniceerrorevent.address; value a domstring which specifies the local ip address of the
network connection to the ice server with which negotiations were occurring when the error occurred.
... this address identifies the
network interface on the local device which is being used to attempt to establish the connection to the remote peer.
... this can be useful on multi-homed systems—devices with more than one
network connection—to determine which
network interface is being used.
...And 3 more matches
Signaling and video calling - Web APIs
a form of discovery and media format negotiation must take place, as discussed elsewhere, in order for two devices on different
networks to locate one another.
...this includes nat or other
networking complexity.
... if conditions change—for example the
network connection deteriorates—one or both peers might suggest switching to a lower-bandwidth media resolution, or to an alternative codec.
...And 3 more matches
Web video codec guide - Web media technologies
due to the sheer size of uncompressed video data, it's necessary to compress it significantly in order to store it, let alone transmit it over a
network.
... not only is the required storage space enormous, but the
network bandwidth needed to transmit an uncompressed video like that would be enormous, at 249 mb/sec—not including audio and overhead.
...some lossless codecs do exist, but they are typically used for archival and storage for local playback rather than for use on a
network.
...And 3 more matches
Mozilla Application Framework in Detail - Archive of obsolete content
where speed is the foremost consideration, we provide c++ libraries with multi-language interfaces for comprehensive, performant access to
networking, filesystem, content, rendering, and much more.
... the necko
network library mozilla's
network library (aka necko) provides an extensible, platform-independent api for several layers of
networking from transport to presentation layers.
...applications that want to access the various mozilla xpcom libraries (
networking, security, dom, etc.) use a special layer of xpcom called xpconnect, which reflects the library interfaces into javascript (or other languages).
...And 2 more matches
Threats - Archive of obsolete content
this article discusses threats, explaining what they are and how they can affect
network traffic.
...
network traffic typically passes through intermediate computers, such as routers, or is carried over unsecured
networks, such as wireless hotspots.
...threats against
network traffic include the following: eavesdropping.
...And 2 more matches
What’s in the head? Metadata in HTML - Learn web development
let's go through an exercise to explore this go to the front page of the mozilla developer
network.
...a lot of the features you'll see on websites are proprietary creations, designed to provide certain sites (such as social
networking sites) with specific pieces of information they can use.
...in the mdn web docs sourcecode, you'll find this: <meta property="og:image" content="https://developer.cdn.mozilla.net/static/img/opengraph-logo.dc4e08e2f6af.png"> <meta property="og:description" content="the mozilla developer
network (mdn) provides information about open web technologies including html, css, and apis for both web sites and html5 apps.
...And 2 more matches
Working with JSON - Learn web development
json exists as a string — useful when you want to transmit data across a
network.
... note: converting a string to a native object is called deserialization, while converting a native object to a string so it can be transmitted across the
network is called serialization.
...this is a very useful javascript object that allows us to make
network requests to retrieve resources from a server via javascript (e.g.
...And 2 more matches
Cookies Preferences in Mozilla
network.cookie.cookiebehavior default value: 0 0 = accept all cookies by default 1 = only accept from the originating site (block third party cookies) 2 = block all cookies by default 3 = use p3p settings (note: this is only applicable to older mozilla suite and seamonkey versions.) 4 = storage access policy: block cookies from trackers
network.cookie.lifetimepolicy default value: 0 0 = accept cookies normally 1 = prompt for each cookie (prompting was removed in firefox 44) 2 = accept for current session only 3 = accept for n days
network.cookie.lifetime.days default value:...
... 90 only used if
network.cookie.lifetimepolicy is set to 3 sets the number of days that the lifetime of cookies should be limited to.
...
network.cookie.alwaysacceptsessioncookies default value: false only used if
network.cookie.lifetimepolicy is set to 1 true = accepts session cookies without prompting false = prompts for session cookies
network.cookie.thirdparty.sessiononly default value: false true = restrict third party cookies to the session only false = no restrictions on third party cookies
network.cookie.maxnumber default value: 1000 configures the maximum amount of cookies to be stored valid range is from 0-65535, rfc 2109 and 2965 require this to be at least 300
network.cookie.maxperhost default value: 50 configures the maximum amount of cookies to be stored per host valid range is from 0-65535, rfc 2109 and 2965 require this to be at least 20
network.cookie.disablecookieformailnews default value: true...
...And 2 more matches
HTTP Cache
the code resides in /
network/cache2.
... this could be improved by keeping the
network load running and being stored to the cache entry even after the writing channel has been canceled.
... the consumer is then responsible to validate the partial content cache entry with the
network server and attempt to load the rest of the data.
...And 2 more matches
About NSPR
these facilities include threads, thread synchronization, normal file and
network i/o, interval timing and calendar time, basic memory management (malloc and free) and shared library linking.
...that method of operation is preferred though it is possible to configure the
network i/o channels as non-blocking in the traditional sense.
...
network addresses part of nspr deals with manipulation of
network addresses.
...And 2 more matches
PRHostEnt
a structure that defines a list of
network addresses.
... h_addr_list pointer to a pointer to a list of addresses from name server (in
network byte order).
... description this structure is used by many of the
network address functions.
...And 2 more matches
PRNetAddr
type used with socket manipulation functions to specify a
network address.
... port port number of tcp or udp, in
network byte order.
...the inet.ip field is in
network byte order.
...And 2 more matches
HTTP delegation
this causes ocsp requests to fail if the
network environment requires the use of a proxy.
...the object may be used by the application to associate it with a physical
network connection.
...nss may choose to repeatedly call a "
network connection keep alive" function (sec_httpserver_keepalivesessionfcn) on the server session object, giving application code a chance to do whatever is required.
...And 2 more matches
HTTP delegation
this causes ocsp requests to fail if the
network environment requires the use of a proxy.
...the object may be used by the application to associate it with a physical
network connection.
...nss may choose to repeatedly call a "
network connection keep alive" function (sec_httpserver_keepalivesessionfcn) on the server session object, giving application code a chance to do whatever is required.
...And 2 more matches
nsIWebProgressListener
state_is_
network 0x00040000 this flag indicates that the state transition corresponds to the start or stop of activity in the indicated nsiwebprogress instance.
... for example, in the case of navigation within a single frame of a html frameset, a nsiwebprogresslistener instance attached to the nsiwebprogress of the frameset window will receive onstatechange() calls with the state_is_
network flag set to indicate the start and stop of said navigation.
...the first has state_is_request and state_is_document set, and the second has the state_is_window flag set (and possibly the state_is_
network flag set as well -- see above for a description of when the state_is_
network flag may be set).
...And 2 more matches
Performance Analysis - Firefox Developer Tools
the
network monitor includes a performance analysis tool, to help show you how long the browser takes to download the different parts of your site.
... (alternatively, if you have only just opened the
network monitor, so it's not yet populated with the list of requests, you'll get a stopwatch icon in the main window.) the
network monitor then loads the site twice: once with an empty browser cache, and once with a primed browser cache.
... to get back to the
network monitor's list of
network requests click the "back" button on the left.
...And 2 more matches
BasicCardRequest - Web APIs
properties basiccardrequest.supported
networks optional secure context an optional array of domstrings representing the card
networks that the retailer supports (e.g.
... "amex", "mastercard"); see card
network identifiers for a complete list.
... if the property is missing, it implies that all
networks are supported.
...And 2 more matches
Using Fetch - Web APIs
it also provides a global fetch() method that provides an easy, logical way to fetch resources asynchronously across the
network.
...instead, it will resolve normally (with ok status set to false), and it will only reject on
network failure or if anything prevented the request from completing.
...have a look at the following code: fetch('http://example.com/movies.json') .then(response => response.json()) .then(data => console.log(data)); here we are fetching a json file across the
network and printing it to the console.
...And 2 more matches
Online and offline events - Web APIs
additionally, this property should update whenever a browser is no longer capable of connecting to the
network.
... according to the specification: the navigator.online attribute must return false if the user agent will not contact the
network when the user follows links or when a script requests a remote page (or knows that such an attempt would fail)...
...firefox 41 updates this property when the os reports a change in
network connectivity on windows, linux, and os x.
...And 2 more matches
RTCIceCandidateStats - Web APIs
for host candidates, true means that any
network resources (usually a
network socket) associated with the candidate have already been released.
...
networktype optional a string from the rtc
networktype enumerated type which indicates the type of interface used for a local candidate.
... port optional the
network port number used by the candidate.
...And 2 more matches
Resource Timing API - Web APIs
the resource timing interfaces enable retrieving and analyzing detailed
network timing data regarding the loading of an application's resource(s).
... the interface's properties create a resource loading timeline with high-resolution timestamps for
network events such as redirect start and end times, dns lookup start and end times, request start, response start and end times, etc.
... the performanceresourcetiming interface also includes several
network timing properties.
...And 2 more matches
Service Worker API - Web APIs
service workers essentially act as proxy servers that sit between web applications, the browser, and the
network (when available).
... they are intended, among other things, to enable the creation of effective offline experiences, intercept
network requests and take appropriate action based on whether the
network is available, and update assets residing on the server.
...it takes the form of a javascript file that can control the web-page/site that it is associated with, intercepting and modifying navigation and resource requests, and caching resources in a very granular fashion to give you complete control over how your app behaves in certain situations (the most obvious one being when the
network is not available).
...And 2 more matches
Using WebRTC data channels - Web APIs
this will automatically trigger the rtcpeerconnection to handle the negotiations for you, causing the remote peer to create a data channel and linking the two together across the
network.
... understanding message size limits for any data being transmitted over a
network, there are size restrictions.
... at a fundamental level, the individual
network packets can't be larger than a certain value (the exact number depends on the
network and the transport layer being used).
...And 2 more matches
Writing a WebSocket server in C# - Web APIs
static void main() { tcplistener server = new tcplistener(ipaddress.parse("127.0.0.1"), 80); server.start(); console.writeline("server has started on 127.0.0.1:80.{0}waiting for a connection...", environment.newline); tcpclient client = server.accepttcpclient(); console.writeline("a client connected."); } } tcpclient methods: system.net.sockets.
networkstream getstream() gets the stream which is the communication channel.
...the value is zero until
networkstream.dataavailable is true.
...
networkstream methods: write(byte[] buffer, int offset, int size) writes bytes from buffer, offset and size determine length of message.
...And 2 more matches
Window - Web APIs
windoworworkerglobalscope.fetch() starts the process of fetching a resource from the
network.
... globaleventhandlers.onmouseover called when the pointer enters the window globaleventhandlers.onmouseup called when any mouse button is released windoweventhandlers.onoffline called when
network connection is lost.
... windoweventhandlers.ononline called when
network connection is established.
...And 2 more matches
An overview of HTTP - HTTP
thanks to the layered design of the web, these are hidden in the
network and transport layers.
...although important to diagnose
network problems, the underlying layers are mostly irrelevant to the description of http.
...due to the layered structure of the web stack, most of these operate at the transport,
network or physical levels, becoming transparent at the http layer and potentially making a significant impact on performance.
...And 2 more matches
Media container formats (file types) - Web media technologies
3gp the 3gp or 3gpp media container is used to encapsulate audio and/or video that is specifically intended for transmission over cellular
networks for consumption on mobile devices.
... the format was designed for use on 3g mobile phones, but can still be used on more modern phones and
networks.
... however, the improved bandwidth availability and increased data caps on most
networks has reduced the need for the 3gp format.
...And 2 more matches
Image file type and format guide - Web media technologies
abbreviation file format mime type file extension(s) browser compatibility apng animated portable
network graphics image/apng .apng chrome, edge, firefox, opera, safari bmp bitmap file image/bmp .bmp chrome, edge, firefox, internet explorer, opera, safari gif graphics interchange format image/gif .gif chrome, edge, firefox, internet explorer, opera, safari ico microsoft icon image/x-icon .ico, .cur chrome, edge, firefox, internet...
... explorer, opera, safari jpeg joint photographic expert group image image/jpeg .jpg, .jpeg, .jfif, .pjpeg, .pjp chrome, edge, firefox, internet explorer, opera, safari png portable
network graphics image/png .png chrome, edge, firefox, internet explorer, opera, safari svg scalable vector graphics image/svg+xml .svg chrome, edge, firefox, internet explorer, opera, safari tiff tagged image file format image/tiff .tif, .tiff none built-in; add-ons required webp web picture format image/webp .webp chrome, edge, firefox, opera the abbreviation for each format links to a longer description of the format, its capabilities, and detailed browser compatibility information; including which version...
... apng (animated portable
network graphics) apng is a file format first introduced by mozilla which extends the png standard to add support for animated images.
...And 2 more matches
Performance fundamentals - Web Performance
on the same note, notice that locally-cached, static resources can be loaded much faster than dynamic data fetched over high-latency, low-bandwidth mobile
networks.
...
network requests should never be on the critical path to early application startup.
...in particular, firefox's
network monitor will display a precise timeline of when each
network request on your page happens, how large it is, and how long it takes.
...And 2 more matches
Navigation and resource timings - Web Performance
resource timings are detailed
network timing measurements regarding the loading of an application's resources.
... connectend when the connection is opened
network.
... connectstart when the request to open a connection is sent to the
network.
...And 2 more matches
Web Performance
resource timings are detailed
network timing measurements regarding the loading of an application's resources.optimizing startup performanceregardless of platform, it's always a good idea to start up as quickly as possible.
... this article starts the module off with a good look at what performance actually is — this includes the tools, metrics, apis,
networks, and groups of people we need to consider when thinking about performance, and how we can make performance part of our web development workflow.
... glossary terms beacon brotli compression client hints code splitting cssom domain sharding effective connection type first contentful paint first cpu idle first input delay first interactive first meaningful paint first paint http http/2 jank latency lazy load long task lossless compression lossy compression main thread minification
network throttling packet page load time page prediction parse perceived performance prefetch prerender quic rail real user monitoring resource timing round trip time (rtt) server timing speculative parsing speed index ssl synthetic monitoring tcp handshake tcp slow start time to first byte time to interactive tls transmission control protocol (tcp) tree shaking web performance ...
...And 2 more matches
Making PWAs work offline with Service workers - Progressive web apps (PWAs)
service workers explained service workers are a virtual proxy between the browser and the
network.
...service workers are quite powerful as they can take control over
network requests, modify them, serve custom responses retrieved from the cache, or synthesize responses completely.
... in our example app, we serve content from the cache instead of the
network as long as the resource is actually in the cache.
...And 2 more matches
request - Archive of obsolete content
examples outlined in this document are no longer relevent in regards to the twitter api calls and need to be updated make simple
network requests.
... globals constructors request(options) this constructor creates a request object that can be used to make
network requests.
... request the request object is used to make get, head, post, put, or delete
network requests.
... response the response object contains the response to a
network request issued using a request object.
Mozilla Crypto FAQ - Archive of obsolete content
in february 2000 iplanet e-commerce solutions (a sun-netscape alliance) released source code through mozilla.org for the personal security manager and
network security services software; this source code included support for the ssl protocol, but due to the rsa patent and related legal issues it did not originally contain code for rsa or other cryptographic algorithms.
... version 3.1 of the
network security services library will include a complete open source implementation of the cryptographic algorithms needed for mozilla ssl support, including the rsa public key algorithm (now in the public domain).
... this form of licensing was chosen to allow the released personal security manager and
network security services source code to be used in as many contexts as possible; for example, the psm and nss code can be used in mozilla under mpl terms, and can also be used in gnu and other projects under gpl terms.
...based on statements made in various internet forums it appears that the developers of gnu privacy guard may create a plugin module to support invocation of gnupg functionality from mozilla;
network associates may also create a commercial pgp plugin for mozilla.
Result Generation - Archive of obsolete content
during query processing, the template builder builds up a
network of information such as: possible results that are available where content should be generated information that indicates what to do when the rdf datasource changes this
network of information remains for the lifetime of the template, or until it is rebuilt.
...rather than rebuild the entire template, the algorithm allows only specific parts of the
network of information to be re-examined.
...while the information
network created by the template builder contains a number of different pieces of necessary information, for the purposes of this discussion, we will only be interested in the list of possible results.
...at each step, new possible results may be added, or more information pertaining to an existing result may be added to the
network.
Introduction to SSL - Archive of obsolete content
these capabilities address fundamental concerns about communication over the internet and other tcp/ip
networks: ssl server authentication allows a user to confirm a server's identity.
...this confirmation might be important if the user, for example, is sending a credit card number over the
network and wants to check the receiving server's identity.
...government restrictions on products that support anything stronger than 40-bit encryption, disabling support for all 40-bit ciphers effectively restricts access to
network browsers that are available only in the united states (unless the server involved has a special global server id that permits the international client to "step up" to stronger encryption).
...this step confirms that the server is actually located at the same
network address specified by the domain name in the server certificate.
Distributed Denial of Service - MDN Web Docs Glossary: Definitions of Web-related terms
ddos concerns computer
networks and cpu resource management.
... there are two types of ddos attacks: a
network-centric attack (which overloads a service by using up bandwidth) and an application-layer attack (which overloads a service or database with application calls).
...a
network of co-infected computers is known as a botnet or a zombie army.
... the united states computer emergency readiness team (us-cert) defines symptoms of denial-of-service attacks to include: unusually slow
network performance (opening files or accessing websites) unavailability of a particular website inability to access any website dramatic increase in the number of spam emails received—(this type of dos attack is considered an email bomb) disconnection of a wireless or wired internet connection longterm denial of access to the web or any internet services learn more general knowledge denial-of-service attack on wikipedia ...
Fetching data from the server - Learn web development
add the following below your previous lines inside your updatedisplay() function: let request = new xmlhttprequest(); next, you need to use the open() method to specify what http request method to use to request the resource from the
network, and what its url is.
...add this next: request.responsetype = 'text'; fetching a resource from the
network is an asynchronous operation, meaning that you have to wait for that operation to complete (e.g., the resource is returned from the
network) before you can do anything with that response, otherwise, an error will be thrown.
...if this completes successfully, the function inside the first .then() block contains the response returned from the
network.
...you'll see a message similar to "
network request for produc.json failed with response 404: file not found".
Getting started with React - Learn web development
for example: const heading = <h1>mozilla developer
network</h1>; this heading constant is known as a jsx expression.
...the jsx approach allows us to nest our elements within each other, just like we do with html: const header = ( <header> <h1>mozilla developer
network</h1> </header> ); note: the parentheses in the previous snippet aren't unique to jsx, and don’t have any effect on your application.
...you could just as well write the header expression like this: const header = <header> <h1>mozilla developer
network</h1> </header> however, this looks kind of awkward, because the <header> tag that starts the expression is not indented to the same position as its corresponding closing tag.
...when compiled (using a tool like babel or parcel), our header expression would look like this: const header = react.createelement("header", null, react.createelement("h1", null, "mozilla developer
network") ); it's possible to skip the compilation step and use react.createelement() to write your ui yourself.
Application cache implementation overview
when aentrystatus is a failure code, entry has not been found, but the url is falling under one of the
network or fallback namespaces.
...the load then continues from the
network as a usual load, using http cache.
...falling back on a resource load failure when a resource previously matching a fallback namespace failed to load from the
network, we perform fallback to the previously remembered fallback entry.
...note: whenever a load of an items (including the manifest) fails due to a
network or server error or leads to a redirect, the update fails and completely rollbacks any changes made (i.e.
Experimental features in Firefox
nightly 78 yes developer edition 78 yes beta 78 yes release 78 no preference name
network.preload css display stray control characters in css as hex boxes this feature renders control characters (unicode category cc) other than tab (u+0009), line feed (u+000a), form feed (u+000c), and carriage return (u+000d) as a hexbox when they are not expected.
...the
network.ftp.enabled preference must be enabled (set to true) to allow ftp to be used.
... nightly 77 yes developer edition 77 no beta 77 no release 77 no preference name
network.ftp.enabled developer tools mozilla's developer tools are constantly evolving.
... nightly 71 yes developer edition 71 yes beta 71 no release 71 no preference name devtools.inspector.compatibility.enabled server-sent events in
network monitor the
network monitor displays information for server-sent events.
Integrated Authentication
the preferences are: pref("
network.negotiate-auth.trusted-uris", site-list); pref("
network.negotiate-auth.delegation-uris", site-list); pref("
network.automatic-ntlm-auth.trusted-uris", site-list); where, site-list is a comma-separated list of url prefixes or domains of the form: site-list = "mydomain.com, https://myotherdomain.com"
network.negotiate-auth.trusted-uris lists the sites that are permitted to engage in spnego auth...
...entication with the browser, and
network.negotiate-auth.delegation-uris lists the sites for which the browser may delegate user authorization to the server.
...
network.automatic-ntlm-auth.trusted-uris lists the trusted sites to use ntlm authentification.
... if you wish to use non-fully-qualified entries of the form mydomain.com in the above preferences for ntlm and spnego authentication, you will also need to set the preferences
network.automatic-ntlm-auth.allow-non-fqdn and
network.negotiate-auth.allow-non-fqdn (respectively) to true.
WebRequest.jsm
modifying & canceling requests you can use the webrequest api to modify and cancel
network requests.
... what exactly you're able to do to a
network request depends on the stage at which you have intercepted the request: that is, the webrequest event that your listener is attached to.
... for example, it obviously doesn't make sense to cancel a
network request after it has completed.
..., { urls: pattern, types: ["image"] }, ["blocking"]); function cancelimages(e) { console.log("canceling: " + e.url); return {cancel: true}; } redirecting this code replaces, by redirection, all
network requests for images that are made to urls under "https://mdn.mozillademos.org/": let {webrequest} = cu.import("resource://gre/modules/webrequest.jsm", {}); cu.import("resource://gre/modules/matchpattern.jsm"); let pattern = new matchpattern("https://mdn.mozillademos.org/*"); webrequest.onbeforesendheaders.addlistener(redirect, { ...
I/O Functions
this chapter describes the nspr functions used to perform operations such as system access, normal file i/o, and socket (
network) i/o.
... functions that operate on pathnames functions that act on file descriptors directory i/o functions socket manipulation functions converting between host and
network addresses memory-mapped i/o functions anonymous pipe function polling functions pollable events manipulating layers functions that operate on pathnames a file or directory in a file system is specified by its pathname.
...name pr_access type praccesshow functions that act on file descriptors pr_close pr_read pr_write pr_writev pr_getopenfileinfo pr_getopenfileinfo64 pr_seek pr_seek64 pr_available pr_available64 pr_sync pr_getdesctype pr_getspecialfd pr_createpipe directory i/o functions pr_opendir pr_readdir pr_closedir pr_mkdir pr_rmdir socket manipulation functions the
network programming interface presented here is a socket api modeled after the popular berkeley sockets.
... list of functions: pr_openudpsocket pr_newudpsocket pr_opentcpsocket pr_newtcpsocket pr_importtcpsocket pr_connect pr_connectcontinue pr_accept pr_bind pr_listen pr_shutdown pr_recv pr_send pr_recvfrom pr_sendto pr_transmitfile pr_acceptread pr_getsockname pr_getpeername pr_getsocketoption pr_setsocketoption converting between host and
network addresses pr_ntohs pr_ntohl pr_htons pr_htonl pr_familyinet memory-mapped i/o functions the memory-mapped i/o functions allow sections of a file to be mapped to memory regions, allowing read-write accesses to the file to be accomplished by normal memory accesses.
I/O Types
this chapter describes the most common nspr types, enumerations, and structures used with the functions described in i/o functions and
network addresses.
... these include the types used for system access, normal file i/o, and socket (
network) i/o.
... directory type file descriptor types file info types
network address types types used with socket options functions type used with memory-mapped i/o offset interpretation for seek functions directory type prdir file descriptor types nspr represents i/o objects, such as open files and sockets, by file descriptors of type prfiledesc.
... file info types prfileinfo prfileinfo64 prfiletype
network address types prnetaddr pripv6addr types used with socket options functions prsocketoptiondata prsockoption prlinger prmcastrequest type used with memory-mapped i/o prfilemap offset interpretation for seek functions prseekwhence ...
NSS tools : signtool
electronic software distribution over any
network involves potential security problems.
...a
network administrator manager might sign the same files with an additional digital signature based on a company-generated certificate to indicate that the product is approved for use within the company.
...similarly, if you are a
network administrator, you should make sure, before signing any code, that it comes from a reliable source and will run correctly with the software installed on the machines to which you are distributing it.
...unlike certificates normally used to sign finished code to be distributed over a
network, a test certificate created with -g is not signed by a recognized certificate authority.
Starting WebLock
there are many ways to do this: you can use standard ansi file i/o, or nspr (see the netscape portable runtime library below for a brief description of nspr), or you can use the
networking apis that gecko provides.
...as a layer of abstraction above the operating system, the nspr allows gecko applications to be platform independent by providing the following system-level facilities: threads thread synchronization file and
network i/o timing and intervals memory management shared library linking the nspr is included in the gecko sdk.
... to keep things as simple as possible, we'll read the file into memory using standard ansi file i/o, but for examples and information about how to usenecko, the gecko
networking libraries, see http://www.mozilla.org/projects/netlib/.
...there's also a large bottleneck in the
network request.
nsIHttpChannel
inherits from: nsichannel last changed in gecko 1.3 to create an http channel, use nsiioservice with a http uri, for example: var ios = components.classes["@mozilla.org/
network/io-service;1"] .getservice(components.interfaces.nsiioservice); var ch = ios.newchannel("https://www.example.com/", null, null); method overview void getoriginalresponseheader(in acstring aheader, in nsihttpheadervisitor avisitor); acstring getrequestheader(in acstring aheader); acstring getresponseheader(in acstring header); boolean isn...
... referrerpolicy read only unsigned long the referrer policy in use for this channel, indicated by one of the constants listed above methods getoriginalresponseheader() get the value of a particular original response header, that is, in the same form as it came from the
network.
... visitoriginalresponseheaders() call this method to visit all original response headers, that is, in the same form as they came from the
network.
... note: starting from firefox 49, empty headers will be returned in case the preference
network.http.keep_empty_response_headers_as_empty_string is set to true.
nsIIOService
implemented by @mozilla.org/
network/io-service;1 as a service: var ioservice = components.classes["@mozilla.org/
network/io-service;1"] .getservice(components.interfaces.nsiioservice); method overview boolean allowport(in long aport, in string ascheme); acstring extractscheme(in autf8string urlstring); unsigned long getprotocolflags(in string ascheme); nsiprotocolhandler getpro...
...node aloadingnode, in nsiprincipal aloadingprincipal, in nsiprincipal atriggeringprincipal, in uint32_t asecurityflags, in uint32_t acontentpolicytype); nsiuri newfileuri(in nsifile afile); nsiuri newuri(in autf8string aspec, in string aorigincharset, in nsiuri abaseuri); attributes attribute type description offline boolean returns true if
networking is in "offline" mode.
... when in offline mode, attempts to access the
network will fail (although this does not necessarily correlate with whether there is actually a
network available -- that's hard to detect without causing the dialer to come up).
...this involves consulting a list of unsafe ports, corresponding to
network services that may be easily exploitable.
nsIWebNavigation
load_flags_stop_content 2048 if this flag is set, stop() will be called before the load starts and will stop both content and
network activity (the default is to only stop
network activity).
... effectively, this passes the stop_content flag to stop(), in addition to the stop_
network flag.
... note for valid load flag combinations look here nsdocshellloadtypes.h stop flags constant value description stop_
network 1 this flag specifies that all
network activity should be stopped.
... this includes both active
network loads and pending meta-refreshes.
Throttling - Firefox Developer Tools
the
network monitor allows you to throttle your
network speed to emulate various connection speeds so you can see how your app will behave under different connection types.
... throttling the toolbar includes a throttling dropdown, which allows you to throttle your
network speed to emulate various different
network speed conditions.
... the characteristics emulated are: download speed upload speed minimum latency the table below lists the numbers associated with each
network type, but please do not rely on this feature for exact performance measurements; it's intended to give an approximate idea of the user experience in different conditions.
...inimum latency (ms) gprs 50 kbps 20 kbps 500 regular 2g 250 kbps 50 kbps 300 good 2g 450 kbps 150 kbps 150 regular 3g 750 kbps 250 kbps 100 good 3g 1.5 mbps 750 kbps 40 regular 4g/lte 4 mbps 3 mbps 20 dsl 2 mbps 1 mbps 5 wi-fi 30 mbps 15 mbps 2
network monitor features the following articles cover different aspects of using the
network monitor: toolbar
network request list
network request details
network traffic recording performance analysis ...
Responsive Design Mode - Firefox Developer Tools
network throttling if you do all your development and testing using a very fast
network connection, users may experience problems with your site if they are using a slower connection.
... in responsive design mode, you can instruct the browser to emulate, very approximately, the characteristics of various different types of
networks.
... the characteristics emulated are: download speed upload speed minimum latency the table below lists the numbers associated with each
network type, but please do not rely on this feature for exact performance measurements; it's intended to give an approximate idea of the user experience in different conditions.
...cy (ms) gprs 50 kb/s 20 kb/s 500 regular 2g 250 kb/s 50 kb/s 300 good 2g 450 kb/s 150 kb/s 150 regular 3g 750 kb/s 250 kb/s 100 good 3g 1.5 mb/s 750 kb/s 40 regular 4g/lte 4 mb/s 3 mb/s 20 dsl 2 mb/s 1 mb/s 5 wi-fi 30 mb/s 15 mb/s 2 to select a
network, click the list box that's initially labeled "no throttling": ...
Navigator.onLine - Web APIs
the property sends updates whenever the browser's ability to connect to the
network changes.
... in chrome and safari, if the browser is not able to connect to a local area
network (lan) or a router, it is offline; all other conditions return true.
... you can see changes in the
network state by listening for the events on window.ononline and window.onoffline.
... to see changes in the
network state, use addeventlistener to listen for the events on window.online and window.offline, as in the following example: window.addeventlistener('offline', function(e) { console.log('offline'); }); window.addeventlistener('online', function(e) { console.log('online'); }); specifications specification status comment html living standardthe definition of 'navigator.on...
Using Web Workers - Web APIs
in addition, workers may use xmlhttprequest for
network i/o, with the exception that the responsexml and channel attributes on xmlhttprequest always return null.
...if the script can't be loaded,
network_error is thrown, and subsequent code will not be executed.
... other types of worker in addition to dedicated and shared web workers, there are other types of worker available: serviceworkers essentially act as proxy servers that sit between web applications, and the browser and
network (when available).
... they are intended to (amongst other things) enable the creation of effective offline experiences, intercepting
network requests and taking appropriate action based on whether the
network is available and updated assets reside on the server.
Event reference
network events event name fired when online the browser has gained access to the
network.
... offline the browser has lost access to the
network.
... offline event html5 offline the browser has lost access to the
network.
... online event html5 offline the browser has gained access to the
network (but particular websites might be unreachable).
<img>: The Image Embed element - HTML: Hypertext Markup Language
alt text is also displayed on the page if the image can't be loaded for some reason: for example,
network errors, content blocking, or linkrot.
... abbreviation file format mime type file extension(s) browser compatibility apng animated portable
network graphics image/apng .apng chrome, edge, firefox, opera, safari bmp bitmap file image/bmp .bmp chrome, edge, firefox, internet explorer, opera, safari gif graphics interchange format image/gif .gif chrome, edge, firefox, internet explorer, opera, safari ico microsoft icon image/x-icon .ico, .cur chrome, edge, firefox, internet...
... explorer, opera, safari jpeg joint photographic expert group image image/jpeg .jpg, .jpeg, .jfif, .pjpeg, .pjp chrome, edge, firefox, internet explorer, opera, safari png portable
network graphics image/png .png chrome, edge, firefox, internet explorer, opera, safari svg scalable vector graphics image/svg+xml .svg chrome, edge, firefox, internet explorer, opera, safari tiff tagged image file format image/tiff .tif, .tiff none built-in; add-ons required webp web picture format image/webp .webp chrome, edge, firefox, opera the abbreviation for each format links to a longer description of the format, its capabilities, and detailed browser compatibility information; including which version...
...the intent is to avoid the
network and storage bandwidth needed to handle the image until it's reasonably certain that it will be needed.
Index - HTTP
found 122 pages: # page tags and summary 1 http headers http, http header,
networking, overview, reference http headers allow the client and the server to pass additional information with the request or the response.
... 21 connection http, headers, reference, web the connection general header controls whether or not the
network connection stays open after the current transaction finishes.
...for workers, non-compliant requests are treated as fatal
network errors by the user agent.
... 110 user-agent http, reference, header the user-agent request header contains a characteristic string that allows the
network protocol peers to identify the application type, operating system, software vendor or software version of the requesting software user agent.
X-DNS-Prefetch-Control - HTTP
description dns requests are very small in terms of bandwidth, but latency can be quite high, especially on mobile
networks.
... page load times – especially on mobile
networks – can be measurably improved in this way.
...on firefox, this can be done by setting the
network.dns.disableprefetch preference to true.
...on firefox, this can be changed by setting the
network.dns.disableprefetchfromhttps preference to false.
Link prefetching FAQ - HTTP
if you are using another application which uses the
network, link prefetching in mozilla may compete for bandwidth with the other application.
... this is a problem that we hope to address in the future by leveraging operating system services to monitor
network idle time.
...add this line to your prefs.js file located in your profile directory (or make the appropriate change via about:config): user_pref("
network.prefetch-next", false); however, the theory is that if link prefetching needs to be disabled then there must be something wrong with the implementation.
... what about folks who pay-per-byte for
network bandwidth?
Introduction to progressive web apps - Progressive web apps (PWAs)
network independent, so it works offline or with a poor
network connection.
...
network independence modern web apps can work when the
network is unreliable, or even non-existent.
... the basic ideas behind
network independence are to be able to: revisit a site and get its contents even if no
network is available.
... this is achieved using a combination of technologies: service workers to control page requests (for example storing them offline), the cache api for storing responses to
network requests offline (very useful for storing site assets), and client-side data storage technologies such as web storage and indexeddb to store application data offline.
net/xhr - Archive of obsolete content
it also has unfettered access to any local area
networks, vpns, and the internet.
... if access to the filesystem isn't prevented, it could easily be used to access sensitive user data, though this may be inconsequential if the client can't access the
network.
... if access to local area
networks isn't prevented, malicious code could access sensitive data.
Creating Reusable Modules - Archive of obsolete content
we can adapt it like this: var {cc, ci} = require("chrome"); // return the two-digit hexadecimal code for a byte function tohexstring(charcode) { return ("0" + charcode.tostring(16)).slice(-2); } function md5file(path) { var f = cc["@mozilla.org/file/local;1"] .createinstance(ci.nsilocalfile); f.initwithpath(path); var istream = cc["@mozilla.org/
network/file-input-stream;1"] .createinstance(ci.nsifileinputstream); // open for reading istream.init(f, 0x01, 0444, 0); var ch = cc["@mozilla.org/security/hash;1"] .createinstance(ci.nsicryptohash); // we want to use the md5 algorithm ch.init(ch.md5); // this tells updatefromstream to read the entire file const pr_uint32_max = 0xffffffff; ch.updatefromstream(i...
... file, compute the hash, and log the hash to the console: var {cc, ci} = require("chrome"); // return the two-digit hexadecimal code for a byte function tohexstring(charcode) { return ("0" + charcode.tostring(16)).slice(-2); } function md5file(path) { var f = cc["@mozilla.org/file/local;1"] .createinstance(ci.nsilocalfile); f.initwithpath(path); var istream = cc["@mozilla.org/
network/file-input-stream;1"] .createinstance(ci.nsifileinputstream); // open for reading istream.init(f, 0x01, 0444, 0); var ch = cc["@mozilla.org/security/hash;1"] .createinstance(ci.nsicryptohash); // we want to use the md5 algorithm ch.init(ch.md5); // this tells updatefromstream to read the entire file const pr_uint32_max = 0xffffffff; ch.updatefromstream(i...
...s.hashfile = md5file; the complete file looks like this: var {cc, ci} = require("chrome"); // return the two-digit hexadecimal code for a byte function tohexstring(charcode) { return ("0" + charcode.tostring(16)).slice(-2); } function md5file(path) { var f = cc["@mozilla.org/file/local;1"] .createinstance(ci.nsilocalfile); f.initwithpath(path); var istream = cc["@mozilla.org/
network/file-input-stream;1"] .createinstance(ci.nsifileinputstream); // open for reading istream.init(f, 0x01, 0444, 0); var ch = cc["@mozilla.org/security/hash;1"] .createinstance(ci.nsicryptohash); // we want to use the md5 algorithm ch.init(ch.md5); // this tells updatefromstream to read the entire file const pr_uint32_max = 0xffffffff; ch.updatefromstream(i...
Bookmarks - Archive of obsolete content
var ios = components.classes["@mozilla.org/
network/io-service;1"] .getservice(components.interfaces.nsiioservice); var uri = ios.newuri("http://google.com/", null, null); var newbkmkid = bmsvc.insertbookmark(newfolderid, uri, bmsvc.default_index, ""); this example instantiates the nsiioservice and uses it to create an nsiuri referring to the google web site, then calls nsinavbookmarksservice.insertbookmark() to create a new ...
... var ios = components.classes["@mozilla.org/
network/io-service;1"] .getservice(components.interfaces.nsiioservice); var uri = ios.newuri("http://google.com/", null, null); var bookmarksarray = bmsvc.getbookmarkidsforuri(uri, {}); after executing this code, the array bookmarksarray contains the ids of all bookmarks that refer to the specified uri (in this case, "http://google.com").
... var ios = components.classes["@mozilla.org/
network/io-service;1"] .getservice(components.interfaces.nsiioservice); var uri = ios.newuri("http://mozilla.com/", null, null); if (!bmsvc.isbookmarked(uri)) { bmsvc.insertbookmark(bmsvc.toolbarfolder, uri, bmsvc.default_index, "mozilla"); } this example looks to see if the user already has a bookmark for the mozilla web site, and, if not, creates one, adding it to the user's boo...
Using the Stylesheet Service - Archive of obsolete content
var sss = components.classes["@mozilla.org/content/style-sheet-service;1"] .getservice(components.interfaces.nsistylesheetservice); var ios = components.classes["@mozilla.org/
network/io-service;1"] .getservice(components.interfaces.nsiioservice); var uri = ios.newuri("chrome://myext/content/myext.css", null, null); sss.loadandregistersheet(uri, sss.user_sheet); note: loadandregistersheet will load the stylesheet synchronously, so you should only call this method using local uris.
... var sss = components.classes["@mozilla.org/content/style-sheet-service;1"] .getservice(components.interfaces.nsistylesheetservice); var ios = components.classes["@mozilla.org/
network/io-service;1"] .getservice(components.interfaces.nsiioservice); var uri = ios.newuri("chrome://myext/content/myext.css", null, null); if(!sss.sheetregistered(uri, sss.user_sheet)) sss.loadandregistersheet(uri, sss.user_sheet); removing a previously registered stylesheet if you wish to remove a stylesheet that you previously registered, simply use the unregistersheet metho...
... var sss = components.classes["@mozilla.org/content/style-sheet-service;1"] .getservice(components.interfaces.nsistylesheetservice); var ios = components.classes["@mozilla.org/
network/io-service;1"] .getservice(components.interfaces.nsiioservice); var u = ios.newuri("chrome://myext/content/myext.css", null, null); if(sss.sheetregistered(u, sss.user_sheet)) sss.unregistersheet(u, sss.user_sheet); registering stylesheets on startup via the category manager stylesheets may also be registered on startup via the agent-style-sheets and user-style-sheets categories.
Reading textual data - Archive of obsolete content
files and
network sockets contain bytes, not characters - to give these bytes a meaning, you need to know the character encoding.
... determining the character encoding of data if you have a
network channel (nsichannel), you can try the contentcharset property of it.
...onverter = components.classes["@mozilla.org/intl/scriptableunicodeconverter"] .createinstance(components.interfaces.nsiscriptableunicodeconverter); converter.charset = /* the character encoding you want, using utf-8 here */ "utf-8"; // this assumes that 'file' is a variable that contains the file you want to read, as an nsifile var fis = components.classes["@mozilla.org/
network/file-input-stream;1"] .createinstance(components.interfaces.nsifileinputstream); fis.init(file, -1, -1, 0); var lis = fis.queryinterface(components.interfaces.nsilineinputstream); var linedata = {}; var cont; do { cont = lis.readline(linedata); var line = converter.converttounicode(linedata.value); // now you can do something with line } while (cont); fis.close(); s...
URIs and URLs - Archive of obsolete content
overview handling
network and locally retrievable resources is a central part of necko.
...not all resources are
network "retrievable"; e.g., human beings, corporations, and bound books in a library can also be considered resources.
...the term "uniform resource locator" (url) refers to the subset of uri that identify resources via a representation of their primary access mechanism (e.g., their
network "location"), rather than identifying the resource by name or by some other attribute(s) of that resource.
Simple Example - Archive of obsolete content
the data
network will now look like this: (?start = http://www.xulplanet.com/rdf/myphotos, ?photo = http://www.xulplanet.com/ndeakin/images/t/palace.jpg) (?start = http://www.xulplanet.com/rdf/myphotos, ?photo = http://www.xulplanet.com/ndeakin/images/t/canal.jpg) (?start = http://www.xulplanet.com/rdf/myphotos, ?photo = http://www.xulplanet.com/ndeakin/images/t/obselisk.jpg) the triple is evaluated next, an...
...in the rdf, the 'palace' resource has a value 'palace from above', so it will be added to the data
network, assigned to the ?title variable.
...in the end, the
network will contain the following data: (?start = http://www.xulplanet.com/rdf/myphotos, ?photo = http://www.xulplanet.com/ndeakin/images/t/palace.jpg, ?title = 'palace from above') (?start = http://www.xulplanet.com/rdf/myphotos, ?photo = http://www.xulplanet.com/ndeakin/images/t/canal.jpg, ?title = 'canal') (?start = http://www.xulplanet.com/rdf/myphotos, ?photo = http://www.xulplanet.com/ndeakin/images/t/obelisk.jpg, ?title = 'obelisk') since the triple is the last statement, three matches total have...
Opening a Link in the Default Browser - Archive of obsolete content
this can be done using the nsiexternalprotocolservice interface: // first construct an nsiuri object using the ioservice var ioservice = components.classes["@mozilla.org/
network/io-service;1"] .getservice(components.interfaces.nsiioservice); var uritoopen = ioservice.newuri("http://www.example.com/", null, null); var extps = components.classes["@mozilla.org/uriloader/external-protocol-service;1"] .getservice(components.interfaces.nsiexternalprotocolservice); // now, open it!
...to suppress this warning for particular protocols that are safe to open in the default application, you must set default prefs (thunderbird sets the following prefs): // suppress external-load warning for standard browser schemes pref("
network.protocol-handler.warn-external.http", false); pref("
network.protocol-handler.warn-external.https", false); pref("
network.protocol-handler.warn-external.ftp", false); you can also check whether an external handler for a scheme exists.
...asses["@mozilla.org/uriloader/external-protocol-service;1"] .getservice(components.interfaces.nsiexternalprotocolservice); if (extps.externalprotocolhandlerexists("http")) { // handler for http:// urls exists } link within an iframe to enable a link inside an html document that is the "src" of an iframe to be opened in the default browser, setting the preference: pref("
network.protocol-handler.expose-all", false); seems to work.
NPP_URLNotify - Archive of obsolete content
npres_user_break: user canceled stream directly by clicking the stop button or indirectly by some action such as deleting the instance or initiating higher-priority
network operations.
... npres_
network_err: stream failed due to problems with
network, disk i/o, lack of memory, or other problems.
...other possible reason codes are npres_user_break, indicating that the request was halted due to a user action (for example, clicking the stop button), and npres_
network_err, indicating that the request could not be completed, perhaps because the url could not be found.
Gecko FAQ - Gecko Redirect 1
many hardware vendors are creating devices with
network access and wish to include web browsing functionality.
...ug reports marked with the html4 keyword "meta bug" for tracking outstanding issues with html 4.01 compliance css: style system component (see also bug reports marked with the css1, css2, and css3 keywords) dom: see dom0, dom1, dom2 and event handling components xml rdf core javascript language interpreter (javascript engine) http 1.1 compliance bugs should generally be found on the
networking,
networking - general, and
networking: cache components oji imagelib image library (see also jpeg image handling and png image handling) ssl-related bugs are filed on the crypto component for information about the known bugs of a specific commercial product based on gecko, see that product's release notes.
... gecko includes the following components: document parser (handles html and xml) layout engine with content model style system (handles css, etc.) javascript runtime (spidermonkey) image library
networking library (necko) platform-specific graphics rendering and widget sets for win32, x, and mac user preferences library mozilla plug-in api (npapi) to support the navigator plug-in interface open java interface (oji), with sun java 1.2 jvm rdf back end font library security library (nss) original document information author(s): angus other contributors: ekrock, vidur, hidday, druncle...
ICE - MDN Web Docs Glossary: Definitions of Web-related terms
ice (interactive connectivity establishment) is a framework used by webrtc (among other technologies) for connecting two peers, regardless of
network topology (usually for audio and video chat).
... this protocol lets two peers find and establish a connection with one another even though they may both be using
network address translator (nat) to share a global ip address with other devices on their respective local
networks.
... the framework algorithm looks for the lowest-latency path for connecting the two peers, trying these options in order: direct udp connection (in this case—and only this case—a stun server is used to find the
network-facing address of a peer) direct tcp connection, via the http port direct tcp connection, via the https port indirect connection via a relay/turn server (if a direct connection fails, e.g., if one peer is behind a firewall that blocks nat traversal) learn more general knowledge webrtc, the principal web-related protocol which uses ice webrtc protocols technical reference rfc 5245, the ietf specification for ice rtcicecandidate, the interface representing a ice candidate ...
Proxy server - MDN Web Docs Glossary: Definitions of Web-related terms
a proxy server is an intermediate program or computer used when navigating through different
networks of the internet.
...a proxy intercepts requests and serves back responses; it may forward the requests, or not (for example in the case of a cache), and it may modify it (for example changing its headers, at the boundary between two
networks).
... a reverse proxy taking requests from the internet and forwarding them to servers in an internal
network.
Server - MDN Web Docs Glossary: Definitions of Web-related terms
a hardware server is a shared computer on a
network, usually powerful and housed in a data center.
... services are provided generally over local area
networks or wide area
networks such as the internet.
... for example: an internet-connected web server is sending a html file to your browser software so that you can read this page local area
network server for file, name, mail, print, and fax minicomputers, mainframes, and super computers at data centers learn more general knowledge introduction to servers server (computing) on wikipedia ...
How do you make sure your website works properly? - Learn web development
open firefox's
network tool (tools ➤ web developer ➤
network) and reload the page: there's the problem, that "404" at the bottom.
...but the
network tool reported a "404".
... 404 errors many times the error just results just from a typo, but sometimes maybe you either forgot to upload a resource or you lost your
network connection while you were uploading your resources.
Sending form data - Learn web development
viewing http requests http requests are never displayed to the user (if you want to see them, you need to use tools such as the firefox
network monitor or the chrome developer tools).
... as an example, your form data will be shown as follows in the chrome
network tab.
... select "
network" select "all" select "foo.com" in the "name" tab select "headers" you can then get the form data, as shown in the image below.
Tips for authoring fast-loading HTML pages - Learn web development
use a content delivery
network (cdn) for the purposes of this article, a cdn is a means to reduce the physical distance between your server and your visitor.
... a cdn is a geographically distributed
network of servers that work together to shorten the distance between the user and your website.
... cdns store cached versions of your website and serve them to visitors via the
network node closest to the user, thereby reducing latency.
Introducing asynchronous JavaScript - Learn web development
related to blocking), many web api features now use asynchronous code to run, especially those that access or fetch some kind of resource from an external device, such as fetching a file from the
network, accessing a database and returning data from it, accessing a video stream from a web cam, or broadcasting the display to a vr headset.
... here we see fetch() taking a single parameter — the url of a resource you want to fetch from the
network — and returning a promise.
...but web browsers define functions and apis that allow us to register functions that should not be executed synchronously, and should instead be invoked asynchronously when some kind of event occurs (the passage of time, the user's interaction with the mouse, or the arrival of data over the
network, for example).
Measuring performance - Learn web development
these can generally be classified into two categories: tools that indicate or measure performance, such as pagespeed insights or the firefox
network monitor and performance monitor.
...
network tools most browsers have tools available that you can use to run against loaded pages and determine how they are performing.
... for example, the firefox
network monitor returns detailed information on all the assets downloaded form the
network, along with a time graph that shows how long each one took to download.
The "why" of web performance - Learn web development
imagine loading this on a desktop computer connected to a fibre optic
network.
... a 22.6 mb site could take up to 83 seconds to load on a 3g
network, with domcontentloaded (meaning the site's base html structure) at 31.86 seconds.
...multiple factors, including
network speed and device capabilities affect performance.
Introduction to client-side frameworks - Learn web development
routing the most essential feature of the web is that it allows users to navigate from one page to another – it is, after all, a
network of interlinked documents.
... some extra code is inevitable, and a framework that supports tree-shaking (removal of any code that isn't actually used in the app during the build process) will allow you to keep your applications small, but this is still a factor you need to keep in mind when considering your app's performance, especially on more
network/storage-constrained devices, like mobile phones.
...instead of a robust, content-first
network of documents, the web now often puts javascript first and user experience last.
Embedding API for Accessibility
a reframe fixes the appearance of the page to match the new prefs, without reloading the document over the
network.
... a line like the following to your prefs.js: user_pref("accessibility.browsewithcaret", true); accessibility prefs reference the following is a description of what accessibility prefs give us (or will give us), for accessibility: functionality implementation works as of images setintpref("
network.image.imagebehavior", behavior); /* behavior: 0=accept, 1=accept images from originating server only, 2=no images */ moz 0.8 cookies setintpref("
network.cookie.cookiebehavior", behavior); /* behavior: 0=accept, 1=accept cookies from originating server only, 2=no cookies */ ...
... setboolpref("
network.cookie.warnaboutcookies", boolwarn); moz 0.8 fonts setcharpref("font.name.monospace.x-western", newfontname); setcharpref("font.name.serif.x-western", newfontname); setcharpref("font.name.sans-serif.x-western", newfontname); /* for other i18n charsets, change x-western to x-central-euro, x-cyrillic, x-unicode, x-user-def, x-baltic, el, tr, he, ar, th, ja, zh-cn or zh-tw */ setintpref("font.size.fixed.x-western", newfontsize); setintpref("font.size.variable.x-western", newfontsize); /* for other i18n charsets, change the name as exp...
Creating Sandboxed HTTP Connections
to create an nsiuri from an string, we use the newuri method of nsiioservice: // the io service var ioservice = components.classes["@mozilla.org/
network/io-service;1"] .getservice(components.interfaces.nsiioservice); // create an nsiuri var uri = ioservice.newuri(myurlstring, null, null); once the nsiuri has been created, a nsichannel can be generated from it using nsiioservice's newchannelfromuri method: // get a channel for that nsiuri var channel = ioservice.newchannelfromuri(uri); to initiate the connection, the...
...since this is a stream, it could be called multiple times (depending on the size of the returned data,
networking conditions, etc).
...below is an example: // global channel var gchannel; // init the channel // the io service var ioservice = components.classes["@mozilla.org/
network/io-service;1"] .getservice(components.interfaces.nsiioservice); // create an nsiuri var uri = ioservice.newuri(myurlstring, null, null); // get a channel for that nsiuri gchannel = ioservice.newchannelfromuri(uri); // get an listener var listener = new streamlistener(callbackfunc); gchannel.notificationcallbacks = listener; gchannel.asyncopen(listener, null); functi...
HTTP logging
using about:
networking this is available starting with firefox 52.
... open a new tab and type in "about:
networking" into the url bar.
... logging http activity by manually setting environment variables sometimes the about:
networking approach won't work, for instance if your bug occurs during startup, or you're running on mobile, etc.
Introduction to Layout in Mozilla
overview basic data flow key data structures detailed walk-through incrementalism future tech-talks wrap-up, q&a basic data flow source document arrives via
network apis incrementally “pumped” through the single-threaded layout engine parse, compute style, render; repeat css used for rendering all content content theoretically separate from “presentation” key data structures content node elements, attributes, leaves dom frame rectangular formatting primitive geometric information [0..n] per content node 2nd thru nth are “continuations” style context non-geometric information may be shared by adjacent frames reference counted, owned by frame ...
... may not be directly manipulated detailed walk-through setting up content model construction frame construction style resolution reflow painting setting up assume basic knowledge of embedding and
network apis (doc shell, streams) content dll auto-registers a document loader factory (dlf) @mozilla.org/content-viewer-factory/view;1?type=text/html all mime types mapped to the same class, nscontentdlf nsdocshell receives inbound content via nsdsuricontentlistener invokes nsidlf::createinstance, passes mime type to dlf nscontentdlf creates a...
... creates a parser, returned as nsistreamlistener back to the docshell creates a content sink, which is linked to the parser and the document creates a documentviewerimpl object, which is returned as nsicontentviewer back to the docshell documentviewerimpl creates pres context and pres shell content model construction content arrives from
network via nsistreamlistener::ondataavailable parser tokenizes & processes content; invokes methods on nsicontentsink with parser node objects some buffering and fixup occurs here opencontainer, closecontainer, addleaf content sink creates and attaches content nodes using nsicontent interface content sink maintains stack of “live” elements more buffering an...
powermetrics
.47 330.35 0.00 launchd 1 18.88 2.44 0.00 0.00 0.40 0.20 0.00 com.apple.safari 488 90.60 108.58 56.48 26.65 com.apple.webkit.webcontent 84679 64.21 84.69 0.00 0.00 104.19 54.89 26.66 com.apple.webkit.
networking 84678 26.89 58.89 0.40 0.00 1.60 0.00 0.00 safari 84676 1.56 55.74 0.00 0.00 2.59 1.40 0.00 com.apple.safari.searchhelper 84690 0.15 49.49 0.00 0.00 0.20 0.20 0.00 org.mozilla.firefox 482 76.56 ...
... other measurements powermetrics can also report measurements of backlight usage,
network activity, disk activity, interrupt distribution, device power states, c-state residency, p-state residency, quality of service classes, and thermal pressure.
....36 43.15 80.52 windowserver 141 103.03 58.19 60.48 6.40 112.36 43.15 80.53 com.apple.safari 499 267.19 110.53 46.05 1.69 com.apple.webkit.webcontent 67372 190.15 79.34 2.02 0.14 129.28 53.79 2.33 com.apple.webkit.
networking 67292 65.23 52.74 0.07 0.00 4.33 1.40 0.00 safari 67290 29.09 77.65 0.23 0.00 7.13 3.37 0.00 com.apple.safari.searchhelper 67371 13.88 91.18 0.00 0.00 0.36 0.05 0.00 com.apple.webkit.webcontent 67297 0.81 56.84 0.10 0.00 ...
PR_GetHostByAddr
looks up a host entry by its
network address.
... description pr_gethostbyaddr is used to perform reverse lookups of
network addresses.
... that is, given a valid
network address (of type prnetaddr), pr_gethostbyaddr discovers the address' primary name, any aliases, and any other
network addresses for the same host.
PR_NetAddrToString
converts a character string to a
network address.
... syntax #include <prnetdb.h> prstatus pr_netaddrtostring( const prnetaddr *addr, char *string, pruint32 size); parameters the function has the following parameters: addr a pointer to the
network address to be converted.
... description the
network address to be converted (addr) may be either an ipv4 or ipv6 address structure, assuming that the nspr library and the host system are both configured to utilize ipv6 addressing.
NSS FAQ
general questions what is
network security services (nss) nss is set of libraries, apis, utilities, and documentation designed to support cross-platform development of security-enabled client and server applications.
... if you want add support for ssl, s/mime, or other internet security standards to your application, you can use
network security services (nss) to do so.
... to provide cross-platform support, nss utilizes netscape portable runtime (nspr) libraries as a portability interface and implementation that provides consistent cross-platform semantics for
network i/o and threading models.
NSS_3.12_release_notes.html
nss 3.12 release notes 17 june 2008 newsgroup: mozilla.dev.tech.crypto contents introduction distribution information new in nss 3.12 bugs fixed documentation compatibility feedback introduction
network security services (nss) 3.12 is a minor release with the following new features: sqlite-based shareable certificate and key databases libpkix: an rfc 3280 compliant certificate path validation library camellia cipher support tls session ticket extension (rfc 5077) nss 3.12 is tri-licensed under the mpl 1.1/gpl 2.0/lgpl 2.1.
...id (see cryptohi.h) new macros for camellia support (see blapit.h): nss_camellia nss_camellia_cbc camellia_block_size new macros for rsa (see blapit.h): rsa_max_modulus_bits rsa_max_exponent_bits new macros in certt.h: x.509 v3 ku_encipher_only cert_max_serial_number_bytes cert_max_dn_bytes pkix cert_rev_m_do_not_test_using_this_method cert_rev_m_test_using_this_method cert_rev_m_allow_
network_fetching cert_rev_m_forbid_
network_fetching cert_rev_m_allow_implicit_default_source cert_rev_m_ignore_implicit_default_source cert_rev_m_skip_test_on_missing_source cert_rev_m_require_info_on_missing_source cert_rev_m_ignore_missing_fresh_info cert_rev_m_fail_on_missing_fresh_info cert_rev_m_stop_testing_on_fresh_info cert_rev_m_continue_testing_on_fresh_info cert_rev_mi_test_each_method_separat...
...bug 391292: shared database implementation slow bug 391294: shared database implementation really slow on
network file systems bug 392521: automatic shared db update fails if user opens database r/w but never supplies a password bug 392522: integrity hashes must be updated when passwords are changed.
NSS sources building testing
getting the source code of
network security services (nss), how to build it, and how to run its test suite.
...on machines that are configured with a hostname that has been registered in your
network's dns, this should work automatically.
... in other environments (for example in home
networks), you could set the host and domsuf (for domain suffix) environment variables to tell the nss suite which hostname to use.
sslfnc.html
nss_init nss_initreadwrite nss_nodb_init ssl_optionsetdefault ssl_optiongetdefault ssl_cipherprefsetdefault ssl_cipherprefgetdefault ssl_clearsessioncache ssl_configserversessionidcache ssl_configmpserversidcache ssl_inheritmpserversidcache nss_init sets up configuration files and performs other tasks required to run
network security services.
... nss_initreadwrite sets up configuration files and performs other tasks required to run
network security services.
... nss_nodb_init performs tasks required to run
network security services without setting up configuration files.
Necko
necko is a
network library that provides a platform-independent api for several layers of
networking, ranging from transport to presentation layers.
... this api is used in many mozilla-based client applications (including firefox) and can be used for writing other
networking clients.
...eventually we'd like to move to a binary distribution mechanism for the
networking library so that you can build your application that uses this library without having to build mozilla.
Mozilla Projects
necko necko is a
network library that provides a platform-independent api for several layers of
networking, ranging from transport to presentation layers.
... this api is used in many mozilla-based client applications (including firefox) and can be used for writing other
networking clients.
...
network security services
network security services (nss) is a set of libraries designed to support cross-platform development of security-enabled client and server applications.
Animated PNG graphics
authors the apng specification was authored by: stuart parmenter <pavlov@pavlov.net> vladimir vukicevic <vladimir@pobox.com> andrew smith <asmith15@littlesvr.ca> overview apng is an extension of the portable
network graphics (png) format, adding support for animated images.
... for purposes of chunk descriptions, an unsigned int shall be a 32-bit unsigned integer in
network byte order limited to the range 0 to (2^32)-1; an unsigned short shall be a 16-bit unsigned integer in
network byte order with the range 0 to (2^16)-1; and a byte shall be an 8-bit unsigned integer with the range 0 to (2^8)-1.
... an application (open source) using the mozilla encoder to assemble apngs available here: http://littlesvr.ca/apng/apngedit.html see also portable
network graphics (png) specification (second edition) extensions to the png specification, version 1.2.0 graphics interchange format 89a ...
Manipulating bookmarks using Places
var ios = components.classes["@mozilla.org/
network/io-service;1"] .getservice(components.interfaces.nsiioservice); var uri = ios.newuri("http://google.com/", null, null); var newbkmkid = bmsvc.insertbookmark(newfolderid, uri, bmsvc.default_index, ""); this example instantiates the nsiioservice and uses it to create an nsiuri referring to the google web site, then calls nsinavbookmarksservice.insertbookmark() to create a new ...
... var ios = components.classes["@mozilla.org/
network/io-service;1"] .getservice(components.interfaces.nsiioservice); var uri = ios.newuri("http://google.com/", null, null); var bookmarksarray = bmsvc.getbookmarkidsforuri(uri, {}); after executing this code, the array bookmarksarray contains the ids of all bookmarks that refer to the specified uri (in this case, "http://google.com").
... var ios = components.classes["@mozilla.org/
network/io-service;1"] .getservice(components.interfaces.nsiioservice); var uri = ios.newuri("http://mozilla.com/", null, null); if (!bmsvc.isbookmarked(uri)) { bmsvc.insertbookmark(bmsvc.toolbarfolder, uri, bmsvc.default_index, "mozilla"); } this example looks to see if the user already has a bookmark for the mozilla web site, and, if not, creates one, adding it to the user's boo...
An Overview of XPCOM
the
network library, for example, consists of components for each of the protocols, http, ftp, and others, which are bundled together and linked into a single library.
... this library is the
networking module, also known as "necko." but it's not always a good idea to divide things up.
...this is the contract id for the ldap operation component: "@mozilla.org/
network/ldap-operation;1" the format of the contract id is the domain of the component, the module, the component name, and the version number, separated by slashes.
HOWTO
async
network requests problem you want to make
network requests or do other asynchronous work in xpcshell.
... however, when you start your script, it exits immediately, before the
network request returns.
...tp://mxr.mozilla.org/comm-central/...figutils.js#54 solution 2 append the following at the top of your js file which you want to run in xpcshell { // <https://developer.mozilla.org/en/xpconnect/xpcshell/howto> // <https://bugzilla.mozilla.org/show_bug.cgi?id=546628> let cc = components.classes; let ci = components.interfaces; // register resource://app/ uri let ios = cc["@mozilla.org/
network/io-service;1"] .getservice(ci.nsiioservice); let reshandler = ios.getprotocolhandler("resource") .queryinterface(ci.nsiresprotocolhandler); let mozdir = cc["@mozilla.org/file/directory_service;1"] .getservice(ci.nsiproperties) .get("curprocd", ci.nsilocalfile); let mozdiruri = ios.newfileuri(mozdir); reshandler.setsubstitution("app", mozdiruri); // register chrome...
nsICachingChannel
constants constant value description load_no_
network_io 1 << 26 this load flag inhibits fetching from the net.
... an error of ns_error_document_not_cached will be sent to the listener's onstoprequest if
network io is necessary to complete the request.
... this flag can be used to find out whether fetching this url would cause validation of the cache entry via the
network.
nsIDNSService
inherits from: nsisupports last changed in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) implemented by: @mozilla.org/
network/dns-service;1.
... 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.
...example let dnsservice = components.classes["@mozilla.org/
network/dns-service;1"] .createinstance(components.interfaces.nsidnsservice); let thread = components.classes["@mozilla.org/thread-manager;1"] .getservice(components.interfaces.nsithreadmanager).currentthread; let host = "www.mozilla.org"; let listener = { onlookupcomplete: function(request, record, status) { if (!components.issuccesscode(status)) { // handle ...
nsIDocShell
busy_flags_busy 1 returned by the busyflags attribute when the nsidocshell is loading a document from the
network.
... busy_flags_before_page_load 2 returned by the busyflags attribute when the nsidocshell has started loading a document from the
network, but no data has been received yet.
... busy_flags_page_loading 4 returned by the busyflags attribute when the nsidocshell is receiving data from the
network.
nsIFaviconService
afaviconloadtype one of nsifaviconservice.favicon_load_private or nsifaviconservice.favicon_load_non_private to indicate that any
network requests performed should act like ones from a private browsing context (ie.
...this should be determined via privatebrowsingutils.iswindowprivate(somerelatedwindow) if the favicon may expose the user's private browsing data by performing a
network request, otherwise favicon_load_non_private may be used.
... example var ioservice = components.classes["@mozilla.org/
network/io-service;1"] .getservice(components.interfaces.nsiioservice); var pageuri = ioservice.newuri("http://www.mozilla.org/", null, null); var faviconuri = ioservice.newuri("http://www.mozilla.org/favicon.ico", null, null); faviconservice.setandloadfaviconforpage(pageuri, faviconuri, false); setfavicondata() obsolete since gecko 22.0 (firefox 22.0 / thunderbird 22.0 / seamonkey 2.19) note: this method was removed in gecko 22.0.
nsIMIMEInputStream
inherits from: nsiinputstream last changed in gecko 1.3 implemented by: @mozilla.org/
network/mime-input-stream;1.
... to create an instance, use: var mimeinputstream = components.classes["@mozilla.org/
network/mime-input-stream;1"] .createinstance(components.interfaces.nsimimeinputstream); method overview void addheader(in string name, in string value); void setdata(in nsiinputstream stream); attributes attribute type description addcontentlength boolean when true a "content-length" header is automatically added to the stream.
... example var postdata = components.classes["@mozilla.org/
network/mime-input-stream;1"] .createinstance(components.interfaces.nsimimeinputstream); postdata.addheader("content-type", "application/x-www-form-urlencoded"); postdata.addcontentlength = true; postdata.setdata(stringstream); ...
nsIMsgMessageService
e.g., header=filter return the nsiuri that gets run example for example, the next piece of code shows the selected message code on a dialog: (taken from mozillazine) var content = ""; var messageuri = getfirstselectedmessage(); var msgservice = messenger.messageservicefromuri(messageuri); var msgstream = components.classes["@mozilla.org/
network/sync-stream-listener;1"].createinstance(); var consumer = msgstream.queryinterface(components.interfaces.nsiinputstream); var scriptinput = components.classes["@mozilla.org/scriptableinputstream;1"].createinstance(); var scriptinputstream = scriptinput.queryinterface(components.interfaces.nsiscriptableinputstream); scriptinputstream.init(consumer); try { msgservice.streammessage(mes...
...if streaming over the
network is required and this is true, then an exception is thrown.
... note if we're offline, then even if alocalonly is false, we won't stream over the
network return the url that gets run, if any ismsginmemcache() determines whether a message is in the memory cache.
nsIProtocolProxyService
netwerk/base/public/nsiprotocolproxyservice.idlscriptable this interface provides methods to access information about various
network proxies.
... inherits from: nsisupports last changed in gecko 1.7 implemented by: @mozilla.org/
network/protocol-proxy-service;1.
... to access the service use: var pps = components.classes["@mozilla.org/
network/protocol-proxy-service;1"] .getservice(components.interfaces.nsiprotocolproxyservice); method overview deprecated since gecko 18 nsiproxyinfo resolve(in nsiuri auri, in unsigned long aflags); nsicancelable asyncresolve(in nsiuri auri, in unsigned long aflags,in nsiprotocolproxycallback acallback); nsiproxyinfo newproxyinfo(in acstring atype, in autf8string ahost,in long aport, in unsigned long aflags, in unsigned long afailovertimeout, in nsiproxyinfo afailoverproxy); nsiproxyinfo getfailoverforproxy(in nsiproxyinfo aproxyinfo, in nsiuri auri, in nsresult areason); void registerfilter(in nsiprotocolproxyfilter afilter, in unsigned long aposition); ...
nsISocketTransportService
inherits from: nsisupports last changed in gecko 1.9 (firefox 3) implemented by: @mozilla.org/
network/socket-transport-service;1.
... to create an instance, use: var sockettransportservice = components.classes["@mozilla.org/
network/socket-transport-service;1"] .getservice(components.interfaces.nsisockettransportservice); method overview void attachsocket(in prfiledescptr afd, in nsasockethandlerptr ahandler); native code only!
... var transportservice = components.classes["@mozilla.org/
network/socket-transport-service;1"] .getservice(components.interfaces.nsisockettransportservice); // ...
nsISpeculativeConnect
netwerk/base/public/nsispeculativeconnect.idlscriptable lets non-
networking code provide hints to the
networking layer that an http connection attempt to a particular site is likely to happen soon; this lets the
networking layer begin setting up tcp and, if appropriate, ssl handshakes to save time when the connection is actually opened later.
...then call speculativeconnect() to let the
networking layer know what you might be doing in the future.
... method overview void speculativeconnect(in nsiuri auri, in nsiinterfacerequestor acallbacks, in nsieventtarget atarget); methods speculativeconnect() call this method to hint to the
networking layer that a new transaction for the specified uri is likely to happen soon.
nsIWebBrowserPersist
persistflags unsigned long flags governing how data is fetched and saved from the
network.
... saveprivacyawareuri() save the specified uri to file, explicitly dictating whether the operation should be considered private for the purposes of
network requests, caching, etc.
... example function downloadfile(httploc, sourcewindow) { try { //new obj_uri object var obj_uri = components.classes["@mozilla.org/
network/io-service;1"].getservice(components.interfaces.nsiioservice).newuri(httploc, null, null); //new file object var obj_targetfile = components.classes["@mozilla.org/file/local;1"].createinstance(components.interfaces.nsilocalfile); //set file with path obj_targetfile.initwithpath("c:\\temp\\test.pdf"); //if file doesn't exist, create if(!obj_targetfile.exists()) { obj_targetfile.create(0x00,0644); } //new persistence object var obj_persist = components.classe...
nsIWifiAccessPoint
rawssid acstring the public name of the wireless
network, as an ascii string.
...note: this string consists of the bytes as received from the
network and may contain nulls and other unprintable characters; if you need to display the ssid, use the ssid attribute instead.
... ssid astring the access point's public wireless
network name, as an ascii string.
DevTools API - Firefox Developer Tools
gdevtools.once("netmonitor-init", (eventname, toolbox, netmonitor) => { console.log("
network monitor initialized once!", toolbox, netmonitor); }); // use the promise returned by the once method.
... console.log("
network monitor initialized to toolbox", toolbox); }); toolsidebar to build a sidebar in your tool, first, add a xul:tabbox where you want the sidebar to live: <splitter class="devtools-side-splitter"/> <tabbox id="mytool-sidebar" class="devtools-sidebar-tabs" hidden="true"> <tabs/> <tabpanels flex="1"/> </tabbox> a sidebar is composed of tabs.
...for example, in the web console, there are 2 views (
network view and object view).
Inspecting web sockets - Firefox Developer Tools
since firefox 71, the
network monitor has had the ability to inspect web socket connections.
... accessing the inspector when you are inspecting a web app that utilizes a web socket connection, the web socket requests are listed in the list of requests in the
network monitor along with all other requests.
... pausing web socket traffic you can use the pause/resume button in the
network monitor toolbar to stop intercepting web socket traffic.
about:debugging - Firefox Developer Tools
in the image above, there are three tabs open:
network or cache recipe, nightly home, and about nightly.
... connecting over the
network you can connect to a firefox debug server on your
network, or on your debugging machine using the
network location settings of the about:debugging page.
...when you do, it is added to the
network locations list along with the devices, as shown below: this firefox the this firefox tab combines the features of extensions, tabs, and workers into a single tab with the following sections: temporary extensions displays a list of the extensions that you have loaded using the load temporary add-on button.
Cache - Web APIs
if there isn't a matching font, the code fetches the font from the
network and uses cache.put() to cache the fetched resource.
...about to fetch ' + 'from
network...', event.request.url); // we call .clone() on the request since we might use it in a call to cache.put() later on.
... // (see /docs/web/api/request/clone) return fetch(event.request.clone()).then(function(response) { console.log(' response for %s from
network is: %o', event.request.url, response); if (response.status < 400 && response.headers.has('content-type') && response.headers.get('content-type').match(/^font\//i)) { // this avoids caching responses that we know are errors (i.e.
Fetch API - Web APIs
the fetch api provides an interface for fetching resources (including across the
network).
... concepts and usage fetch provides a generic definition of request and response objects (and other things involved with
network requests).
...instead, it will resolve normally (with ok status set to false), and it will only reject on
network failure or if anything prevented the request from completing.
Key Values - Web APIs
keycode_tv_media_context_menu (257) "tv
network" toggle the tv's
network connection on and off.
... keycode_tv_
network (241) "tvnumberentry" put the tv into number entry mode.
... the values below are derived in part form a number of consumer electronics technical specifications: dtv application software environment (part of the atsc specification) open cable application platform 1.1.3 ansi/cea-2014-b: web-based protocol and framework for remote user interface on upnp™
networks and the internet android keyevent key code values note: remote controls typically include keys whose values are already defined elsewhere, such as under multimedia keys or audio control keys.
MediaSource.endOfStream() - Web APIs
the possible values are:
network: terminates playback and signals that a
network error has occured.
...for example, you might have a function that handles media chunk requests, separate from other
network requests.
... when you make an xmlhttprequest call for a media chunk, and onabort or onerror triggers, you might want to call endofstream('
network'), display a descriptive message in the ui, and maybe retry the
network request immediately or wait until the
network is back up (via some kind of polling.) decode: terminates playback and signals that a decoding error has occured.
Navigator.connection - Web APIs
the navigator.connection read-only property returns a
networkinformation object containing information about the system's connection, such as the current bandwidth of the user's device or whether the connection is metered.
... syntax
networkinformation = navigator.connection value a
networkinformation object.
... specifications specification status comment
network information apithe definition of 'navigator.connection' in that specification.
PerformanceResourceTiming - Web APIs
the performanceresourcetiming interface enables retrieval and analysis of detailed
network timing data regarding the loading of an application's resources.
... the interface's properties create a resource loading timeline with high-resolution timestamps for
network events such as redirect start and end times, fetch start, dns lookup start and end times, response start and end times, etc..
... performanceresourcetiming.nexthopprotocolread only a string representing the
network protocol used to fetch the resource, as identified by the alpn protocol id (rfc7301).
RTCPeerConnection - Web APIs
negotiationneeded sent to the rtcpeerconnection when negotiation or renegotiation of the ice connection needs to be performed; this can happen both when first opening a connection as well as when it's neccessary to adapt to changing
network conditions.
...this is a less stringent test than "failed" and may trigger intermittently and resolve just as spontaneously on less reliable
networks, or during temporary disconnections.
... constant description "new" the peer connection was just created and hasn't done any
networking yet.
ServiceWorkerGlobalScope - Web APIs
the attempt to sync is made either immediately if the
network is available or as soon as the
network becomes available.
...if no match is found, the code fetches a response from the
network.
...about to fetch from
network...'); return fetch(event.request).then(function(response) { console.log('response from
network is:', response); return response; }, function(error) { console.error('fetching failed:', error); throw error; }); }) ); }); specifications specification status comment service workersthe definition of 'serviceworker...
Streams API - Web APIs
the streams api allows javascript to programmatically access streams of data received over the
network and process them as desired by the developer.
... concepts and usage streaming involves breaking a resource that you want to receive over a
network down into small chunks, then processing it bit by bit.
... readablestreamdefaultreader represents a default reader that can be used to read stream data supplied from a
network (e.g.
SyncManager.register() - Web APIs
minrequired
network: the
network condition under which background synchronization will occur.
... valid values are '
network-any', '
network-offline', '
network-online', '
network-non-mobile'.
... the default value is '
network-online'.
WebRTC connectivity - Web APIs
this exchange is handled using interactive connectivity establishment (ice, a protocol which lets two devices use an intermediary to exchange offers and answers even if the two devices are separated by
network address translation (nat).
... ice candidates as well as exchanging information about the media (discussed above in offer/answer and sdp), peers must exchange information about the
network connection.
...for example, when renegotiating a connection—for example, to adapt to changing hardware or
network configurations—it's possible that negotiation could reach a dead end, or some form of error might occur that prevents negotiation at all.
WebRTC API - Web APIs
telephony these interfaces and events are related to interactivity with public-switched telephone
networks (ptsns).
... they're primarily used to send tone dialing sounds—or packets representing those tones—across the
network to the remote peer.
...tocols application layer protocol negotiation for web real-time communications webrtc audio codec and processing requirements rtcweb data channels rtcweb data channel protocol web real-time communication (webrtc): media transport and use of rtp webrtc security architecture transports for rtcweb related supporting protocols interactive connectivity establishment (ice): a protocol for
network address translator (nat) traversal for offer/answer protocol session traversal utilities for nat (stun) uri scheme for the session traversal utilities for nat (stun) protocol traversal using relays around nat (turn) uniform resource identifiers an offer/answer model with session description protocol (sdp) session traversal utilities for nat (stun) extension for third party authorization we...
Functions and classes available to Web Workers - Web APIs
across the
network.) 39 (39) (mostly in 34 (34) behind pref, although a few features are later.) no support 42 41 behind pref 10.1 filereader this api allows asynchronous read of blob and file objects.
... 10.0 (yes) 10.1
network information api provides information about the system's connection in terms of general connection type (e.g., 'wifi', 'cellular', etc.).
... 34.0 (34.0) no support 33.0 no support performanceentry, performancemeasure, performancemark, performanceobserver, performanceresourcetiming enables retrieval and analysis of detailed data regarding various aspects of an application's
network performance.
Web Workers API - Web APIs
in addition, workers may use xmlhttprequest for
network i/o, with the exception that the responsexml and channel attributes on xmlhttprequest always return null.
... serviceworkers essentially act as proxy servers that sit between web applications, the browser, and the
network (when available).
... they are intended, among other things, to enable the creation of effective offline experiences, intercept
network requests and take appropriate action based on whether the
network is available, and update assets residing on the server.
Window: online event - Web APIs
the online event of the window interface is fired when the browser has gained access to the
network and the value of navigator.online switches to true.
...
network problems or firewalls might still prevent the website from being reached.
... bubbles no cancelable no interface event event handler property ononline examples // addeventlistener version window.addeventlistener('online', (event) => { console.log("you are now connected to the
network."); }); // ononline version window.ononline = (event) => { console.log("you are now connected to the
network."); }; specifications specification status html living standardthe definition of 'online event' in that specification.
WindowOrWorkerGlobalScope.fetch() - Web APIs
the fetch() method of the windoworworkerglobalscope mixin starts the process of fetching a resource from the
network, returning a promise which is fulfilled once the response is available.
...the promise does not reject on http errors — it only rejects on
network errors.
... a fetch() promise only rejects when a
network error is encountered (which is usually when there’s a permissions issue or similar).
WorkerGlobalScope - Web APIs
offline fired when the browser has lost access to the
network and the value of navigator.online switched to false.
... online fired when the browser has gained access to the
network and the value of navigator.online switched to true.
... windoworworkerglobalscope.fetch() starts the process of fetching a resource from the
network.
Web APIs
al management apiddomeencoding apiencrypted media extensionsffetch apifile system api frame timing apifullscreen apiggamepad api geolocation apihhtml drag and drop apihigh resolution timehistory apiiimage capture apiindexeddbintersection observer apillong tasks api mmedia capabilities api media capture and streamsmedia session apimedia source extensions mediastream recordingnnavigation timing
network information api ppage visibility apipayment request apiperformance apiperformance timeline apipermissions apipointer eventspointer lock apiproximity events push api rresize observer apiresource timing apisserver sent eventsservice workers apistoragestorage access apistreams ttouch eventsuurl apivvibration apivisual viewport wweb animationsweb audio apiweb authentication apiweb crypto apiweb ...
...nt messageport metadata mimetype mimetypearray mouseevent mousescrollevent mousewheelevent mutationevent mutationobserver mutationobserverinit mutationrecord n ndefmessage ndefreader ndefreadingevent ndefrecord ndefwriter namelist namednodemap navigationpreloadmanager navigator navigatorconcurrenthardware navigatorid navigatorlanguage navigatoronline navigatorplugins navigatorstorage
networkinformation node nodefilter nodeiterator nodelist nondocumenttypechildnode notation notification notificationaction notificationevent notifyaudioavailableevent o oes_element_index_uint oes_fbo_render_mipmap oes_standard_derivatives oes_texture_float oes_texture_float_linear oes_texture_half_float oes_texture_half_float_linear oes_vertex_array_object ovr_multiview2 offlineaudiocompletion...
...rorevent rtcicecandidate rtcicecandidateinit rtcicecandidatepair rtcicecandidatepairstats rtcicecandidatestats rtcicecandidatetype rtcicecomponent rtcicecredentialtype rtcicegathererstate rtciceparameters rtciceprotocol rtcicerole rtciceserver rtcicetcpcandidatetype rtcicetransport rtcicetransportstate rtcidentityassertion rtcidentityerrorevent rtcidentityevent rtcinboundrtpstreamstats rtc
networktype rtcofferansweroptions rtcofferoptions rtcoutboundrtpstreamstats rtcpeerconnection rtcpeerconnectioniceerrorevent rtcpeerconnectioniceevent rtcremoteoutboundrtpstreamstats rtcrtcpparameters rtcrtpcapabilities rtcrtpcodeccapability rtcrtpcodecparameters rtcrtpcontributingsource rtcrtpencodingparameters rtcrtpparameters rtcrtpreceiveparameters rtcrtpreceiver rtcrtpsendparameters rtcrtpsender r...
Audio and Video Delivery - Developer guides
here's a trick that stops the download at once: var mediaelement = document.queryselector("#mymediaelementid"); mediaelement.removeattribute("src"); mediaelement.load(); by removing the media element's src attribute and invoking the load() method, you release the resources associated with the video, which stops the
network download.
...ranscoder firefogg — video and audio encoding for firefox ffmpeg2 — comprehensive command line encoder libav — comprehensive command line encoder vid.ly — video player,transcoding and delivery internet archive — free transcoding and storage detecting when no sources have loaded to detect that all child <source> elements have failed to load, check the value of the media element's
networkstate attribute.
... if this is htmlmediaelement.
network_no_source, you know that all the sources failed to load.
Overview of events and handlers - Developer guides
event triggers include the completion of the loading of a resource on the
network e.g., downloads an image that can now be drawn on the screen, the completion of parsing a resource by the browser e.g., processes the html content of a page, the interaction of a user with the contents of the page e.g., clicks a button.
...itting the event including: the window object, such as due to resizing the browser, the window.screen object, such as due to changes in device orientation, the document object, including the loading, modification, user interaction, and unloading of the page, the objects in the dom (document object model) tree including user interactions or modifications, the xmlhttprequest objects used for
network requests, and the media objects such as audio and video, when the media stream players change state.
... documents three sources on the mdn (mozilla developer
network) web site are particularly useful for programmers wanting to work with events: this event guide which is part of the web developers' guide, the event reference, the web api documentation for the event object.
Connection management in HTTP/1.x - HTTP
network latency and bandwidth affect performance when a request needs sending.
...the http pipelining model goes one step further, by sending several successive requests without even waiting for an answer, reducing much of the latency in the
network.
...as they are affected by
network latencies and bandwidth limitations, this can result in significant delay before the next request is seen by the server.
HTTP headers - HTTP
connection management connection controls whether the
network connection stays open after the current transaction finishes.
... user-agent contains a characteristic string that allows the
network protocol peers to identify the application type, operating system, software vendor or software version of the requesting software user agent.
... nel defines a mechanism that enables developers to declare a
network error reporting policy.
The "codecs" parameter in common media types - Web media technologies
42 00 extended profile (xp) designed for streaming video over the
network, with high compression capability and further improvements to data robustness and stream switching.
...able, speech, ld 10 – 11 reserved 12 ttsi (text to speech interface) main, scalable, speech, synthetic, ld 13 main synthetic main, synthetic 14 wavetable synthesis 15 general midi 16 algorithmic synthesis and audio effects 17 er aac lc (error resilient aac low-complexity) hq, mobile inter
networking 18 reserved 19 er aac ltp (error resilient aac long term prediction) hq 20 er aac scalable (error resilient aac scalable) mobile inter
networking 21 er twinvq (error resilient twinvq) mobile inter
networking 22 er bsac (error reslient bit-sliced arithmetic coding) mobile inter
networking 23 er aac ld (error re...
...silient aac low-delay; used for two-way communication) ld, mobile inter
networking 24 er celp (error resilient code-excited linear prediction) hq, ld 25 er hvxc (error resilient harmonic vector excitation coding) ld 26 er hiln (error resilient harmonic and individual line plus noise) 27 er parametric (error resilient parametric) 28 ssc (sinusoidal coding) 29 ps (parametric stereo) he-aac v2 30 mpeg surround 31 escape 32 mpeg-1 layer-1 33 mpeg-1 layer-2 (mp2) 34 mpeg-1 layer-3 (mp3) 35 dst (direct stream transfer) 36 als (audio lossless) 37 sls (scalable lossless) 38 ...
Performance Monitoring: RUM vs synthetic monitoring - Web Performance
it is done in a controlled environment where variable like geography,
network, device, browser, and cached status are predetermined.
... unlike synthetic monitoring, rum captures the performance of actual users regardless of device, browser,
network or geographic location.
... rum v synthetic synthetic is well suited for catching regressions during development life cycles, especially with
network throttling.
Progressive web apps (PWAs)
secure contexts (https) the web application must be served over a secure
network.
... service workers a service worker is a script that allows intercepting and control of how a web browser handles its
network requests and asset caching.
... pwa advantages pwas should be discoverable, installable, linkable,
network independent, progressive, re-engageable, responsive, and safe.
<metadata> - SVG: Scalable Vector Graphics
ect:ends>everything</connect:ends> </rdf:description> <rdf:description about="#hub"> <connect:ends rdf:resource="#socket1"/> <connect:ends rdf:resource="#socket2"/> <connect:ends rdf:resource="#socket3"/> <connect:ends rdf:resource="#socket4"/> <connect:ends rdf:resource="#socket5"/> </rdf:description> </rdf:rdf> </metadata> <title>
network</title> <desc>an example of a computer
network based on a hub.</desc> <style> svg { /* default styles to be inherited */ fill: white; stroke: black; } text { fill: black; stroke: none; } path { fill: none; } </style> <!-- define symbols used in the svg --> <defs> <!-- hubplug symbol.
... used by hub symbol --> <symbol id="hubplug"> <desc>a 10baset/100basetx socket</desc> <path d="m0,10 h5 v-9 h12 v9 h5 v16 h-22 z"/> </symbol> <!-- hub symbol --> <symbol id="hub"> <desc>a typical 10baset/100basetx
network hub</desc> <text x="0" y="15">hub</text> <g transform="translate(0 20)"> <rect width="253" height="84"/> <rect width="229" height="44" x="12" y="10"/> <circle fill="red" cx="227" cy="71" r="7" /> <!-- five groups each using the defined socket --> <g id="sock1et" transform="translate(25 20)"> <title>socket 1</title> <use xlink:href="#hubplug"/> </g> <g id="socket2" transform="translate(70 20)"> <title>socket 2</title> <use xlink:href="#hub...
...desc> <rect width="160" height="60"/> <g id="discdrive" transform="translate(70 8)"> <title>disc drive</title> <desc>a built-in disc drive</desc> <rect width="58" height="3" x="12" y="8"/> <rect width="8" height="2" x="12" y="15"/> </g> <circle cx="135" cy="40" r="5"/> </g> </symbol> </defs> <text x="0" y="15">
network</text> <!-- use the hub symbol.
Insecure passwords - Web security
network eavesdroppers could steal a user's password by sniffing the
network, or by modifying the served page in transit.
... the https protocol is designed to protect user data from eavesdropping (confidentiality) and from modification (integrity) on the
network.
...users use the same password across multiple sites (news websites, social
networks, email providers, banks).
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
listing 22: content for _readfile method _readfile: function(afile) { try { var stream = components.classes["@mozilla.org/
network/file-input-stream;1"].
... listing 23: content for _writefile method _writefile: function(afile, adata) { // init stream var stream = components.classes["@mozilla.org/
network/safe-file-output-stream;1"].
Connecting to Remote Content - Archive of obsolete content
let domparser = components.classes["@mozilla.org/xmlextras/domparser;1"] .createinstance(components.interfaces.nsidomparser); let filestream = components.classes["@mozilla.org/
network/file-input-stream;1"] .createinstance(components.interfaces.nsifileinputstream); let xsltprocessor = components.classes["@mozilla.org/document-transformer;1?type=xslt"] .createinstance(components.interfaces.nsixsltprocessor); let xsldocument; filestream.init(somexslfile, -1, 0x01, 0444); // read only // parse from the xslt stylesheet file stream xsldocument = dom...
... note: you should always test your connection code to cover edge cases, like when there is no internet connection, or the computer is connected to a local
network with no internet access (like at an airport or hotel room).
Signing an XPI - Archive of obsolete content
get
network security services 1.
... download the latest
network security services (nss) package from the mozilla ftp site at https://ftp.mozilla.org/pub/mozilla.or.../nss/releases/.
An Interview With Douglas Bowman of Wired News - Archive of obsolete content
the brains and primary driving force behind this compelling new design is douglas bowman,
network design manager for terra lycos, who graciously agreed to an interview and in the process shed a lot of light on what goes into a standards-based redesign.
... as
network design manager at lycos for the last two years, i've been creating and documenting design standards for our
network of sites.
List of Mozilla-Based Applications - Archive of obsolete content
suite a volunteer community legally backed by mozilla foundation with 2.5 million downloads secure browser browser that uses virtualization created by dell sept cms for lemonde.fr web site more information here (in english) and here (in french) skyfire mobile browser sipear im client smartreport supervision appliance
network monitoring and performance management smartreport is an appliance created by acipia (france).
...widgets desktop widgets uses mozilla spidermonkey yoono desktop social
networking app standalone version of yoono firefox add-on zap sip client status update from august 2008 zimbra desktop email and calendar application uses prism zinc video browser according to faq the standalone version is based on firefox zk web application framework makes use of xul zotero reference manager firefox extension ...
Notes on HTML Reflow - Archive of obsolete content
other reflows are incremental and are dealt with asynchronously; for example, when content streams in from the
network.
... incremental, when something in the frame tree changes; for example, when more content is read from the
network, or some script manipulates the dom.
Source code directories overview - Archive of obsolete content
netwerk contains c interfaces and code for low-level access to the
network (using sockets and file and memory caches) as well as higher-level access (using various protocols such as http, ftp, gopher, castanet).
...earthlink and concentric
networks).
Additional Navigation - Archive of obsolete content
to look closer, here is the data
network after only the member has been evaluated: (?start = http://www.xulplanet.com/rdf/myphotos, ?photo = http://www.xulplanet.com/ndeakin/images/t/palace.jpg) (?start = http://www.xulplanet.com/rdf/myphotos, ?photo = http://www.xulplanet.com/ndeakin/images/t/canal.jpg) (?start = http://www.xulplanet.com/rdf/myphotos, ?photo = http://www.xulplanet.com/ndeakin/images/t/obselisk.jpg) when evaluating...
...after the first triple is examined, the data
network will look like the following: (?start = http://www.daml.org/2001/09/countries/iso#it, ?countrytitle = italy) only one result is present since there is only one title available.
RDF Query Syntax - Archive of obsolete content
the content tag doesn't do anything else at this point, meaning it doesn't add anything else to the
network of potential results, so processing continues on to the next statement, the triple, which looks like this: <triple subject="?start" predicate="http://www.xulplanet.com/rdf/relateditem" object="?relateditem"/> the triple statement is used to follow arcs or arrows in the rdf graph.
...since three values have been found, the
network will now have three potential results: (?start = http://www.xulplanet.com/rdf/a, ?relateditem = http://www.xulplanet.com/rdf/b) (?start = http://www.xulplanet.com/rdf/a, ?relateditem = http://www.xulplanet.com/rdf/c) (?start = http://www.xulplanet.com/rdf/a, ?relateditem = http://www.xulplanet.com/rdf/d) you may note that the ?start variable is repeated for each result.
XUL Questions and Answers - Archive of obsolete content
possible values include: accept, cancel, help, open, save, find, clear, yes, no, apply, close, print, add, remove, refresh, go-forward, go-back, properties, select-font, select-color,
network.
...components.results.ns_nointerface; } listobj.onstatechange = function(aprogress, arequest, aflag, astatus) { if (aflag & listobj.wpl.state_start) { // this fires when the load event is initiated } else { if (aflag & listobj.wpl.state_stop) { if ( aflag & listobj.wpl.state_is_window ) { // this fires when all load finish } if ( aflag & listobj.wpl.state_is_
network ) { // fires when all load are really over, // do something "final" here // (my two cents) } else { // this fires when a load finishes } } } return 0; } // this fires when the location bar changes i.e load event is confirmed // or when the user switches tabs listobj.onlocationchange = function(aprogress, arequest, auri) { // do whatever you ...
Gecko Compatibility Handbook - Archive of obsolete content
aol or compuserve problems even if your site works on netscape 7.x, it is important to test your site in aol for macos and compuserve 7 to check for browser detection and
network issues.
...this way you can test your site on the aol client from behind your firewall, provided that your
network administrators will open these ports.
Mozilla release FAQ - Archive of obsolete content
the old layout engine,
networking engine, and several of the older modules were gutted, and much later, the sources reached the point where netscape was comfortable making a release, and so netscape 6.0 was released.
...i would suggest that before you devote much time and effort to your port, you consider: how many users the os has that are likely to use mozilla does the os support multitasking well enough for mozilla does the os have a sufficiently evolved gui for mozilla to work does the os have sufficient
networking support for mozilla is the os typically run on systems that have the resources to run mozilla does gcc or some other easily available compiler exist for the target platform if many of these answers are no, then there will be large issues that will hamper the port.
NPN_GetAuthenticationInfo - Archive of obsolete content
description plugin which implement their own http
networking stack (such as the java plugin) may want to use the standard http auth prompts and password managed of the browser.
...unless the plugin has special
networking needs, it is recommended to use the standard
network apis, such as npn_geturlnotify/npn_posturlnotify.
NPP_DestroyStream - Archive of obsolete content
npres_user_break: user canceled stream directly by clicking the stop button or indirectly by some action such as deleting the instance or initiating higher-priority
network operations.
... npres_
network_err: stream failed due to problems with
network, disk i/o, lack of memory, or other problems.
NPP_NewStream - Archive of obsolete content
the plug-in can process the data progressively as it arrives from the
network or file system.
...as an optimization to extract the maximum benefit from existing
network connections, the browser continues to read data sequentially out of the stream (as in mode np_normal) until the first npn_requestread call is made.
Security Controls - Archive of obsolete content
for example, sensitive data on a server may be protected from external attack by several controls, including a
network-based firewall, a host-based firewall, and os patching.
... a combination of
network-based and host-based controls is generally most effective at providing consistent protection.
Building a Theme - Archive of obsolete content
chrome uris consist of several components: firstly, the uri scheme (chrome) which tells firefox's
networking library that this is a chrome uri.
...your theme will be hosted on mozilla's mirror
network to guarantee your download even though it might be very popular.
Plug-in Development Overview - Gecko Plugin API Reference
for example: image/xbm:xbm:x bitmap or for 2 mime types: image/xbm:xbm:x bitmap;image/png:png:portable
network graphics.
... working with urls the plug-in api provides methods that plug-ins can use to retrieve data from or post data to a url anywhere on the
network, provide hyperlinks to other documents, post form data to cgi scripts using http, or upload files to a remote server using ftp.
Arpanet - MDN Web Docs Glossary: Definitions of Web-related terms
the arpanet (advanced research projects agency
network) was an early computer
network, constructed in 1969 as a robust medium to transmit sensitive military data and to connect leading research groups throughout the united states.
... arpanet first ran ncp (
network control protocol) and subsequently the first version of the internet protocol or tcp/ip suite, making arpanet a prominent part of the nascent internet.
DMZ - MDN Web Docs Glossary: Definitions of Web-related terms
a dmz is a way to provide an insulated secure interface between an internal
network (corporate or private) and the outside untrusted world — usually the internet.
... it exposes only certain defined endpoints, while denying access to the internal
network from external nodes.
DoS attack - MDN Web Docs Glossary: Definitions of Web-related terms
dos (denial of service) is a
network attack that prevents legitimate use of server resources by flooding the server with requests.
...a dos attack consists of various techniques to exhaust these resources and make a server or a
network unavailable to legitimate users, or at least make the server perform sluggishly.
Denial of Service - MDN Web Docs Glossary: Definitions of Web-related terms
dos (denial of service) is a
network attack that prevents legitimate use of server resources by flooding the server with requests.
...a dos attack consists of various techniques to exhaust these resources and make a server or a
network unavailable to legitimate users, or at least make the server perform sluggishly.
Latency - MDN Web Docs Glossary: Definitions of Web-related terms
latency is the
network time it takes for a requested resource to reach its destination.
... latency can be a factor in any kind of data flow, but is most commonly discussed in terms of
network latency (the time it takes for a packet of data to travel from source to destination) and media codec latency (the time it takes for the source data to be encoded or decoded and reach the consumer of the resulting data).
Modem - MDN Web Docs Glossary: Definitions of Web-related terms
a modem ("modulator-demodulator") is a device that converts digital information to analog signals and vice-versa, for sending data through
networks.
... different kinds are used for different
networks: dsl modems for telephone wires, wifi modems for short-range wireless radio signals, 3g modems for cellular data towers, and so on.
NAT - MDN Web Docs Glossary: Definitions of Web-related terms
nat (
network address translation) is a technique for letting multiple computers share an ip address.
... nat assigns unique addresses to each computer on the local
network and adjusts incoming/outgoing
network traffic to send data to the right place.
P2P - MDN Web Docs Glossary: Definitions of Web-related terms
p2p (peer-to-peer) is a computer
networking architecture in which all participating nodes (peers) have equal privileges and share the workload.
... p2p differs from a client-server
network architecture, where multiple client nodes connect to centralized servers for services.
TCP - MDN Web Docs Glossary: Definitions of Web-related terms
tcp (transmission control protocol) is an important
network protocol that lets two hosts connect and exchange data streams.
... tcp has concurrence control, which means the initial requests start small, increasing in size to the levels of bandwidth the computers, servers, and
network can support.
TCP handshake - MDN Web Docs Glossary: Definitions of Web-related terms
tcp (transmission control protocol) is a transport layer host-to-host protocol for connection-oriented communication between two computers on an ip
network.
... tcp uses a three-way handshake (aka tcp-handshake, three message handshake, and/or syn-syn-ack) to set up a tcp/ip connection over an ip based
network.
Transport Layer Security (TLS) - MDN Web Docs Glossary: Definitions of Web-related terms
transport layer security (tls), formerly known as secure sockets layer (ssl), is a protocol used by applications to communicate securely across a
network, preventing tampering with and eavesdropping on email, web browsing, messaging, and other protocols.
... both ssl and tls are client / server protocols that ensure communication privacy by using cryptographic protocols to provide security over a
network.
TTL - MDN Web Docs Glossary: Definitions of Web-related terms
ttl can refer either to : the lifetime of a packet in a
network can do before being released the expiry time of cached data
networking in
networking, the ttl, embedded in the packet, is a usually defined as a number of hops or as an expiration timestamp after which the packet is dropped.
... it provides a way to avoids
network congestion, but releasing packets after they roamed the
network too long.
UDP (User Datagram Protocol) - MDN Web Docs Glossary: Definitions of Web-related terms
it has no handshaking dialogues, and thus exposes the user's program to any unreliability of the underlying
network; there is no guarantee of delivery, ordering, or duplicate protection.
... if error-correction facilities are needed at the
network interface level, an application may use the transmission control protocol (tcp) or stream control transmission protocol (sctp) which are designed for this purpose.
Routers - MDN Web Docs Glossary: Definitions of Web-related terms
there are two definitions for routers on the web: for the
network layer, the router is a
networking device that decides data packets directions.
... learn more general knowledge for
network layer context: router (computing) on wikipedia for spa in application layer context, most of the popular spa frameworks has its routing library: angular router react router vue router ...
What is accessibility? - Learn web development
we traditionally think of this as being about people with disabilities, but the practice of making sites accessible also benefits other groups such as those using mobile devices, or those with slow
network connections.
... other good practices that improve accessibility also make your site more usable by other groups, such as mobile phone users or those on low
network speed.
The web and web standards - Learn web development
brief history of the web we'll keep this very brief, as there are many (more) detailed accounts of the web's history out there, which we'll link to later on (also try searching for "history of the web" in your favorite search engine and see what you get, if you are interested in more detail.) in the late 1960s, the us military developed a communication
network called arpanet.
...it also goes beyond people with disabilities — how about young or old people, people from different cultures, people using mobile devices, or people with unreliable or slow
network connections?
From object to iframe — other embedding technologies - Learn web development
these were considered the height of coolness in the mid to late 90s, and there was evidence that having a webpage split up into smaller chunks like this was better for download speeds — especially noticeable with
network connections being so slow back then.
... they did however have many problems, which far outweighed any positives as
network speeds got faster, so you don't see them being used anymore.
Graceful asynchronous programming with Promises - Learn web development
inside your <script> element, add the following line: let promise = fetch('coffee.jpg'); this calls the fetch() method, passing it the url of the image to fetch from the
network as a parameter.
...fetch promises do not fail on 404 or 500 errors — only on something catasrophic like a
network failure.
Aprender y obtener ayuda - Learn web development
i want to start my own company and build a social
network that will out-perform facebook, in two years.
...other good examples include: mdn discourse sitepoint forums webdeveloper.com forums however, it also makes sense to find useful groups on social
networking sites such as twitter or facebook.
Server-side web frameworks - Learn web development
this means that you will have an easier job, interacting with easier, higher-level code rather than lower level
networking primitives.
...deno modules restrict permissions to file,
network, or environment access unless explicitly allowed.
Handling common HTML and CSS problems - Learn web development
among the best sources of support information are the mozilla developer
network (that's where you are now!), stackoverflow.com, and caniuse.com.
... to use the mozilla developer
network (mdn), most people do a search engine search of the technology they are trying to find information on, plus the term "mdn", for example "mdn html5 video".
Handling common JavaScript problems - Learn web development
a very common problem with async requests like this is when you try to do something with the response object before it has actually been returned from the
network.
...as an example, the fetch api (a modern equivalent to xmlhttprequest) uses promises to fetch resources across the
network and make sure that the response has been returned before they are used (for example, displaying an image inside an <img> element).
Setting up your own test automation environment - Learn web development
e generated from automation dashboard or profile section const key = '{accesskey}'; // gridurl: gridurl can be found at automation dashboard const grid_host = 'hub.lambdatest.com/wd/hub'; function searchtextongoogle() { // setup input capabilities const capabilities = { platform: 'windows 10', browsername: 'chrome', version: '67.0', resolution: '1280x800',
network: true, visual: true, console: true, video: true, name: 'test 1', // name of the test build: 'nodejs build' // name of the build }; // url: https://{username}:{accesstoken}@hub.lambdatest.com/wd/hub const gridurl = 'https://' + username + ':' + key + '@' + grid_host; // setup and build selenium driver object const driver = new webdriver.builder() ...
... you can retrieve
network, command, exception, and selenium logs for every test within your test build.
Error codes returned by Mozilla APIs
network errors the following errors can occur when creating connections over the
network, or when reading or writing data.
... ns_error_xslt_parse_failure (0x80600001) ns_error_xslt_already_set (0x80600003) ns_error_xslt_execution_failure (0x80600004) ns_error_xslt_bad_recursion (0x80600006) ns_error_xslt_bad_value (0x80600007) ns_error_xslt_nodeset_expected (0x80600008) ns_error_xslt_aborted (0x80600009) ns_error_xslt_
network_error (0x8060000a) ns_error_xslt_wrong_mime_type (0x8060000b) ns_error_xslt_load_recursion (0x8060000c) ns_error_xslt_load_blocked_error (0x8060001b) ns_error_xslt_bad_node_name (0x8060001e) ns_error_xslt_var_already_set (0x8060001f) miscellaneous errors other errors that can occur.
Embedding Tips
the nsiauthprompt interface allows the
networking layer to pose a user / password prompt to obtain the values needed for authentication.
...when the operation is completed, the onstatechange will be notified by a combination of state_stop | state_is_
network state flags.
Getting Started with Chat
software there are several different applications which allow you to connect to irc
networks.
... channels here is a list of channels you should be aware of as a member of the mozilla community: (remember to use irc.mozilla.org and port 6697 or 6667 for your server settings) #qa a channel for qa discussion #developers a channel for mozilla development discussion #sumo a channel for support with firefox for more information about the mozilla irc
network and more channels, go here.
AddonManager
addoninstall errors constant description error_
network_failure a
network error occurred.
... callback to pass the addoninstall to mimetype the mimetype of the add-on hash an optional hash of the add-on name an optional placeholder name while the add-on is being downloaded iconurl an optional placeholder icon url while the add-on is being downloaded version an optional placeholder version while the add-on is being downloaded loadgroup an optional nsiloadgroup to associate any
network requests with getinstallforfile() asynchronously gets an addoninstall for an nsifile.
NetUtil.jsm
the netutil.jsm javascript code module provides easy-to-use apis for performing common
network related tasks.
...var ostream = cc["@mozilla.org/
network/file-output-stream;1"].
PR_StringToNetAddr
converts a character string to a
network address.
... addr on output, the equivalent
network address.
PR_TransmitFile
syntax #include <prio.h> print32 pr_transmitfile( prfiledesc *
networksocket, prfiledesc *sourcefile, const void *headers, print32 hlen, prtransmitfileflags flags, printervaltime timeout); parameters the function has the following parameters:
networksocket a pointer to a prfiledesc object representing the connected socket to send data over.
... description the pr_transmitfile function sends a complete file (sourcefile) across a connected socket (
networksocket).
PR_htonl
performs 32-bit conversion from host byte order to
network byte order.
... returns the value of the conversion parameter in
network byte order.
PR_htons
performs 16-bit conversion from host byte order to
network byte order.
... returns the value of the conversion parameter in
network byte order.
PR_ntohl
performs 32-bit conversion from
network byte order to host byte order.
... syntax #include <prnetdb.h> pruint32 pr_ntohl(pruint32 conversion); parameter the function has the following parameter: conversion the 32-bit unsigned integer, in
network byte order, to be converted.
PR_ntohs
performs 16-bit conversion from
network byte order to host byte order.
... syntax #include <prnetdb.h> pruint16 pr_ntohs(pruint16 conversion); parameter the function has the following parameter: conversion the 16-bit unsigned integer, in
network byte order, to be converted.
NSPR API Reference
ion identity and versioning name and version constants initialization and cleanup module initialization locks lock type lock functions condition variables condition variable type condition variable functions monitors monitor type monitor functions cached monitors cached monitor functions i/o types directory type file descriptor types file info types
network address types types used with socket options functions type used with memory-mapped i/o offset interpretation for seek functions i/o functions functions that operate on pathnames functions that act on file descriptors directory i/o functions socket manipulation functions converting between host and
network addresses memory-mapped i/o functions anonymous pipe function polling functi...
...ons pollable events manipulating layers
network addresses
network address types and constants
network address functions atomic operations pr_atomicincrement pr_atomicdecrement pr_atomicset interval timing interval time type and constants interval functions date and time types and constants time parameter callback functions functions memory management operations memory allocation functions memory allocation macros string operations pl_strlen pl_strcpy pl_strdup pl_strfree floating point number to string conversion pr_strtod pr_dtoa pr_cnvtf long long (64-bit) integers bitmaps formatted printing linked lists linked list types prclist linked list macros pr_init_clist pr_init_static_clist pr_append_link pr_insert_lin...
NSS_3.11.10_release_notes.html
nss 3.11.10 release notes 2008-12-10 newsgroup: <ahref="news: mozilla.dev.tech.crypto"="" news.mozilla.org="">mozilla.dev.tech.crypto</ahref="news:> contents introduction distribution information bugs fixed documentation compatibility feedback introduction
network security services (nss) 3.11.10 is a patch release for nss 3.11.
...ied bug 421634: don't send an sni client hello extension bearing an ipv6 address bug 422918: add verisign class 3 public primary ca - g5 to nss bug 424152: add thawte primary root ca to nss bug 424169: add geotrust primary certification authority root to nss bug 425469: add multiple new roots: geotrust bug 426568: add comodo certification authority certificate to nss bug 431381: add
network solutions certificate authority root to nss bug 431621: add diginotar root ca root to nss bug 431772: add
network solutions and diginotar root certs to nss bug 442912: fix nssckbi version number on 3.11 branch bug 443045: fix pk11_generatekeypair for ecc keys on the 3.11 branch bug 444850: nss misbehaves badly in the presence of a disabled pkcs#11 slot bug 462948: lint warnings for so...
NSS 3.15.3.1 release notes
introduction
network security services (nss) 3.15.3.1 is a patch release for nss 3.15.
...this is a patch release to revoke trust of a subordinate ca certificate that was mis-used to generate a certificate used by a
network appliance.
NSS 3.21 release notes
introduction the nss team has released
network security services (nss) 3.21, which is a minor release.
... notable changes in nss 3.21 nss now builds with elliptic curve ciphers enabled by default (bug 1205688) nss now builds with warnings as errors (bug 1182667) the following ca certificates were removed cn = verisign class 4 public primary certification authority - g3 sha1 fingerprint: c8:ec:8c:87:92:69:cb:4b:ab:39:e9:8d:7e:57:67:f3:14:95:73:9d cn = utn-userfirst-
network applications sha1 fingerprint: 5d:98:9c:db:15:96:11:36:51:65:64:1b:56:0f:db:ea:2a:c2:3e:f1 cn = tc trustcenter universal ca iii sha1 fingerprint: 96:56:cd:7b:57:96:98:95:d0:e1:41:46:68:06:fb:b8:c6:11:06:87 cn = a-trust-nqual-03 sha-1 fingerprint: d3:c0:63:f2:19:ed:07:3e:34:ad:5d:75:0b:32:76:29:ff:d5:9a:f2 cn = usertrust legacy secu...
NSS 3.23 release notes
introduction the nss team has released
network security services (nss) 3.23, which is a minor release.
...3:8b cn = ca disig sha-256 fingerprint: 92:bf:51:19:ab:ec:ca:d0:b1:33:2d:c4:e1:d0:5f:ba:75:b5:67:90:44:ee:0c:a2:6e:93:1f:74:4f:2f:33:cf the following ca certificates were added cn = szafir root ca2 sha-256 fingerprint: a1:33:9d:33:28:1a:0b:56:e5:57:d3:d3:2b:1c:e7:f9:36:7e:b0:94:bd:5f:a7:2a:7e:50:04:c8:de:d7:ca:fe cn = certum trusted
network ca 2 sha-256 fingerprint: b6:76:f2:ed:da:e8:77:5c:d3:6c:b0:f6:3c:d1:d4:60:39:61:f4:9e:62:65:ba:01:3a:2f:03:07:b6:d0:b8:04 the following ca certificate had the email trust bit turned on cn = actalis authentication root ca sha-256 fingerprint: 55:92:60:84:ec:96:3a:64:b9:6e:2a:be:01:ce:0b:a8:6a:64:fb:fe:bc:c7:aa:b5:af:c1:55:b3:7f:d7:60:66 se...
NSS 3.32 release notes
introduction the
network security services (nss) team has released nss 3.32, which is a minor release.
...wing ca certificates were removed: cn = addtrust public ca root sha-256 fingerprint: 07:91:ca:07:49:b2:07:82:aa:d3:c7:d7:bd:0c:df:c9:48:58:35:84:3e:b2:d7:99:60:09:ce:43:ab:6c:69:27 cn = addtrust qualified ca root sha-256 fingerprint: 80:95:21:08:05:db:4b:bc:35:5e:44:28:d8:fd:6e:c2:cd:e3:ab:5f:b9:7a:99:42:98:8e:b8:f4:dc:d0:60:16 cn = china internet
network information center ev certificates root sha-256 fingerprint: 1c:01:c6:f4:db:b2:fe:fc:22:55:8b:2b:ca:32:56:3f:49:84:4a:cf:c3:2b:7b:e4:b0:ff:59:9f:9e:8c:7a:f7 cn = cnnic root sha-256 fingerprint: e2:83:93:77:3d:a8:45:a6:79:f2:08:0c:c7:fb:44:a3:b7:a1:c3:79:2c:b7:eb:77:29:fd:cb:6a:8d:99:ae:a7 cn = comsign secured ca sha-256 fingerprint: 50:79:41:c...
NSS 3.38 release notes
introduction the nss team has released
network security services (nss) 3.38, which is a minor release.
... nss automatically enables caching for sql database storage on linux, if it is located on a
network filesystem that's known to benefit from caching.
NSS 3.44.4 release notes
introduction the nss team has released
network security services (nss) 3.44.4 on 19 may 2020.
... thank you to cesar pereida garcia and the
network and information security group (nisec) at tampere university for reporting this issue.
NSS 3.52.1 release notes
introduction the nss team has released
network security services (nss) 3.52.1 on 19 may 2020.
... thank you to cesar pereida garcia and the
network and information security group (nisec) at tampere university for reporting this issue.
NSS 3.53.1 release notes
introduction the nss team has released
network security services (nss) 3.53.1 on 16 june 2020.
... thank you to sohaib ul hassan, billy bob brumley, and the
network and information security group (nisec) at tampere university for reporting this issue and providing a patch.
NSS 3.55 release notes
introduction the nss team has released
network security services (nss) 3.55 on 24 july 2020, which is a minor release.
...special thanks to the
network and information security group (nisec) at tampere university.
NSS release notes template
draft (remove line when document is finished) introduction the nss team has released
network security services (nss) 3.xx, which is a minor release.
... or
network security services (nss) 3.xx.y is a patch release for nss 3.xx.
Overview of NSS
open source crypto libraries proven application security architecture if you want to add support for ssl, s/mime, or other internet security standards to your application, you can use
network security services (nss) to implement all your security features.
...for details, see
network security services for java.
NSS tools : certutil
certutil -t -d [sql:]directory -h token-name -0 security-officer-passwor d many
networks have dedicated personnel who handle changes to security tokens (the security officer).
...for example: $ certutil -t -d sql:/home/my/sharednssdb -h nethsm -0 secret upgrading or merging the security databases many
networks or applications may be using older berkeleydb versions of the certificate database (cert8.db).
NSS tools : modutil
liability ltd.(c)97 verisign, ou=verisign object signing ca - class 3 organization, ou="verisign, inc.", o=verisign trust
network **issuer name**, ou=www.verisign.com/cps incorp.by ref.
... liability ltd.(c)97 verisign, ou=verisign object signing ca - class 3 organization, ou="verisign, inc.", o=verisign trust
network ---------------------------------------------- do you wish to continue this installation?
NSS Tools modutil
liability ltd.(c)97 verisign, ou=verisign object signing ca - class 3organization, ou="verisign, inc.", o=verisign trust
network **issuername**, ou=www.verisign.com/cps incorp.by ref.
... liability ltd.(c)97verisign, ou=verisign object signing ca - class 3 organization,ou="verisign, inc.", o=verisign trust
network ---------------------------------------------- do you wish to continue this installation?
certutil
certutil -t -d [sql:]directory -h token-name -0 security-officer-password many
networks have dedicated personnel who handle changes to security tokens (the security officer).
...for example: $ certutil -t -d sql:/home/my/sharednssdb -h nethsm -0 secret upgrading or merging the security databases many
networks or applications may be using older berkeleydb versions of the certificate database (cert8.db).
NSS tools : modutil
liability ltd.(c)97 verisign, ou=verisign object signing ca - class 3 organization, ou="verisign, inc.", o=verisign trust
network **issuer name**, ou=www.verisign.com/cps incorp.by ref.
... liability ltd.(c)97 verisign, ou=verisign object signing ca - class 3 organization, ou="verisign, inc.", o=verisign trust
network ---------------------------------------------- do you wish to continue this installation?
Necko Architecture
necko is a modular
networking library developed as part of the mozilla project.
...necko provides the following libraries: necko - core
networking functionality.
Necko FAQ
everything you wanted to know about the
networking library in mozilla...
... a word rhyming with gecko and starting with the same letters as
networking.
JSAPI User Guide
for example, a custom js object that provides direct service might be one that handles all of an application's
network access, or might serve as an intermediary broker of database services.
...they do not provide access to files, the
network, or anything browser-related.
Redis Tips
so rather than thinking about redis as a database with some kind of non-existent relationship to sql, think of it as a data structure server with a rich set of commands for querying and manipulating those data structures over a
network connection.
... each redis command results in one
network round trip.
The Publicity Stream API
possible error codes include: denied - if the user refuses to publicize the activity permissiondenied - if the publicizing site is not allowed to post to the publicity stream
networkerror - if the publicity server is unreachable activityparseerror - if the activity contains syntax errors (not proper json) invalidactivity - if the activity contains semantic errors (i.e.
...possible error codes include: denied - if the user does not log in correctly permissiondenied - if the site is not allowed to access the publicity stream
networkerror - if the publicity server is unreachable for_apps is a json list of apps that this store has (each represented as its origin url), so that stream events not relating to applications in a given presentation context can be excluded from the return value.
Component Internals
a set of default libraries stored in this components directory makes up a typical gecko installation, providing functionality that consists of
networking, layout, composition, a cross-platform user interface, and others.
...for example, this is the object that may start a
network download and implement interfaces that will listen to the progress.
Creating the Component Code
this is the object that contains the business logic, that implements functionality such as starting a
network download, implementing interfaces that listen to the download progress, or providing a new content type handler.
...an nsifile object is usually a file or directory on a local volume, but it may represent something on a
network volume as well.
Mozilla internal string guide
networking code prefers 8-bit strings.
...
networking code tends to use 8-bit strings: either with utf-8 or latin1 (byte value is the unicode scalar value) semantics.
imgIDecoderObserver
load notifications are fired as the image is loaded from the
network or filesystem.
... onstartcontainer() this load notification is called once enough data has been loaded from the
network that we were able to parse the width and height from the image.
nsIApplicationCacheNamespace
constants constant value description namespace_bypass 1 items matching this namespace can be fetched from the
network when loading from this cache.
... namespace_fallback 2 items matching this namespace can be fetched from the
network when loading from this cache; however, if the load fails, the cache entry specified by the data attribute should be loaded intstead.
nsIBinaryOutputStream
this might be used, for example, to implement
network protocols or to produce architecture-neutral binary disk files, that is ones that can be read and written by both big-endian and little-endian platforms.
... output is written in big-endian order (high-order byte first), as this is traditional
network order.
nsIEffectiveTLDService
1.0 66 introduced gecko 1.9 inherits from: nsisupports last changed in gecko 1.9 (firefox 3) implemented by: @mozilla.org/
network/effective-tld-service;1.
... to use this service, use: var etldservice = components.classes["@mozilla.org/
network/effective-tld-service;1"] .getservice(components.interfaces.nsieffectivetldservice); the name "effective tld service" is a historical one; today, the items this interface manipulates are called public suffixes, and the list of them is the public suffix list, or psl.
nsIExternalProtocolService
-nickolay <pre> // first construct an nsiuri object using the ioservice var ioservice = components.classes["@mozilla.org/
network/io-service;1"].getservice(components.interfaces.nsiioservice); var uritoopen = ioservice.newuri("http://www.example.com/", null, null); var extps = components.classes["@mozilla.org/uriloader/external-protocol-service;1"] .getservice(components.interfaces.nsiexternalprotocolservice); if (extps.externalprotocolhandlerexists("tlcxp")) { // handler for http:// urls exists } else { // suppress externa...
...l-load warning for standard browser schemes pref("
network.protocol-handler.external.tlcxp", true); pref("
network.protocol-handler.app.tlcxp, "lzx"); } </pre> getprotocolhandlerinfo() retrieve the handler for the given protocol.
nsISocketProvider
inherits from: nsisupports last changed in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) implemented by: @mozilla.org/
network/socket;2?type=foo.
... to create an instance, use: var socketprovider = components.classes["@mozilla.org/
network/socket;2?type="] .createinstance(components.interfaces.nsisocketprovider); method overview void addtosocket(in long afamily, in string ahost, in long aport, in string aproxyhost, in long aproxyport, in unsigned long aflags, in prfiledescstar afiledesc, out nsisupports asecurityinfo); native code only!
nsISocketTransport
netwerk/base/public/nsisockettransport.idlscriptable this interface specializes nsitransport for communication over
network sockets.
... it provides methods to open blocking or non-blocking, buffered or unbuffered streams between two end-point in a ip based
network.
nsIStandardURL
inherits from: nsimutable last changed in gecko 1.9 (firefox 3) implemented by: @mozilla.org/
network/standard-url;1.
... to create an instance, use: var standardurl = components.classes["@mozilla.org/
network/standard-url;1"] .createinstance(components.interfaces.nsistandardurl); method overview void init(in unsigned long aurltype, in long adefaultport, in autf8string aspec, in string aorigincharset, in nsiuri abaseuri); attributes attribute type description mutable boolean control whether or not this url can be modified.
XPCOM Interface Reference
sidomfontfacensidomfontfacelistnsidomgeogeolocationnsidomgeopositionnsidomgeopositionaddressnsidomgeopositioncallbacknsidomgeopositioncoordsnsidomgeopositionerrornsidomgeopositionerrorcallbacknsidomgeopositionoptionsnsidomglobalpropertyinitializernsidomhtmlaudioelementnsidomhtmlformelementnsidomhtmlmediaelementnsidomhtmlsourceelementnsidomhtmltimerangesnsidomjswindownsidommousescrolleventnsidommoz
networkstatsnsidommoz
networkstatsdatansidommoz
networkstatsmanagernsidommoztoucheventnsidomnshtmldocumentnsidomnavigatordesktopnotificationnsidomnodensidomofflineresourcelistnsidomorientationeventnsidomparsernsidomprogresseventnsidomserializernsidomsimplegestureeventnsidomstoragensidomstorage2nsidomstorageeventobsoletensidomstorageitemnsidomstoragelistnsidomstoragemanagernsidomstoragewindownsidomuserdatah...
...kmarksservicensinavhistorybatchcallbacknsinavhistorycontainerresultnodensinavhistoryfullvisitresultnodensinavhistoryobservernsinavhistoryquerynsinavhistoryqueryoptionsnsinavhistoryqueryresultnodensinavhistoryresultnsinavhistoryresultnodensinavhistoryresultobservernsinavhistoryresulttreeviewernsinavhistoryresultviewobservernsinavhistoryresultviewernsinavhistoryservicensinavhistoryvisitresultnodensi
networklinkservicensiobservernsiobserverservicensioutputstreamnsioutputstreamcallbacknsiparentalcontrolsservicensiparserutilsnsipasswordnsipasswordmanagernsipermissionnsipermissionmanagernsipipensiplacesimportexportservicensiplacesviewnsipluginhostnsiprefbranch2nsipreflocalizedstringnsiprefservicensiprincipalnsiprinterenumeratornsiprintingpromptnsiprivatebrowsingservicensiprocessnsiprocess2nsiprocessscri...
Mail client architecture overview
the mail reader gecko (xul and html rendering) rdf (dynamic widgets) js (menus, events) libmime mail datasources mail javascript folder/message management msgdb imap/nntp/pop3 necko (
networking) sections in grey refer to modules outside of mail/news the base module the base module provides a generic interface to a set of protocol-independant messaging services.
... url display and dispatching - in order to perform
network operations such as downloading new mail, copying and moving messages, and displaying messages from a remote server, the url system interacts with necko and reflects it's state to the mail window.
Constants - Plugins
npres_
network_err 1 stream failed due to problems with
network, disk i/o, lack of memory, or other problems.
... npres_user_break 2 user canceled stream directly by clicking the stop button or indirectly by some action such as deleting the instance or initiating higher-priority
network operations.
Plug-in Development Overview - Plugins
for example: image/xbm:xbm:x bitmap or for 2 mime types: image/xbm:xbm:x bitmap;image/png:png:portable
network graphics.
... working with urls the plug-in api provides methods that plug-ins can use to retrieve data from or post data to a url anywhere on the
network, provide hyperlinks to other documents, post form data to cgi scripts using http, or upload files to a remote server using ftp.
Debugging service workers - Firefox Developer Tools
it is also worth knowing that if you are testing an app's offline capabilities, you'll be able to see whether requests are being retrieved from a service worker-initiated cache rather than from the
network by looking at
network monitor.
... note: there is currently a bug whereby the
network monitor cannot show
network requests from a service worker running in a different process to the application (bug 1432311).
Source map errors - Firefox Developer Tools
the message looks a little different in this case: in this case, the error will also be displayed in the source tab in the debugger:
networkerror when attempting to fetch resource a bug in firefox prevents it from loading source maps for web extensions.
... source-map-fehler: typeerror:
networkerror when attempting to fetch resource.
Storage Inspector - Firefox Developer Tools
cookies created as a part of response of
network calls are also listed, but only for calls that happened while the tool is open.
... working with the storage inspector the following articles cover different aspects of using the
network monitor: cookies local storage / session storage cache storage indexeddb extension storage ...
Tips - Firefox Developer Tools
network monitor click the request summary to compare performance of cache vs.
... check "disable http cache (when toolbox is open)" in the settings to disable the
network cache while debugging
network issues.
Web Console Helpers - Firefox Developer Tools
in the
network monitor, the string now appears and is selected in the request blocking sidebar.
...in the
network monitor, the string is removed from the request blocking sidebar.
Rich output - Firefox Developer Tools
examining request details similar to examining object details, you can see the details about a
network request directly in the console.
... click on the arrow next to the request and a details panel will open that is equivalent to the headers panel in the
network monitor tool.
Firefox Developer Tools
network monitor see the
network requests made when a page is loaded.
... responsive design mode see how your website or app will look and behave on different devices and
network types.
AudioBufferSourceNode - Web APIs
it's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the
network.
... to play sounds which require accurate timing but must be streamed from the
network or played from disk, use a audioworkletnode to implement its playback.
BasicCardRequest.supportedTypes - Web APIs
legal values are defined in basiccardtype enum, and are currently: credit debit prepaid example the following example shows a sample definition of the first parameter of the paymentrequest() constructor, the data property of which contains supported
networks and supportedtypes properties.
... var supportedinstruments = [{ supportedmethods: 'basic-card', data: { supported
networks: ['visa', 'mastercard', 'amex', 'jcb', 'diners', 'discover', 'mir', 'unionpay'], supportedtypes: ['credit', 'debit'] } }]; var details = { ...
Cache.put() - Web APIs
if not, open the v1 cache using open(), put the default
network request in the cache using cache.put() and return a clone of the default
network request using return response.clone().
... if this fails (e.g., because the
network is down), return a fallback response.
CacheStorage.match() - Web APIs
if not, open the v1 cache using open(), put the default
network request in the cache using cache.put() and return a clone of the default
network request using return response.clone().
... if this fails (e.g., because the
network is down), return a fallback response.
CacheStorage - Web APIs
if not, fetch the request from the
network, then also open the cache created in the first block and add a clone of the request to it using cache.put (cache.put(event.request, response.clone()).) if this fails (e.g.
... because the
network is down), return a fallback response.
DOMException - Web APIs
(legacy code value: 18 and legacy constant name: security_err)
networkerror a
network error occurred.
... (legacy code value: 19 and legacy constant name:
network_err) aborterror the operation was aborted.
Document.ononline - Web APIs
window.navigator.online returns boolean true if the browser is online and false if it is definitely offline (disconnected from the
network).
...a computer can be connected to a
network without having internet access.
FetchEvent.preloadResponse - Web APIs
else it fetches a response from the
network.
... addeventlistener('fetch', event => { event.respondwith(async function() { // respond from the cache if we can const cachedresponse = await caches.match(event.request); if (cachedresponse) return cachedresponse; // else, use the preloaded response, if it's there const response = await event.preloadresponse; if (response) return response; // else try the
network.
FetchEvent.request - Web APIs
if no match is found, the code fetches a response from the
network.
...about to fetch from
network...'); return fetch(event.request).then(function(response) { console.log('response from
network is:', response); return response; }).catch(function(error) { console.error('fetching failed:', error); throw error; }); }) ); }); specifications specification status comment service workersthe definition of 'request' in...
FetchEvent - Web APIs
for get requests it tries to return a match in the cache, and falls back to the
network.
... event.waituntil(cache.add(event.request)); return cachedresponse; } // if we didn't find a match in the cache, use the
network.
FontFace.load - Web APIs
return value a promise that resolves with a reference to the current fontface object when the font loads or rejects with a
networkerror if the loading process fails.
... exceptions
networkerror indicates that the attempt to load the font failed.
HTMLMediaElement.currentSrc - Web APIs
the value is an empty string if the
networkstate property is empty.
... syntax var mediaurl = audioobject.currentsrc; value a domstring object containing the absolute url of the chosen media source; this may be an empty string if
networkstate is empty; otherwise, it will be one of the resources listed by the htmlsourceelement contained within the media element, or the value or src if no <source> element is provided.
Using IndexedDB - Web APIs
because it lets you create web applications with rich query abilities regardless of
network availability, your applications can work both online and offline.
...(to learn more about how much storage you can have for each browser, see storage limits.) obviously, browsers do not want to allow some advertising
network or malicious website to pollute your computer, so browsers used to prompt the user the first time any given web app attempts to open an indexeddb for storage.
msPlayToPreferredSourceUri - Web APIs
a forward slash ("/") is appended to the uri string when it is sent over the
network to a playto device.
...34" /> var video = document.createelement('video'); document.body.appendchild(video); video.src = "http://www.contoso.com/videos/video.mp4"; video.msplaytopreferredsourceuri = "http://www.contoso.com/catalogid=1234"; see also microsoft playready content access and protection technology is a set of technologies that can be used to distribute audio/video content more securely over a
network, and help prevent the unauthorized use of this content.
Navigator - Web APIs
navigator.connection read only provides a
networkinformation object containing information about the
network connection of a device.
... non-standard navigator.mozislocallyavailable() lets code check to see if the document at a given uri is available without using the
network.
PerformanceResourceTiming.nextHopProtocol - Web APIs
the nexthopprotocol read-only property is a string representing the
network protocol used to fetch the resource, as identified by the alpn protocol id (rfc7301).
... syntax resource.nexthopprotocol; return value a string representing the
network protocol used to fetch the resource, as identified by the alpn protocol id (rfc7301).
PerformanceTiming - Web APIs
performancetiming.connectstart read only when the request to open a connection is sent to the
network.
... performancetiming.connectend read only when the connection is opened
network.
RTCConfiguration.bundlePolicy - Web APIs
the fewer rtp transports or bundles of rtp streams you have, the better the
network performance will be.
... examples the following example creates a new rtcpeerconnection with a configuration setting the connection's bundlepolicy to max-compat to maximize compatibility while attempting to optimize
network use.
RTCIceCandidatePairStats.availableIncomingBitrate - Web APIs
the rtcicecandidatepairstats property availableincomingbitrate returns a value indicative of the available inbound capacity of the
network connection represented by the candidate pair.
... syntax availableincomingbitrate = rtcicecandidatepairstats.availableincomingbitrate; value a floating-point value which approximates the amount of available bandwidth for incoming data on the
network connection described by the rtcicecandidatepair.
RTCIceCandidatePairStats.availableOutgoingBitrate - Web APIs
the rtcicecandidatepairstats property availableoutgoingbitrate returns a value indicative of the available outbound capacity of the
network connection represented by the candidate pair.
... syntax availableoutgoingbitrate = rtcicecandidatepairstats.availableoutgoingbitrate; value a floating-point value which approximates the amount of available bandwidth for outgoing data on the
network connection described by the rtcicecandidatepair.
RTCIceCandidatePairStats - Web APIs
in addition, it adds the following new properties: availableincomingbitrate optional provides an informative value representing the available inbound capacity of the
network by reporting the total number of bits per second available for all of the candidate pair's incoming rtp streams.
... availableoutgoingbitrate optional provides an informative value representing the available outbound capacity of the
network by reporting the total number of bits per second available for all of the candidate pair's outoing rtp streams.
RTCIceCandidateStats.port - Web APIs
the rtcicecandidatestats dictionary's port property specifies the
network port used by the candidate.
... syntax candidateport = rtcicecandidatestats.port; value an integer value indicating the
network port used by the rtcicecandidate described by the rtcicecandidatestats object.
Using the Resource Timing API - Web APIs
the resource timing api provides a way to retrieve and analyze detailed
network timing data regarding the loading of an application's resource(s).
... the interface's properties create a resource loading timeline with high-resolution timestamps for
network events such as redirect start and end times, fetch start, dns lookup start and end times, response start and end times, etc.
ServiceWorkerGlobalScope.onfetch - Web APIs
if no match is found, the code fetches a response from the
network.
...about to fetch from
network...'); return fetch(event.request).then(function(response) { console.log('response from
network is:', response); return response; }).catch(function(error) { console.error('fetching failed:', error); throw error; }); }) ); }); specifications specification status comment service workersthe definition of 'event handl...
Streams API concepts - Web APIs
the streams api adds a very useful set of tools to the web platform, providing objects allowing javascript to programmatically access streams of data received over the
network and process them as desired by the developer.
... readable streams a readable stream is a data source represented in javascript by a readablestream object that flows from an underlying source — this is a resource somewhere on the
network or elsewhere on your domain that you want to get data from.
Using readable streams - Web APIs
as a javascript developer, programmatically reading and manipulating streams of data received over the
network, chunk by chunk, is very useful!
... consuming a fetch as a stream the fetch api allows you to fetch resources across the
network, providing a modern alternative to xhr.
Introduction to WebRTC protocols - Web APIs
nat
network address translation (nat) is used to give your device a public ip address.
... some routers will have restrictions on who can connect to devices on the
network.
Writing WebSocket client applications - Web APIs
this may happen if you attempt to use an insecure connection (most user agents now require a secure link for all websocket connections unless they're on the same device or possibly on the same
network).
... closing the connection when you've finished using the websocket connection, call the websocket method close(): examplesocket.close(); it may be helpful to examine the socket's bufferedamount attribute before attempting to close the connection to determine if any data has yet to be transmitted on the
network.
The WebSocket API (WebSockets) - Web APIs
guides writing websocket client applications writing websocket servers writing a websocket server in c# writing a websocket server in java tools humblenet: a cross-platform
networking library that works in the browser.
... it consists of a c wrapper around websockets and webrtc that abstracts away cross-browser differences, facilitating the creation of multi-user
networking functionality for games and other apps.
Window: offline event - Web APIs
the offline event of the window interface is fired when the browser has lost access to the
network and the value of navigator.online switches to false.
... bubbles no cancelable no interface event event handler property onoffline examples // addeventlistener version window.addeventlistener('offline', (event) => { console.log("the
network connection has been lost."); }); // onoffline version window.onoffline = (event) => { console.log("the
network connection has been lost."); }; specifications specification status html living standardthe definition of 'offline event' in that specification.
WindowOrWorkerGlobalScope.setInterval() - Web APIs
{ width: 180px; height: 150px; float: right; background-color: #eeeeff; padding: 4px; overflow: auto; font-size: 12px; margin: 4px; border-radius: 5px; /* visibility: hidden; */ } </style> </head> <body> <p id="copyleft" style="font-style: italic; font-size: 12px; text-align: center;">copyleft 2012 by <a href="https://developer.mozilla.org/" target="_blank">mozilla developer
network</a></p> <p id="controls" style="text-align: center;">[ <span class="intlink" onclick="otwexample1.play();">play</span> | <span class="intlink" onclick="otwexample1.pause();">pause</span> | <span class="intlink" onclick="otwexample1.terminate();">terminate</span> ]</p> <div id="info"> vivamus blandit massa ut metus mattis in fringilla lectus imperdiet.
...for example, if using setinterval() to poll a remote server every 5 seconds,
network latency, an unresponsive server, and a host of other issues could prevent the request from completing in its allotted time.
WorkerNavigator.connection - Web APIs
the workernavigator.connection read-only property returns a
networkinformation object containing information about the system's connection, such as the current bandwidth of the user's device or whether the connection is metered.
... syntax connectioninfo = self.navigator.connection specifications specification status comment
network information apithe definition of 'navigator.connection' in that specification.
How to check the security state of an XMLHTTPRequest over SSL - Web APIs
ror'; break; case 9: // ssl_error_unsupported_version, ssl(9) errname = 'securityunsupportedtlsversionerror'; break; case 12: // ssl_error_bad_cert_domain, ssl(12) errname = 'securitycertificatedomainmismatcherror'; break; default: errname = 'securityerror'; break; } } } else { errtype = '
network'; switch (status) { // connect to host:port failed case 0x804b000c: // ns_error_connection_refused,
network(13) errname = 'connectionrefusederror'; break; //
network timeout error case 0x804b000e: // ns_error_net_timeout,
network(14) errname = '
networktimeouterror'; break; // hostname lookup failed case 0x804b001e: // ns_erro...
...r_unknown_host,
network(30) errname = 'domainnotfounderror'; break; case 0x804b0047: // ns_error_net_interrupt,
network(71) errname = '
networkinterrupterror'; break; default: errname = '
networkerror'; break; } } // xxx we have no tcperror implementation right now because it's really hard to // do on b2g18.
Accessibility documentation index - Accessibility
this document provides a list of links to all accessibility articles on the mozilla developer
network.
... the two images below are from nasa research, specifically, from the article, "designing with blue" 84 accessibility documentation index accessibility, index this document provides a list of links to all accessibility articles on the mozilla developer
network.
Live streaming web audio and video - Developer guides
note: some vendors implement propriety transport protocols, such as real
networks and their real data transport (rdt).
...so for example, if we detect that the
network is slow, we can start requesting lower quality (smaller) chunks for the next segment.
MIME types (IANA media types) - HTTP
only a few image types are used commonly enough to be considered safe for use on web pages: abbreviation file format mime type file extension(s) browser compatibility apng animated portable
network graphics image/apng .apng chrome, edge, firefox, opera, safari bmp bitmap file image/bmp .bmp chrome, edge, firefox, internet explorer, opera, safari gif graphics interchange format image/gif .gif chrome, edge, firefox, internet explorer, opera, safari ico microsoft icon image/x-icon .ico, .cur chrome, edge, firefox, internet...
... explorer, opera, safari jpeg joint photographic expert group image image/jpeg .jpg, .jpeg, .jfif, .pjpeg, .pjp chrome, edge, firefox, internet explorer, opera, safari png portable
network graphics image/png .png chrome, edge, firefox, internet explorer, opera, safari svg scalable vector graphics image/svg+xml .svg chrome, edge, firefox, internet explorer, opera, safari tiff tagged image file format image/tiff .tif, .tiff none built-in; add-ons required webp web picture format image/webp .webp chrome, edge, firefox, opera the abbreviation for each format links to a longer description of the format, its capabilities, and detailed browser compatibility information; including which version...
Reason: CORS request did not succeed - HTTP
the http request which makes use of cors failed because the http connection failed at either the
network or protocol level.
... the error is not directly related to cors, but is a fundamental
network error of some kind.
HTTP caching - HTTP
web caches reduce latency and
network traffic and thus lessen the time needed to display a representation of a resource.
...for example, an isp or your company might have set up a web proxy as part of its local
network infrastructure to serve many users so that popular resources are reused a number of times, reducing
network traffic and latency.
NEL - HTTP
the http nel response header is used to configure
network request logging.
... header type response header forbidden header name no syntax nel: { "report_to": "name_of_reporting_group", "max_age": 12345, "include_subdomains": false, "success_fraction": 0.0, "failure_fraction": 1.0 } specifications specification
network error logging ...
Proxy servers and tunneling - HTTP
when navigating through different
networks of the internet, proxy servers and http tunnels are facilitating access to content on the world wide web.
... http tunneling tunneling transmits private
network data and protocol information through public
network by encapsulating the data.
Codecs used by WebRTC - Web media technologies
other notes the
network payload format for sharing vp8 using rtp (such as when using webrtc) is described in rfc 7741: rtp payload format for vp8 video.
...in order to avoid
network congestion, the average audio bit rate should not exceed the available
network bandwidth (minus any other known or anticipated added bandwidth requirements).
Recommended Web Performance Timings: How long is too long? - Web Performance
a 'hello world' on the corporate
network would be expected to load in milliseconds, but a user downloading a cat video on a five-year-old device over an edge
network in northern siberia would likely find a 20-second download speedy.
... in optimizing for performance, do set an ambitious first load goal, such as 5 seconds over the mobile 3g
network and 1.5 seconds on an office t1 line, with even more ambitious page load goals for subsequent page loads, leveraging service workers and caching.
Privacy, permissions, and information security
these start at the web server, include the very communication layer used over the
network, and then extend through the web browser's security offerings before reaching your web app code and the efforts it takes to secure itself and the data the user entrusts to it.
...elopers 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 transport layer security (tls); formerly known as secure sockets layer (ssl) tls provides security and privacy by encrypting data during transport over the
network.
Structural overview of progressive web apps - Progressive web apps (PWAs)
it also allows the website to be accessible offline if the
network connection is not available.
...vice worker] install'); e.waituntil( caches.open(cachename).then(function(cache) { console.log('[service worker] caching all: app shell and content'); return cache.addall(contenttocache); }) ); }); with that done, we implement the service worker's fetch event handler; its job is to return the contents of the specified file, either from the cache or by loading it over the
network (caching it upon doing so): self.addeventlistener('fetch', function(e) { e.respondwith( caches.match(e.request).then(function(r) { console.log('[service worker] fetching resource: '+e.request.url); return r || fetch(e.request).then(function(response) { return caches.open(cachename).then(function(cache) { console.log('[service worker] caching new resource: '+e.
mimeTypes.rdf corruption - SVG: Scalable Vector Graphics
note: the "additional plugins are required" bar can appear for legitimate reasons when the svg or its embedding html is broken or served incorrectly over the
network (see the svg faq).
...for files loaded over the
network via http, it requires and uses the value assigned to the content-type http header.
Subresource Integrity - Web security
how subresource integrity helps using content delivery
networks (cdns) to host files such as scripts and stylesheets that are shared among multiple sites can improve site performance and conserve bandwidth.
... if the script or stylesheet doesn’t match its associated integrity value, the browser must refuse to execute the script or apply the stylesheet, and must instead return a
network error indicating that fetching of that script or stylesheet failed.
Transport Layer Security - Web security
the transport layer security (tls) protocol is the standard for enabling two
networked applications or devices to exchange information privately and robustly.
...the timeout value can be varied by editing the
network.http.tls-handshake-timeout pref in about:config.
Types of attacks - Web security
open wifi
networks are a typically means of executing this attack.
... alternatively, if the parent domain does not use http strict-transport-security with includesubdomains set, a user subject to an active mitm (perhaps connected to an open wifi
network) could be served a response with a set-cookie header from a non-existent sub-domain.
Web security
connection security transport security layer (tls) the transport layer security (tls) protocol is the standard for enabling two
networked applications or devices to exchange information privately and robustly.
...
network eavesdroppers could steal a user's password by sniffing the
network, or by modifying the served page in transit.
Loading and running WebAssembly code - WebAssembly
the newer webassembly.compilestreaming/webassembly.instantiatestreaming methods are a lot more efficient — they perform their actions directly on the raw stream of bytes coming from the
network, cutting out the need for the arraybuffer step.
... using fetch fetch is a convenient, modern api for fetching
network resources.
core/promise - Archive of obsolete content
in such cases it's useful to put a timer on such tasks: function timeout(promise, ms) { let deferred = defer(); promise.then(deferred.resolve, deferred.reject); delay(ms, 'timeout').then(deferred.reject); return deferred.promise; } var tweets = readasync(url); timeout(tweets, 20).then(function(data) { ui.display(data); }, function() { alert('
network is being too slow, try again later'); }); alternative promise apis there may be cases where you will want to provide more than just then method on your promises.
Downloading Files - Archive of obsolete content
function getimagefromurl(url) { var ioserv = components.classes["@mozilla.org/
network/io-service;1"] .getservice(components.interfaces.nsiioservice); var channel = ioserv.newchannel(url, 0, null); var stream = channel.open(); if (channel instanceof components.interfaces.nsihttpchannel && channel.responsestatus != 200) { return ""; } var bstream = components.classes["@mozilla.org/binaryinputstream;1"] .createinstance(components.interfa...
Drag & Drop - Archive of obsolete content
supported = dragsession.isdataflavorsupported("application/x-moz-file"); if (supported) dragsession.candrop = true; } function _dragdrop(aevent) { var dragservice = components.classes["@mozilla.org/widget/dragservice;1"].getservice(components.interfaces.nsidragservice); var dragsession = dragservice.getcurrentsession(); var _ios = components.classes['@mozilla.org/
network/io-service;1'].getservice(components.interfaces.nsiioservice); var uris = new array(); // if sourcenode is not null, then the drop was from inside the application if (dragsession.sourcenode) return; // setup a transfer item to retrieve the file data var trans = components.classes["@mozilla.org/widget/transferable;1"].createinstance(components.interfaces.nsitransferabl...
Forms related code snippets - Archive of obsolete content
date picker (before implementing it in a working environment, please read the note about the const statement compatibility) <!doctype html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>datepicker example - mdn</title> <script type="text/javascript"> /*\ |*| |*| datepicker example mdndeveloper
network |*| |*| https://developer.mozilla.org/docs/code_snippets/forms |*| https://developer.mozilla.org/user:fusionchess |*| |*| this snippet is released under the gnu public license, version 3 or later.
JS XPCOM - Archive of obsolete content
return 0; }, classdescription: "about mystuff page", classid: components.id("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"), contractid: "@mozilla.org/
network/protocol/about;1?what=mystuff", queryinterface: xpcomutils.generateqi([ci.nsiaboutmodule]) } var nsgetmodule = xpcomutils.generatensgetmodule([abouthandler]); } ...
Label and description - Archive of obsolete content
note: if running in a xulrunner application add the following preferences to your default preferences file: pref("
network.protocol-handler.expose.http", false); pref("
network.protocol-handler.warn-external.http", false); change or add additional protocols (https or ftp) as needed.
Miscellaneous - Archive of obsolete content
put this code in the components/certsservice.js file: const cc = components.classes; const ci = components.interfaces; components.utils.import("resource://gre/modules/xpcomutils.jsm"); const gobserver = cc['@mozilla.org/observer-service;1'].getservice(ci.nsiobserverservice); const gioservice = cc["@mozilla.org/
network/io-service;1"].getservice(ci.nsiioservice); function certsservice() {} certsservice.prototype = { observe: function(asubject, atopic, adata) { switch(atopic) { case "app-startup": gobserver.addobserver(this,"xpcom-shutdown",false); gobserver.addobserver(this,"final-ui-startup",false); break; case "xpcom-shutdown...
Post data to window - Archive of obsolete content
createinstance(ci.nsistringinputstream); if ("data" in stringstream) // gecko 1.9 or newer stringstream.data = datastring; else // 1.8 or older stringstream.setdata(datastring, datastring.length); var postdata = cc["@mozilla.org/
network/mime-input-stream;1"].
StringView - Archive of obsolete content
use strict"; /*\ |*| |*| :: number.isinteger() polyfill :: |*| |*| /docs/web/javascript/reference/global_objects/number/isinteger |*| \*/ if (!number.isinteger) { number.isinteger = function isinteger (nval) { return typeof nval === "number" && isfinite(nval) && nval > -9007199254740992 && nval < 9007199254740992 && math.floor(nval) === nval; }; } /*\ |*| |*| stringview mdndeveloper
network |*| |*| revision #12, march 21st, 2017 |*| |*| https://developer.mozilla.org/add-ons/code_snippets/stringview |*| https://developer.mozilla.org/docs/user:fusionchess |*| https://github.com/madmurphy/stringview.js |*| |*| this framework is released under the gnu lesser general public license, version 3 or later.
URI parsing - Archive of obsolete content
so, here's some sample code to determine the base domain without any suffixes: var etldservice = components.classes["@mozilla.org/
network/effective-tld-service;1"].
Common Pitfalls - Archive of obsolete content
how to create a uri object in almost all cases, when creating a uri object you want to use the newuri method on the nsiioservice interface, like so: javascript: try { var ioserv = components.classes["@mozilla.org/
network/io-service;1"] .getservice(components.interfaces.nsiioservice); var uriobj = ioserv.newuri(uristring, uricharset, baseuri); } catch (e) { // may want to catch ns_error_malformed_uri for some applications } c++: nsresult rv; nscomptr<nsiioservice> ioserv = do_getservice("@mozilla.org/
network/io-service;1"); ns_ensure_success(rv, rv); nscomptr<nsiuri> uriobj; rv = i...
Custom about: URLs - Archive of obsolete content
= 'myaboutpage' const aboutpage_uri = 'data:text/html,hi this is the page that is shown when navigate to about:myaboutpage'; // const aboutpage_uri = 'chrome://myaboutaddon/content/index.html'; class aboutpage { static get classid() { return components.id(`{${aboutpage_id}}`); } static get classdescription() { return aboutpage_description; } static get contractid() { return `@mozilla.org/
network/protocol/about;1?what=${aboutpage_word}`; } static get queryinterface() { return xpcomutils.generateqi([ci.nsiaboutmodule]); } constructor() { object.freeze(this); } geturiflags(auri) { return ci.nsiaboutmodule.allow_script; } newchannel(auri, asecurity_or_aloadinfo) { let channel; if (services.vc.compare(services.appinfo.version, '47.*') > 0) { const uri = ...
How to convert an overlay extension to restartless - Archive of obsolete content
// just store a constant with your id components.utils.import("resource://gre/modules/addonmanager.jsm"); addonmanager.getaddonbyid(myaddonid,function(addon) { var file = services.io.newuri("resource://myaddon/filename.ext",null,null) .queryinterface(components.interfaces.nsifileurl) .file; var stream = components.classes["@mozilla.org/
network/file-input-stream;1"] .createinstance(components.interfaces.nsifileinputstream) .queryinterface(components.interfaces.nsiseekablestream); stream.init(file, 0x01, 0444, 0); // read-only, read by owner/group/others, normal behavior /* do stuff */ }); this bit of code is paraphrased and probably not to be recommended as-is, but it shoul...
Jetpack Processes - Archive of obsolete content
these arbitrary properties are the primary means through which context can be provided for messages; for instance, if the handle is meant to represent a
network request, an xmlhttprequest instance can be attached to the handle on the chrome process.
Introduction - Archive of obsolete content
xulrunner xulrunner includes the gecko rendering engine, the necko
networking library, and several other components that provide os-independent file management, accessibility, and localization, among others.
MMgc - Archive of obsolete content
class myfinalizedobject : public mmgc::gcfinalizedobject { public: ~myfinalizedobject() { // do finalization behavior, like closing
network connections, // freeing unmanaged memory owned by this object, etc.
Using content preferences - Archive of obsolete content
var iosvc = components.classes["@mozilla.org/
network/io-service;1"] .getservice(components.interfaces.nsiioservice); var prefservice = components.classes["@mozilla.org/content-pref/service;1"] .getservice(components.interfaces.nsicontentprefservice); // create a uri object referencing the site to save a preference for var uri = iosvc.newuri("http://developer.mozilla.org/", null, null); // set the value of the "devmo.
Kill the XUL.mfl file for good - Archive of obsolete content
loading these files from the server, and storing them back slows down the
network, thus it may actually be faster without than with xul.mfl occasionnally gets corrupted, needing a manual intervention to wipe it out, before mozilla again works correctly.
Creating a Mozilla Extension - Archive of obsolete content
completing this tutorial will give you a basic understanding of how mozilla's user interface (ui) is constructed, how to find the source code for the ui you want to extend, how to make an installation of mozilla modifiable, how to use mozilla's
network library to load and parse web pages in javascript, and how to use dynamic overlays to package a mozilla extension for installation by others.
Menu - Archive of obsolete content
if the menu remains open when getrecenttweets() receives data from the
network and calls done(), the "loading..." item is replaced with the tweets, one item per tweet: this example will not work on os x due to a platform bug in firefox.
Plugin Architecture - Archive of obsolete content
sequence of events in content a content node for a plugin dom element gets created in bindtotree (usually) or another function, it calls loadobject loadobject either notices directly that it is dealing with a plugin, or it starts a
network request and notices this in onstartrequest when it realizes that, it tries to create a frame, if anotify is true and no frame exists yet if a frame exists now, it is asked to instantiate the plugin that was the normal case.
Remotely debugging Firefox for Metro - Archive of obsolete content
set up firefox for metro go to about:config in firefox for metro, and set the following required preference: devtools.debugger.remote-enabled = true you may also want to set these optional preferences: devtools.debugger.force-local = false (if you want to connect from a different machine over the
network) devtools.debugger.remote-host (to change the tcp hostname where firefox will listen for connections) devtools.debugger.remote-port (to change the tcp port number where firefox will listen for connections) devtools.debugger.prompt-connection = false (allow connections without displaying a confirmation prompt.
Supporting per-window private browsing - Archive of obsolete content
(asubject, atopic, adata) { asubject.queryinterface(components.interfaces.nsisupportsprbool); // if another extension has not already canceled entering the private mode if (!asubject.data) { /* you should display some user interface here */ asubject.data = true; // cancel the operation } }, "last-pb-context-exiting", false); forcing a channel into private mode usually,
network channels inherit the privacy status of the document that created them, which means that they work correctly most of the time.
icon - Archive of obsolete content
possible values include: accept, cancel, help, open, save, find, clear, yes, no, apply, close, print, add, remove, refresh, go-forward, go-back, properties, select-font, select-color,
network.
Introduction to XUL - Archive of obsolete content
we intend to provide a subset of cross-platform functionality suitable for building
network applications like browsers, leveraging the cross-platform functionality already built into gecko, mozilla's html layout engine.
Simple Query Syntax - Archive of obsolete content
after the default query statements are evaluated, the data
network will look something like this: (?1 = http://www.xulplanet.com/rdf/myphotos, ?2 = http://www.xulplanet.com/ndeakin/images/t/palace.jpg) (?1 = http://www.xulplanet.com/rdf/myphotos, ?2 = http://www.xulplanet.com/ndeakin/images/t/canal.jpg) (?1 = http://www.xulplanet.com/rdf/myphotos, ?2 = http://www.xulplanet.com/ndeakin/images/t/obselisk.jpg) the numbers are used here for the variable names, ...
The Joy of XUL - Archive of obsolete content
as a rapidly maturing cross-platform technology, xul could fill an interesting void for technologies such as java j2ee and microsoft .net which focus on enabling
network access to distributed objects.
Code Samples - Archive of obsolete content
change the first line to specify the page that you want to open: const url = "http://www.mozilla.org/" var uri = components .classes["@mozilla.org/
network/simple-uri;1"] .getservice(components.interfaces.nsiuri) uri.spec = url components .classes["@mozilla.org/uriloader/external-protocol-service;1"] .getservice(components.interfaces.nsiexternalprotocolservice) .loadurl(uri) compose an e-mail to compose an e-mail, use the same code as in the section open a web page above.
XUL Structure - Archive of obsolete content
it is common to place packages into the chrome directory simply because it is convenient; however, they will work just as well from another directory or somewhere on your local
network.
XUL Changes for Firefox 1.5 - Archive of obsolete content
this is used typically on gnome systems where possible values are: accept, cancel, help, open, save, find, clear, yes, no, apply, close, print, add, remove, refresh, go-forward, go-back, properties, select-font, select-color,
network.
button - Archive of obsolete content
possible values include: accept, cancel, help, open, save, find, clear, yes, no, apply, close, print, add, remove, refresh, go-forward, go-back, properties, select-font, select-color,
network.
What XULRunner Provides - Archive of obsolete content
the following features are either already implemented or planned: gecko features xpcom
networking gecko rendering engine dom editing and transaction support (no ui) cryptography xbl (xbl2 planned) xul svg xslt xml extras (xmlhttprequest, domparser, etc.) web services (soap) auto-update support (not yet complete) type ahead find toolbar history implementation (the places implementation in the 1.9 cycle) accessibility support ipc services for communication between gecko-based apps (not yet complete) storage/sqlite interfaces user interface features the following user interface is supplied by xulrun...
nsIContentPolicy - Archive of obsolete content
amimetype the mime type of the requested resource (for example, image/png), as reported by the
networking library, if available (may be empty if inappropriate for the type, e.g., type_refresh).
Community - Extensions
mozillazine extensions & themes forum #extdev channel on moznet irc
network — extension development questions #addons channel on moznet irc
network — questions about http://addons.mozilla.org mozdev project owners mailing list mozillazine knowledge base allyourideas — ideas for extensions ((really needs a unique captcha)) babelzilla — a community for developers and translators of extension for mozilla applications ...
Anatomy of a video game - Game development
once your main loop has been developed and you have decided on a set of assumptions and tradeoffs which suit your game, it is now just a matter of using your decisions to calculate any applicable physics, ai, sounds,
network synchronization, and whatever else your game may require.
Index - Game development
38 webrtc data channels api, games, needscontent,
network, p2p, webrtc, data channels the webrtc (web real-time communications) api is primarily known for its support for audio and video communications; however, it also offers peer-to-peer data channels.
Introduction to game development for the Web - Game development
like to say, "the web is the platform." let's take a look at the core of the web platform: function technology audio web audio api graphics webgl (opengl es 2.0) input touch events, gamepad api, device sensors, webrtc, full screen api, pointer lock api language javascript (or c/c++ using emscripten to compile to javascript)
networking webrtc and/or websockets storage indexeddb or the "cloud" web html, css, svg (and much more!) the business case as a game developer, whether you're an individual or a large game studio, you want to know why it makes sense to target the web with your next game project.
Audio for Web games - Game development
buffering and preloading likely as an attempt to mitigate runaway mobile
network data use, we also often find that buffering is disabled before playback has been initiated.
Algorithm - MDN Web Docs Glossary: Definitions of Web-related terms
there are also machine learning algorithms such as linear regression, logistic regression, decision tree, random forest, support vector machine, recurrent neural
network (rnn), long short term memory (lstm) neural
network, convolutional neural
network (cnn), deep convolutional neural
network and so on.
Web standards - MDN Web Docs Glossary: Definitions of Web-related terms
this non-exhaustive list gives you an idea of which standards websites and
network systems must conform to: ietf (internet engineering task force): internet standards (std), which among other things govern set-up and use of uris, http, and mime w3c: specifications for markup language (e.g., html), style definitions (i.e., css), dom, accessibility iana (internet assigned numbers authority): name and number registries ecma intl.: scripting standards, most prominently for ja...
MDN Web Docs Glossary: Definitions of Web-related terms
net explorer middleware mime mime type minification mitm mixin mobile first modem modern web apps modularity mozilla firefox mutable mvc n namespace nan nat native navigation directive netscape navigator
network throttling nntp node node (dom) node (
networking) node.js non-normative normative null nullish value number o object object reference oop opengl openssl opera browser operand operator origin ota ...
HTML: A good basis for accessibility - Learn web development
<h1>links</h1> <p>this is a link to <a href="https://www.mozilla.org">mozilla</a>.</p> <p>another link, to the <a href="https://developer.mozilla.org">mozilla developer
network</a>.</p> <h2>buttons</h2> <p> <button data-message="this is from the first button">click me!</button> <button data-message="this is from the second button">click me too!</button> <button data-message="this is from the third button">and me!</button> </p> <h2>form</h2> <form> <div> <label for="name">fill in your name:</label> <input type="text" id="name" name="name"> </div> ...
HTML: A good basis for accessibility - Learn web development
<h1>links</h1> <p>this is a link to <a href="https://www.mozilla.org">mozilla</a>.</p> <p>another link, to the <a href="https://developer.mozilla.org">mozilla developer
network</a>.</p> <h2>buttons</h2> <p> <button data-message="this is from the first button">click me!</button> <button data-message="this is from the second button">click me too!</button> <button data-message="this is from the third button">and me!</button> </p> <h2>form</h2> <form> <div> <label for="name">fill in your name:</label> <input type="text" id="name" name="name"> </div> ...
HTML forms in legacy browsers - Learn web development
while they can be used to improve support for any functionality, using them for javascript is less risky than for css or html; there many cases where javascript can break (
network issues, script conflicts, etc.).
How the Web works - Learn web development
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).
Mozilla splash page - Learn web development
note: to properly test the srcset/sizes examples, you'll need to upload your site to a server (using github pages is an easy and free solution), then from there you can test whether they are working properly using browser developer tools such as the firefox
network monitor.
Manipulating documents - Learn web development
add the following line below the previous one: link.textcontent = 'mozilla developer
network'; we should also change the url the link is pointing to, so that it doesn't go to the wrong place when it is clicked on.
Object-oriented JavaScript for beginners - Learn web development
object data (and often, functions too) can be stored neatly (the official word is encapsulated) inside an object package (which can be given a specific name to refer to, which is sometimes called a namespace), making it easy to structure and access; objects are also commonly used as data stores that can be easily sent across the
network.
Perceived performance - Learn web development
improving perceived performance understanding
networking, how the browser works, user perception of time, etc., can help you better understand how to improve the user interaction.
What is web performance? - Learn web development
there is overhead involved in establishing tcp and http connections, and some unavoidable latency in pushing the request and response bytes back and forth across the
network, but there are certain ways to reduce latency (e.g.
Getting started with Svelte - Learn web development
nevertheless, svelte is particularly appropriate to tackle the following situations: web applications intended for low power devices: applications built with svelte have smaller bundle sizes, which is ideal for devices with slow
network connections and limited processing power.
Getting started with Vue - Learn web development
98% after emitting copyplugin done compiled successfully in 18121ms app running at: - local: <http://localhost:8080/> -
network: <http://192.168.1.9:8080/> note that the development build is not optimized.
Learn web development
web performance — making websites fast and responsive web performance is the art of making sure web applications download fast and are responsive to user interaction, regardless of a user's bandwidth, screen size,
network, or device capabilities.
Mozilla’s UAAG evaluation report
however, any such use should be carefully considered, given the potential impact on
network traffic of automatically making such requests for every link/object in the page.
What to do and what not to do in Bugzilla
mozilla applications like the application suite, thunderbird, or firefox share most of their program code and all of the backend code including things like
network connectivity (ftp, http, imap) and html rendering.
Debugging
http logging how to log http
network traffic for debugging purposes.
Old Thunderbird build
first, cd into the comm-central subdirectory (created automatically by the previous command): cd comm-central then run: python client.py checkout on some types of
network connections, "hg clone" might fail because it gets interrupted.
Simple Instantbird build
first, cd into the comm-central subdirectory (created automatically by the previous command): cd comm-central then run: python client.py checkout note: unless you have a very good
network connection, "hg clone" might fail because it gets interrupted.
Performance
if(resultlist.every((r) => r == true)) return ci.nsicontentpolicy.accept; return ci.nsicontentpolicy.reject_request; } }); // more boilerplate code here this example is a (somewhat condensed) content policy which gets triggered for every
network request in a child process to either allow or deny the request.
Firefox and the "about" protocol
l downloads done within firefox about:home start page of firefox when opening a new window about:license displays licensing information about:logo firefox logo about:memory provides a way to display memory usage, save it as report and run the gc and cc about:mozilla special page showing a message from "the book of mozilla" about:
networking displays
networking information about:newtab start page when opening a new tab about:performance displays memory and performance information about firefox subprocesses/add-ons/tabs about:plugins displays information about installed plugins about:policies lists out the firefox for enterprise policies about:preferences firefox settin...
Embedding Mozilla
that means you can embed a web browser inside a third-party application, open channels and streams through the
network backend, walk through the dom and so on.
IPDL Tutorial
do not return false from message handlers for "normal" error conditions such as inability to load a
network request!
Download
note: this property's value may not match the actual final size of the downloaded file if the download is encoded during the
network transfer.
DownloadSource
this determines the context of the
network request that is made to retrieve the resource.
Downloads.jsm
fetch() downloads data from a remote
network location to a local file.
JavaScript code modules
netutil.jsm provides helpful
networking utility functions, including the ability to easily copy data from an input stream to an output stream asynchronously.
Mozilla MathML Project
mathml in mozilla developer
network mathml accessibility in mozilla sample mathml documents screenshots mathml start page - with translations in different languages ( arabic, chinese, hebrew, thai) mathml basics - document tailored to display correctly with just the symbol font that is pre-installed by default on most os configurations.
Mozilla Port Blocking
enabling ports user_pref("
network.security.ports.banned.override, "port1,port2"); disabling ports user_pref("
network.security.ports.banned", "port3,port4"); blocked ports ports blocked by default in mozilla: port service 1 tcpmux 7 echo 9 discard 11 systat 13 daytime 15 netstat 17 qotd 19 chargen 20 ftp data ...
Activity Monitor, Battery Status Menu and top
careful investigation indicates that on mac os 10.10 and 10.11 it is computed with a formula that is machine model-specific, and includes the following factors: cpu usage, wakeup frequency, quality of service class usage, and disk, gpu, and
network activity.
Power profiling overview
measurements of things that affect power consumption such as cpu activity, gpu activity, wakeup frequency, c-state residency, disk activity, and
network activity.
Preferences
mozilla
networking preferences a guide to key
networking-related preferences.
MailNews automated testing
enhanced logging: supports generating rich json streams to disk or over the
network for consumption by logsploder or other tools.
NSS 3.53 release notes
introduction the nss team released
network security services (nss) 3.53 on 29 may 2020.
NSS 3.54 release notes
introduction the nss team has released
network security services (nss) 3.54 on 26 june 2020, which is a minor release.
NSS 3.56 release notes
introduction the nss team has released
network security services (nss) 3.56 on 21 august 2020, which is a minor release.
PKCS11 Implement
signing and decryption tokens can be used for s/mime and for encrypted transactions over unsecured
networks such as the internet.
NSPR functions
pr_secondstointerval pr_millisecondstointerval nspr i/o layering nspr file descriptors can be layered, corresponding to the layers in the
network stack.
gtstd.html
ssl, pkcs #11, and the default security databases setting up the certificate and key databases building nss programs ssl, pkcs #11, and the default security databases the basic relationships among the nss libraries are described in introduction to
network security services.
sslintro.html
sets up configuration files and performs other tasks required to run
network security services.
ssltyp.html
<a name="> many of the structures presented here (certcertdbhandle, certcertificate, pk11slotinfo, and seckeyprivatekey) are opaque--that is, they are types defined as structures (for example, certcertdbhandlestr) that may change in future releases of
network security services.
NSS_3.12.3_release_notes.html
nss 3.12.3 release notes 2009-04-01 newsgroup: mozilla.dev.tech.crypto contents introduction distribution information new in nss 3.12.3 bugs fixed documentation compatibility feedback introduction
network security services (nss) 3.12.3 is a patch release for nss 3.12.
Necko walkthrough
callback to be used later for a response if a target is specified (in this case, the main thread), callback is proxied via an nsinputstreamreadyevent, which is created now and may be called later otherwise, the callback would be called directly, when the socket is readable et voila, the transaction has been posted to the socket thread, and the main thread continues on, unblocked from
network io.
Rhino serialization
serialization provides a way to save the state of an object and write it out to a file or send it across a
network connection.
FOSS
tp://pypi.python.org/pypi/python-spidermonkey wxwidgets gluescript (formerly wxjavascript) code generators jsapigen - generates bindings for embedding spidermonkey in c applications extensions http://code.google.com/p/jslibs/ - zlib, sqlite, nspr, ode, libpng, libjpeg, libffi, (...) libraries for spidermonkey http://www.jsdb.org/ - a js shell with native objects for files,
networks, databases, compression, email, etc.
WebReplayRoadmap
while cloud integration is not in placer, web replay's architecture has recently been redesigned in preparation for cloud support, and communicating with replaying processes over a
network connection instead of ipc should work pretty efficiently.
Feed content access API
loading the feed and sending it to the parser is done using code similar to this: fetch: function(feedurl) { var httprequest = null; function inforeceived() { var data = httprequest.responsetext; var ioservice = components.classes['@mozilla.org/
network/io-service;1'] .getservice(components.interfaces.nsiioservice); var uri = ioservice.newuri(feedurl, null, null); if (data.length) { var parser = components.classes["@mozilla.org/feed-processor;1"] .createinstance(components.interfaces.nsifeedprocessor); var listener = new feedtestresultli...
Using the Places annotation service
var ioservice = components.classes["@mozilla.org/
network/io-service;1"] .getservice(components.interfaces.nsiioservice); var uri = ioservice.newuri("http://www.mozilla.org/", null, null); annotationservice.setpageannotation(uri, "my_extension/some_annotation", "this is the annotation value", 0, 0); retrieving annotations there are corresponding getters for the setters above (see nsiannotationservice.idl for the exact dec...
Using the Places favicon service
the expiration time is only used to determine whether data should be reloaded from the
network (or cache) or whether the version in the database is fresh enough.
Resources
weblock resources weblock installer and information the sdk download linux: http://ftp.mozilla.org/pub/mozilla/releases/mozilla1.4a/gecko-sdk-i686-pc-linux-gnu-1.4a.tar.gz windows: http://ftp.mozilla.org/pub/mozilla/releases/mozilla1.4a/gecko-sdk-win32-1.4a.zip other mozilla downloads gecko resources internal string guide external string guide the gecko
networking library ("necko") the netscape portable runtime environment embedding mozilla current module owners xpinstall xul xpcom resources the xpcom project page xulplanet's online xpcom reference information on xpconnect and scriptable components the smart pointer guide xpidl xpidl compiler reference general development resources the world wide web consortium url specification at ...
Setting up the Gecko SDK
for example, the headers for
networking are all located in the necko directory, and the headers that xpcom requires are in the xpcom directory.
Components.isSuccessCode
if (!components.issuccesscode(statuscode)) copyfailed = true; }, queryinterface: function(aiid) { if (aiid.equals(ci.nsirequestobserver) || aiid.equals(ci.nsisupports)) return this; throw cr.ns_error_no_interface; } }; var copier = cc["@mozilla.org/
network/async-stream-copier;1"] .createinstance(ci.nsiasyncstreamcopier); copier.init(instream, outstream, null, true, false, 8192, true, true); copier.asynccopy(copyobserver, null); } ...
Community
#pyxpcom on irc.mozilla.org chat with other pyxpcom developers on mozilla's irc
network.
xpcshell
js> see also howto for common problems in writing xpcshell scripts, e.g., doing async
network calls or using js modules.
Monitoring HTTP activity
this is done using the nsihttpactivitydistributor.addobserver() method in nsihttpactivitydistributor: var activitydistributor = components.classes["@mozilla.org/
network/http-activity-distributor;1"] .getservice(components.interfaces.nsihttpactivitydistributor); activitydistributor.addobserver(httpobserver); observable activities there are two classes of observable activities: those that occur at the socket level and those that occur at the http transaction level.
imgIRequest
status_size_available 0x1 we received enough image data from the
network or filesystem that we know the width and height of the image, and have thus called setsize() on the container.
mozIAsyncFavicons
setandfetchfaviconforpage() declares that a given page uses a favicon with the given uri and attempts to fetch and save the icon data by loading the favicon uri through a asynchronous
network request.
nsIAuthInformation
constants constant value description auth_host 1 this dialog belongs to a
network host.
nsIAuthPrompt
netwerk/base/public/nsiauthprompt.idlscriptable this interface allows the
networking layer to pose a user/password prompt to obtain the values needed for authentication.
nsIBadCertListener2
boolean notifycertproblem( in nsiinterfacerequestor socketinfo, in nsisslstatus status, in autf8string targetsite ); parameters socketinfo a
network communication context that can be used to obtain more information about the active connection.
nsIBinaryInputStream
this might be used, for example, to implement
network protocols or to read from architecture-neutral disk files, that is ones that can be read and written by both big-endian and little-endian platforms.
nsIChannelEventSink
exceptions thrown this method can throw any exception; if an exception occurs, the load will be canceled, and no
network requests will occur for the new channel.
nsICrashReporter
only https and http urls are allowed, as the submission is handled by os-native
networking libraries.
nsICryptoHash
the following example shows how to compute the sha256 hash of a file: // hardcoded here for convenience var path = "c:\\windows\\notepad.exe"; var f = components.classes["@mozilla.org/file/local;1"] .createinstance(components.interfaces.nsilocalfile); f.initwithpath(path); var istream = components.classes["@mozilla.org/
network/file-input-stream;1"] .createinstance(components.interfaces.nsifileinputstream); // open for reading istream.init(f, 0x01, 0444, 0); var ch = components.classes["@mozilla.org/security/hash;1"] .createinstance(components.interfaces.nsicryptohash); // we want to use the sha256 algorithm ch.init(ch.sha256); // this tells updatefromstream to read the entire ...
getFile
in_startup_dir "strt" ns_win_recent_dir "rcnt" ns_win_send_to_dir "sndto" ns_win_bitbucket_dir "buckt" ns_win_startmenu_dir "strt" same thing as ns_os_desktop_dir ns_win_desktop_directory "deskp" file sys dir which physically stores objects on desktop ns_win_drives_dir "drivs" ns_win_
network_dir "netw" ns_win_nethood_dir "neth" ns_win_fonts_dir "fnts" ns_win_templates_dir "tmpls" ns_win_common_startmenu_dir "cmstrt" ns_win_common_programs_dir "cmprgs" ns_win_common_startup_dir "cmstrt" ns_win_common_desktop_directory "cmdeskp" ns_win_appdata_dir "...
nsIGeolocationProvider
see dom/src/geolocation/
networkgeolocationprovider.js for an example of how to write a geolocation provider.
nsIHttpActivityDistributor
1.0 66 introduced gecko 1.9.2 inherits from: nsihttpactivityobserver last changed in gecko 1.9.2 (firefox 3.6 / thunderbird 3.1 / fennec 1.0) implemented by: mozilla.org/
network/http-activity-distributor;1 as a service: var httpactivitydistributor = components.classes["@mozilla.org/
network/http-activity-distributor;1"] .getservice(components.interfaces.nsihttpactivitydistributor); method overview void addobserver(in nsihttpactivityobserver aobserver); void removeobserver(in nsihttpactivityobserver aobserver); methods addobserver() b...
nsIHttpChannelInternal
note: if
network address translation (nat) is in effect, this may not be the same address the remote host thinks it is talking to.
nsIIDNService
inherits from: nsisupports last changed in gecko 1.9 (firefox 3) implemented by: @mozilla.org/
network/idn-service;1 as a service: var idnservice = components.classes["@mozilla.org/
network/idn-service;1"] .getservice(components.interfaces.nsiidnservice); method overview autf8string convertacetoutf8(in acstring input); autf8string converttodisplayidn(in autf8string input, out boolean isascii); acstring convertutf8toace(in autf8string input); boolean isace(in acstring input); autf8string normalize(in autf8string input); methods convertacetoutf8() converts an ace (as...
nsIMsgWindow
stopurls() this is equivalent to calling stop(nsiwebnavigation::stop_
network) on the nsiwebnavigation object.
nsINavHistoryQuery
this is important because, if the user has their profile on a
networked drive, query latency can be non-negligible method overview nsinavhistoryquery clone(); void getfolders([optional ]out unsigned long count, [retval,array,size_is(count)] out long long folders); void gettransitions([optional] out unsigned long count, [retval,array,size_is(count)] out unsigned long transitions); void setfolders([const,array, size_is(foldercount)] in long long folders, ...
nsIPrincipal
enable_with_user_permission 3 enable_granted 4 methods native code only!canenablecapability short canenablecapability( in string capability ); parameters capability missing description return value missing description exceptions thrown missing exception missing description checkmayload() checks whether this principal is allowed to load the
network resource located at the given uri under the same-origin policy.
nsIProtocolHandler
this could be a local file (uri_is_local_file), a ui resource (uri_is_ui_resource), or something else that would not hit the
network.
nsISSLErrorListener
boolean notifysslerror( in nsiinterfacerequestor socketinfo, in print32 error, in autf8string targetsite ); parameters socketinfo a
network communication context that can be used to obtain more information about the active connection.
nsIScriptableIO
network/base/public/nsiscriptableio.idlscriptable please add a summary to this article.
nsIThread
warning: calling nsithread.processnextevent allows
network and ui events to run which can modify data structures that your code isn't expecting to be modified during a synchronous method call.
nsITransferable
note: currently, this can only be used on windows (in order to support
network principal information in drag operations).
nsIURI
to create an nsiuri object, you should use nsiioservice.newuri(), like this: function makeuri(aurl, aorigincharset, abaseuri) { var ioservice = components.classes["@mozilla.org/
network/io-service;1"] .getservice(components.interfaces.nsiioservice); return ioservice.newuri(aurl, aorigincharset, abaseuri); } components of a uri prepath path scheme userpass host port ref ftp :// username@password @ hostname : portnumber /pathname?query=value #ref method overview ...
nsIURL
\ / \ ----------------------- \ | / \ filename / ---------------------------- | filepath you can get a nsiurl from an nsiuri, using the queryinterface() method: var myuri = components.classes["@mozilla.org/
network/io-service;1"] .getservice(components.interfaces.nsiioservice) .newuri("http://developer.mozilla.org", null, null); try { var myurl = myuri.queryinterface(components.interfaces.nsiurl); } catch(e) { // the uri is not an url } or using instanceof: if (myuri instanceof components.interfaces.nsiurl) { // your code here } method overview a...
nsIWebPageDescriptor
docshell/base/nsiwebpagedescriptor.idlscriptable this interface allows content being displayed in one window to be loaded into another window without refetching it from the
network.
nsIWebProgress
notify_state_
network 0x00000004 only receive the nsiwebprogresslistener.onstatechange() event if the astateflags parameter includes nsiwebprogresslistener::state_is_
network.
XPCOM Interface Reference by grouping
file nsizipentry nsizipreader nsizipreadercache nsizipwriter file nsifilepicker nsifileprotocolhandler nsifilespec nsifilestreams nsifileutilities nsifileview memory nsimemory
network channel nsichannel nsichanneleventsink nsirequest nsirequestobserver nsiresumablechannel nsidnsservice nsiftpchannel nsiftpeventsink nsihttpchannel nsihttpchannelinternal nsihttpheadervisitor nsiidnservice nsiprotocolh...
Performance
on some
networked drives, vacuuming a 10mb database has been timed at over one minute.
Mozilla technologies
accessibility api implementation detailsthese pages contain documentation on mozilla specific implementation details of assistive technology apis.animated png graphicsapng is an extension of the portable
network graphics (png) format, adding support for animated images.
Address book sync client design
e for the sync component is the following: mozilla ui ab sync logic mork ab database sync protocol encoding sync protocol decoding http "post" api mozilla
networking client side sync logic the client synchronization logic defers to the server peforming some intelligence in handling duplicate entries for the sync process.
nsIMsgCloudFileProvider
constant value description offlineerr 0x80550014 returned when it appears that there is no active
network connection.
Index
your extension will be hosted on mozilla's mirror
network.
MailNews fakeserver
the server itself is found in mailnews/test/fakeserver/maild.js and was largely based off of the httpd fakeserver from
network code.
MailNews Protocols
a protocol object that takes a url and handles the
network communications with the actual server required to run that url.
Add to iPhoto
getservice(components.interfaces.nsiproperties) .get("tmpd", components.interfaces.nsifile); dest.append(filename); dest.createunique(dest.normal_file_type, 0600); var wbp = components.classes['@mozilla.org/embedding/browser/nswebbrowserpersist;1'] .createinstance(components.interfaces.nsiwebbrowserpersist); var ios = components.classes['@mozilla.org/
network/io-service;1'] .getservice(components.interfaces.nsiioservice); var uri = ios.newuri(src, document.characterset, gbrowser.selectedbrowser.contentdocument.documenturiobject); wbp.persistflags &= ~components.interfaces.nsiwebbrowserpersist.persist_flags_no_conversion; // don't save gzipped wbp.saveuri(uri, null, null, null, null, dest); return dest.path; } this is pretty str...
Plug-in Basics - Plugins
with the plug-in api, you can create dynamically loaded plug-ins that can: register one or more mime types draw into a part of a browser window receive keyboard and mouse events obtain data from the
network using urls post data to urls add hyperlinks or hotspots that link to new urls draw into sections on an html page communicate with javascript/dom from native code you can see which plug-ins are installed on your system and have been properly associated with the browser by consulting the installed plug-ins page.
URLs - Plugins
this is the way that plug-ins provide hyperlinks to other documents or retrieve data from the
network.
Accessibility Inspector - Firefox Developer Tools
this means trying your best to not lock anyone out of accessing information because of any disability they may have, or any other personal circumstances such as the device they are using, the speed of their
network connection, or their geographic location or locale.
Browser Console - Firefox Developer Tools
so it logs the same sorts of information as the web console -
network requests, javascript, css, and security errors and warnings, and messages explicitly logged by javascript code.
Browser Toolbox - Firefox Developer Tools
altogether you will have access to the following developer tools: debugger (note: if you want to debug a specific add-on that is restartless or sdk-based then try the add-on debugger.) console style editor performance
network monitor page inspector accessibility inspector you can debug chrome: and about: pages using the normal debugger, just as if they were ordinary content pages.
All keyboard shortcuts - Firefox Developer Tools
or f12 open web console 1 ctrl + shift + k cmd + opt + k ctrl + shift + k toggle "pick an element from the page" (opens the toolbox and/or focus the inspector tab) ctrl + shift + c cmd + opt + c ctrl + shift + c open style editor shift + f7 shift + f7 * shift + f7 open profiler shift + f5 shift + f5 * shift + f5 open
network monitor 2 ctrl + shift + e cmd + opt + e ctrl + shift + e toggle responsive design mode ctrl + shift + m cmd + opt + m ctrl + shift + m open browser console ctrl + shift + j cmd + shift + j ctrl + shift + j open browser toolbox ctrl + alt + shift + i cmd + opt + shift + i ctrl + alt + shift + i open scratchpad shift + f4 ...
Debugging Firefox Desktop - Firefox Developer Tools
if you want to debug a firefox instance from an external machine, you can change this option, but only do this on a trusted
network or set a strong firewall rule to lock down which machines can access it.
Settings - Firefox Developer Tools
there's just one of these: enable persistent logs a setting to control whether or not the web console and
network monitor clear their output when you navigate to a new page.
Toolbox - Firefox Developer Tools
the array may include the following tools: web console javascript debugger page inspector style editor profiler
network monitor note that not all the hosted tools are always listed here: only the tools actually available in this context are shown (for example, not all tools support remote debugging yet, so if the debugging target is not the firefox instance that launched the window, not all the hosted tools will be shown).
Web Console - Firefox Developer Tools
the web console: logs information associated with a web page:
network requests, javascript, css, security errors and warnings as well as error, warning and informational messages explicitly logged by javascript code running in the page context enables you to interact with a web page by executing javascript expressions in the context of the page user interface of the web console parts of the web console ui.
AddressErrors - Web APIs
let supportedhandlers = [ { supportedmethods: "basic-card", data: { supported
networks: ["visa", "mastercard", "amex", "discover"], supportedtypes: ["credit", "debit"] } } ]; let defaultpaymentdetails = { total: {label: 'donation', amount: {currency: 'usd', value: '65.00'}}, displayitems: [ { label: 'original donation amount', amount: {currency: 'usd', value: '65.00'} } ], shippingoptions: [ { id: 'standard', label: 'standar...
AnalyserNode.getFloatFrequencyData() - Web APIs
audioele.src = 'my-audio.mp3';//insert file name here audioele.autoplay = true; audioele.preload = 'auto'; const audiosourcenode = audioctx.createmediaelementsource(audioele); //create analyser node const analysernode = audioctx.createanalyser(); analysernode.fftsize = 256; const bufferlength = analysernode.frequencybincount; const dataarray = new float32array(bufferlength); //set up audio node
network audiosourcenode.connect(analysernode); analysernode.connect(audioctx.destination); //create 2d canvas const canvas = document.createelement('canvas'); canvas.style.position = 'absolute'; canvas.style.top = 0; canvas.style.left = 0; canvas.width = window.innerwidth; canvas.height = window.innerheight; document.body.appendchild(canvas); const canvasctx = canvas.getcontext('2d'); canvasctx.clearrec...
BasicCardResponse - Web APIs
var supportedinstruments = [{ supportedmethods: 'basic-card', data: { supported
networks: ['visa', 'mastercard', 'amex', 'jcb', 'diners', 'discover', 'mir', 'unionpay'], supportedtypes: ['credit', 'debit'] } }]; var details = { total: {label: 'donation', amount: {currency: 'usd', value: '65.00'}}, displayitems: [ { label: 'original donation amount', amount: {currency: 'usd', value: '65.00'} } ], shippingoptions: [ { ...
Clients.claim() - Web APIs
be aware that this results in your service worker controlling pages that loaded regularly over the
network, or possibly via a different service worker.
console - Web APIs
note: it's important to note that if you're using this to log the timing for
network traffic, the timer will report the total time for the transaction, while the time listed in the
network panel is just the amount of time required for the header.
FetchEvent.navigationPreload - Web APIs
addeventlistener('fetch', event => { event.respondwith(async function() { // respond from the cache if we can const cachedresponse = await caches.match(event.request); if (cachedresponse) return cachedresponse; // else, use the preloaded response, if it's there const response = await event.preloadresponse; if (response) return response; // else try the
network.
HTMLImageElement.loading - Web APIs
example the addimagetolist() function shown below adds a photo thumbnail to a list of items, using lazy-loading to avoid loading the image from the
network until it's actually needed.
HTMLMediaElement - Web APIs
htmlmediaelement.
networkstate read only returns a unsigned short (enumeration) indicating the current state of fetching the media over the
network.
Ajax navigation example - Web APIs
501: "not implemented", 502: "bad gateway", 503: "service unavailable", 504: "gateway timeout", 505: "http version not supported", 506: "variant also negotiates (experimental)", 507: "insufficient storage", 508: "loop detected", 509: "unassigned", 510: "not extended", 511: "
network authentication required" }; var oreq, bisloading = false, bupdateurl = false; oloadingbox.id = "ajax-loader"; ocover.onclick = abortreq; oloadingimg.src = "data:image/gif;base64,r0lgodlheaaqapiaap///waaamlcwkjcqgaaagjiyokcgpkskih/c05fvfndqvbfmi4waweaaaah/hpdcmvhdgvkihdpdgggywphegxvywquaw5mbwah+qqjcgaaacwaaaaaeaaqaaadmwi63p4wyklre2mioggznadomgyjrbexwroumcg2lmdewn...
Basic concepts - Web APIs
because it lets you create web applications with rich query abilities regardless of
network availability, these applications can work both online and offline.
Locks.name - Web APIs
for example, if only one tab of a web application should be synchronizing
network resources with an offline database, it could use a lock name such as "net_db_sync".
MediaError.code - Web APIs
media_err_
network 2 some kind of
network error occurred which prevented the media from being successfully fetched, despite having previously been available.
MediaError.message - Web APIs
the error handler looks like this: audioelement.onerror = function() { let s = ""; let err = audioelement.error; switch(err.code) { case mediaerror.media_err_aborted: s += "the user canceled the audio."; break; case mediaerror.media_err_
network: s+= "a
network error occurred while fetching the audio."; break; case mediaerror.media_err_decode: s+= "an error occurred while decoding the audio."; break; case mediaerror.media_err_src_not_supported: s+= "the audio is missing or is in a format not supported by your browser."; break; default: s += "an unknown error occurr...
MediaError - Web APIs
media_err_
network 2 some kind of
network error occurred which prevented the media from being successfully fetched, despite having previously been available.
MediaStreamTrack.stop() - Web APIs
syntax track.stop() description calling stop() tells the user agent that the track's source—whatever that source may be, including files,
network streams, or a local camera or microphone—is no longer needed by the mediastreamtrack.
MediaStreamTrack - Web APIs
mute sent to the mediastreamtrack when the value of the muted property is changed to true, indicating that the track is unable to provide data temporarily (such as when the
network is experiencing a service malfunction).
MediaTrackConstraints.latency - Web APIs
latency is always prone to some variation due to hardware usage demands,
network constraints, and so forth, so even in an "exact" match, some variation should be expected.
Media Source API - Web APIs
dash moves lots of logic out of the
network protocol and into the client side application logic, using the simpler http protocol to fetch files.
Media Capture and Streams API (Media Stream) - Web APIs
a non-local mediastream may be representing to a media element, like <video> or <audio>, a stream originating over the
network, and obtained via the webrtc rtcpeerconnection api, or a stream created using the web audio api mediastreamaudiosourcenode.
NavigationPreloadManager - Web APIs
addeventlistener('fetch', event => { event.respondwith(async function() { // respond from the cache if we can const cachedresponse = await caches.match(event.request); if (cachedresponse) return cachedresponse; // else, use the preloaded response, if it's there const response = await event.preloadresponse; if (response) return response; // else try the
network.
Page Visibility API - Web APIs
tabs running code that's using real-time
network connections (websockets and webrtc) go unthrottled in order to avoid closing these connections timing out and getting unexpectedly closed.
PaymentRequest.PaymentRequest() - Web APIs
var supportedinstruments = [{ supportedmethods: 'basic-card', data: { supported
networks: ['visa', 'mastercard', 'amex', 'jcb', 'diners', 'discover', 'mir', 'unionpay'] } }]; var details = { total: {label: 'donation', amount: {currency: 'usd', value: '65.00'}}, displayitems: [ { label: 'original donation amount', amount: {currency: 'usd', value: '65.00'} } ], shippingoptions: [ { id: 'standard', label: 'standard sh...
Using the Payment Request API - Web APIs
stance like so: var request = new paymentrequest(buildsupportedpaymentmethoddata(), buildshoppingcartdetails()); the functions invoked inside the constructor simply return the required object parameters: function buildsupportedpaymentmethoddata() { // example supported payment methods: return [{ supportedmethods: 'basic-card', data: { supported
networks: ['visa', 'mastercard'], supportedtypes: ['debit', 'credit'] } }]; } function buildshoppingcartdetails() { // hardcoded for demo purposes: return { id: 'order-123', displayitems: [ { label: 'example item', amount: {currency: 'usd', value: '1.00'} } ], total: { label: 'total', amount: {currency: 'usd', value: '1.00'} } ...
PerformanceTiming.connectEnd - Web APIs
the legacy performancetiming.connectend read-only property returns an unsigned long long representing the moment, in miliseconds since the unix epoch, where the connection is opened
network.
PerformanceTiming.connectStart - Web APIs
the legacy performancetiming.connectstart read-only property returns an unsigned long long representing the moment, in miliseconds since the unix epoch, where the request to open a connection is sent to the
network.
Performance API - Web APIs
performanceresourcetiming provides methods and properties for retrieving and analyzing detailed
network timing data regarding the loading of an application's resources.
RTCConfiguration.iceServers - Web APIs
while it can be useful to provide a second server as a fallback in case the first is offline, listing too many servers can delay the user's connection being established, depending on the
network's performance and how many servers get used for negotiation before a connection is established.
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.
RTCDataChannel.bufferedAmount - Web APIs
this only includes data buffered by the user agent itself; it doesn't include any framing overhead or buffering done by the operating system or
network hardware.
RTCDataChannel.onerror - Web APIs
let pc = new rtcpeerconnection(); let dc = pc.createdatachannel("playercontrol"); dc.onerror = function(event) { myuilibrary.doalertbox({ '
network error', // alert title 'the error "' + event.message + '" occurred while handling player control
network messages.', event.filename, event.lineno, event.colno }); } /* ...
RTCDataChannel.readyState - Web APIs
constant description "connecting" the user agent (browser) is in the process of creating the underlying data transport; that is, whatever
network level connection is used to link the two peers together is in the process of being set up.
RTCDataChannel - Web APIs
the rtcdatachannel interface represents a
network channel which can be used for bidirectional peer-to-peer transfers of arbitrary data.
RTCError - Web APIs
receivedalert read only an unsigned long integer value indicating the fatal dtls error which was received from the
network.
RTCErrorEvent.error - Web APIs
receivedalert read only an unsigned long integer value indicating the fatal dtls error which was received from the
network.
Response - Web APIs
response.error() returns a new response object associated with a
network error.
ServiceWorkerContainer - Web APIs
the serviceworkercontainer interface of the service worker api provides an object representing the service worker as an overall unit in the
network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.
SpeechSynthesisErrorEvent.error - Web APIs
ation couldn't be completed at this time because the user-agent couldn't access the audio output device (for example, the user may need to correct this by closing another application.) audio-hardware the operation couldn't be completed at this time because the user-agent couldn't identify an audio output device (for example, the user may need to connect a speaker or configure system settings.)
network the operation couldn't be completed at this time because some required
network communication failed.
SubtleCrypto.wrapKey() - Web APIs
wrapping a key helps protect it in untrusted environments, such as inside an otherwise unprotected data store or in transmission over an unprotected
network.
URL API - Web APIs
also covered are definitions of various terms related to addressing of computers on a
network, and the algorithms for parsing ip addresses and dom addresses are specified.
VideoPlaybackQuality.corruptedVideoFrames - Web APIs
example this example determines the percentage of frames which have been corrupted, and if the value is greater than 5%, calls a funciton called downgradevideo() that would be implemented to switch to a different video that might tax the
network less.
Compressed texture formats - Web APIs
note that this advantage doesn't translate to
network bandwidth: while the formats are better than uncompressed data, they are in general far worse than standard image formats such as png and jpg.
High-level guides - Web APIs
webrtc (web real-time communications) is a broad, multi-component system for setting up and operating complex audio, video, and data channels across
networks among two or more peers on the web.
Using DTMF with WebRTC - Web APIs
note: this example is obviously somewhat contrived, since normally the two rtcpeerconnection objects would exist on different devices, and signaling would be done over the
network instead of it all being simply linked up inline as it is here.
WebSocket.bufferedAmount - Web APIs
the websocket.bufferedamount read-only property returns the number of bytes of data that have been queued using calls to send() but not yet transmitted to the
network.
Fundamentals of WebXR - Web APIs
higher-powered solutions typically offload application execution and graphics processing to an external device such as a desktop computer, and are either tethered to the computer using a cable or use a wireless
network to receive the imagery to display to the user.
Inputs and input sources - Web APIs
most commonly, these inputs are from keyboards and mice, but you could also use non-xr gamepad devices,
network inputs, or other sources of data to simulate user controls.
Migrating from webkitAudioContext - Web APIs
the example below shows old code which downloads an audio file over the
network, and then decoded it using createbuffer(): var xhr = new xmlhttprequest(); xhr.open("get", "/path/to/audio.ogg", true); xhr.responsetype = "arraybuffer"; xhr.send(); xhr.onload = function() { var decodedbuffer = context.createbuffer(xhr.response, false); if (decodedbuffer) { // decoding was successful, do something useful with the audio buffer } else { alert("decoding the audio buf...
Web Authentication API - Web APIs
this proves to the server that a user is in possession of the private key required for authentication without revealing any secrets over the
network.
Web Locks API - Web APIs
for example, if a web app running in multiple tabs wants to ensure that only one tab is syncing data between the
network and indexed db, each tab could try to acquire a "my_net_db_sync" lock, but only one tab will succeed (the leader election pattern.) the api is used as follows: the lock is requested.
Worker() - Web APIs
a
networkerror is raised if the mime type of the worker script is incorrect.
Worker - Web APIs
workers may use xmlhttprequest for
network communication, but its responsexml and channel attributes are always null.
WorkerNavigator - Web APIs
workernavigator.connectionread only provides a
networkinformation object containing information about the
network connection of a device.
Sending and Receiving Binary Data - Web APIs
var stream = components.classes["@mozilla.org/
network/file-input-stream;1"] .createinstance(components.interfaces.nsifileinputstream); stream.init(file, 0x04 | 0x08, 0644, 0x04); // file is an nsifile instance // try to determine the mime type of the file var mimetype = "text\/plain"; try { var mimeservice = components.classes["@mozilla.org/mime;1"] .getservice(components.interfaces.nsimimeservice); mimetype = m...
ARIA: application role - Accessibility
examples some prominent web applications that use the application role properly are: google docs, sheets and slides ckeditor and tinymce wysiwyg web editors, like the one used on the mozilla developer
network some parts of gmail accessibility concerns improperly using the application role can unintentionally take away access from information on a web page, so be very mindful of using it.
content - CSS: Cascading Style Sheets
html <ul> <li><a id="moz" href="http://www.mozilla.org/"> mozilla home page</a></li> <li><a id="mdn" href="https://developer.mozilla.org/"> mozilla developer
network</a></li> </ul> css a { text-decoration: none; border-bottom: 3px dotted navy; } a::after { content: " (" attr(id) ")"; } #moz::before { content: url("https://mozorg.cdn.mozilla.net/media/img/favicon.ico"); } #mdn::before { content: url("https://mdn.mozillademos.org/files/7691/mdn-favicon16.png"); } li { margin: 1em; } result element replacement this example replaces an ele...
font-style - CSS: Cascading Style Sheets
html <header> <input type="range" id="slant" name="slant" min="-90" max="90" /> <label for="slant">slant</label> </header> <div class="container"> <p class="sample">...it would not be wonderful to meet a megalosaurus, forty feet long or so, waddling like an elephantine lizard up holborn hill.</p> </div> css /* amstelvaralpha-vf is created by david berlow (https://github.com/type
network/amstelvar) and is used here under the terms of its license: https://github.com/type
network/amstelvar/blob/master/ofl.txt */ @font-face { src: url('https://mdn.mozillademos.org/files/16044/amstelvaralpha-vf.ttf'); font-family:'amstelvaralpha'; font-style: normal; } label { font: 1rem monospace; } .container { max-height: 150px; overflow: scroll; } .sample { font: 2rem 'amstelvara...
Guide to Web APIs - Developer guides
al management apiddomeencoding apiencrypted media extensionsffetch apifile system api frame timing apifullscreen apiggamepad api geolocation apihhtml drag and drop apihigh resolution timehistory apiiimage capture apiindexeddbintersection observer apillong tasks api mmedia capabilities api media capture and streamsmedia session apimedia source extensions mediastream recordingnnavigation timing
network information api ppage visibility apipayment request apiperformance apiperformance timeline apipermissions apipointer eventspointer lock apiproximity events push api rresize observer apiresource timing apisserver sent eventsservice workers apistoragestorage access apistreams ttouch eventsuurl apivvibration apivisual viewport wweb animationsweb audio apiweb authentication apiweb crypto apiweb ...
Index - Developer guides
however, a way of representing characters in terms of bytes (character encoding) is used for transferring text over the
network to the browser.
Developer guides
however, a way of representing characters in terms of bytes (character encoding) is used for transferring text over the
network to the browser.
HTTP authentication - HTTP
security of basic authentication as the user id and password are passed over the
network as clear text (it is base64 encoded, but base64 is a reversible encoding), the basic authentication scheme is not secure.
Choosing between www and non-www URLs - HTTP
this includes always linking to the chosen domain (which shouldn't be hard if you're using relative urls in your website) and always sharing links (by email/social
networks, etc.) to the same domain.
Evolution of HTTP - HTTP
during the same time, the need for an encrypted transport layer raised: the web left the relative trustiness of a mostly academic
network, to a jungle where advertisers, random individuals or criminals compete to get as much private information about people, try to impersonate them or even to replace data transmitted by altered ones.
Common MIME types - HTTP
ndocument spreadsheet document application/vnd.oasis.opendocument.spreadsheet .odt opendocument text document application/vnd.oasis.opendocument.text .oga ogg audio audio/ogg .ogv ogg video video/ogg .ogx ogg application/ogg .opus opus audio audio/opus .otf opentype font font/otf .png portable
network graphics image/png .pdf adobe portable document format (pdf) application/pdf .php hypertext preprocessor (personal home page) application/x-httpd-php .ppt microsoft powerpoint application/vnd.ms-powerpoint .pptx microsoft powerpoint (openxml) application/vnd.openxmlformats-officedocument.presentationml.presentation .rar ra...
List of default Accept values - HTTP
user agent value comment firefox text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 (since firefox 66) text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 (in firefox 65) text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 (before) in firefox 65 and earlier, this value can be modified using the
network.http.accept.default parameter.
Alt-Svc - HTTP
persist=1optional usually cached alternative service entries are cleared on
network configuration changes.
Cache-Control - HTTP
only-if-cached set by the client to indicate "do not use the
network" for the response.
Connection - HTTP
the connection general header controls whether or not the
network connection stays open after the current transaction finishes.
CSP: child-src - HTTP
for workers, non-compliant requests are treated as fatal
network errors by the user agent.
CSP: prefetch-src - HTTP
example prefetch resources do not match header given a page with the following content security policy: content-security-policy: prefetch-src https://example.com/ fetches for the following code will return
network errors, as the urls provided do not match prefetch-src's source list: <link rel="prefetch" src="https://example.org/"></link> <link rel="prerender" src="https://example.org/"></link> specification specification status comment content security policy level 3the definition of 'prefetch-src' in that specification.
CSP: upgrade-insecure-requests - HTTP
<img src="http://example.com/image.png"> <img src="http://not-example.com/image.png"> these urls will be rewritten before the request is made, meaning that no insecure requests will hit the
network.
Trailer - HTTP
http/1.1 200 ok content-type: text/plain transfer-encoding: chunked trailer: expires 7\r\n mozilla\r\n 9\r\n developer\r\n 7\r\n
network\r\n 0\r\n expires: wed, 21 oct 2015 07:28:00 gmt\r\n \r\n specifications specification title rfc 7230, section 4.4: trailer hypertext transfer protocol (http/1.1): message syntax and routing rfc 7230, section 4.1.2: chunked trailer part hypertext transfer protocol (http/1.1): message syntax and routing ...
Transfer-Encoding - HTTP
a chunked response looks like this: http/1.1 200 ok content-type: text/plain transfer-encoding: chunked 7\r\n mozilla\r\n 9\r\n developer\r\n 7\r\n
network\r\n 0\r\n \r\n specifications specification title rfc 7230, section 3.3.1: transfer-encoding hypertext transfer protocol (http/1.1): message syntax and routing ...
User-Agent - HTTP
the user-agent request header is a characteristic string that lets servers and
network peers identify the application, operating system, vendor, and/or version of the requesting user agent.
Warning - HTTP
112 disconnected operation the cache is disconnected from the rest of the
network.
Proxy Auto-Configuration (PAC) file - HTTP
73), you can disable this by setting pachttpsurlstrippingenabled to false in policy or by launching with the --unsafe-pac-url command-line flag (in chrome 74, only the flag works, and from 75 onward, there is no way to disable path-stripping; as of chrome 81, path-stripping does not apply to http urls, but there is interest in changing this behavior to match https); in firefox, the preference is
network.proxy.autoconfig_url.include_path.
304 Not Modified - HTTP
many developer tools'
network panels of browsers create extraneous requests leading to 304 responses, so that access to the local cache is visible to developers.
502 Bad Gateway - HTTP
note: a gateway might refer to different things in
networking and a 502 error is usually not something you can fix, but requires a fix by the web server or the proxies you are trying to get access through.
504 Gateway Timeout - HTTP
note: a gateway might refer to different things in
networking and a 504 error is usually not something you can fix, but requires a fix by the web server or the proxies you are trying to get access through.
HTTP
firefox developer tools
network monitor mozilla observatory a project designed to help developers, system administrators, and security professionals configure their sites safely and securely.
String.prototype.link() - JavaScript
examples using link() the following example displays the word "mdn" as a hypertext link that returns the user to the mozilla developer
network.
background_color - Web app manifests
note: the background_color member is only meant to improve the user experience while the main stylesheet is loading from the
network or the storage media; it is not used by the user agent as the background-color css property when the progressive web app stylesheet is available.
Autoplay guide for media and Web Audio APIs - Web media technologies
o true, and when autoplay is true, the media will automatically begin to play as soon as possible after the following have occurred: the page is allowed to use autoplay functionality the element has been created during page load enough media has been received to begin playback and continue to play through to the end of the media without interruption, assuming there are no dramatic changes in
network performance or bandwidth.