Closed Bug 223192 Opened 22 years ago Closed 22 years ago

content/ could use nsContentUtils::GetSecurityManager() instead of pegging the service manager

Categories

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

x86
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla1.6beta

People

(Reporter: caillon, Assigned: caillon)

References

Details

Attachments

(1 file)

Attachment #133828 - Flags: superreview?(bzbarsky)
Attachment #133828 - Flags: review?(bzbarsky)
Comment on attachment 133828 [details] [diff] [review] Patch Given the comment and code at http://lxr.mozilla.org/seamonkey/source/content/base/src/nsContentUtils.cpp#104 we need null-checks in a bunch of places if you decide to do this....
Attachment #133828 - Flags: superreview?(bzbarsky)
Attachment #133828 - Flags: superreview-
Attachment #133828 - Flags: review?(bzbarsky)
Attachment #133828 - Flags: review-
Comment on attachment 133828 [details] [diff] [review] Patch Re-trying for reviews. This patch is actually right, but the code you pointed out sucks. I filed bug 223373 to fix that and won't land this without that landing first, but this can get reviews in the mean time.
Attachment #133828 - Flags: superreview?(bzbarsky)
Attachment #133828 - Flags: superreview-
Attachment #133828 - Flags: review?(bzbarsky)
Attachment #133828 - Flags: review-
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla1.6beta
Comment on attachment 133828 [details] [diff] [review] Patch >Index: content/base/src/nsDocument.cpp >+ nsIScriptSecurityManager* securityManager = >+ nsContentUtils::GetSecurityManager(); >+ rv = securityManager->CheckLoadURI(mDocumentURL, aURL, Do you even need the temporary? I guess it makes short lines easier... Same in a few other places. >Index: content/html/content/src/nsHTMLFormElement.cpp > // XXX This code has not been tested. mailto: does not work in forms. > // That XXX comment is bogus. Could you just remove it? r+sr=bzbarsky with that (do whatever you want about the temporaries; I don't care, really).
Attachment #133828 - Flags: superreview?(bz-vacation)
Attachment #133828 - Flags: superreview+
Attachment #133828 - Flags: review?(bz-vacation)
Attachment #133828 - Flags: review+
Yeah, I used the temporaries on the longer lines since IMO they make the code much easier to read.
(and much easier to keep under 80 chars) Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 22 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: