Bug 1517241 - Fix some Android / non-unified bustage.

CLOSED TREE
This commit is contained in:
Emilio Cobos Álvarez 2019-01-03 18:19:33 +01:00
parent d2ed260822
commit b98f7193d9
3 changed files with 4 additions and 3 deletions

View File

@ -9,6 +9,7 @@
#include "mozilla/Preferences.h"
#include "mozilla/TextEvents.h"
#include "nsXULPopupManager.h"
#include "nsIPermissionManager.h"
namespace mozilla {
namespace dom {

View File

@ -31,7 +31,7 @@ void nsDOMWindowList::EnsureFresh() {
nsCOMPtr<nsIWebNavigation> shellAsNav = do_QueryInterface(mDocShellNode);
if (shellAsNav) {
nsCOMPtr<Document> doc;
nsCOMPtr<dom::Document> doc;
shellAsNav->GetDocument(getter_AddRefs(doc));
if (doc) {

View File

@ -48,7 +48,7 @@ nsDataDocumentContentPolicy::ShouldLoad(nsIURI *aContentLocation,
*aDecision = nsIContentPolicy::ACCEPT;
// Look for the document. In most cases, requestingContext is a node.
nsCOMPtr<Document> doc;
nsCOMPtr<mozilla::dom::Document> doc;
nsCOMPtr<nsINode> node = do_QueryInterface(requestingContext);
if (node) {
doc = node->OwnerDoc();
@ -74,7 +74,7 @@ nsDataDocumentContentPolicy::ShouldLoad(nsIURI *aContentLocation,
}
}
Document *docToCheckForImage = doc->GetDisplayDocument();
mozilla::dom::Document *docToCheckForImage = doc->GetDisplayDocument();
if (!docToCheckForImage) {
docToCheckForImage = doc;
}