Closed Bug 1260417 Opened 10 years ago Closed 10 years ago

Some callback improvements

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla48
Tracking Status
firefox48 --- fixed

People

(Reporter: Ms2ger, Assigned: Ms2ger)

Details

Attachments

(3 files, 1 obsolete file)

No description provided.
Comment on attachment 8735841 [details] [diff] [review] Part a: Add a comment about the compartment of CallbackObject::mCallback I think this should say "call a callback f(), or get its members, directly itself, this code won't call f(), or get its members, on the code's behalf". r=me with that.
Attachment #8735841 - Flags: review?(bzbarsky) → review+
Comment on attachment 8735842 [details] [diff] [review] Part b: Depend on AutoEntryScript to find an appropriate JSContext CallSetup >- // Make sure that if this is a window it has an active document, since Might be worth saying something about how we don't want to run script in windows that have been navigated away from? r=me
Attachment #8735842 - Flags: review?(bzbarsky) → review+
Attachment #8735842 - Attachment is obsolete: true
Comment on attachment 8735863 [details] [diff] [review] Part b: Depend on AutoEntryScript to find an appropriate JSContext CallSetup r=me
Attachment #8735863 - Flags: review?(bzbarsky) → review+
Rooted used to only work when the JSContext was in a request. This has long been rectified, so the comments referring to that constraint are confusing at best.
Attachment #8735874 - Flags: review?(bzbarsky)
Comment on attachment 8735874 [details] [diff] [review] Part c: Stop mentioning requests around CallSetup::mRootedCallable r=me
Attachment #8735874 - Flags: review?(bzbarsky) → review+
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: