Closed Bug 798565 Opened 7 years ago Closed 7 years ago

touch.target may point to native anonymous content

Categories

(Core :: DOM: Events, defect)

x86
Linux
defect
Not set

Tracking

()

RESOLVED FIXED

People

(Reporter: smaug, Assigned: smaug)

Details

Attachments

(2 files)

...and content can't access NAC, it gets an exception.

nsDOMTouch::GetTarget could be
*aTarget = mTarget;
nsCOMPtr<nsIContent> content = do_QueryInterface(mTarget);
if (content && content->IsInNativeAnonymousSubtree() &&
    !nsContentUtils::CanAccessNativeAnon()) {
  *aTarget = content->FindFirstNonNativeAnonymous();
}
NS_IF_ADDREF(*aTarget);
return NS_OK;
Assignee: nobody → bugs
Attached patch patchSplinter Review
https://tbpl.mozilla.org/?tree=Try&rev=64e1bc8428b0
Attachment #668641 - Flags: review?(wjohnston)
Attachment #668641 - Flags: review?(jst)
Attachment #668641 - Flags: review?(wjohnston) → review+
Attachment #668641 - Flags: review?(jst) → review+
Attached patch up-to-dateSplinter Review
https://hg.mozilla.org/mozilla-central/rev/99898ec9976a
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.