зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset d8df7fcffeb1 (bug 862399) for browser_contextmenu.js failures.
This commit is contained in:
Родитель
022c1216ae
Коммит
5439a41bbd
|
@ -130,7 +130,7 @@
|
|||
label="&mediaUnmute.label;"
|
||||
accesskey="&mediaUnmute.accesskey;"
|
||||
oncommand="gContextMenu.mediaCommand('unmute');"/>
|
||||
<menu id="context-media-playbackrate" label="&mediaPlaybackRate2.label;" accesskey="&mediaPlaybackRate2.accesskey;">
|
||||
<menu id="context-media-playbackrate" label="&mediaPlaybackRate.label;" accesskey="&mediaPlaybackRate.accesskey;">
|
||||
<menupopup>
|
||||
<menuitem id="context-media-playbackrate-050x"
|
||||
label="&mediaPlaybackRate050x2.label;"
|
||||
|
@ -165,11 +165,6 @@
|
|||
oncommand="gContextMenu.mediaCommand('playbackRate', 2.0);"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
<menuitem id="context-media-loop"
|
||||
label="&mediaLoop.label;"
|
||||
accesskey="&mediaLoop.accesskey;"
|
||||
type="checkbox"
|
||||
oncommand="gContextMenu.mediaCommand('loop');"/>
|
||||
<menuitem id="context-media-showcontrols"
|
||||
label="&mediaShowControls.label;"
|
||||
accesskey="&mediaShowControls.accesskey;"
|
||||
|
|
|
@ -710,9 +710,6 @@ addMessageListener("ContextMenu:MediaCommand", (message) => {
|
|||
case "pause":
|
||||
media.pause();
|
||||
break;
|
||||
case "loop":
|
||||
media.loop = !media.loop;
|
||||
break;
|
||||
case "mute":
|
||||
media.muted = true;
|
||||
break;
|
||||
|
|
|
@ -470,7 +470,6 @@ nsContextMenu.prototype = {
|
|||
this.showItem("context-media-mute", onMedia && !this.target.muted);
|
||||
this.showItem("context-media-unmute", onMedia && this.target.muted);
|
||||
this.showItem("context-media-playbackrate", onMedia);
|
||||
this.showItem("context-media-loop", onMedia);
|
||||
this.showItem("context-media-showcontrols", onMedia && !this.target.controls);
|
||||
this.showItem("context-media-hidecontrols", this.target.controls && (this.onVideo || (this.onAudio && !this.inSyntheticDoc)));
|
||||
this.showItem("context-video-fullscreen", this.onVideo && this.target.ownerDocument.fullscreenElement == null);
|
||||
|
@ -487,7 +486,6 @@ nsContextMenu.prototype = {
|
|||
this.setItemAttr("context-media-playbackrate-125x", "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);
|
||||
var hasError = this.target.error != null ||
|
||||
this.target.networkState == this.target.NETWORK_NO_SOURCE;
|
||||
this.setItemAttr("context-media-play", "disabled", hasError);
|
||||
|
|
|
@ -564,8 +564,8 @@ items are mutually exclusive. -->
|
|||
<!ENTITY mediaMute.accesskey "M">
|
||||
<!ENTITY mediaUnmute.label "Unmute">
|
||||
<!ENTITY mediaUnmute.accesskey "m">
|
||||
<!ENTITY mediaPlaybackRate2.label "Play Speed">
|
||||
<!ENTITY mediaPlaybackRate2.accesskey "d">
|
||||
<!ENTITY mediaPlaybackRate.label "Play Speed">
|
||||
<!ENTITY mediaPlaybackRate.accesskey "l">
|
||||
<!ENTITY mediaPlaybackRate050x2.label "Slow (0.5×)">
|
||||
<!ENTITY mediaPlaybackRate050x2.accesskey "S">
|
||||
<!ENTITY mediaPlaybackRate100x2.label "Normal">
|
||||
|
@ -579,8 +579,6 @@ movie "Space Balls" and is meant to say that this speed is very
|
|||
fast. -->
|
||||
<!ENTITY mediaPlaybackRate200x2.label "Ludicrous (2×)">
|
||||
<!ENTITY mediaPlaybackRate200x2.accesskey "L">
|
||||
<!ENTITY mediaLoop.label "Loop">
|
||||
<!ENTITY mediaLoop.accesskey "L">
|
||||
<!-- LOCALIZATION NOTE: The access keys for "Show Controls" and
|
||||
"Hide Controls" are the same because the two context-menu
|
||||
items are mutually exclusive. -->
|
||||
|
|
Загрузка…
Ссылка в новой задаче