Bug 1626600 - added check for readyState in nsContextMenu to see if PiP should display r=mtigley,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D102864
This commit is contained in:
@@ -853,7 +853,8 @@ class nsContextMenu {
|
||||
"media.videocontrols.picture-in-picture.enabled"
|
||||
) &&
|
||||
this.onVideo &&
|
||||
!this.target.ownerDocument.fullscreen;
|
||||
!this.target.ownerDocument.fullscreen &&
|
||||
this.target.readyState > 0;
|
||||
this.showItem("context-video-pictureinpicture", shouldDisplay);
|
||||
}
|
||||
this.showItem("context-media-eme-learnmore", this.onDRMMedia);
|
||||
|
||||
Reference in New Issue
Block a user