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:
Oliver Pope
2021-01-24 15:32:16 +00:00
parent 17557e5e10
commit 1f2edaaafb

View File

@@ -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);