Closed Bug 335291 Opened 19 years ago Closed 19 years ago

Make trunk spellchecker popup events safer

Categories

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

defect

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: brettw, Assigned: brettw)

References

Details

(Whiteboard: has patch)

Attachments

(1 file, 1 obsolete file)

The branch spellchecker on bug 329668 will have enhanced security checks and some attributes moved around. These changes should be ported back to the trunk.
Flags: blocking1.9a1?
We need this for alpha, imo.
Flags: blocking1.9a1? → blocking1.9a1+
Assignee: brettw → general
Component: General → DOM
Product: Firefox → Core
QA Contact: general → ian
Assignee: general → brettw
OS: Linux → All
Priority: -- → P1
Hardware: PC → All
Target Milestone: --- → mozilla1.9alpha
Priority: P1 → P2
Attached patch Patch (obsolete) — Splinter Review
Attachment #223049 - Flags: review?(bzbarsky)
Whiteboard: has patch
The patch basically copies GetRangeParent/Offset from the branch, and makes the accessors from JS the same as the branch patch.
Comment on attachment 223049 [details] [diff] [review] Patch You should change the uuid of nsIDOMXULDocument, right?
Attached patch Patch with UUIDSplinter Review
Thanks, this patch changes the UUID as well.
Attachment #223049 - Attachment is obsolete: true
Attachment #223087 - Flags: review?(bzbarsky)
Attachment #223049 - Flags: review?(bzbarsky)
Comment on attachment 223087 [details] [diff] [review] Patch with UUID >Index: dom/public/idl/xul/nsIDOMXULDocument.idl >+ * Like trustedGetPopupNode, but gets the >+ */ The which? >Index: content/xul/document/src/nsXULDocument.cpp >+nsXULDocument::GetPopupRangeParent(nsIDOMNode** aRangeParent) >+ if (NS_SUCCEEDED(rv) && *aRangeParent && >+ !nsContentUtils::CanCallerAccess(*aRangeParent)) { Fix the indent here? >+nsXULDocument::GetPopupRangeOffset(PRInt32* aRangeOffset) >+ if (parent && !nsContentUtils::CanCallerAccess(parent)) >+ return NS_ERROR_DOM_SECURITY_ERR; Brace the if body please? r=bzbarsky with those nits fixed.
Attachment #223087 - Flags: superreview+
Attachment #223087 - Flags: review?(bzbarsky)
Attachment #223087 - Flags: review+
Brett: are you going to check this in soon? If not, can you revert the bits of this that landed and caused bug 340320?
Status: NEW → RESOLVED
Closed: 19 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

Creator:
Created:
Updated:
Size: