Commit 4cb78731 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃 Committed by morgan
Browse files

fixup! BB 42730: Patch RemoteSettings to use only local dumps as a data source

BB 45185: Make sure the Rust remote settings client stays offline.
parent f1546785
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -113,6 +113,9 @@ export var Utils = {
  log,

  get shouldSkipRemoteActivity() {
    if (AppConstants.BASE_BROWSER_VERSION) {
      return true;
    }
    if (
      (lazy.isRunningTests || Cu.isInAutomation) &&
      this.SERVER_URL == "data:,#remote-settings-dummy/v1"
+2 −1
Original line number Diff line number Diff line
@@ -96,7 +96,8 @@ impl Request {
    }

    pub fn send(self) -> Result<Response, ViaductError> {
        crate::backend::send(self)
        // tor-browser#44576: Force an error as a defense-in-depth.
        Err(ViaductError::NetworkError("Viaduct requests are disabled.".into()))
    }

    /// Alias for `Request::new(Method::Get, url)`, for convenience.