[tbb-commits] [Git][tpo/applications/tor-browser][tor-browser-102.6.0esr-12.5-1] fixup! Bug 40209: Implement Basic Crypto Safety
Pier Angelo Vendrame (@pierov)
git at gitlab.torproject.org
Tue Jan 10 10:36:21 UTC 2023
Pier Angelo Vendrame pushed to branch tor-browser-102.6.0esr-12.5-1 at The Tor Project / Applications / Tor Browser
Commits:
221b7a49 by Henry Wilkes at 2023-01-10T10:21:09+00:00
fixup! Bug 40209: Implement Basic Crypto Safety
Bug 41539: Remove all whitespace from copied text before testing if it
looks like a crypto address.
- - - - -
1 changed file:
- browser/actors/CryptoSafetyChild.jsm
Changes:
=====================================
browser/actors/CryptoSafetyChild.jsm
=====================================
@@ -74,7 +74,7 @@ class CryptoSafetyChild extends JSWindowActorChild {
if (event.type == "copy" || event.type == "cut") {
this.contentWindow.navigator.clipboard.readText().then(clipText => {
- const selection = clipText.trim();
+ const selection = clipText.replace(/\s+/g, "");
if (looksLikeCryptoAddress(selection)) {
this.sendAsyncMessage("CryptoSafety:CopiedText", {
selection,
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/221b7a494351e853bae3aa4878573829e7f7015a
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/221b7a494351e853bae3aa4878573829e7f7015a
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/20230110/ad386863/attachment.htm>
More information about the tbb-commits
mailing list