[tbb-commits] [tor-browser] 15/37: Bug 1770123 - Clear PAC loader when the load is failed, r=dragana a=RyanVM

gitolite role git at cupani.torproject.org
Wed Jun 22 18:27:24 UTC 2022


This is an automated email from the git hooks/post-receive script.

richard pushed a commit to branch tor-browser-91.11.0esr-11.5-1
in repository tor-browser.

commit 5eefe627065da1be32e7393dfda88034f7d11fcf
Author: Kershaw Chang <kershaw at mozilla.com>
AuthorDate: Tue Jun 7 12:32:45 2022 +0000

    Bug 1770123 - Clear PAC loader when the load is failed, r=dragana a=RyanVM
    
    Differential Revision: https://phabricator.services.mozilla.com/D147861
---
 netwerk/base/nsPACMan.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/netwerk/base/nsPACMan.cpp b/netwerk/base/nsPACMan.cpp
index b2a9ab5aef3e0..9c23f7f00a175 100644
--- a/netwerk/base/nsPACMan.cpp
+++ b/netwerk/base/nsPACMan.cpp
@@ -698,6 +698,13 @@ void nsPACMan::ContinueLoadingAfterPACUriKnown() {
 }
 
 void nsPACMan::OnLoadFailure() {
+  // We have to clear the loader to indicate that we are not loading PAC
+  // currently.
+  {
+    auto loader = mLoader.Lock();
+    loader.ref() = nullptr;
+  }
+
   int32_t minInterval = 5;    // 5 seconds
   int32_t maxInterval = 300;  // 5 minutes
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tbb-commits mailing list