Search completed in 1.28 seconds.
14 results for "networkerror":
The Publicity Stream API
Mozilla › Tech › The Publicity Stream API
ity Streams open specification. onsuccess is a callback that will be invoked with no arguments if the activity is successfully posted. onerror is an error callback that will be invoked if the publicity fails. 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. missing required properties) Finally, the publicizeActivity() function will throw an exception if required arguments are missing, or if unsupported arguments are present. getPublicityStream( onsucce...
...called with a single argument: a json list of the current user's socially relevant app activity in the FIXME: deadLinkActivity Streams open specification. onerror is an error callback that will be invoked if the installation fails. 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. If null or an empty list is passed, events for all apps are returned. since The timestamp of the earliest event you want returned. If not s...
Source map errors - Firefox Developer Tools
Tools › Debugger › Source map errors
ON.parse: unexpected character at line 1 column 1 of the JSON data Error: "version" is a required argument Original source missing An original source may be missing. You may encounter this when trying to open one of the original sources in the debugger. 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. See Bug 1437937: WebExtensions Doesn't Find Source Maps for details. Source-Map-Fehler: TypeError: NetworkError when attempting to fetch resource. Ressourcen-Adresse: moz-extension://c7f0f003-4fcf-49fd-8ec0-c49361266581/background.js Source-Map-Adresse: background.js.map The only work...
DOMError - Web APIs
Web › API › DOMError
ttern. InvalidModificationError The object can not be modified in this way. NamespaceError The operation is not allowed by Namespaces in XML InvalidAccessError The object does not support the operation or argument. TypeMismatchError The type of the object does not match the expected type. SecurityError The operation is insecure. NetworkError A network error occurred. AbortError The operation was aborted. URLMismatchError The given URL does not match another URL. QuotaExceededError The quota has been exceeded. TimeoutError The operation timed out. InvalidNodeTypeError The node is incorrect or has an incorrect ancestor for this operation. DataCloneError The obje...
DOMException - Web APIs
Web › API › DOMException
t name: INVALID_ACCESS_ERR) TypeMismatchError The type of the object does not match the expected type. (Legacy code value: 17 and legacy constant name: TYPE_MISMATCH_ERR) This value is deprecated; the JavaScript TypeError exception is now raised instead of a DOMException with this value. SecurityError The operation is insecure. (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. (Legacy code value: 20 and legacy constant name: ABORT_ERR) URLMismatchError The given URL does not match another URL. (Legacy code value: 21 and legacy constant name: URL_MISMATCH_ERR) QuotaExceededError The quota has been exceeded. (Legacy code value: 22 a...
FetchEvent.respondWith() - Web APIs
Web › API › FetchEvent › respondWith
ion. This means sites can still provide an "alternate" view of a web page when offline without changing the user-visible URL. Syntax fetchEvent.respondWith( // Promise that resolves to a Response. ); Parameters A Response or a Promise that resolves to a Response. Otherwise, a network error is returned to Fetch. Return value undefined. Exceptions Exception Notes NetworkError A network error is triggered on certain combinations of FetchEvent.request.mode and Response.type values, as hinted at in the "global rules" listed above. InvalidStateError The event has not been dispatched or respondWithWith() has already been invoked. Examples This fetch event tries to return a response from the cache API, falling back to the network otherwise. addEvent...
FontFace.load - Web APIs
Web › API › FontFace › load
) method of the FontFace interface loads a font based on current object's constructor-passed requirements, including a location or source buffer, and returns a Promise that resolves with the current FontFace object. Syntax var promise = FontFace.load(); Parameters None. 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. Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'load' in that specification. Working Draft Initial definition. ...
NDEFWriter.write() - Web APIs
Web › API › NDEFWriter › write
owedError The permission for this operation was rejected or overwrite is false and there are already records on the tag. NotSupportedError There is no NFC adapter compatible with Web NFC, or the available NFC adapter does not support pushing messages, or connection can not be established. NotReadableError The UA is not allowed to access underlying NFC adapter (e.g., due to user preference). NetworkError Transfer failed after it already started (e.g., the tag was removed from the reader). Specifications Specification Status Comment Web NFC, write() Draft Initial definition. ...
RTCDataChannel.close() - Web APIs
Web › API › RTCDataChannel › close
round task is established to handle the remainder of the steps below, and close() returns to the caller. The transport layer deals with any buffered messages; the protocol layer decides whether to send them or discard them. The underlying data transport is closed. The RTCDataChannel.readyState property is set to "closed". If the transport was closed with an error, the RTCDataChannel is sent a NetworkError event. A close event is sent to the channel. In Firefox, the RTCDataChannel interface was implemented under the name DataChannel until Firefox 24, so this method was called DataChannel.close(). Syntax RTCDataChannel.close(); Parameters None. Return value undefined. Example var pc = new RTCPeerConnection(); var dc = pc.createDataChannel("my channel"); dc.onmessage = function (event)...
RTCDataChannel.send() - Web APIs
Web › API › RTCDataChannel › send
the connection. This may be a USVString, a Blob, an ArrayBuffer, or an ArrayBufferView. Return value undefined. Exceptions InvalidStateError Since the data channel uses a separate transport channel from the media content, it must establish its own connection; if it hasn't finished doing so (that is, its readyState is "connecting"), this error occurs without sending or buffering the data. NetworkError The specified data would need to be buffered, and there isn't room for it in the buffer. In this scenario, the underlying transport is immediately closed. TypeError The specified data is too large for the other peer to receive. Since there are multiple techniques for breaking up large data into smaller pieces for transfer, it's possible to encounter scenarios in which the other peer does not s...
SharedWorker() - Web APIs
Web › API › SharedWorker › SharedWorker
required). name: A DOMString specifying an identifying name for the SharedWorkerGlobalScope representing the scope of the worker, which is mainly useful for debugging purposes. Return value The created worker. Exceptions A SecurityError is raised if the document is not allowed to start workers, for example if the URL has an invalid syntax or if the same-origin policy is violated. A NetworkError is raised if the MIME type of the worker script is incorrect. It should always be text/javascript. A SyntaxError is raised if aURL cannot be parsed. Examples The following code snippet shows creation of a SharedWorker object using the SharedWorker() constructor and subsequent usage of the object: var myWorker = new SharedWorker('worker.js'); myWorker.port.start(); first.onchange = function...
Worker() - Web APIs
Web › API › Worker › Worker
he default used is omit (no credentials required). name: A DOMString specifying an identifying name for the DedicatedWorkerGlobalScope representing the scope of the worker, which is mainly useful for debugging purposes. Exceptions A SecurityError is raised if the document is not allowed to start workers, e.g. if the URL has an invalid syntax or if the same-origin policy is violated. A NetworkError is raised if the MIME type of the worker script is incorrect. It should always be text/javascript. A SyntaxError is raised if aURL cannot be parsed. Examples The following code snippet shows creation of a Worker object using the Worker() constructor and subsequent usage of the object: var myWorker = new Worker('worker.js'); first.onchange = function() { myWorker.postMessage([first.value,s...
WorkerGlobalScope.importScripts() - Web APIs
Web › API › WorkerGlobalScope › importScripts
The importScripts() method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker's scope. Syntax self.importScripts('foo.js'); self.importScripts('foo.js', 'bar.js', ...); Parameters A comma-separated list of DOMString objects representing the scripts to be imported. These paths are relative to html document base URL. Return value None. Exceptions NetworkError Imported scripts were not served with a valid JavaScript MIME type (i.e. text/javascript). Example If you had some functionality written in a separate script called foo.js that you wanted to use inside worker.js, you could import it using the following line: importScripts('foo.js'); importScripts() and self.importScripts() are effectively equivalent -- both represent importScripts() being c...
How to check the security state of an XMLHTTPRequest over SSL - Web APIs
Web › API › XMLHttpRequest › How to check the secruity state of an XMLHTTPRequest over SSL
On mozilla-central we want a proper TCPError that ideally // sub-classes DOMError. Bug 867872 has been filed to implement this and // contains a documented TCPError.webidl that maps all the error codes we use in // this file to slightly more readable explanations. ...
XMLHttpRequest.send() - Web APIs
Web › API › XMLHttpRequest › send
lue is specified for the body, a default value of null is used. The best way to send binary content (e.g. in file uploads) is by using an ArrayBufferView or Blob in conjunction with the send() method. Return value undefined. Exceptions Exception Description InvalidStateError send() has already been invoked for the request, and/or the request is complete. NetworkError The resource type to be fetched is a Blob, and the method is not GET. Example: GET var xhr = new XMLHttpRequest(); xhr.open('GET', '/server', true); xhr.onload = function () { // Request finished. Do processing here. }; xhr.send(null); // xhr.send('string'); // xhr.send(new Blob()); // xhr.send(new Int8Array()); // xhr.send(document); Example: POST var xhr = new XMLHttpRequest()...