mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
f579c98b65
- Bug 1195755: Don't assert recursion depth sanity on Mac, because there is none. r=me (e25096acc1) - Bug 1217940 - remove BindingUtils.h from CycleCollectedJSRuntime.cpp; r=mccr8 (012fad0b80) - Bug 1118285 - The browser.newtab.url preference is abused and should be removed. (ca573649c6) - Bug 1209591 - allow loadURI consumers to expose whether an error page was immediately loaded as result of an error, r=smaug,mak (c033d86f07) - Bug 1167132 - Part 14: [NetworkManager] Move network information into a separate interface (NetStats). r=ethan (87acc048cc) - Bug 1167132 - Part 15: [NetworkManager] Move network information into a separate interface (NetworkInterfaceList). r=echen (a2a96e481e) - Bug 1205240 - Add JSON Validation code in order to prevent invalid file. r=seanlin (8c7261ba8c) - Bug 1215429 - Add import statement in order to access file object in chrome code of TVSimulatorService. r=seanlin (5ba9e78581) - Bug 1217093 - Remove for-each from dom/. r=smaug (5af3efbd62) - var-let (576b2489ec) - Bug 1183440 - Replaces Promise.defer() with the Promise constructor in push tests. r=kitcambridge (16dfaa59b3) - Bug 1191453 - Drop subscriptions for a site when the user revokes push permissions. r=mt,MattN (5edd10e5ad) - Bug 1159641, Part 1 - Skip the permission check in `pushManager.getSubscription()`. r=mt (d399c496d7) - Bug 1159641, Part 2 - Use tasks in the Push permissions test. r=mt (132484c355) - Bug 1206302 - Use DOMException for Push errors. r=mt (5a675714fa) - Bug 1193365 - Disable push debug. r=kitcambridge (1dc20e69b0) - Bug 1219063, Part 1 - Use transactions for updating Push subscription permissions. r=mt (8c28453942) - Bug 1219063, Part 2 - Remove obsolete "push" permission. r=mt (84a36931cd) - Bug 1217065 - Unconditionally ack incoming updates. r=dragana,benbangert (e0bfa4454f) - Bug 1212593 - Fix PushService behavior when we are switching between push servers. r=kcambridge (0afa39e743) - Bug 1206163 - Retry failed register requests on reconnect. r=dragana (6ed1258b15) - Bug 1218591 - Reset the WebSocket retry counter when the server replies. r=dragana (64e800db60) - Bug 1210943 - Drop subscriptions unconditionally if the UAID changes. r=benbangert (52f538a7de) - Bug 1214366 - Part 1: Don't preprocess PushServiceWebSocket.jsm. r=kitcambridge (a78b9fc838) - Bug 1214366 - Part 3: Use getLastVisited equivalent in PushService.jsm. r=kitcambridge,rnewman (bc7004ad32) - Bug 1210896, Part 1 - Use Console.jsm to log Push errors. r=mt (04335cc37f) - Bug 1216683 - For the WebSocket version unregister should return true even if we are offline. r=kitcambridge (0f6e397a03) - Bug 1210896, Part 2 - Use JS errors to reject internal Push promises. r=mt (3546b2f7c8) - Bug 1223481 - Use the "potentially trustworthy origin" helper to validate Push server URLs. r=dragana (0c21f551f3) - Bug 1223202 - Only send subscription change events if the Push permission is granted. r=mt (afeaf0dceb) - Bug 1201128 - Don't send channel IDs in the Push handshake. r=nsm (dbbadb5c16) - var-let (a35cb6aeca) - Bug 1210211 - Part 1: Delay updating push quota. r=kitcambridge (53f5735ff0) - Bug 1210211 - Part 2: Notify Push service of visible notifications. r=baku (9182bcb7d1) - Bug 1170115 - Use clear-origin-data to remove Push records. r=allstars.chh (47f1070bab) - Bug 1211418 - Part 1: Ensure Data Consistency after Collision of SMS Segment. r=echen. (f2d5221984) - Bug 1211418 - Part 2: Add Test Coverage for the Collision of SMS Segment. r=echen. (06f7ba7308) - Bug 1159132 - Part 1: Use dun apn only when config ro.tethering.dun_required is set. r=echen (bbb4fd2798) - Bug 1159132 - Part 2: Set ro.tethering.dun_required when running dun test case. r=echen (11fe9344be) - Bug 1187262 - Let the flag 'Services.io.offline' reference the state of tethering. r=jjong (ee22fd9358) - Bug 1148671 - ipv6 and dual stack support on Lollipop. r=hchang (a9f7dc570e) - Bug 1173671 - just warn if we fail to remove old default routes. r=echen (b4ab24da9f) - Bug 1175817 - [NetworkManager] remove old default routes explicitly. r=echen,smaug (3f9a0b98ab) - Bug 1174998 - Part 1: add setMtu() support in NetworkService. r=echen,smaug (9621036470) - Bug 1174998 - Part 2: Set MTU for connected network interfaces. r=echen (397c898942) - Bug 1197667 - [NetworkManager] Part 1: add missing implementation for 'allNetworkInfo'. r=echen (a49fd3498b) - Bug 1197667 - [NetworkManager] Part 2: add test case for 'allNetworkInfo'. r=echen (942a52b0d4) - Bug 1057091 - Add USB tethring command supporting IPv6 outgoing interface. r=hchang (9210eb5a1d) - Bug 1177236 - Usage alert doesn't work when tethering is enabled. r=ethan (4bdd8ae226) - Bug 1168938 - Memory safety bug in NetworkUtils::postTetherInterfaceList. r=fabrice (97485ac95c) - Bug 1138757 - Part 1: Fix the logic of checking invalid port in CDMA WAP Push. r=echen (68dac00e52) - Bug 1138757 - Part 2: Add Test Coverage for CDMA Wap Push. r=echen (9d54278aa9) - Bug 1209891 - Do Not Reply Read-Report if a MMS Message Was Marked from Unread to Read Multiple Times. r=echen (421550db06) - var-let (2ed380bb64) - bug 1175005: performance regression. backout_f081c464c1e2 (28e1ee74b9) - Bug 1207665 - Block Intel GMA 3150 for d3d11/d2d on all drivers. (bug 1207665 part 1, r=jrmuizel). r=jrmuizel (bb8eac6fa8) - Bug 1188105: Parse bad driver versions. r=botond (8c856cac36) - Bug 1075089 - Move popup menu frame offset to LookAndFeel and fix default offset for OS X. r=Enn (e1f7d0c418) - Bug 1134385. Delete main thread assertion in CompositorVsyncDispatcher. r=kats (0945e91185) - some profiler stuff (d3d68abdad) - Bug 1156283 - Avoid shutdown observer race when shutting down gfx on Mac. r=roc (f66195546b)
359 lines
13 KiB
Plaintext
359 lines
13 KiB
Plaintext
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
interface nsIDOMDocument;
|
|
interface nsIInputStream;
|
|
interface nsISHistory;
|
|
interface nsIURI;
|
|
|
|
/**
|
|
* The nsIWebNavigation interface defines an interface for navigating the web.
|
|
* It provides methods and attributes to direct an object to navigate to a new
|
|
* location, stop or restart an in process load, or determine where the object
|
|
* has previously gone.
|
|
*/
|
|
[scriptable, uuid(3ade79d4-8cb9-4952-b18d-4f9b63ca0d31)]
|
|
interface nsIWebNavigation : nsISupports
|
|
{
|
|
/**
|
|
* Indicates if the object can go back. If true this indicates that
|
|
* there is back session history available for navigation.
|
|
*/
|
|
readonly attribute boolean canGoBack;
|
|
|
|
/**
|
|
* Indicates if the object can go forward. If true this indicates that
|
|
* there is forward session history available for navigation
|
|
*/
|
|
readonly attribute boolean canGoForward;
|
|
|
|
/**
|
|
* Tells the object to navigate to the previous session history item. When a
|
|
* page is loaded from session history, all content is loaded from the cache
|
|
* (if available) and page state (such as form values and scroll position) is
|
|
* restored.
|
|
*
|
|
* @throw NS_ERROR_UNEXPECTED
|
|
* Indicates that the call was unexpected at this time, which implies
|
|
* that canGoBack is false.
|
|
*/
|
|
void goBack();
|
|
|
|
/**
|
|
* Tells the object to navigate to the next session history item. When a
|
|
* page is loaded from session history, all content is loaded from the cache
|
|
* (if available) and page state (such as form values and scroll position) is
|
|
* restored.
|
|
*
|
|
* @throw NS_ERROR_UNEXPECTED
|
|
* Indicates that the call was unexpected at this time, which implies
|
|
* that canGoForward is false.
|
|
*/
|
|
void goForward();
|
|
|
|
/**
|
|
* Tells the object to navigate to the session history item at a given index.
|
|
*
|
|
* @throw NS_ERROR_UNEXPECTED
|
|
* Indicates that the call was unexpected at this time, which implies
|
|
* that session history entry at the given index does not exist.
|
|
*/
|
|
void gotoIndex(in long index);
|
|
|
|
/****************************************************************************
|
|
* The following flags may be bitwise combined to form the load flags
|
|
* parameter passed to either the loadURI or reload method. Some of these
|
|
* flags are only applicable to loadURI.
|
|
*/
|
|
|
|
/**
|
|
* This flags defines the range of bits that may be specified. Flags
|
|
* outside this range may be used, but may not be passed to Reload().
|
|
*/
|
|
const unsigned long LOAD_FLAGS_MASK = 0xffff;
|
|
|
|
/**
|
|
* This is the default value for the load flags parameter.
|
|
*/
|
|
const unsigned long LOAD_FLAGS_NONE = 0x0000;
|
|
|
|
/**
|
|
* Flags 0x1, 0x2, 0x4, 0x8 are reserved for internal use by
|
|
* nsIWebNavigation implementations for now.
|
|
*/
|
|
|
|
/**
|
|
* This flag specifies that the load should have the semantics of an HTML
|
|
* Meta-refresh tag (i.e., that the cache should be bypassed). This flag
|
|
* is only applicable to loadURI.
|
|
* XXX the meaning of this flag is poorly defined.
|
|
* XXX no one uses this, so we should probably deprecate and remove it.
|
|
*/
|
|
const unsigned long LOAD_FLAGS_IS_REFRESH = 0x0010;
|
|
|
|
/**
|
|
* This flag specifies that the load should have the semantics of a link
|
|
* click. This flag is only applicable to loadURI.
|
|
* XXX the meaning of this flag is poorly defined.
|
|
*/
|
|
const unsigned long LOAD_FLAGS_IS_LINK = 0x0020;
|
|
|
|
/**
|
|
* This flag specifies that history should not be updated. This flag is only
|
|
* applicable to loadURI.
|
|
*/
|
|
const unsigned long LOAD_FLAGS_BYPASS_HISTORY = 0x0040;
|
|
|
|
/**
|
|
* This flag specifies that any existing history entry should be replaced.
|
|
* This flag is only applicable to loadURI.
|
|
*/
|
|
const unsigned long LOAD_FLAGS_REPLACE_HISTORY = 0x0080;
|
|
|
|
/**
|
|
* This flag specifies that the local web cache should be bypassed, but an
|
|
* intermediate proxy cache could still be used to satisfy the load.
|
|
*/
|
|
const unsigned long LOAD_FLAGS_BYPASS_CACHE = 0x0100;
|
|
|
|
/**
|
|
* This flag specifies that any intermediate proxy caches should be bypassed
|
|
* (i.e., that the content should be loaded from the origin server).
|
|
*/
|
|
const unsigned long LOAD_FLAGS_BYPASS_PROXY = 0x0200;
|
|
|
|
/**
|
|
* This flag specifies that a reload was triggered as a result of detecting
|
|
* an incorrect character encoding while parsing a previously loaded
|
|
* document.
|
|
*/
|
|
const unsigned long LOAD_FLAGS_CHARSET_CHANGE = 0x0400;
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
const unsigned long LOAD_FLAGS_STOP_CONTENT = 0x0800;
|
|
|
|
/**
|
|
* A hint this load was prompted by an external program: take care!
|
|
*/
|
|
const unsigned long LOAD_FLAGS_FROM_EXTERNAL = 0x1000;
|
|
|
|
/**
|
|
This flag is set when a user explicitly disables the Mixed Content
|
|
Blocker, and allows Mixed Content to load on an https page.
|
|
*/
|
|
const unsigned long LOAD_FLAGS_ALLOW_MIXED_CONTENT = 0x2000;
|
|
|
|
/**
|
|
* This flag specifies that this is the first load in this object.
|
|
* Set with care, since setting incorrectly can cause us to assume that
|
|
* nothing was actually loaded in this object if the load ends up being
|
|
* handled by an external application. This flag must not be passed to
|
|
* Reload.
|
|
*/
|
|
const unsigned long LOAD_FLAGS_FIRST_LOAD = 0x4000;
|
|
|
|
/**
|
|
* This flag specifies that the load should not be subject to popup
|
|
* blocking checks. This flag must not be passed to Reload.
|
|
*/
|
|
const unsigned long LOAD_FLAGS_ALLOW_POPUPS = 0x8000;
|
|
|
|
/**
|
|
* This flag specifies that the URI classifier should not be checked for
|
|
* this load. This flag must not be passed to Reload.
|
|
*/
|
|
const unsigned long LOAD_FLAGS_BYPASS_CLASSIFIER = 0x10000;
|
|
|
|
/**
|
|
* Force relevant cookies to be sent with this load even if normally they
|
|
* wouldn't be.
|
|
*/
|
|
const unsigned long LOAD_FLAGS_FORCE_ALLOW_COOKIES = 0x20000;
|
|
|
|
/**
|
|
* Prevent the owner principal from being inherited for this load.
|
|
*/
|
|
const unsigned long LOAD_FLAGS_DISALLOW_INHERIT_OWNER = 0x40000;
|
|
|
|
/**
|
|
* Overwrite the returned error code with a specific result code
|
|
* when an error page is displayed.
|
|
*/
|
|
const unsigned long LOAD_FLAGS_ERROR_LOAD_CHANGES_RV = 0x80000;
|
|
|
|
/**
|
|
* This flag specifies that the URI may be submitted to a third-party
|
|
* server for correction. This should only be applied to non-sensitive
|
|
* URIs entered by users. This flag must not be passed to Reload.
|
|
*/
|
|
const unsigned long LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP = 0x100000;
|
|
|
|
/**
|
|
* This flag specifies that common scheme typos should be corrected.
|
|
*/
|
|
const unsigned long LOAD_FLAGS_FIXUP_SCHEME_TYPOS = 0x200000;
|
|
|
|
/**
|
|
* Loads a given URI. This will give priority to loading the requested URI
|
|
* in the object implementing this interface. If it can't be loaded here
|
|
* however, the URI dispatcher will go through its normal process of content
|
|
* loading.
|
|
*
|
|
* @param aURI
|
|
* The URI string to load. For HTTP and FTP URLs and possibly others,
|
|
* characters above U+007F will be converted to UTF-8 and then URL-
|
|
* escaped per the rules of RFC 2396.
|
|
* @param aLoadFlags
|
|
* Flags modifying load behaviour. This parameter is a bitwise
|
|
* combination of the load flags defined above. (Undefined bits are
|
|
* reserved for future use.) Generally you will pass LOAD_FLAGS_NONE
|
|
* for this parameter.
|
|
* @param aReferrer
|
|
* The referring URI. If this argument is null, then the referring
|
|
* URI will be inferred internally.
|
|
* @param aPostData
|
|
* If the URI corresponds to a HTTP request, then this stream is
|
|
* appended directly to the HTTP request headers. It may be prefixed
|
|
* with additional HTTP headers. This stream must contain a "\r\n"
|
|
* sequence separating any HTTP headers from the HTTP request body.
|
|
* This parameter is optional and may be null.
|
|
* @param aHeaders
|
|
* If the URI corresponds to a HTTP request, then any HTTP headers
|
|
* contained in this stream are set on the HTTP request. The HTTP
|
|
* header stream is formatted as:
|
|
* ( HEADER "\r\n" )*
|
|
* This parameter is optional and may be null.
|
|
*/
|
|
void loadURI(in wstring aURI,
|
|
in unsigned long aLoadFlags,
|
|
in nsIURI aReferrer,
|
|
in nsIInputStream aPostData,
|
|
in nsIInputStream aHeaders);
|
|
|
|
/**
|
|
* Loads a given URI. This will give priority to loading the requested URI
|
|
* in the object implementing this interface. If it can't be loaded here
|
|
* however, the URI dispatcher will go through its normal process of content
|
|
* loading.
|
|
*
|
|
* Behaves like loadURI, but allows passing of additional parameters.
|
|
*
|
|
* @param aURI
|
|
* The URI string to load. For HTTP and FTP URLs and possibly others,
|
|
* characters above U+007F will be converted to UTF-8 and then URL-
|
|
* escaped per the rules of RFC 2396.
|
|
* @param aLoadFlags
|
|
* Flags modifying load behaviour. This parameter is a bitwise
|
|
* combination of the load flags defined above. (Undefined bits are
|
|
* reserved for future use.) Generally you will pass LOAD_FLAGS_NONE
|
|
* for this parameter.
|
|
* @param aReferrer
|
|
* The referring URI. If this argument is null, then the referring
|
|
* URI will be inferred internally.
|
|
* @param aReferrerPolicy
|
|
* One of the REFERRER_POLICY_* constants from nsIHttpChannel.
|
|
* Normal case is REFERRER_POLICY_DEFAULT.
|
|
* @param aPostData
|
|
* If the URI corresponds to a HTTP request, then this stream is
|
|
* appended directly to the HTTP request headers. It may be prefixed
|
|
* with additional HTTP headers. This stream must contain a "\r\n"
|
|
* sequence separating any HTTP headers from the HTTP request body.
|
|
* This parameter is optional and may be null.
|
|
* @param aHeaders
|
|
* If the URI corresponds to a HTTP request, then any HTTP headers
|
|
* contained in this stream are set on the HTTP request. The HTTP
|
|
* header stream is formatted as:
|
|
* ( HEADER "\r\n" )*
|
|
* This parameter is optional and may be null.
|
|
* @param aBaseURI
|
|
* Set to indicate a base URI to be associated with the load. Note
|
|
* that at present this argument is only used with view-source aURIs
|
|
* and cannot be used to resolve aURI.
|
|
* This parameter is optional and may be null.
|
|
*/
|
|
void loadURIWithOptions(in wstring aURI,
|
|
in unsigned long aLoadFlags,
|
|
in nsIURI aReferrer,
|
|
in unsigned long aReferrerPolicy,
|
|
in nsIInputStream aPostData,
|
|
in nsIInputStream aHeaders,
|
|
in nsIURI aBaseURI);
|
|
|
|
/**
|
|
* Tells the Object to reload the current page. There may be cases where the
|
|
* user will be asked to confirm the reload (for example, when it is
|
|
* determined that the request is non-idempotent).
|
|
*
|
|
* @param aReloadFlags
|
|
* Flags modifying load behaviour. This parameter is a bitwise
|
|
* combination of the Load Flags defined above. (Undefined bits are
|
|
* reserved for future use.) Generally you will pass LOAD_FLAGS_NONE
|
|
* for this parameter.
|
|
*
|
|
* @throw NS_BINDING_ABORTED
|
|
* Indicating that the user canceled the reload.
|
|
*/
|
|
void reload(in unsigned long aReloadFlags);
|
|
|
|
/****************************************************************************
|
|
* The following flags may be passed as the stop flags parameter to the stop
|
|
* method defined on this interface.
|
|
*/
|
|
|
|
/**
|
|
* This flag specifies that all network activity should be stopped. This
|
|
* includes both active network loads and pending META-refreshes.
|
|
*/
|
|
const unsigned long STOP_NETWORK = 0x01;
|
|
|
|
/**
|
|
* This flag specifies that all content activity should be stopped. This
|
|
* includes animated images, plugins and pending Javascript timeouts.
|
|
*/
|
|
const unsigned long STOP_CONTENT = 0x02;
|
|
|
|
/**
|
|
* This flag specifies that all activity should be stopped.
|
|
*/
|
|
const unsigned long STOP_ALL = 0x03;
|
|
|
|
/**
|
|
* Stops a load of a URI.
|
|
*
|
|
* @param aStopFlags
|
|
* This parameter is one of the stop flags defined above.
|
|
*/
|
|
void stop(in unsigned long aStopFlags);
|
|
|
|
/**
|
|
* Retrieves the current DOM document for the frame, or lazily creates a
|
|
* blank document if there is none. This attribute never returns null except
|
|
* for unexpected error situations.
|
|
*/
|
|
readonly attribute nsIDOMDocument document;
|
|
|
|
/**
|
|
* The currently loaded URI or null.
|
|
*/
|
|
readonly attribute nsIURI currentURI;
|
|
|
|
/**
|
|
* The referring URI for the currently loaded URI or null.
|
|
*/
|
|
readonly attribute nsIURI referringURI;
|
|
|
|
/**
|
|
* The session history object used by this web navigation instance.
|
|
*/
|
|
attribute nsISHistory sessionHistory;
|
|
};
|