[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser/tor-browser-60.5.0esr-8.5-1] fixup! Bug 1487263 - set requesting principal for macOS drags, r=mstange



commit b6487d517d9982332f3bfad1f14b6e5ed9f77c53
Author: Georg Koppen <gk@xxxxxxxxxxxxxx>
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 =



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits