Closed Bug 41907 Opened 24 years ago Closed 21 years ago

[FIXr]Eliminate extra CheckLoadURI function in nsXMLElement.cpp

Categories

(Core :: XML, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla1.7beta

People

(Reporter: hjtoi-bugzilla, Assigned: bzbarsky)

Details

(Keywords: perf)

Attachments

(1 file)

We call mInner.TriggerLink() which will CheckLoadURI as well. The problem is 
that TriggerLink() does not return any information about failed CheckLoadURI.
This is a performance issue, albeit a minor one. This happens only when an XLink 
is clicked. The user is prepared to wait a little while (not that this one check 
causes any visible delay to the user).

This is also a code cleanup task to remove duplicate code.
Status: NEW → ASSIGNED
Keywords: perf
Target Milestone: --- → Future
Target Milestone: Future → mozilla0.9
This isn't that important yet...
Target Milestone: mozilla0.9 → Future
QA Contact: petersen → rakeshmishra
QA Contact: rakeshmishra → ashishbhatt
This could be eliminated immediately if this check were not using the
DISALLOW_FROM_MAIL flag.  We only need that for auto xlinks, and perhaps the
right thing to do is to change TriggerLink to take a boolean for whether the
triggering is automatic or not (and then pass true for things like auto xlinks).
Attachment #141374 - Flags: superreview?(jst)
Attachment #141374 - Flags: review?(jst)
Hmm.. maybe we want to push the security check down into the webshell (inside
OnLinkClickSync)?  That way form submission could use this too (for forms
submitted via submit() or something).  On the other hand, anyone running JS in
email already has issues....
Comment on attachment 141374 [details] [diff] [review]
Somewhat like this, perhaps?

Seems reasonable, r+sr=jst for this, even if we'd decide to move this check
elsewhere.
Attachment #141374 - Flags: superreview?(jst)
Attachment #141374 - Flags: superreview+
Attachment #141374 - Flags: review?(jst)
Attachment #141374 - Flags: review+
I'll file a followup bug for any further changes -- they need a good bit of
thought...
Assignee: hjtoi-bugzilla → bzbarsky
Status: ASSIGNED → NEW
Summary: Eliminate extra CheckLoadURI function in nsXMLElement.cpp → [FIXr]Eliminate extra CheckLoadURI function in nsXMLElement.cpp
Target Milestone: Future → mozilla1.7beta
Fix checked in for 1.7b
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: