[tbb-commits] [Git][tpo/applications/tor-browser][tor-browser-115.0esrbase-13.0-1] Bug 33955: When copying an image only copy the image contents to the clipboard

richard (@richard) git at gitlab.torproject.org
Wed Jul 12 22:20:45 UTC 2023



richard pushed to branch tor-browser-115.0esrbase-13.0-1 at The Tor Project / Applications / Tor Browser


Commits:
1fde2e0f by cypherpunks1 at 2023-07-12T22:20:31+00:00
Bug 33955: When copying an image only copy the image contents to the clipboard

- - - - -


2 changed files:

- browser/base/content/browser-context.inc
- dom/base/nsCopySupport.cpp


Changes:

=====================================
browser/base/content/browser-context.inc
=====================================
@@ -219,7 +219,7 @@
 #ifdef CONTEXT_COPY_IMAGE_CONTENTS
       <menuitem id="context-copyimage-contents"
                 data-l10n-id="main-context-menu-image-copy"
-                oncommand="goDoCommand('cmd_copyImage');"/>
+                oncommand="goDoCommand('cmd_copyImageContents');"/>
 #endif
       <menuitem id="context-copyimage"
                 data-l10n-id="main-context-menu-image-copy-link"


=====================================
dom/base/nsCopySupport.cpp
=====================================
@@ -503,7 +503,7 @@ nsresult nsCopySupport::ImageCopy(nsIImageLoadingContent* aImageElement,
       trans->SetReferrerInfo(referrerInfo);
     }
 
-#ifdef XP_WIN
+#if defined(XP_WIN) && !defined(BASE_BROWSER_VERSION)
     rv = AppendImagePromise(trans, imgRequest, aImageElement);
     NS_ENSURE_SUCCESS(rv, rv);
 #endif



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/1fde2e0f989323cf203d2b96239707e13d529a78

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/1fde2e0f989323cf203d2b96239707e13d529a78
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20230712/87cc0da4/attachment-0001.htm>


More information about the tbb-commits mailing list