2012-03-04 20:02:00 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim:set tw=80 expandtab softtabstop=2 ts=2 sw=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 "nsIDOMMozBrowserFrame.idl"
|
|
|
|
|
2019-04-09 23:59:37 +03:00
|
|
|
interface nsIRemoteTab;
|
2012-06-13 02:01:25 +04:00
|
|
|
|
2014-08-19 18:14:22 +04:00
|
|
|
[scriptable, builtinclass, uuid(0c0a862c-1a47-43c0-ae9e-d51835e3e1a6)]
|
2012-03-04 20:02:00 +04:00
|
|
|
interface nsIMozBrowserFrame : nsIDOMMozBrowserFrame
|
|
|
|
{
|
|
|
|
/**
|
2016-10-15 04:46:26 +03:00
|
|
|
* Gets whether this frame really is a browser frame.
|
2012-03-04 20:02:00 +04:00
|
|
|
*
|
|
|
|
* In order to really be a browser frame, this frame's
|
|
|
|
* nsIDOMMozBrowserFrame::mozbrowser attribute must be true, and the frame
|
|
|
|
* may have to pass various security checks.
|
|
|
|
*/
|
2016-10-15 04:46:26 +03:00
|
|
|
[infallible] readonly attribute boolean reallyIsBrowser;
|
2012-07-14 01:10:20 +04:00
|
|
|
|
2016-02-18 06:31:29 +03:00
|
|
|
/**
|
|
|
|
* Gets whether this frame is an isolated frame.
|
|
|
|
*
|
|
|
|
* By default, browser frames are isolated, meaning they have a principal
|
|
|
|
* where OriginAttributes.mIsInIsolatedMozBrowser == true. This isolates
|
|
|
|
* storage and other origin related items from non-browser apps, xul:browsers,
|
|
|
|
* etc.
|
|
|
|
*
|
|
|
|
* Isolation can be disabled by setting the frame's isolated attribute to
|
|
|
|
* false. Disabling isolation is only allowed if the containing document has
|
|
|
|
* browser permission (or equivalent access).
|
|
|
|
*/
|
|
|
|
[infallible] readonly attribute boolean isolated;
|
|
|
|
|
2015-02-09 10:04:18 +03:00
|
|
|
/**
|
2016-09-09 00:00:12 +03:00
|
|
|
* Initialize the API, and add frame message listener that supports API
|
2015-02-09 10:04:18 +03:00
|
|
|
* invocations.
|
|
|
|
*/
|
|
|
|
[noscript] void initializeBrowserAPI();
|
2016-09-09 00:00:12 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Notify frame scripts that support the API to destroy.
|
|
|
|
*/
|
|
|
|
[noscript] void destroyBrowserFrameScripts();
|
2012-03-04 20:02:00 +04:00
|
|
|
};
|