[tor-commits] [torbutton/master] Bug 31010 - Don't use addTrustedTab on mobile
gk at torproject.org
gk at torproject.org
Sat Aug 31 19:39:35 UTC 2019
commit 8c4c10af480ea9c232b4fc64712141af8e96f3da
Author: Matthew Finkel <sysrqb at torproject.org>
Date: Fri Aug 30 14:20:47 2019 -0400
Bug 31010 - Don't use addTrustedTab on mobile
---
chrome/content/torbutton.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/chrome/content/torbutton.js b/chrome/content/torbutton.js
index 756c2c7c..6209b6b8 100644
--- a/chrome/content/torbutton.js
+++ b/chrome/content/torbutton.js
@@ -1861,9 +1861,10 @@ function showSecurityPreferencesPanel(chromeWindow) {
if (settingsTab === null) {
// Open up the settings panel in a new tab.
- tabBrowser.addTrustedTab(SECURITY_PREFERENCES_URI, {
+ tabBrowser.addTab(SECURITY_PREFERENCES_URI, {
"selected": true,
"parentId": tabBrowser.selectedTab.id,
+ triggeringPrincipal: Services.scriptSecurityManager.getSystemPrincipal(),
});
} else {
// Activate an existing settings panel tab.
More information about the tor-commits
mailing list