Closed
Bug 1163196
Opened 9 years ago
Closed 9 years ago
Remove usage of |#ifdef PR_LOGGING| from dom/security
Categories
(Core :: DOM: Security, defect)
Core
DOM: Security
Tracking
()
RESOLVED
FIXED
mozilla41
People
(Reporter: erahm, Assigned: erahm)
References
Details
Attachments
(2 files, 1 obsolete file)
17.01 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
14.74 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
In bug 1161238 we plan on removing |--disable-logging| which makes |#ifdef PR_LOGGING| redundant.
Assignee | ||
Comment 1•9 years ago
|
||
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
Attachment #8603643 -
Flags: review?(nfroyd)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → erahm
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•9 years ago
|
||
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
Attachment #8603644 -
Flags: review?(nfroyd)
Assignee | ||
Updated•9 years ago
|
Attachment #8603643 -
Attachment is obsolete: true
Attachment #8603643 -
Flags: review?(nfroyd)
Assignee | ||
Comment 3•9 years ago
|
||
Check that logging is enabled before performing potentially expensive operations.
Attachment #8603645 -
Flags: review?(nfroyd)
Assignee | ||
Comment 4•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=128852820af5
![]() |
||
Updated•9 years ago
|
Attachment #8603644 -
Flags: review?(nfroyd) → review+
![]() |
||
Comment 5•9 years ago
|
||
Comment on attachment 8603645 [details] [diff] [review] Part 2: Wrap expensive calls in PR_LOG_TEST Review of attachment 8603645 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/security/nsCSPContext.cpp @@ +51,5 @@ > return gCspContextPRLog; > } > > #define CSPCONTEXTLOG(args) PR_LOG(GetCspContextLog(), 4, args) > +#define CSPCONTEXTLOGENABLED() PR_LOG_TEST(GetCspContextLog(), 4) Uh. While we're here, can we replace '4' with the actual constant (PR_LOG_DEBUG, maybe?) ? And so on throughout the patch.
Attachment #8603645 -
Flags: review?(nfroyd) → review+
Assignee | ||
Comment 6•9 years ago
|
||
(In reply to Nathan Froyd [:froydnj] [:nfroyd] from comment #5) > Comment on attachment 8603645 [details] [diff] [review] > Part 2: Wrap expensive calls in PR_LOG_TEST > > Review of attachment 8603645 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: dom/security/nsCSPContext.cpp > @@ +51,5 @@ > > return gCspContextPRLog; > > } > > > > #define CSPCONTEXTLOG(args) PR_LOG(GetCspContextLog(), 4, args) > > +#define CSPCONTEXTLOGENABLED() PR_LOG_TEST(GetCspContextLog(), 4) > > Uh. While we're here, can we replace '4' with the actual constant > (PR_LOG_DEBUG, maybe?) ? And so on throughout the patch. Hah, I was trying to avoid some blame :) I'll do a separate patch for that.
Assignee | ||
Comment 7•9 years ago
|
||
Actually I'll just update before I push, I thought this was a different offender.
Assignee | ||
Comment 8•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/e24aa2dd0e9a https://hg.mozilla.org/integration/mozilla-inbound/rev/f86c4ccf1d17
Comment 9•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e24aa2dd0e9a https://hg.mozilla.org/mozilla-central/rev/f86c4ccf1d17
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in
before you can comment on or make changes to this bug.
Description
•