├── LICENSE ├── dont_reserve_keys.patch └── fix-webextension-websocket-upgrades.patch /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /dont_reserve_keys.patch: -------------------------------------------------------------------------------- 1 | diff --git a/browser/base/content/browser-sets.inc b/browser/base/content/browser-sets.inc 2 | --- a/browser/base/content/browser-sets.inc 3 | +++ b/browser/base/content/browser-sets.inc 4 | @@ -123,9 +123,9 @@ 5 | 9 | + modifiers="accel"/> 10 | 12 | + command="cmd_newNavigatorTabNoEvent"/> 13 | 15 | #ifndef XP_MACOSX 16 | @@ -172,8 +172,8 @@ 17 | 18 | 19 | 20 | - 21 | - 22 | + 23 | + 24 | 25 | 29 | 30 | 32 | + modifiers="accel,shift"/> 33 | 34 | #ifdef XP_MACOSX 35 | 36 | @@ -319,7 +319,7 @@ 37 | #ifndef XP_MACOSX 38 | command="cmd_quitApplication" 39 | #endif 40 | - reserved="true"/> 41 | + /> 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /fix-webextension-websocket-upgrades.patch: -------------------------------------------------------------------------------- 1 | # HG changeset patch 2 | # User Ghjuvan Lacambre 3 | # Date 1604849733 -3600 4 | # Sun Nov 08 16:35:33 2020 +0100 5 | # Node ID 57984ccfdba5628e2d4e68933599b25eaf4054fc 6 | # Parent 0e95e169ef40f27ae4de839644c63249acd3b5b1 7 | Don't upgrade webextension websockets to wss:// behind their back 8 | 9 | diff --git a/dom/websocket/WebSocket.cpp b/dom/websocket/WebSocket.cpp 10 | --- a/dom/websocket/WebSocket.cpp 11 | +++ b/dom/websocket/WebSocket.cpp 12 | @@ -1553,7 +1553,8 @@ 13 | 14 | // If the HTTPS-Only mode is enabled, we need to upgrade the websocket 15 | // connection from ws:// to wss:// and mark it as secure. 16 | - if (!mIsServerSide && !mSecure && originDoc) { 17 | + if (!mIsServerSide && !mSecure && originDoc && 18 | + !originDoc->GetDocumentURI()->SchemeIs("moz-extension")) { 19 | nsCOMPtr uri; 20 | nsresult rv = NS_NewURI(getter_AddRefs(uri), mURI); 21 | NS_ENSURE_SUCCESS(rv, rv); 22 | @@ -1578,6 +1579,7 @@ 23 | // to wss: before performing content policy checks because CSP needs to 24 | // send reports in case the scheme is about to be upgraded. 25 | if (!mIsServerSide && !mSecure && originDoc && 26 | + !originDoc->GetDocumentURI()->SchemeIs("moz-extension") && 27 | originDoc->GetUpgradeInsecureRequests(false)) { 28 | // let's use the old specification before the upgrade for logging 29 | AutoTArray params; 30 | --------------------------------------------------------------------------------