Commit 4e0f0074 authored by Rob Wu's avatar Rob Wu
Browse files

Bug 1910110 - Return early when channel URI is void r=rpl a=dmeehan

parent ab41767d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -818,7 +818,8 @@ already_AddRefed<nsITraceableChannel> ChannelWrapper::GetTraceableChannel(
    dom::ContentParent* aContentParent) const {
  nsCOMPtr<nsIRemoteTab> remoteTab;
  if (mAddonEntries.Get(aAddon.Id(), getter_AddRefs(remoteTab))) {
    if (!aAddon.CanAccessURI(FinalURLInfo(), false, true, true)) {
    if (FinalURLInfo().URI() &&
        !aAddon.CanAccessURI(FinalURLInfo(), false, true, true)) {
      return nullptr;
    }