Bug 1205233 - Make Presentation API available for browser chrome code. r=smaug r=fabrice

This commit is contained in:
Sean Lin 2015-09-21 10:27:19 +08:00
parent 913c915588
commit a3d22d7624
14 changed files with 6 additions and 19 deletions

View File

@ -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);

View File

@ -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],

View File

@ -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);

View File

@ -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]]},

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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;
};

View File

@ -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

View File

@ -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|.

View File

@ -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

View File

@ -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.

View File

@ -7,8 +7,7 @@
[Constructor(DOMString type,
optional PresentationSessionConnectEventInit eventInitDict),
Pref="dom.presentation.enabled",
CheckAnyPermissions="presentation",
AvailableIn="PrivilegedApps"]
CheckAnyPermissions="presentation"]
interface PresentationSessionConnectEvent : Event
{
[SameObject]