Closed Bug 1485494 Opened 6 years ago Closed 6 years ago

Remove the XPCOM registration for RedirectChannelRegistrar

Categories

(Core :: Networking, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file, 1 obsolete file)

      No description provided.
Assignee: nobody → ehsan
Blocks: 1477576
Attachment #9003279 - Flags: review?(honzab.moz)
Priority: -- → P3
Whiteboard: [necko-triaged]
Attachment #9003279 - Attachment is obsolete: true
Attachment #9003279 - Flags: review?(honzab.moz)
Comment on attachment 9003813 [details] [diff] [review]
Remove the XPCOM registration for RedirectChannelRegistrar

Review of attachment 9003813 [details] [diff] [review]:
-----------------------------------------------------------------

thanks

::: netwerk/base/RedirectChannelRegistrar.cpp
@@ +29,5 @@
> +{
> +  if (!gSingleton) {
> +    gSingleton = new RedirectChannelRegistrar();
> +  }
> +  return do_AddRef(gSingleton);

please assert main thread (before the return), concern about https://www.janbambas.cz/illusion-atomic-reference-counting/

@@ +36,5 @@
> +// static
> +void
> +RedirectChannelRegistrar::Shutdown()
> +{
> +  gSingleton = nullptr;

as well here, same reason
Attachment #9003813 - Flags: review?(honzab.moz) → review+
Pushed by eakhgari@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/46aae0280fd6
Remove the XPCOM registration for RedirectChannelRegistrar; r=mayhemer
https://hg.mozilla.org/mozilla-central/rev/46aae0280fd6
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: