summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webbrowser/base/content/browser-context.inc10
-rw-r--r--webbrowser/base/content/nsContextMenu.js2
-rw-r--r--webbrowser/locales/en-US/chrome/browser/browser.dtd2
3 files changed, 11 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);
diff --git a/webbrowser/locales/en-US/chrome/browser/browser.dtd b/webbrowser/locales/en-US/chrome/browser/browser.dtd
index c810b07..deaa7bf 100644
--- a/webbrowser/locales/en-US/chrome/browser/browser.dtd
+++ b/webbrowser/locales/en-US/chrome/browser/browser.dtd
@@ -423,6 +423,8 @@ items are mutually exclusive. -->
<!ENTITY mediaPlaybackRate050x.accesskey "S">
<!ENTITY mediaPlaybackRate100x.label "Normal Speed">
<!ENTITY mediaPlaybackRate100x.accesskey "N">
+<!ENTITY mediaPlaybackRate125x.label "Increased Speed (1.25x)">
+<!ENTITY mediaPlaybackRate125x.accesskey "I">
<!ENTITY mediaPlaybackRate150x.label "High Speed (1.5×)">
<!ENTITY mediaPlaybackRate150x.accesskey "H">
<!-- LOCALIZATION NOTE: "Ludicrous Speed" is a reference to the