-
- Downloads
Bug 30237: Add v3 onion services client authentication prompt
When Tor informs the browser that client authentication is needed, temporarily load about:blank instead of about:neterror and prompt for the user's key. If a correctly formatted key is entered, use Tor's ONION_CLIENT_AUTH_ADD control port command to add the key (via Torbutton's control port module) and reload the page. If the user cancels the prompt, display the standard about:neterror "Unable to connect" page. This requires a small change to browser/actors/NetErrorChild.jsm to account for the fact that the docShell no longer has the failedChannel information. The failedChannel is used to extract TLS-related error info, which is not applicable in the case of a canceled .onion authentication prompt. Add a leaveOpen option to PopupNotifications.show so we can display error messages within the popup notification doorhanger without closing the prompt. Add support for onion services strings to the TorStrings module. Add support for Tor extended SOCKS errors (Tor proposal 304) to the socket transport and SOCKS layers. Improved display of all of these errors will be implemented as part of bug 30025.
Showing
- browser/actors/NetErrorChild.jsm 1 addition, 1 deletionbrowser/actors/NetErrorChild.jsm
- browser/base/content/browser.js 10 additions, 0 deletionsbrowser/base/content/browser.js
- browser/base/content/browser.xul 3 additions, 0 deletionsbrowser/base/content/browser.xul
- browser/base/content/tab-content.js 5 additions, 0 deletionsbrowser/base/content/tab-content.js
- browser/components/moz.build 1 addition, 0 deletionsbrowser/components/moz.build
- browser/components/onionservices/content/authNotificationIcon.inc.xul 6 additions, 0 deletions...onents/onionservices/content/authNotificationIcon.inc.xul
- browser/components/onionservices/content/authPopup.inc.xul 14 additions, 0 deletionsbrowser/components/onionservices/content/authPopup.inc.xul
- browser/components/onionservices/content/authPrompt.js 290 additions, 0 deletionsbrowser/components/onionservices/content/authPrompt.js
- browser/components/onionservices/content/authUtil.jsm 32 additions, 0 deletionsbrowser/components/onionservices/content/authUtil.jsm
- browser/components/onionservices/content/onionservices.css 69 additions, 0 deletionsbrowser/components/onionservices/content/onionservices.css
- browser/components/onionservices/jar.mn 4 additions, 0 deletionsbrowser/components/onionservices/jar.mn
- browser/components/onionservices/moz.build 1 addition, 0 deletionsbrowser/components/onionservices/moz.build
- browser/modules/TorStrings.jsm 69 additions, 5 deletionsbrowser/modules/TorStrings.jsm
- browser/themes/shared/notification-icons.inc.css 3 additions, 0 deletionsbrowser/themes/shared/notification-icons.inc.css
- docshell/base/nsDocShell.cpp 62 additions, 0 deletionsdocshell/base/nsDocShell.cpp
- dom/ipc/BrowserParent.cpp 23 additions, 0 deletionsdom/ipc/BrowserParent.cpp
- dom/ipc/BrowserParent.h 3 additions, 0 deletionsdom/ipc/BrowserParent.h
- dom/ipc/PBrowser.ipdl 8 additions, 0 deletionsdom/ipc/PBrowser.ipdl
- js/xpconnect/src/xpc.msg 8 additions, 0 deletionsjs/xpconnect/src/xpc.msg
- netwerk/base/nsSocketTransport2.cpp 6 additions, 0 deletionsnetwerk/base/nsSocketTransport2.cpp
Loading
Please register or sign in to comment