Skip to content

Commit 250d394

Browse files
committed
Merge pull request #4877 from yurydelendik/redircheck
PdfRedirector checks if plugin is still in PlayPreview mode
2 parents 3408921 + 75d9ae9 commit 250d394

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

extensions/firefox/content/PdfRedirector.jsm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ function getObjectUrl(window) {
6060
}
6161

6262
// Checking if overlay is a proper PlayPreview overlay.
63+
if (element.displayedType !== element.TYPE_NULL ||
64+
element.pluginFallbackType !== element.PLUGIN_PLAY_PREVIEW) {
65+
return null; // invalid plugin element overlay state
66+
}
6367
for (var i = 0; i < element.children.length; i++) {
6468
if (element.children[i] === containerElement) {
6569
return null; // invalid plugin element overlay

0 commit comments

Comments
 (0)