Closed Bug 1210293 Opened 9 years ago Closed 9 years ago

HTMLInputElement::SetUserInput shouldn't check IsCallerChrome

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla44
Tracking Status
firefox44 --- fixed

People

(Reporter: bholley, Assigned: bholley)

References

Details

Attachments

(1 file)

It's only accessible over XPIDL.
Comment on attachment 8668271 [details] [diff] [review]
Remove legacy check from the XPIDL HTMLInputElement::SetUserInput. v1

r=me, but it seems to me like we should make nsIDOMNSEditableElement a non-scriptable interface too.  Looks to me like this mostly means removing a bunch of (already silly) QIs from our tests, but also from a few actual code pieces.

For now, though, at least mark the methods/attributes on the interface noscript, so it's clear that they're not called from script?
Attachment #8668271 - Flags: review?(bzbarsky) → review+
(In reply to Boris Zbarsky [:bz] from comment #3)
> Comment on attachment 8668271 [details] [diff] [review]
> Remove legacy check from the XPIDL HTMLInputElement::SetUserInput. v1
> 
> r=me, but it seems to me like we should make nsIDOMNSEditableElement a
> non-scriptable interface too.

It seems like that might break addons, right? But regardless, this all seems pretty orthogonal to the change being made. It's perfectly fine for these things be called from chrome script over XPIDL, and content script will never see the XPIDL interface, unless there's some risk here I'm missing. Can you explain?
Flags: needinfo?(bzbarsky)
> It seems like that might break addons, right?

Yeah, looks like it would.  OK, then.

> But regardless, this all seems pretty orthogonal to the change being made.

I think the [noscript] is not: it's making it clear that the method is never called from script.

> It's perfectly fine for these things be called from chrome script over XPIDL

It's not possible for that to happen, because we never create XPCWN for these objects.  The noscript on the method will just make that clear to everyone.
Flags: needinfo?(bzbarsky)
https://hg.mozilla.org/mozilla-central/rev/da07fd36ebb2
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
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: