[tbb-commits] [tor-browser/tor-browser-60.5.0esr-8.5-1] fixup! Bug 1487263 - set requesting principal for macOS drags, r=mstange
gk at torproject.org
gk at torproject.org
Fri Jan 25 16:04:50 UTC 2019
commit b6487d517d9982332f3bfad1f14b6e5ed9f77c53
Author: Georg Koppen <gk at 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 =
More information about the tbb-commits
mailing list