Skip to content

Commit

Permalink
Merge pull request mozilla#4877 from yurydelendik/redircheck
Browse files Browse the repository at this point in the history
PdfRedirector checks if plugin is still in PlayPreview mode
  • Loading branch information
yurydelendik committed Jun 2, 2014
2 parents 3408921 + 75d9ae9 commit 250d394
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extensions/firefox/content/PdfRedirector.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ function getObjectUrl(window) {
}

// Checking if overlay is a proper PlayPreview overlay.
if (element.displayedType !== element.TYPE_NULL ||
element.pluginFallbackType !== element.PLUGIN_PLAY_PREVIEW) {
return null; // invalid plugin element overlay state
}
for (var i = 0; i < element.children.length; i++) {
if (element.children[i] === containerElement) {
return null; // invalid plugin element overlay
Expand Down

0 comments on commit 250d394

Please sign in to comment.