mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Hide nonstandard interface members of standard interfaces behind appropriate prefs.
This commit is contained in:
parent
cb5bad63dc
commit
a03fc5e2fd
4 changed files with 6 additions and 6 deletions
|
@ -137,22 +137,22 @@ interface BrowserElementPrivileged {
|
||||||
// unsigned long modifiers);
|
// unsigned long modifiers);
|
||||||
|
|
||||||
[Throws,
|
[Throws,
|
||||||
Pref="dom.mozBrowserFramesEnabled",
|
Pref="dom.mozbrowser.enabled",
|
||||||
CheckAnyPermissions="browser"]
|
CheckAnyPermissions="browser"]
|
||||||
void goBack();
|
void goBack();
|
||||||
|
|
||||||
[Throws,
|
[Throws,
|
||||||
Pref="dom.mozBrowserFramesEnabled",
|
Pref="dom.mozbrowser.enabled",
|
||||||
CheckAnyPermissions="browser"]
|
CheckAnyPermissions="browser"]
|
||||||
void goForward();
|
void goForward();
|
||||||
|
|
||||||
[Throws,
|
[Throws,
|
||||||
Pref="dom.mozBrowserFramesEnabled",
|
Pref="dom.mozbrowser.enabled",
|
||||||
CheckAnyPermissions="browser"]
|
CheckAnyPermissions="browser"]
|
||||||
void reload(optional boolean hardReload = false);
|
void reload(optional boolean hardReload = false);
|
||||||
|
|
||||||
[Throws,
|
[Throws,
|
||||||
Pref="dom.mozBrowserFramesEnabled",
|
Pref="dom.mozbrowser.enabled",
|
||||||
CheckAnyPermissions="browser"]
|
CheckAnyPermissions="browser"]
|
||||||
void stop();
|
void stop();
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ partial interface HTMLIFrameElement {
|
||||||
};
|
};
|
||||||
|
|
||||||
partial interface HTMLIFrameElement {
|
partial interface HTMLIFrameElement {
|
||||||
[ChromeOnly,SetterThrows]
|
[ChromeOnly,SetterThrows,Pref="dom.mozbrowser.enabled"]
|
||||||
attribute boolean mozbrowser;
|
attribute boolean mozbrowser;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@ interface MouseEvent : UIEvent {
|
||||||
//readonly attribute unsigned short buttons;
|
//readonly attribute unsigned short buttons;
|
||||||
//boolean getModifierState (DOMString keyArg);
|
//boolean getModifierState (DOMString keyArg);
|
||||||
|
|
||||||
|
[Pref="dom.mouseevent.which.enabled"]
|
||||||
readonly attribute long which;
|
readonly attribute long which;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,6 @@ var ecmaGlobals = [
|
||||||
"Float32Array",
|
"Float32Array",
|
||||||
"Float64Array",
|
"Float64Array",
|
||||||
"FocusEvent",
|
"FocusEvent",
|
||||||
"ForceTouchEvent",
|
|
||||||
"Function",
|
"Function",
|
||||||
"Infinity",
|
"Infinity",
|
||||||
"Int16Array",
|
"Int16Array",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue