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)
Tracking
()
RESOLVED
FIXED
mozilla1.6beta
People
(Reporter: caillon, Assigned: caillon)
References
Details
Attachments
(1 file)
29.84 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
Assignee | ||
Comment 1•22 years ago
|
||
Assignee | ||
Updated•22 years ago
|
Attachment #133828 -
Flags: superreview?(bzbarsky)
Attachment #133828 -
Flags: review?(bzbarsky)
![]() |
||
Comment 2•22 years ago
|
||
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-
Assignee | ||
Comment 3•22 years ago
|
||
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-
Assignee | ||
Updated•22 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla1.6beta
![]() |
||
Comment 4•22 years ago
|
||
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+
Assignee | ||
Comment 5•22 years ago
|
||
Yeah, I used the temporaries on the longer lines since IMO they make the code
much easier to read.
Assignee | ||
Comment 6•22 years ago
|
||
(and much easier to keep under 80 chars)
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•