Closed Bug 704820 Opened 13 years ago Closed 13 years ago

Simplify nsContentUtils::ReportToConsole

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla11

People

(Reporter: emk, Assigned: emk)

References

Details

Attachments

(1 file, 2 obsolete files)

Most callers do not set params, paramsLength, URI, source, lineNumber.
columnNumber is not used at all!
Most callers do not set non-zero windowID.
So I propose the follwing changes:
- Move flags, category and doc params onto other rarer used params and make the rest params optional.
- Remove the windowID version method.
Attached patch patch (obsolete) — Splinter Review
Assignee: nobody → VYV03354
Status: NEW → ASSIGNED
Attachment #576481 - Flags: review?(bugs)
Apply this on top of bug 701787's patch.
Depends on: 701787
Looks like the only caller that passes a raw window ID is the nsIDOMWindowInternal one, so it's probably fine to remove that variant.
Attached patch patch (obsolete) — Splinter Review
Updated to tip
Attachment #576481 - Attachment is obsolete: true
Attachment #576481 - Flags: review?(bugs)
Attachment #577582 - Flags: review?(bugs)
Attachment #577582 - Flags: review?(bugs) → review+
Keywords: checkin-needed
Please mark this for check-in once the dependencies are cleared.
Keywords: checkin-needed
Updated to tip
Attachment #577582 - Attachment is obsolete: true
Attachment #580453 - Flags: review+
The dependent bug has been fixed.
Keywords: checkin-needed
In my queue with a few other checkin-neededs that are being sent to try first and then onto inbound :-)
https://tbpl.mozilla.org/?tree=Try&rev=fd440327d5e4
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/e8659eb419fb
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: