commit b6487d517d9982332f3bfad1f14b6e5ed9f77c53 Author: Georg Koppen gk@torproject.org Date: Fri Jan 25 10:56:09 2019 +0000
fixup! Bug 1487263 - set requesting principal for macOS drags, r=mstange --- widget/cocoa/nsDragService.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/widget/cocoa/nsDragService.mm b/widget/cocoa/nsDragService.mm index 47eacb5792a2..e712616b5b95 100644 --- a/widget/cocoa/nsDragService.mm +++ b/widget/cocoa/nsDragService.mm @@ -327,7 +327,8 @@ nsDragService::InvokeDragSessionImpl(nsIArray* aTransferableArray, }
// Assign a principal: - currentTransferable->SetRequestingPrincipal(mSourceNode->NodePrincipal()); + nsCOMPtr<nsINode> node = do_QueryInterface(mSourceNode); + currentTransferable->SetRequestingPrincipal(node->NodePrincipal());
// Transform the transferable to an NSDictionary NSDictionary* pasteboardOutputDict =