mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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);
|
||||
|
||||
[Throws,
|
||||
Pref="dom.mozBrowserFramesEnabled",
|
||||
Pref="dom.mozbrowser.enabled",
|
||||
CheckAnyPermissions="browser"]
|
||||
void goBack();
|
||||
|
||||
[Throws,
|
||||
Pref="dom.mozBrowserFramesEnabled",
|
||||
Pref="dom.mozbrowser.enabled",
|
||||
CheckAnyPermissions="browser"]
|
||||
void goForward();
|
||||
|
||||
[Throws,
|
||||
Pref="dom.mozBrowserFramesEnabled",
|
||||
Pref="dom.mozbrowser.enabled",
|
||||
CheckAnyPermissions="browser"]
|
||||
void reload(optional boolean hardReload = false);
|
||||
|
||||
[Throws,
|
||||
Pref="dom.mozBrowserFramesEnabled",
|
||||
Pref="dom.mozbrowser.enabled",
|
||||
CheckAnyPermissions="browser"]
|
||||
void stop();
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ partial interface HTMLIFrameElement {
|
|||
};
|
||||
|
||||
partial interface HTMLIFrameElement {
|
||||
[ChromeOnly,SetterThrows]
|
||||
[ChromeOnly,SetterThrows,Pref="dom.mozbrowser.enabled"]
|
||||
attribute boolean mozbrowser;
|
||||
};
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ interface MouseEvent : UIEvent {
|
|||
//readonly attribute unsigned short buttons;
|
||||
//boolean getModifierState (DOMString keyArg);
|
||||
|
||||
[Pref="dom.mouseevent.which.enabled"]
|
||||
readonly attribute long which;
|
||||
};
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@ var ecmaGlobals = [
|
|||
"Float32Array",
|
||||
"Float64Array",
|
||||
"FocusEvent",
|
||||
"ForceTouchEvent",
|
||||
"Function",
|
||||
"Infinity",
|
||||
"Int16Array",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue