ma1 pushed to branch mullvad-browser-115.16.0esr-13.5-1 at The Tor Project / Applications / Mullvad Browser
Commits:
f1b8976d by hackademix at 2024-10-17T22:23:03+02:00
fixup! Bug 42019: Empty browser's clipboard on browser shutdown
Bug 43209: Check if any data is available before trying to retrieve it from the clipboard.
- - - - -
1 changed file:
- browser/components/BrowserGlue.sys.mjs
Changes:
=====================================
browser/components/BrowserGlue.sys.mjs
=====================================
@@ -165,8 +165,17 @@ const ClipboardPrivacy = {
return trans;
},
_computeClipboardHash() {
+ const flavors = ["text/x-moz-url", "text/plain"];
+ if (
+ !Services.clipboard.hasDataMatchingFlavors(
+ flavors,
+ Ci.nsIClipboard.kGlobalClipboard
+ )
+ ) {
+ return null;
+ }
const trans = this._createTransferable();
- ["text/x-moz-url", "text/plain"].forEach(trans.addDataFlavor);
+ flavors.forEach(trans.addDataFlavor);
try {
Services.clipboard.getData(trans, Ci.nsIClipboard.kGlobalClipboard);
const clipboardContent = {};
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/f1b…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/f1b…
You're receiving this email because of your account on gitlab.torproject.org.
ma1 pushed to branch base-browser-115.16.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
91df6b5c by hackademix at 2024-10-17T22:22:55+02:00
fixup! Bug 42019: Empty browser's clipboard on browser shutdown
Bug 43209: Check if any data is available before trying to retrieve it from the clipboard.
- - - - -
1 changed file:
- browser/components/BrowserGlue.sys.mjs
Changes:
=====================================
browser/components/BrowserGlue.sys.mjs
=====================================
@@ -165,8 +165,17 @@ const ClipboardPrivacy = {
return trans;
},
_computeClipboardHash() {
+ const flavors = ["text/x-moz-url", "text/plain"];
+ if (
+ !Services.clipboard.hasDataMatchingFlavors(
+ flavors,
+ Ci.nsIClipboard.kGlobalClipboard
+ )
+ ) {
+ return null;
+ }
const trans = this._createTransferable();
- ["text/x-moz-url", "text/plain"].forEach(trans.addDataFlavor);
+ flavors.forEach(trans.addDataFlavor);
try {
Services.clipboard.getData(trans, Ci.nsIClipboard.kGlobalClipboard);
const clipboardContent = {};
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/91df6b5…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/91df6b5…
You're receiving this email because of your account on gitlab.torproject.org.
ma1 pushed to branch tor-browser-115.16.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
67f0b6ff by hackademix at 2024-10-17T22:22:46+02:00
fixup! Bug 42019: Empty browser's clipboard on browser shutdown
Bug 43209: Check if any data is available before trying to retrieve it from the clipboard.
- - - - -
1 changed file:
- browser/components/BrowserGlue.sys.mjs
Changes:
=====================================
browser/components/BrowserGlue.sys.mjs
=====================================
@@ -169,8 +169,17 @@ const ClipboardPrivacy = {
return trans;
},
_computeClipboardHash() {
+ const flavors = ["text/x-moz-url", "text/plain"];
+ if (
+ !Services.clipboard.hasDataMatchingFlavors(
+ flavors,
+ Ci.nsIClipboard.kGlobalClipboard
+ )
+ ) {
+ return null;
+ }
const trans = this._createTransferable();
- ["text/x-moz-url", "text/plain"].forEach(trans.addDataFlavor);
+ flavors.forEach(trans.addDataFlavor);
try {
Services.clipboard.getData(trans, Ci.nsIClipboard.kGlobalClipboard);
const clipboardContent = {};
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/67f0b6f…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/67f0b6f…
You're receiving this email because of your account on gitlab.torproject.org.
ma1 pushed to branch mullvad-browser-128.3.0esr-14.0-1 at The Tor Project / Applications / Mullvad Browser
Commits:
3fb297c3 by hackademix at 2024-10-17T22:22:09+02:00
fixup! Bug 42019: Empty browser's clipboard on browser shutdown
Bug 43209: Check if any data is available before trying to retrieve it from the clipboard.
- - - - -
1 changed file:
- browser/components/BrowserGlue.sys.mjs
Changes:
=====================================
browser/components/BrowserGlue.sys.mjs
=====================================
@@ -185,8 +185,17 @@ const ClipboardPrivacy = {
return trans;
},
_computeClipboardHash() {
+ const flavors = ["text/x-moz-url", "text/plain"];
+ if (
+ !Services.clipboard.hasDataMatchingFlavors(
+ flavors,
+ Ci.nsIClipboard.kGlobalClipboard
+ )
+ ) {
+ return null;
+ }
const trans = this._createTransferable();
- ["text/x-moz-url", "text/plain"].forEach(trans.addDataFlavor);
+ flavors.forEach(trans.addDataFlavor);
try {
Services.clipboard.getData(trans, Ci.nsIClipboard.kGlobalClipboard);
const clipboardContent = {};
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/3fb…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/3fb…
You're receiving this email because of your account on gitlab.torproject.org.
ma1 pushed to branch base-browser-128.3.0esr-14.0-1 at The Tor Project / Applications / Tor Browser
Commits:
e75a4f4e by hackademix at 2024-10-17T22:21:33+02:00
fixup! Bug 42019: Empty browser's clipboard on browser shutdown
Bug 43209: Check if any data is available before trying to retrieve it from the clipboard.
- - - - -
1 changed file:
- browser/components/BrowserGlue.sys.mjs
Changes:
=====================================
browser/components/BrowserGlue.sys.mjs
=====================================
@@ -185,8 +185,17 @@ const ClipboardPrivacy = {
return trans;
},
_computeClipboardHash() {
+ const flavors = ["text/x-moz-url", "text/plain"];
+ if (
+ !Services.clipboard.hasDataMatchingFlavors(
+ flavors,
+ Ci.nsIClipboard.kGlobalClipboard
+ )
+ ) {
+ return null;
+ }
const trans = this._createTransferable();
- ["text/x-moz-url", "text/plain"].forEach(trans.addDataFlavor);
+ flavors.forEach(trans.addDataFlavor);
try {
Services.clipboard.getData(trans, Ci.nsIClipboard.kGlobalClipboard);
const clipboardContent = {};
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/e75a4f4…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/e75a4f4…
You're receiving this email because of your account on gitlab.torproject.org.