diff options
Diffstat (limited to 'webbrowser/base')
-rw-r--r-- | webbrowser/base/content/browser-context.inc | 10 | ||||
-rw-r--r-- | webbrowser/base/content/nsContextMenu.js | 2 |
2 files changed, 9 insertions, 3 deletions
diff --git a/webbrowser/base/content/browser-context.inc b/webbrowser/base/content/browser-context.inc index 38c4725..c53440e 100644 --- a/webbrowser/base/content/browser-context.inc +++ b/webbrowser/base/content/browser-context.inc @@ -1,7 +1,4 @@ # -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- -# 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/. <menuseparator id="page-menu-separator"/> <menuitem id="spell-no-suggestions" @@ -85,6 +82,13 @@ name="playbackrate" checked="true" oncommand="gContextMenu.mediaCommand('playbackRate', 1.0);"/> + <menuitem id="context-media-playbackrate-125x" + label="&mediaPlaybackRate125x.label;" + accesskey="&mediaPlaybackRate125x.accesskey;" + type="radio" + name="playbackrate" + checked="true" + oncommand="gContextMenu.mediaCommand('playbackRate', 1.25);"/> <menuitem id="context-media-playbackrate-150x" label="&mediaPlaybackRate150x.label;" accesskey="&mediaPlaybackRate150x.accesskey;" diff --git a/webbrowser/base/content/nsContextMenu.js b/webbrowser/base/content/nsContextMenu.js index 916dd26..1a8ee69 100644 --- a/webbrowser/base/content/nsContextMenu.js +++ b/webbrowser/base/content/nsContextMenu.js @@ -393,6 +393,7 @@ nsContextMenu.prototype = { if (onMedia) { this.setItemAttr("context-media-playbackrate-050x", "checked", this.target.playbackRate == 0.5); this.setItemAttr("context-media-playbackrate-100x", "checked", this.target.playbackRate == 1.0); + this.setItemAttr("context-media-playbackrate-100x", "checked", this.target.playbackRate == 1.25); this.setItemAttr("context-media-playbackrate-150x", "checked", this.target.playbackRate == 1.5); this.setItemAttr("context-media-playbackrate-200x", "checked", this.target.playbackRate == 2.0); this.setItemAttr("context-media-loop", "checked", this.target.loop); @@ -405,6 +406,7 @@ nsContextMenu.prototype = { this.setItemAttr("context-media-playbackrate", "disabled", hasError); this.setItemAttr("context-media-playbackrate-050x", "disabled", hasError); this.setItemAttr("context-media-playbackrate-100x", "disabled", hasError); + this.setItemAttr("context-media-playbackrate-125x", "disabled", hasError); this.setItemAttr("context-media-playbackrate-150x", "disabled", hasError); this.setItemAttr("context-media-playbackrate-200x", "disabled", hasError); this.setItemAttr("context-media-showcontrols", "disabled", hasError); |