зеркало из https://github.com/mozilla/gecko-dev.git
Bug 485288 - Ensure video context menu doesn't show when video's source children don't contain a resource. r=dolske a=blocking2.0
This commit is contained in:
Родитель
126937b6af
Коммит
39524be815
|
@ -404,7 +404,8 @@ nsContextMenu.prototype = {
|
|||
this.showItem("context-video-fullscreen", this.onVideo);
|
||||
// Disable them when there isn't a valid media source loaded.
|
||||
if (onMedia) {
|
||||
var hasError = (this.target.error != null);
|
||||
var hasError = this.target.error != null ||
|
||||
this.target.networkState == this.target.NETWORK_NO_SOURCE;
|
||||
this.setItemAttr("context-media-play", "disabled", hasError);
|
||||
this.setItemAttr("context-media-pause", "disabled", hasError);
|
||||
this.setItemAttr("context-media-mute", "disabled", hasError);
|
||||
|
|
|
@ -60,7 +60,6 @@ function runTests() {
|
|||
writeArgsOK = true;
|
||||
}
|
||||
ok(writeArgsOK, "mozWriteAudio args test failed.");
|
||||
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче