Skip to content

Commit

Permalink
Bug 23044: Don't allow GIO supported protocols by default
Browse files Browse the repository at this point in the history
  • Loading branch information
gk-tpo committed Sep 22, 2017
1 parent cfae7fe commit b0f084d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions browser/app/profile/000-tor-browser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions extensions/gio/nsGIOProtocolHandler.cpp
Expand Up @@ -922,16 +922,16 @@ nsGIOProtocolHandler::InitSupportedProtocolsPref(nsIPrefBranch *prefs)
// Get user preferences to determine which protocol is supported.
// Gvfs/GIO has a set of supported protocols like obex, network, archive,
// computer, dav, cdda, gphoto2, trash, etc. Some of these seems to be
// irrelevant to process by browser. By default accept only smb and sftp
// protocols so far.
// irrelevant to process by browser. By default accept none.
nsresult rv = prefs->GetCharPref(MOZ_GIO_SUPPORTED_PROTOCOLS,
getter_Copies(mSupportedProtocols));
if (NS_SUCCEEDED(rv)) {
mSupportedProtocols.StripWhitespace();
ToLowerCase(mSupportedProtocols);
}
else
mSupportedProtocols.AssignLiteral("smb:,sftp:"); // use defaults
else {
mSupportedProtocols.AssignLiteral(""); // use none by default
}

LOG(("gio: supported protocols \"%s\"\n", mSupportedProtocols.get()));
}
Expand Down

0 comments on commit b0f084d

Please sign in to comment.