Closed Bug 660768 Opened 13 years ago Closed 13 years ago

modules should use mozilla::Preferences

Categories

(Core :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla7

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Patch v1.0 (obsolete) — Splinter Review
      No description provided.
Attachment #536254 - Flags: review?(roc)
Comment on attachment 536254 [details] [diff] [review]
Patch v1.0

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

So imglib doesn't unregister its observers either? Would be nice to fix :-)
Attachment #536254 - Flags: review?(roc) → review+
(In reply to comment #1)
> So imglib doesn't unregister its observers either? Would be nice to fix :-)

Hmm... I have no idea to unregister it. Looks like imgRequest isn't singleton. The first instance registers an observer as strong. The observer is destroyed by nsPrefBranch at XPCOM shutdown. So, it doesn't make sense to remove the observer from its destructor.
Attachment #536254 - Flags: review?(joe)
Attachment #536254 - Flags: review?(tglek)
Comment on attachment 536254 [details] [diff] [review]
Patch v1.0

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

I like it!

::: modules/libpr0n/src/imgLoader.cpp
@@ +914,2 @@
>  {
> +  NS_ASSERTION(Preferences::GetRootBranch(), "Pref branch is null");

You could just drop this assertion entirely, IMO.
Attachment #536254 - Flags: review?(joe) → review+
Attached patch Patch v1.1Splinter Review
Attachment #536254 - Attachment is obsolete: true
Attachment #536254 - Flags: review?(tglek)
Attachment #538403 - Flags: review?(tglek)
Attachment #538403 - Flags: review?(tglek) → review+
http://hg.mozilla.org/mozilla-central/rev/3f771ec754bb
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla7
Depends on: 665388
Verified that the following files are updated un mozilla-central repository:
modules/libjar/nsJARChannel.cpp
modules/libpr0n/src/DiscardTracker.cpp
modules/libpr0n/src/imgLoader.cpp
modules/libpr0n/src/imgLoader.h
modules/libpr0n/src/imgRequest.cpp

Is this enough in order to verfy the fix and mark the bug accordingly?

Thank you!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: