mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1205233 - Make Presentation API available for browser chrome code. r=smaug r=fabrice
This commit is contained in:
parent
913c915588
commit
a3d22d7624
@ -133,7 +133,6 @@ SpecialPowers.pushPermissions([
|
||||
{type: 'presentation', allow: true, context: document},
|
||||
], function() {
|
||||
SpecialPowers.pushPrefEnv({ 'set': [["dom.presentation.enabled", true],
|
||||
["dom.ignore_webidl_scope_checks", true],
|
||||
["dom.presentation.test.enabled", true],
|
||||
["dom.presentation.test.stage", 0]]},
|
||||
runTests);
|
||||
|
@ -171,7 +171,6 @@ SpecialPowers.pushPermissions([
|
||||
{type: 'browser', allow: true, context: document},
|
||||
], function() {
|
||||
SpecialPowers.pushPrefEnv({ 'set': [["dom.presentation.enabled", true],
|
||||
["dom.ignore_webidl_scope_checks", true],
|
||||
["dom.presentation.test.enabled", true],
|
||||
["dom.presentation.test.stage", 0],
|
||||
["dom.mozBrowserFramesEnabled", true],
|
||||
|
@ -99,7 +99,6 @@ SpecialPowers.pushPermissions([
|
||||
{type: 'presentation', allow: true, context: document},
|
||||
], function() {
|
||||
SpecialPowers.pushPrefEnv({ 'set': [["dom.presentation.enabled", true],
|
||||
["dom.ignore_webidl_scope_checks", true],
|
||||
["dom.presentation.test.enabled", true],
|
||||
["dom.presentation.test.stage", 0]]},
|
||||
runTests);
|
||||
|
@ -72,7 +72,6 @@ SpecialPowers.pushPermissions([
|
||||
{type: 'presentation', allow: true, context: document},
|
||||
], function() {
|
||||
SpecialPowers.pushPrefEnv({ 'set': [["dom.presentation.enabled", true],
|
||||
["dom.ignore_webidl_scope_checks", true],
|
||||
["dom.presentation.test.enabled", true],
|
||||
["dom.presentation.test.stage", 0],
|
||||
["presentation.receiver.loading.timeout", 10]]},
|
||||
|
@ -193,7 +193,6 @@ SpecialPowers.pushPermissions([
|
||||
{type: 'presentation', allow: true, context: document},
|
||||
], function() {
|
||||
SpecialPowers.pushPrefEnv({ 'set': [["dom.presentation.enabled", true],
|
||||
["dom.ignore_webidl_scope_checks", true],
|
||||
["dom.presentation.test.enabled", true],
|
||||
["dom.presentation.test.stage", 0]]},
|
||||
runTests);
|
||||
|
@ -139,7 +139,6 @@ SpecialPowers.pushPermissions([
|
||||
{type: 'presentation', allow: true, context: document},
|
||||
], function() {
|
||||
SpecialPowers.pushPrefEnv({ 'set': [["dom.presentation.enabled", true],
|
||||
["dom.ignore_webidl_scope_checks", true],
|
||||
["dom.presentation.test.enabled", true],
|
||||
["dom.presentation.test.stage", 0]]},
|
||||
runTests);
|
||||
|
@ -160,7 +160,6 @@ SpecialPowers.pushPermissions([
|
||||
{type: 'presentation', allow: true, context: document},
|
||||
], function() {
|
||||
SpecialPowers.pushPrefEnv({ 'set': [["dom.presentation.enabled", true],
|
||||
["dom.ignore_webidl_scope_checks", true],
|
||||
["dom.presentation.test.enabled", true],
|
||||
["dom.presentation.test.stage", 0]]},
|
||||
runTests);
|
||||
|
@ -252,7 +252,6 @@ SpecialPowers.pushPermissions([
|
||||
{type: 'presentation', allow: true, context: document},
|
||||
], function() {
|
||||
SpecialPowers.pushPrefEnv({ 'set': [["dom.presentation.enabled", true],
|
||||
["dom.ignore_webidl_scope_checks", true],
|
||||
["dom.presentation.test.enabled", true],
|
||||
["dom.presentation.test.stage", 0]]},
|
||||
runTests);
|
||||
|
@ -432,7 +432,7 @@ partial interface Navigator {
|
||||
};
|
||||
|
||||
partial interface Navigator {
|
||||
[Throws, Pref="dom.presentation.enabled", CheckAnyPermissions="presentation", AvailableIn="PrivilegedApps", SameObject]
|
||||
[Throws, Pref="dom.presentation.enabled", CheckAnyPermissions="presentation", SameObject]
|
||||
readonly attribute Presentation? presentation;
|
||||
};
|
||||
|
||||
|
@ -5,8 +5,7 @@
|
||||
*/
|
||||
|
||||
[Pref="dom.presentation.enabled",
|
||||
CheckAnyPermissions="presentation",
|
||||
AvailableIn="PrivilegedApps"]
|
||||
CheckAnyPermissions="presentation"]
|
||||
interface Presentation : EventTarget {
|
||||
/*
|
||||
* This should be used by the UA as the default presentation request for the
|
||||
|
@ -5,8 +5,7 @@
|
||||
*/
|
||||
|
||||
[Pref="dom.presentation.enabled",
|
||||
CheckAnyPermissions="presentation",
|
||||
AvailableIn="PrivilegedApps"]
|
||||
CheckAnyPermissions="presentation"]
|
||||
interface PresentationAvailability : EventTarget {
|
||||
/*
|
||||
* If there is at least one device discovered by UA, the value is |true|.
|
||||
|
@ -6,8 +6,7 @@
|
||||
|
||||
[Constructor(DOMString url),
|
||||
Pref="dom.presentation.enabled",
|
||||
CheckAnyPermissions="presentation",
|
||||
AvailableIn="PrivilegedApps"]
|
||||
CheckAnyPermissions="presentation"]
|
||||
interface PresentationRequest : EventTarget {
|
||||
/*
|
||||
* A requesting page use start() to start a new session, and the session will
|
||||
|
@ -18,8 +18,7 @@ enum PresentationSessionState
|
||||
};
|
||||
|
||||
[Pref="dom.presentation.enabled",
|
||||
CheckAnyPermissions="presentation",
|
||||
AvailableIn="PrivilegedApps"]
|
||||
CheckAnyPermissions="presentation"]
|
||||
interface PresentationSession : EventTarget {
|
||||
/*
|
||||
* Unique id for all existing sessions.
|
||||
|
@ -7,8 +7,7 @@
|
||||
[Constructor(DOMString type,
|
||||
optional PresentationSessionConnectEventInit eventInitDict),
|
||||
Pref="dom.presentation.enabled",
|
||||
CheckAnyPermissions="presentation",
|
||||
AvailableIn="PrivilegedApps"]
|
||||
CheckAnyPermissions="presentation"]
|
||||
interface PresentationSessionConnectEvent : Event
|
||||
{
|
||||
[SameObject]
|
||||
|
Loading…
Reference in New Issue
Block a user