mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 12:20:56 +00:00
Bug 1517241 - Fix some Android / non-unified bustage.
CLOSED TREE
This commit is contained in:
parent
d2ed260822
commit
b98f7193d9
@ -9,6 +9,7 @@
|
||||
#include "mozilla/Preferences.h"
|
||||
#include "mozilla/TextEvents.h"
|
||||
#include "nsXULPopupManager.h"
|
||||
#include "nsIPermissionManager.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user