Open Bug 839010 Opened 13 years ago Updated 3 years ago

does Range really need CanCallerAccess() checks still?

Categories

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

defect

Tracking

()

People

(Reporter: tbsaunde, Unassigned)

Details

the script visible methods on Range check that argument nodes can be accessed by the caller with nsContentUtils::CanCallerAccess() it seems fairly unlikely that's actually needed. Can anybody come up with a reason we do need it?
I don't see any reason for those checks.
Old code, originally from Bug 156452
(In reply to Trevor Saunders (:tbsaunde) from comment #0) > the script visible methods on Range check that argument nodes can be > accessed by the caller with nsContentUtils::CanCallerAccess() it seems > fairly unlikely that's actually needed. Yeah, if the concern is just that the calling script might not be allowed to access those nodes, it should be pretty obsolete. We check all script arguments passed into native code to make sure we're allowed to access them. Moreover, script should never be able to get a reference to a node it doesn't have full access to anyway (given the semantics of the same-origin policy).
Component: DOM: Traversal-Range → DOM: Core & HTML
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.