Closed Bug 1348453 Opened 7 years ago Closed 7 years ago

Add a single argument overload to ImageBitmap::ExtensionsEnabled()

Categories

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

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

Details

Attachments

(1 file)

      No description provided.
Comment on attachment 8848679 [details] [diff] [review]
Add a single argument overload to ImageBitmap::ExtensionsEnabled()

Review of attachment 8848679 [details] [diff] [review]:
-----------------------------------------------------------------

Is this not the same to change:

static bool ExtensionsEnabled(JSContext* aCx, JSObject* aObj = nullptr);

I don't see big differences between your patch and this line.
Attachment #8848679 - Flags: review?(amarchesini) → review+
I'd honestly prefer the default arg myself, but I did what Boris asked me to.  What do you think, Boris?
Flags: needinfo?(bzbarsky)
I can live with the default arg as long as we clearly document that it's totally unused and only there because bindings insist on passing it, and that anyone else should call this function with only one arg.
Flags: needinfo?(bzbarsky)
Pushed by eakhgari@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/8bb4f514012b
Make the second argument to ImageBitmap::ExtensionsEnabled() optional; r=baku
https://hg.mozilla.org/mozilla-central/rev/8bb4f514012b
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Assignee: nobody → ehsan
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: