Commit 861e9370 authored by Paul Bone's avatar Paul Bone
Browse files

Bug 1593545 - Disable DocumentChannel assertion in non-fission mode r=mattwoodrow

Differential Revision: https://phabricator.services.mozilla.com/D52804

--HG--
extra : source : d4c8a1b56b1ad44c9222fb78a470a5f4bc3b6423
extra : histedit_source : eeed68913095e8c28b28abfe8222831ecb250879
parent 72d7c72f
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2593,6 +2593,15 @@ void nsHttpChannel::AssertNotDocumentChannel() {
    return;
  }

#ifndef DEBUG
  if (!StaticPrefs::fission_autostart()) {
    // This assertion is firing in the wild (Bug 1593545) and its not clear
    // why. Disable the assertion in non-fission non-debug configurations to
    // avoid crashing user's browsers until we're done dogfooding fission.
    return;
  }
#endif

  nsCOMPtr<nsIParentChannel> parentChannel;
  NS_QueryNotificationCallbacks(this, parentChannel);
  RefPtr<DocumentChannelParent> documentChannelParent =