mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
moebius#187: DOM - nsIContentPolicy - context (document)
https://github.com/MoonchildProductions/moebius/pull/187
This commit is contained in:
parent
557c89de3c
commit
7f09dee539
6 changed files with 120 additions and 55 deletions
|
|
@ -20,6 +20,7 @@
|
|||
#include "nsIDOMElement.h"
|
||||
#include "nsIDOMNode.h"
|
||||
#include "nsIDOMWindow.h"
|
||||
#include "nsITabChild.h"
|
||||
#include "nsIContent.h"
|
||||
#include "nsILoadContext.h"
|
||||
#include "nsCOMArray.h"
|
||||
|
|
@ -89,8 +90,9 @@ nsContentPolicy::CheckPolicy(CPMethod policyMethod,
|
|||
{
|
||||
nsCOMPtr<nsIDOMNode> node(do_QueryInterface(requestingContext));
|
||||
nsCOMPtr<nsIDOMWindow> window(do_QueryInterface(requestingContext));
|
||||
NS_ASSERTION(!requestingContext || node || window,
|
||||
"Context should be a DOM node or a DOM window!");
|
||||
nsCOMPtr<nsITabChild> tabChild(do_QueryInterface(requestingContext));
|
||||
NS_ASSERTION(!requestingContext || node || window || tabChild,
|
||||
"Context should be a DOM node, DOM window or a tabChild!");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue