Граф коммитов

4160 Коммитов

Автор SHA1 Сообщение Дата
Tom Schuster 55a65363a9 Bug 1299321 - Make DOM/Xray handle string values in JSPropertySpec. r=peterv 2016-09-02 18:39:50 +02:00
Edgar Chen eaa3aed9dd Bug 1275835 - Part 2: Implement CustomElementsRegistry define function; r=wchen
MozReview-Commit-ID: 10NPmzTRogc

--HG--
extra : rebase_source : 9f4b5b79f1ef4d65a457066b079a338fd3895c40
2016-09-01 15:11:32 +08:00
John Dai afa50be601 Bug 1294100 - Part 3: Modify Codegen to generate including FakeString's binding files and fix build errors. r=bz
--HG--
rename : dom/bindings/BindingUtils.h => dom/bindings/FakeString.h
2016-09-01 18:10:54 +08:00
Boris Zbarsky 37ce88ab1c Bug 1298410. Remove support for IDL arrays, since those are not a thing anymore. r=peterv 2016-09-01 21:31:23 -04:00
Gabriele Svelto fe73634c76 Bug 1296579 - Remove the SimplePush API r=kitcambridge,baku 2016-09-01 20:17:03 +02:00
Boris Zbarsky e8c8715cfb Bug 1297756 part 2. Allow specifying a default value for a union containing an enum. r=mystor 2016-08-30 12:55:17 -04:00
Boris Zbarsky 1e5fa72546 Bug 1297756 part 1. Improve the exception thrown when an invalid default value (right type but wrong value) is used for a union. r=mystor 2016-08-30 12:55:15 -04:00
Michael Layzell 164944c0c0 Bug 1292293 - Part 1: Update the WebIDL Parser to allow default values for ByteString, r=bz
--HG--
extra : rebase_source : 8d031a5a34e4bb75a3432e23e625370cbcea0dae
2016-08-05 17:46:54 -04:00
Kaku Kuo 03100d8735 Bug 1297648 - Create DOMException for NS_ERROR_MODULE_DOM_MEDIA error codes; r=bz
MozReview-Commit-ID: A8TgQHToCmQ

--HG--
extra : rebase_source : 36cbe0ffe5f3aa0167bf5f9512bc631c33593cb7
2016-08-24 17:30:58 +08:00
Boris Zbarsky 17194b94cf Bug 1295322 followup: disable the test on Android, where we have no feed: handler and hence get a CLOSED TREE. 2016-08-26 17:15:53 -04:00
Boris Zbarsky 0e5b46b6d6 Bug 1295322 test. r=bholley 2016-08-26 15:38:16 -04:00
Boris Zbarsky 4821850eb8 Bug 1295322 part 2. Stop propagating through xpconnect exceptions to consumers that won't be able to work with them. r=bholley 2016-08-26 15:38:16 -04:00
Boris Zbarsky 6a73ce5a82 Bug 1295322 part 1. Make ThrowExceptionObject return void, instead of bool. r=bholley 2016-08-26 15:38:16 -04:00
Nicholas Nethercote c2306345d5 Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm.
This patch removes checking of all the callback calls in memory reporter
CollectReport() functions, because it's not useful.

The patch also does some associated clean-up.

- Replaces some uses of nsIMemoryReporterCallback with the preferred
  nsIHandleReportCallback typedef.

- Replaces aCallback/aCb/aClosure with aHandleRepor/aData for CollectReports()
  parameter names, for consistency.

- Adds MOZ_MUST_USE/[must_use] in a few places in nsIMemoryReporter.idl.

- Uses the MOZ_COLLECT_REPORT macro in all suitable places.

Overall the patch reduces code size by ~300 lines and reduces the size of
libxul by about 37 KiB on my Linux64 builds.

--HG--
extra : rebase_source : e94323614bd10463a0c5134a7276238a7ca1cf23
2016-08-24 15:23:45 +10:00
Jon Coppeard d1435a2a8c Bug 1296688 - Add JSCLASS_FOREGROUND_FINALIZE flag r=sfink r=smaug 2016-08-24 14:18:10 +01:00
Kan-Ru Chen b6d880aca1 Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
The patch is generated from following command:

  rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,

MozReview-Commit-ID: AtLcWApZfES


--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00
Igor 175543fda8 Bug 1293384 - Part 2: Rename Snprintf.h header to Sprintf.h. r=froydnj 2016-08-14 23:43:21 -07:00
Igor a57972337d Bug 1293384 - Part 1: Rename snprintf_literal to SprintfLiteral. r=froydnj 2016-08-14 23:44:00 -07:00
Kearwood (Kip) Gilbert 434f167559 Bug 1250244 - Part 7: Implement WebVR 1.0 API,r=bz
MozReview-Commit-ID: JTOmaWePlJq
2016-02-24 15:54:50 -08:00
Kearwood (Kip) Gilbert 0fa828c884 Bug 1250244 - Part 5: Rename VRDevice to VRDisplay,r=bz
- In order to reduce the size of the following patches
  and increase their readability, we rename VRDevice
  to VRDisplay here first.

MozReview-Commit-ID: 3pv8scdIi5w
2016-04-12 17:39:28 -07:00
Jan de Mooij 5149714d22 Bug 1292892 part 6 - Remove nsContentUtils::RootingCx. r=bz 2016-08-11 14:39:23 +02:00
Jan de Mooij c33bac8363 Bug 1292892 part 5 - Replace most nsContentUtils::RootingCx calls with dom::RootingCx. r=bz,terrence 2016-08-11 14:39:23 +02:00
Jan de Mooij 0ad12515f4 Bug 1292892 part 1 - Stop using JSRuntime outside SpiderMonkey. r=bz,terrence,fitzgen,kanru 2016-08-11 14:39:22 +02:00
Thomas Wisniewski 1fbaa831cc Bug 826619 - Remove Canvas mozFillRule. r=mrbkap r=bas 2016-08-04 15:05:50 -04:00
Jarda Snajdr e8b9017f0d Bug 1286281 - Part 2: Add static chrome-only method to create server-side WebSocket to WebIDL r=baku
MozReview-Commit-ID: CNEkI9UP2mw
2016-07-29 07:01:00 -07:00
Terrence Cole e57d650fcf Bug 1291928 - Expose JSSavedStack's stack before returning; r=bz 2016-08-03 16:12:51 -07:00
Boris Zbarsky d7821950f4 Bug 1278583 part 5. Switch DOM code from using hasInstance class hooks to using Symbol.hasInstance. r=peterv 2016-08-03 18:32:07 -07:00
Boris Zbarsky ba5962ed70 Bug 1278583 part 4. Rip out the now-unused construct hook holder bits in bindings. r=peterv 2016-08-03 18:32:06 -07:00
Boris Zbarsky ab204ba73e Bug 1278583 part 3. Make static stuff (static attributes, methods, constants) actually work on globals. r=peterv 2016-08-03 18:32:06 -07:00
Tom Schuster 473d3dc22d Bug 1197324 - Fix new warnings. r=froydnj 2016-08-03 14:37:31 +02:00
Boris Zbarsky 30fb9d7bd3 Bug 1290636. Fix some bugs in the way single-type (value) iterators are hooked up in the Web IDL bindings. r=qdot
There were two issues:

1) The keys/entries/values/forEach properties were being added no matater what
the value of the 'unforgeable' boolean was.  So we ended up spitting out
unforgeable versions of those, and this confused some Xray cases.

2) The number of args listed for forEach was wrong, which hit assertions in the
JS engine because the same self-hosted function was being instantiated with
different numbers of args from different places.
2016-07-30 01:00:12 -04:00
Xidorn Quan 31f5ebf083 Bug 1287706 part 1 - Make CallbackObjectHolder movable (and actually move-only). r=smaug
So that we can avoid unnecessary refcount changes.

MozReview-Commit-ID: 4Mk9SJTj6AS

--HG--
extra : source : c35643f76ef33b6cdce115c8de0dfae8abccd644
2016-07-28 12:00:06 +10:00
Andrew McCreight e806f57820 Bug 1289136 - Fifth argument to XPCConvert::NativeInterface2JSObject() is always null. r=gabor 2016-07-27 10:11:40 -07:00
Kyle Machulis 6b02d1de30 Bug 1289315 - Tests for Iterable<> Union Types in WebIDL Interfaces; r=bz
MozReview-Commit-ID: 1co6k6YOPUI
2016-07-27 09:48:59 -07:00
Jonathan Chan bd2261bd38 Bug 1289315 - Fix union types for maplike/setlike/iterable in WebIDL parser; r=qdot
MozReview-Commit-ID: Bmn0CPfwUXZ
2016-07-27 09:48:59 -07:00
Boris Zbarsky 8617edc967 Bug 1288791 part 3. Ensure that FindAssociatedGlobal never returns a gray global. r=bkelly 2016-07-27 11:05:36 -04:00
Boris Zbarsky 5b840d9b96 Bug 1288791 part 2. Rename WrapNativeParent to FindAssociatedGlobal and update it to actually do that. r=bkelly 2016-07-27 11:05:36 -04:00
Boris Zbarsky 8e34004cf1 Bug 1288791 part 1. Rename the GetParentObject template bits to make it clearer what they're really doing: finding the associated global for an object's native. r=bkelly 2016-07-27 11:05:36 -04:00
Boris Zbarsky f65cc2b16c Bug 1289467 part 4. Make ForwardDeclarationBuilder error out if asked to forward-declare a templated type instead of spitting out nonsense that doesn't compile. r=qdot 2016-07-27 11:05:36 -04:00
Boris Zbarsky d39f976400 Bug 1289467 part 3. Skip forward-declaring types used by methods/attributes on maplikes/setlikes/iterables that we auto-generate an implementation for. r=qdot 2016-07-27 11:05:36 -04:00
Boris Zbarsky f9765094cb Bug 1289467 part 2. Skip example codegen for methods/attributes on maplikes/setlikes/iterables that we auto-generate an implementation for. r=qdot 2016-07-27 11:05:35 -04:00
Boris Zbarsky f7ef79ba7f Bug 1289467 part 1. Example codegen generation should print out which files it generated, so it's easy to examine them. r=qdot 2016-07-27 11:05:35 -04:00
Jeff Walden 9251e2a1da Bug 1285649 - Replace an ellipsis function, whose last non-ellipsis argument was subject to integer promotions, with a variadic template function so as not to invoke C++ undefined behavior, because that would be Bad. r=froydnj 2016-07-20 15:06:48 -07:00
Jeff Walden d6391c60ea Backed out changeset 1a2627378a0d, didn't tag the reviewer correctly. 2016-07-26 11:12:21 -07:00
Mike Taylor e18289c5e2 Bug 1246796. Allow getting/setting dashed attributes that start with "-", for web compatibility. r=bz 2016-07-26 11:23:36 -05:00
Jeff Walden b0edcf1fb1 Bug 1285649 - Replace an ellipsis function, whose last non-ellipsis argument was subject to integer promotions, with a variadic template function so as not to invoke C++ undefined behavior, because that would be Bad. NOT REVIEWED YET
--HG--
extra : rebase_source : 4b2fe5fbf7baaf599026f916e8969862c053a64c
2016-07-20 15:06:48 -07:00
Boris Zbarsky a42390b506 Bug 1288581 followup. Remove a bogus comment. DONTBUILD. 2016-07-22 17:20:49 -04:00
Boris Zbarsky 25504e4a0d Bug 1288581 part 1. Start tracing the expando object, if any, inside the ExpandoAndGeneration of a shadowing DOM proxy from that proxy's trace hook. r=smaug 2016-07-22 16:19:52 -04:00
Carsten "Tomcat" Book 8b6316ec5f Merge mozilla-central to mozilla-inbound 2016-07-22 11:59:06 +02:00
Carsten "Tomcat" Book 336105a0de merge mozilla-inbound to mozilla-central a=merge 2016-07-22 11:58:02 +02:00
Andrew McCreight 623b56a3f1 Bug 1287143 - Remove the window argument to SpecialPowers.exactGC(). r=jmaher
Cu.forceCC() is the same as DOMWindowUtils.cycleCollect(), but does
not require a window.
2016-07-19 13:13:00 +08:00
Boris Zbarsky 13a6409e22 Bug 1280818 part 2. Change console to capture the first non-self-hosted subsumed frame when it just needs a caller location, instead of capturing the first frame and then possibly failing to get useful location info out of it because it's self-hosted. r=baku 2016-07-21 23:41:02 -04:00
Nick Fitzgerald ea16cfab73 Bug 1280818 part 1 - Add the ability to capture the stack until the first non-self-hosted frame with the given principals; r=bz,jimb
Before this commit, one could either capture all stack frames (by passing
maxFrameCount = 0) or a maximum of N frames (by passing maxFrameCount = N). This
commit introduces the ability to capture the first frame (by default ignoring
self hosted frames) with some target principals. This new option required
replacing the `unsigned maxFrameCount` parameter with the introduction of a new
sum type to describe the stack capturing behavior:

  StackCapture = AllFrames
               | MaxFrames(unsigned n)
               | FirstSubsumedFrame(JSPrincipals* p, bool ignoreSelfHosted)

This is obviously more wordy in C++ than we'd like, but does make the stack
capturing more explicit rather than relying on the sentinal 0 to stand in for
infinity.
2016-07-21 23:40:59 -04:00
Tom Tromey 5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Till Schneidereit f8bc4fae19 Bug 911216 - Part 30: Enable SpiderMonkey Promise implementation. r=bz,efaust,bholley,Paolo,tromey,shu
Also contains folded version of the following patches that have to land at the same time with enabling the new implementation (or be backed out at the same time, if it comes to that):

Add Promise checks to test_xrayToJS.xul. r=bholley
Change Promise debugger hook tests to use Promise ctor instead of makeFakePromise. r=shu
Change DOM interface tests to assume Promise is an ES builtin, not a DOM one. r=bz
Remove some PromiseDebugging references. r=bz
Adapt promise rejections test to new xray-unwrapping error. r=bz
Fix expectations in browser_timelineMarkers tests. r=tromey
2016-07-21 12:06:30 +02:00
Brad Lassey b3e11b9f98 Bug 1186948 - remove plugins that are click-to-play from navigator.plugins (restricted to Flash). r=jst,mconley,mrbkap 2015-08-03 19:24:35 -04:00
Carsten "Tomcat" Book 0b2b46fcdb Merge mozilla-central to mozilla-inbound 2016-07-18 17:10:52 +02:00
Carsten "Tomcat" Book 331d217bba merge autoland to mozilla-central a=merge 2016-07-18 17:05:46 +02:00
Carsten "Tomcat" Book 779d97cbaf Backed out changeset a80fdfc128b0 (bug 911216) for high crash-rate on developers - RyanVM request 2016-07-18 16:14:59 +02:00
Jan de Mooij b68d3ea4c4 Bug 1285134 part 1 - Move the runtime private to the context. r=efaust 2016-07-18 14:36:13 +02:00
Carsten "Tomcat" Book a0992595d6 merge mozilla-inbound to mozilla-central a=merge 2016-07-17 10:08:08 +02:00
Brian Birtles dca0a51347 Bug 1277456 part 4 - Use the document associated with an AnimationEffectTiming object as the context for parsing easing rather than the current realm document; r=bz
MozReview-Commit-ID: 4LhbIUIz6Vd

--HG--
extra : rebase_source : 817d59a42876d2c28455fece896e0648fbff551e
2016-07-13 13:22:13 +09:00
Boris Zbarsky c100c511bf Bug 933378 part 4. Change the ErrorResult destructor to suppress the exception, after asserting that it's already suppressed. r=bkelly 2016-07-15 22:35:13 -04:00
Boris Zbarsky de3dccf7da Bug 933378 part 2. Introduce a FastErrorResult class that bindings can use internally instead of ErrorResult. r=bkelly 2016-07-15 22:35:13 -04:00
Boris Zbarsky e3b8194f3f Bug 933378 part 1. Introduce a TErrorResult class that will serve as a base class for various ErrorResult-like subclasses. No actual behavior changes so far. r=bkelly 2016-07-15 22:35:13 -04:00
Till Schneidereit 3a9eed06fe Bug 911216 - Part 30: Enable SpiderMonkey Promise implementation. r=bz,efaust,bholley,Paolo,tromey,shu
Also contains folded version of the following patches that have to land at the same time with enabling the new implementation (or be backed out at the same time, if it comes to that):

Add Promise checks to test_xrayToJS.xul. r=bholley
Change Promise debugger hook tests to use Promise ctor instead of makeFakePromise. r=shu
Change DOM interface tests to assume Promise is an ES builtin, not a DOM one. r=bz
Remove some PromiseDebugging references. r=bz
Adapt promise rejections test to new xray-unwrapping error. r=bz
Fix expectations in browser_timelineMarkers tests. r=tromey
2016-07-16 15:05:12 +02:00
Emilio Cobos Álvarez 12929ea07e Bug 1224664 - Assert if an ErrorResult is accessed on a thread different than the one it's created on, r=khuey 2016-07-15 22:35:13 -04:00
Carsten "Tomcat" Book 255d05f484 Backed out changeset 03362dd7616d (bug 1224664) 2016-07-16 10:03:12 +02:00
Carsten "Tomcat" Book 2abd5d3f18 Backed out changeset dd2d38b7c16b (bug 933378) 2016-07-16 10:03:11 +02:00
Carsten "Tomcat" Book b2d35d7ca3 Backed out changeset 1c2bd3bdebd6 (bug 933378) 2016-07-16 10:03:10 +02:00
Carsten "Tomcat" Book dfb4a51bab Backed out changeset ed38780a242c (bug 933378) 2016-07-16 10:03:08 +02:00
Carsten "Tomcat" Book 10cd9bcc48 Backed out changeset 7fef388bc6cf (bug 1224664) 2016-07-16 10:03:07 +02:00
Boris Zbarsky 8f9cd3e3f5 Bug 1224664 followup: NS_ASSERT_OWNINGTHREAD needs to be #ifdef DEBUG if our NS_DECL_OWNINGTHREAD is. 2016-07-15 23:40:19 -04:00
Boris Zbarsky a522fa79b7 Bug 933378 part 4. Change the ErrorResult destructor to suppress the exception, after asserting that it's already suppressed. r=bkelly 2016-07-15 22:35:13 -04:00
Boris Zbarsky 38d0ae9c0c Bug 933378 part 2. Introduce a FastErrorResult class that bindings can use internally instead of ErrorResult. r=bkelly 2016-07-15 22:35:13 -04:00
Boris Zbarsky 4e44fce24b Bug 933378 part 1. Introduce a TErrorResult class that will serve as a base class for various ErrorResult-like subclasses. No actual behavior changes so far. r=bkelly 2016-07-15 22:35:13 -04:00
Emilio Cobos Álvarez c5ce5bdb84 Bug 1224664 - Assert if an ErrorResult is accessed on a thread different than the one it's created on, r=khuey 2016-07-15 22:35:13 -04:00
Edgar Chen 3c4e6a930e Bug 1286548 - SecureContext makes sense for interface with NoInterfaceObject, since it is also propagated to interface members; r=bz
MozReview-Commit-ID: K7Z3r2YRt7M

--HG--
extra : rebase_source : 5ebb9cd09de4a42690bac6cd04208f108da50731
2016-07-14 17:48:20 +08:00
Alexandre Lissy 6798f02654 Bug 1286530 - Clean AvailableIn, CheckAnyPermissions and CheckAllPermissions from WebIDL r=bz,fabrice
MozReview-Commit-ID: 6EQfBM09xUE

--HG--
rename : dom/contacts/tests/test_contacts_cache.xul => dom/contacts/tests/test_contacts_a_cache.xul
rename : dom/contacts/tests/test_contacts_shutdown.xul => dom/contacts/tests/test_contacts_a_shutdown.xul
rename : dom/contacts/tests/test_contacts_upgrade.xul => dom/contacts/tests/test_contacts_a_upgrade.xul
rename : dom/mobilemessage/tests/mochitest/mochitest.ini => dom/mobilemessage/tests/mochitest/chrome.ini
extra : rebase_source : 5f708f2a927fafff66626367ef07080785ba9f55
2016-04-21 15:48:59 +02:00
Andrew McCreight 1d1ce1020c Bug 1283636 - Use CallbackPreserveColor() less. r=bz
Some places call CallbackPreserveColor() because they know the object
must have already been marked black. This patch replaces those calls
with a new function CallbackKnownNotGray() which documents and
dynamically checks this assumption.
2016-07-13 13:28:00 +02:00
Boris Zbarsky efc4dcf284 Bug 1275315 part 2. Use the new Realm getters in binding code. r=peterv 2016-07-09 00:19:52 -04:00
Chris Peterson 43c2748f66 Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj 2016-07-08 14:39:53 -07:00
Boris Zbarsky 1ed92648d1 Bug 1257037 part 15. Get rid of the wantsXrays configuration annotation. Just set bindings to want Xrays if they're exposed in Window. r=khuey 2016-07-08 00:37:55 -04:00
Boris Zbarsky 8c00d2132b Bug 1257037 part 14. Remove the now-unused skipGen bits from binding code. r=khuey 2016-07-08 00:37:55 -04:00
Boris Zbarsky d959247e48 Bug 1257037 part 13. Get rid of the concept of worker vs non-worker descriptors. r=khuey 2016-07-08 00:37:55 -04:00
Boris Zbarsky 4813a875a7 Bug 1257037 part 12. Simplify CGRegisterWorkerBindings now that there are no more worker descriptors. r=khuey 2016-07-08 00:37:55 -04:00
Boris Zbarsky f3fde63185 Bug 1257037 part 11. Get rid of getRelevantProviders, since all the places that use it have a Configuration. r=khuey 2016-07-08 00:37:55 -04:00
Boris Zbarsky 584c6019b6 Bug 1257037 part 10. Store only one descriptor per interface name in the configuration. r=khuey 2016-07-08 00:37:54 -04:00
Boris Zbarsky 67d015d59c Bug 1257037 part 9. Get rid of the concept of mainthread callbacks or worker callbacks; just codegen all the callbacks. r=khuey 2016-07-08 00:37:54 -04:00
Boris Zbarsky ca29b3c56a Bug 1257037 part 8. Remove Configuration.getDescriptorProvider. r=khuey 2016-07-08 00:37:54 -04:00
Boris Zbarsky f719b4d8e4 Bug 1257037 part 7. Make the binding Configuration a non-workers DescriptorProvider. r=khuey 2016-07-08 00:37:54 -04:00
Boris Zbarsky fc26f41e40 Bug 1257037 part 6. Simplify the toBindingNamespace function now that there are no worker bindings. r=khuey 2016-07-08 00:37:54 -04:00
Boris Zbarsky e36bd30afb Bug 1257037 part 5. Remove remaining checks for worker descriptors from Codegen.py. r=khuey 2016-07-08 00:37:54 -04:00
Boris Zbarsky c65c962762 Bug 1257037 part 4. Remove the worker-only XXX comments from CGWrapGlobalMethod, since we never have worker descriptors for globals anyway. r=khuey 2016-07-08 00:37:54 -04:00
Boris Zbarsky 69caa834f3 Bug 1257037 part 3. Remove filteredSignatures, since it's a no-op unless we're dealing with a worker descriptor. r=khuey 2016-07-08 00:37:54 -04:00
Boris Zbarsky 1dbb14fbc5 Bug 1257037 part 2. Remove isMaybeExposedIn, since it always returns true now. r=khuey 2016-07-08 00:37:53 -04:00
Boris Zbarsky 69f3736864 Bug 1257037 part 1. Remove the worker-descriptor-related complexity in getControllingCondition, since workerDesc.workers never tests true anymore. r=khuey 2016-07-08 00:37:53 -04:00
Boris Zbarsky 8345db87d2 Bug 1282150 followup: placate the rooting analysis in SimpleGlobalObject::Create so we can reopen the CLOSED TREE 2016-07-07 22:24:37 -04:00
Boris Zbarsky 97b0a16147 Bug 1282150 part 4. Have just one way of getting the rooting JSContext, and call it nsContentUtils::RootingCx(). r=bholley 2016-07-07 20:08:26 -04:00
Boris Zbarsky d208b0de7a Bug 1282150 part 3. Add a way to get the JSRuntime for the thread, and use it in various places for rooting. r=bholley 2016-07-07 20:08:26 -04:00
Boris Zbarsky e990418707 Bug 1282150 part 2. Get rid of GetDefaultJSContextForThread. r=bholley 2016-07-07 20:08:26 -04:00
Boris Zbarsky eb139d85bf Bug 1279313 part 1. Simplify AutoEntryScript to not make callers pass in a JSContext. r=bholley 2016-07-07 20:08:25 -04:00
Jan de Mooij a53a99aab6 Bug 1284808 - Rename RuntimeOptions to ContextOptions and move it to the context. r=luke,baku
--HG--
extra : rebase_source : acd82642a27b36b98bf1bf34c29d33c7e0b57dea
2016-07-07 08:15:15 +02:00
Brad Werth e0d3269112 Bug 1241932 - Expose decoded CSS grid track properties in a Chrome API. r=heycam, r=khuey
--HG--
extra : rebase_source : 0c2a49236a2c71233a1ce6a92e50663b8a9f6238
2016-07-06 11:45:18 -07:00
Fabrice Desré f3a986a379 Bug 1284455 - Remove the Web Activities API r=me
MozReview-Commit-ID: 5SNGsRU4m9V

--HG--
extra : rebase_source : ccc6860481faa17b4b52571ae4fa6d9f2fc749de
2016-04-20 19:02:44 +02:00
Astley Chen c0cfafab52 Bug 1284169 - include ACDEFINES flags in CSS properties PyGen r=mshal
MozReview-Commit-ID: 6fBTizGkBqG

--HG--
extra : rebase_source : 3d5a10b19941383e16c84712c3d6403632e7da50
2016-07-04 13:48:54 +08:00
Andrea Marchesini 43868a9da7 Bug 1282366 - Improve WorkerHolder use in Runnables, r=khuey 2016-07-04 08:19:10 +02:00
Daniel Holbert 2354f5fcb2 (no bug) Fix documentation in Bindings.conf to clarify that only some interfaces need to be listed there. rs=khuey
comment-only, so DONTBUILD

MozReview-Commit-ID: 5TY2roIvVcZ
2016-07-01 15:47:30 -07:00
Carsten "Tomcat" Book 3a42c363cc merge mozilla-inbound to mozilla-central a=merge 2016-06-30 12:33:41 +02:00
Gregory Szorc 301c133f5c Bug 1280326 - Stop monkeypatching os.path.exists; r=ted
MockedOpen monkeypatches os.path.exists. Changes to MockedOpen
since this test code was written have made it more robust
making the extra monkeypatching in the test not necessary.

This change may not fix the test failure reported in the bug.
But at least it makes the test code simpler.

MozReview-Commit-ID: BnUr08leope

--HG--
extra : rebase_source : d8d721392c88883fddf7959ca40ea194f91483c9
2016-06-24 13:41:49 -07:00
Carsten "Tomcat" Book 5c90a99952 merge mozilla-inbound to mozilla-central a=merge 2016-06-29 16:13:05 +02:00
Mantaroh Yoshinaga 8bc07a20e3 Bug 1267510 part 3 - Add DocumentTimeline constructor. r=birtles
MozReview-Commit-ID: CqqDlHQsm0p

--HG--
extra : rebase_source : 4495e289009af105b61413526ffd03200b5bee6b
2016-06-29 11:13:45 +09:00
Tom Schuster 4455e57052 Bug 1114580 - Change ESClassValue to an enum class. r=jorendorff 2016-06-30 00:04:56 +02:00
Boris Chiou 03d90dd78b Bug 1244590 - Part 3: Parse spacing. r=birtles
We only support spacing mode from Web Animations API, so add a simple parser and
use it only from the API. In this patch, parse spacing mode from the constructor
and throw TypeError if we have any parse error.

MozReview-Commit-ID: 9H7g80IcZfZ

--HG--
extra : rebase_source : e1bc781ff0f20a1a38c04e672832ec013edc549d
2016-05-13 16:38:25 +08:00
Wes Kocher 8414c26e20 Merge m-c to inbound, a=merge 2016-06-27 14:09:06 -07:00
Wes Kocher cd463132d8 Backed out 8 changesets (bug 1267510) for causing unacceptably frequent failures in animation mochitests a=backout
Backed out changeset 2a2c42608ff0 (bug 1267510)
Backed out changeset 4cdb7f5b6f7c (bug 1267510)
Backed out changeset e89ec30077a0 (bug 1267510)
Backed out changeset 884243ce4287 (bug 1267510)
Backed out changeset 130a231c5acc (bug 1267510)
Backed out changeset 1ace442f6123 (bug 1267510)
Backed out changeset 058ad3199edb (bug 1267510)
Backed out changeset a7d18185f28d (bug 1267510)

--HG--
rename : testing/web-platform/tests/web-animations/timing-model/timelines/default-document-timeline.html => testing/web-platform/tests/web-animations/interfaces/AnimationTimeline/document-timeline.html
rename : testing/web-platform/tests/web-animations/interfaces/DocumentTimeline/idlharness.html => testing/web-platform/tests/web-animations/interfaces/AnimationTimeline/idlharness.html
2016-06-27 11:49:06 -07:00
Mantaroh Yoshinaga 5b4de2dcff Bug 1267510 part 3 - Add DocumentTimeline constructor. r=birtles
MozReview-Commit-ID: CqqDlHQsm0p

--HG--
extra : rebase_source : 6f6f4583ffa57a4375af62c64a76081902b1f361
2016-06-27 08:09:32 +09:00
Boris Zbarsky 4eb82c0b30 Bug 1281071. Be a bit more careful with our cross-origin-accessible stuff on windows. r=bholley 2016-06-23 19:39:53 -04:00
Andrea Marchesini f8c59929b9 Bug 1282851 - Remove DummyInterfaceWorkers, r=khuey 2016-06-29 08:00:39 +02:00
Andrea Marchesini 6209c0d90e Bug 1269161 - Remove the separate worker bindings for URL, r=khuey 2016-06-29 07:43:44 +02:00
Kyle Huey 2dda6971f7 Bug 1282603: Don't use 'workers': True for *WorkerGlobalScope. r=baku
--HG--
extra : rebase_source : ed96d99034e9236bd1fd4a8287efbd17cf20138e
2016-06-28 10:47:23 -07:00
Mike Shal 17d3cc636b Bug 1273579 - Move GenerateCSS2PropertiesWebIDL.py invocation to moz.build; r=ted
MozReview-Commit-ID: 4OdSORktwis
2016-05-16 15:43:56 -04:00
Mike Shal 368c6bdec3 Bug 1273579 - Create main() function in GenerateCSS2PropertiesWebIDL.py; r=ted
MozReview-Commit-ID: 1R4L8Yvuzb2
2016-05-16 15:28:48 -04:00
Andrea Marchesini aac2306f2c Bug 1269154 - Get rid of WorkerFeature: WorkerHolder, r=khuey
--HG--
rename : dom/cache/Feature.cpp => dom/cache/CacheWorkerHolder.cpp
rename : dom/cache/Feature.h => dom/cache/CacheWorkerHolder.h
rename : dom/workers/WorkerFeature.h => dom/workers/WorkerHolder.h
2016-06-23 10:53:14 +02:00
Carsten "Tomcat" Book 47aeb86e2c Backed out changeset 1c5d78c7ba43 (bug 1269154) for bustage on a CLOSED TREE
--HG--
rename : dom/cache/CacheWorkerHolder.cpp => dom/cache/Feature.cpp
rename : dom/cache/CacheWorkerHolder.h => dom/cache/Feature.h
rename : dom/workers/WorkerHolder.h => dom/workers/WorkerFeature.h
extra : rebase_source : 49f9e9ce0500ac441fe97878cf9308804926544f
2016-06-23 10:13:54 +02:00
Andrea Marchesini 45087a7970 Bug 1269154 - Get rid of WorkerFeature: WorkerHolder, r=khuey
--HG--
rename : dom/cache/Feature.cpp => dom/cache/CacheWorkerHolder.cpp
rename : dom/cache/Feature.h => dom/cache/CacheWorkerHolder.h
rename : dom/workers/WorkerFeature.h => dom/workers/WorkerHolder.h
2016-06-22 17:24:35 +02:00
Andrea Marchesini 37ac18fc67 Bug 1269162 - part 6 - Merge XMLHttpRequestWorker and XMLHttpRequestMainThread, r=smaug
--HG--
rename : dom/xhr/nsXMLHttpRequest.cpp => dom/xhr/XMLHttpRequestMainThread.cpp
rename : dom/xhr/nsXMLHttpRequest.h => dom/xhr/XMLHttpRequestMainThread.h
2016-06-27 19:13:41 +02:00
Andrea Marchesini ec2c86347e Bug 1269162 - part 5 - Merge XMLHttpRequestUploadWorker and XMLHttpRequestUpload, r=smaug 2016-06-27 19:13:41 +02:00
Andrea Marchesini 7c9f17d89a Bug 1269162 - part 4 - Move XMLHttpRequestEventTarget in separate files, r=smaug 2016-06-27 19:13:41 +02:00
Andrea Marchesini d3028d3755 Bug 1269162 - part 2 - Move XHRUpload in workers to XMLHttpRequestUploadWorker, r=smaug
--HG--
rename : dom/workers/XMLHttpRequestUpload.cpp => dom/workers/XMLHttpRequestUploadWorker.cpp
rename : dom/workers/XMLHttpRequestUpload.h => dom/workers/XMLHttpRequestUploadWorker.h
2016-06-27 19:13:40 +02:00
Andrea Marchesini e8f16c81be Bug 1269162 - part 1 - Move XHR in workers to XMLHttpRequestWorker, r=smaug
--HG--
rename : dom/workers/XMLHttpRequest.cpp => dom/workers/XMLHttpRequestWorker.cpp
rename : dom/workers/XMLHttpRequest.h => dom/workers/XMLHttpRequestWorker.h
2016-06-27 19:13:40 +02:00
Andrea Marchesini 82f92bee37 Bug 1279453 - Remove separate worker binding for ServiceWorkerRegistration API, r=bkelly 2016-06-12 16:26:51 +02:00
Jonathan Watt b15368cfcb Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Andrea Marchesini 64734bf74c Bug 1278838 - Remove separate worker binding for Performance API, r=smaug
--HG--
rename : dom/performance/nsPerformance.cpp => dom/performance/Performance.cpp
rename : dom/performance/nsPerformance.h => dom/performance/Performance.h
rename : dom/workers/Performance.cpp => dom/performance/PerformanceWorker.cpp
rename : dom/workers/Performance.h => dom/performance/PerformanceWorker.h
2016-06-09 19:04:42 +02:00
Andrea Marchesini 1264ad2da5 Bug 1278845 - Move PerformanceNavigation to separate files, r=smaug 2016-06-09 12:44:54 +02:00
Andrea Marchesini d84e87b425 Bug 1278843 - Move PerformanceTiming code in separate files, r=smaug 2016-06-09 12:43:56 +02:00
Andrea Marchesini e7022433c4 Bug 1278835 - Renaming nsPerformanceNavigation to mozilla::dom::PerformanceNavigation, r=smaug 2016-06-09 12:43:02 +02:00
Andrea Marchesini c1ff80c475 Bug 1278834 - Renaming nsPerformanceTiming to mozilla::dom::PerformanceTiming, r=smaug 2016-06-09 12:42:43 +02:00
Andrew Sutherland af016de2cb Bug 1272436 - P0: Implement "only-if-cached" RequestCache mode. r=mayhemer, r=bkelly, r=bzbarsky for WebIDL change
The fetch spec has re-introduced "only-if-cached" mode which loads only from
the cache.  There are privacy implications to this so for the time being it
is required that "same-origin" mode is used.
2016-06-08 12:10:15 -04:00
Andrea Marchesini 43a1cd6c16 Bug 1277226 - Implement MainThreadWorkerRunnable, r=sicking 2016-06-08 07:12:05 +02:00
Jonas Sicking 23a4858f1f Bug 1263991 part 1: Remove some properties that are not needed right now. r=djvj 2016-06-07 02:46:03 -07:00
Jan de Mooij 66faed38af Bug 1277278 part 1 - Remove ContextOptions and make autoJSAPIOwnsErrorReporting the default. r=luke
--HG--
extra : rebase_source : aa1dcba100a3bb7a5057b07284cf4a99353afe5a
2016-06-07 20:30:48 +02:00
James Graham 5eb8c8dd4e Bug 1277039 - Fix output of |mach webidl-parser-test| to be less verbose by default, r=gps
MozReview-Commit-ID: AiMiksDzUdt

--HG--
extra : rebase_source : 3125cd305459a8080c3b266b07c199937bc36c5c
2016-06-06 17:52:24 +01:00
Boris Zbarsky 0f8a633cfe Bug 1277401 part 5. Change dictionary codegen to output Func stuff as needed. r=peterv 2016-06-07 10:34:54 -04:00
Boris Zbarsky 7a576733a8 Bug 1277401 part 4. Fix up includes for dictionary members with [Func] on them. r=peterv 2016-06-07 10:34:54 -04:00
Boris Zbarsky 5b496a675c Bug 1277401 part 3. Add IDL parser support for [Func] on dictionary members. r=peterv 2016-06-07 10:34:54 -04:00
Boris Zbarsky d3289bfcf8 Bug 1277401 part 2. Fix up includes for dictionaries that have [ChromeOnly] members. r=peterv 2016-06-07 10:34:54 -04:00
Boris Zbarsky df8eeb6742 Bug 1277401 part 1. Factor out the condition list generation for pref/func so we can reuse it for dictionary members. r=peterv 2016-06-07 10:34:53 -04:00
Carsten "Tomcat" Book f70103867d Backed out changeset 555091dfb391 (bug 1263991) for bustage on a CLOSED TREE 2016-06-07 12:10:43 +02:00
Jonas Sicking be1a3a8e1d Bug 1263991 part 1: Remove some properties that are not needed right now. r=djvj 2016-06-07 02:46:03 -07:00
Andrea Marchesini c30cdb7269 Bug 989619 - patch 2 - console API should use webIDL namespaces, r=bz 2016-06-04 09:32:51 +02:00
Andrea Marchesini be787b709b Bug 989619 - patch 1 - Codegen should allow static methods with a reserved C++ keywords as the name, r=peterv 2016-06-04 09:31:44 +02:00
Ms2ger 595eb44ead Bug 1273499 - Move some code around in CallSetup::CallSetup() to avoid code repetition; r=bz
This has been possible since changeset d5f6867173c9 (bug 1262630).
2016-06-03 11:11:45 +02:00
Cameron McCormack e3ca5e1f4a Bug 1141916 - Part 2: Support [ChromeOnly] on dictionary members. r=peterv 2016-06-02 12:14:24 -04:00
Cameron McCormack fe6930a402 Bug 1141916 - Part 1: Store extended attributes on IDLArguments. r=peterv 2016-06-02 12:10:56 -04:00
Boris Zbarsky 783e8cc098 Bug 1270601 part 3. Add a way to annotate and IDL namespace as needing a new plain object as its prototype, because using Object.prototype as the prototype of 'console' is not web-compatible. r=peterv 2016-06-02 10:34:39 -04:00
Boris Zbarsky 98b4dca6e9 Bug 1270601 part 2. Add codegen support for IDL namespaces. r=peterv 2016-06-02 10:34:39 -04:00
Boris Zbarsky 7e52059153 Bug 1270601 part 1. Add Web IDL parser support for IDL namespace syntax. r=peterv 2016-06-02 10:34:39 -04:00
Kaku Kuo fca7b0b604 Bug 1141979 - part8 - implement ImageBitmap extensions; r=jrmuizel
MozReview-Commit-ID: Bc6HoqRLMNB

--HG--
extra : transplant_source : %89%E9Q%FD4%ED%FD%EC5pqq%AF%C6%90%E0y%A2%88%12
2016-04-27 13:03:01 +08:00
Nicholas Nethercote 2fda0872c8 Bug 1267551 (part 10) - Use MOZ_MUST_USE in AutoVectorRooterBase. r=terrence.
This patch fixes numerous unchecked calls.

--HG--
extra : rebase_source : 566f2ca9fba1c8b18fa7ec1753168dbae9cf70d1
2016-06-01 15:49:04 +10:00
Kannan Vijayan ext:(%2C%20Jonas%20Sicking%20%3Cjonas%40sicking.cc%3E) 8687d34336 Bug 1272099, Bug 1272101 - FlyWeb core implementation, DOM and Network changes. r=baku r=hurley
--HG--
extra : amend_source : 73ed6e6bccb6b39d7aafd5851bb836a46bcd4e10
2016-06-02 02:47:00 -04:00
Nathan Froyd 1578760736 Bug 1272813 - part 3 - try to take advantage of string sharing in JSEventHandler::HandleEvent; r=peterv
The Rebind() call in HandleEvent was attempting to be clever by sharing
string data with the error event's message.  Unfortunately, we
eventually needed to pass the message out to JS, which required copying
the string for JS's purposes.  Fortunately, we can attempt to be even
more clever by noticing whether the error event's message is already
allocated as a string buffer and sharing that, rather than just the raw
data.  In the best case, the string buffer can be shared out to JS and
we avoid some needless copying.
2016-06-01 16:26:59 -04:00
Nathan Froyd a4f2ce0263 Bug 1272813 - part 2 - factor out a AssignFromStringBuffer method in FakeString; r=peterv
We're shortly going to have multiple ways to assign an nsStringBuffer
into FakeString, so we might as well put the common code somewhere
useful.
2016-06-01 16:26:59 -04:00
Andrea Marchesini e004a6613e Bug 1276887 - webidl "Deprecated" keyword should work in workers, r=smaug 2016-06-01 12:15:34 +02:00
Olli Pettay b6345324c6 Bug 1276424 - EventListenerWasAdded/Remove doesn't work in JS implemented webidl because of missing 'override', r=bz
--HG--
extra : rebase_source : 9bc0109e898b462b500fb40da836c0fb8660b18e
2016-05-31 23:05:55 +03:00
Wes Kocher 043b2fdedd Backed out changeset e5f0088f8ca2 (bug 1276887) for WorkerPrivate assertions CLOSED TREE 2016-05-31 11:31:29 -07:00
Andrea Marchesini e7015103b0 Bug 1276887 - webidl "Deprecated" keyword should work in workers, r=smaug 2016-05-31 17:46:52 +02:00
Boris Zbarsky dc120449d2 Bug 1275698. Get rid of nsScriptSecurityManager::ScriptAllowed and replace it with xpc::Scriptability::Get(obj).Allowed() for better performance and less indirection. r=khuey 2016-05-27 20:26:56 -04:00
Bill McCloskey efab9ca4b1 Bug 1276353 - Use UncheckedUnwrap in DOMInstanceOf (r=mrbkap) 2016-05-27 17:22:20 -07:00
Bill McCloskey 291c555f34 Bug 1262671 - void** -> PickleIterator (r=froydnj) 2016-05-27 09:57:38 -07:00
Joel Maher 8e50d588fd Bug 1269872 - adjust manifests of all jobs that require a gpu. r=RyanVM,jgilbert
dom/media/tests/mochitests/test_peerConnection_captureStream_canvas_webgl.html has an issue on android as it is moved from mochitest-media -> mochitest-gpu.
dom/bindings/test/test_integer.html uses experimental-webgl, it might need to be picked up in a future cleanup.

MozReview-Commit-ID: GJKn7ubY7tL
2016-05-25 16:22:27 -04:00
Andi-Bogdan Postelnicu 0e85273c99 Bug 1273072 - initialize |mNameOffset|, |mNameLength|, |mDefine|, |mEnabled|. r=peterv
MozReview-Commit-ID: 49fNxcG2C1

--HG--
extra : rebase_source : b30973f381bbc627fc133849b76783b4eddffa7e
2016-05-16 12:04:50 +03:00
Boris Zbarsky bfc23d53a8 Bug 1273661 part 3. Add the codegen bits and Trace implementation to allow Web IDL callbacks to not have to HoldJSObjects until the bindings have determined that someone is actually holding on to the callback object. r=smaug,terrence 2016-05-18 12:23:35 -04:00
Boris Zbarsky 46fb203b06 Bug 1273661 part 2. Add a way to trace a RefPtr<T> or OwningNonNull<T> via a Rooted. r=terrence,smaug 2016-05-18 12:23:35 -04:00
Boris Zbarsky 24fa4ec444 Bug 1273661 part 1. Add a way to construct a callback object without calling HoldJSObjects. r=smaug 2016-05-18 12:23:35 -04:00
Boris Zbarsky 2b85094faf Bug 909633. Remove the HTML Microdata API, since no one else ended up implementing it and now it's been removed from the spec. r=bkelly,jgraham 2016-05-20 23:13:17 -04:00
Boris Zbarsky 3ebd37957e Bug 1274049. Make sure we actually codegen our various test callbacks in bindings codegen tests. r=peterv 2016-05-19 13:48:11 -04:00
Boris Zbarsky 61b3aedfa3 Backed out changesets bdb5b50fd858, 74dbcb56456d, 8f319062be85, 9806d7a88802, c08f417d85fd (bug 1273661) for build bustage and CLOSED TREE. 2016-05-19 00:26:24 -04:00
Boris Zbarsky 5938137a2b Bug 1273661 another followup. Guess that msvc is not being happy with OwningNonNull not being pulled in here. r=STILL CLOSED TREE 2016-05-19 00:01:43 -04:00
Boris Zbarsky 1a82ba56e3 Bug 1273661 followup. We need different RootedCallback destructors for the OwningNonNull and RefPtr cases, unfortuntately. r=CLOSED TREE 2016-05-18 23:38:23 -04:00
Boris Zbarsky 893059f88a Bug 1273661 part 3. Add the codegen bits and Trace implementation to allow Web IDL callbacks to not have to HoldJSObjects until the bindings have determined that someone is actually holding on to the callback object. r=smaug,terrence 2016-05-18 12:23:35 -04:00
Boris Zbarsky 8c3af4a958 Bug 1273661 part 2. Add a way to trace a RefPtr<T> or OwningNonNull<T> via a Rooted. r=terrence,smaug 2016-05-18 12:23:35 -04:00
Boris Zbarsky 384428f2af Bug 1273661 part 1. Add a way to construct a callback object without calling HoldJSObjects. r=smaug 2016-05-18 12:23:35 -04:00
Jonathan Watt 55bfea4bac Bug 1177957, part 4 - Tests for the [SecureContext] WebIDL extended attribute. r=bz
MozReview-Commit-ID: IodQqQ3rAfI
2016-05-16 10:04:38 +01:00
Jonathan Watt 1f58b22c60 Bug 177957, part 3 - Make the WebIDL code generator support the [SecureContext] extended attribute. r=bz
MozReview-Commit-ID: 3O3V4MTgLuR
2016-05-16 10:04:38 +01:00
JMortelliti b122e889a9 Bug 1015318 - Factor out the common code from IDLNullableType, IDLSequenceType, and IDLMozMapType into a new superclass, IDLParameterizedType. r=bzbarsky
MozReview-Commit-ID: 20darfFam9f
2016-05-14 10:17:44 -04:00
Jonathan Watt c708a6bc4b Bug 1177957, part 2 - WebIDL parser tests for the [SecureContext] extented attribute. r=bz
MozReview-Commit-ID: 7hIblAhdBYw
2016-05-13 23:11:16 +01:00
Jonathan Watt 057734ea40 Bug 1177957, part 1 - Make the WebIDL parser support the [SecureContext] extented attribute. r=bz
MozReview-Commit-ID: Hm6ZvBoGeUj
2016-05-13 23:11:16 +01:00
James Graham 2d4b6790d3 Bug 1272698 - Allow specifying tests in |mach webidl-parser-test|, r=gps
MozReview-Commit-ID: 8i6qgdF963i

--HG--
extra : rebase_source : b4a1a4db6545ddfc481429c6fac39edd75c9af87
2016-05-13 17:58:46 +01:00
Chris Peterson 353ee65255 Bug 1272513 - Part 1: Suppress -Wshadow warnings-as-errors in some directories. r=glandium 2016-05-11 00:00:01 -07:00
Boris Zbarsky 3c3e4fad9c Bug 1272160. Fix XPCWrappedNativeScope::AddSizeOfIncludingThis to not blindly poke at non-DOM globals as if they were DOM globals. r=khuey
I did audit the XPConnect callers of TraceProtoAndIfaceCache and DestroyProtoAndIfaceCache, and they all check JSCLASS_DOM_GLOBAL.
2016-05-13 20:21:40 -04:00
Jeff Muizelaar 1838c2a407 Bug 1272442. Make RootedDictionary, NullableRootedDictionary and SequenceRooter final. r=ehsan
This eliminates a bunch of clang warnings.
2016-05-12 15:01:27 -04:00
Ben Kelly cab3fd4eb2 Bug 1271905 P1 Don't crash if a closed cache::ReadableStream is serialized. r=asuth 2016-05-12 07:29:20 -07:00
Xidorn Quan 114633161f Bug 1268798 part 3 - Add LenientSetter extended attribute. r=khuey
MozReview-Commit-ID: 61wybyS36KE

--HG--
extra : source : 98e1ae5fa2ddf5308fba6e09b47cbb831c60ac8a
2016-05-12 10:28:56 +10:00
Xidorn Quan fe0ed0d00a Bug 1268798 part 2 - Add result summary for WebIDL parser test. r=khuey
MozReview-Commit-ID: DMgATDa9yXX

--HG--
extra : source : 94aba7834b4c813251b8a8714ef7a9b10b1f3603
2016-05-12 10:28:56 +10:00
Xidorn Quan 82fa51890c Bug 1268798 part 1 - Fix exception whitelist in WebIDL parser. r=khuey
MozReview-Commit-ID: 5rBXjHgQuGd

--HG--
extra : source : 0fbdf91d6cec99db9baf0646c372da0f5cb664e4
2016-05-12 10:28:56 +10:00
Boris Zbarsky 20a2c90769 Bug 1268845. Make sure to set up an XPCWrappedNativeScope for SimpleGlobalObject globals on the main thread. r=bholley,ttaubert,ejpbruel 2016-05-10 20:57:29 -04:00
Peter Van der Beken 5c9bb43e9d Bug 1267186 - Split lookup of WebIDL DOM class names from lookup of DOMCI DOM class names. r=bz.
--HG--
extra : rebase_source : 073ec0857b63df3e2ecef43ef3b982f2e1be2d24
2016-05-09 17:08:31 +02:00
Boris Zbarsky 59de5a530f Bug 1270349 part 5. Use LegacyUnenumerableNamedProperties instead of passing flags to GetSupportedNames to determine whether named props on DOM proxies should be reflected in ownPropertyKeys. r=peterv 2016-05-09 22:25:40 -04:00
Boris Zbarsky 76180fb5a7 Bug 1270349 part 4. Use LegacyUnenumerableNamedProperties instead of NameIsEnumerable() calls to determine whether named props on DOM proxies should be enumerable. r=peterv 2016-05-09 22:25:40 -04:00
Boris Zbarsky 919ca7517c Bug 1270349 part 3. Add a way to ask an interface descriptor for a proxy whether its named props should be enumerable. r=peterv 2016-05-09 22:25:40 -04:00
Boris Zbarsky eb97fe75ff Bug 1270349 part 1. Add IDL parser support for [LegacyUnenumerableNamedProperties]. r=peterv 2016-05-09 22:25:40 -04:00
Jeff Gilbert cb6a19b2c4 Bug 1229332 - Add webidl for EXT_color_buffer_float. - r=bz 2016-05-04 15:48:11 -07:00
Carsten "Tomcat" Book 98f0a3271a Backed out changeset d385df62c0e7 (bug 1267186) for hazard failures 2016-05-09 13:40:01 +02:00
Peter Van der Beken b6c1e074c2 Bug 1267186 - Split lookup of WebIDL DOM class names from lookup of DOMCI DOM class names. r=bz.
--HG--
extra : rebase_source : 324cf124544c0ffe2ad2ceccbed397d5069d1435
2016-03-09 15:48:12 +01:00
Sebastian Hengst faffe478f6 Backed out changeset f9d3ea58c195 (bug 1267186) for static bustage in WebIDLGlobalNameHash.cpp. r=backout 2016-05-06 18:11:03 +02:00
Peter Van der Beken 827ee394ba Bug 1267186 - Split lookup of WebIDL DOM class names from lookup of DOMCI DOM class names. r=bz.
--HG--
extra : rebase_source : 5578057666186f58e434767af84fbfeac0cbdc3c
2016-03-09 15:48:12 +01:00
Boris Zbarsky f9fae4ce87 Bug 1257849 part 5. Implement DOMTokenList.prototype.supports(). r=bkelly 2016-05-04 23:41:25 -04:00
Boris Zbarsky 049c40b0ef Bug 1269400. Provide better error messages for the cases when a CallSetup fails and we hence fail to execute a Web IDL callback. r=bholley 2016-05-04 13:59:42 -04:00
Jeff Walden 3017794ba8 Bug 888969 - Permit a cyclic [[Prototype]] chain to be created through a Location object. r=bz, r=efaust
--HG--
extra : rebase_source : dca3ecec791ecca5a2512a789c756bb4af1ca895
2016-04-29 19:59:40 -07:00
Andrea Marchesini 1c0c183890 Bug 1261009 - Remove the Data Store API, r=fabrice 2016-04-29 09:02:45 +08:00
Nicholas Nethercote 2511b2c327 Bug 1267550 (part 2) - Rename MOZ_WARN_UNUSED_RESULT as MOZ_MUST_USE. r=froydnj.
It's an annotation that is used a lot, and should be used even more, so a
shorter name is better.

MozReview-Commit-ID: 1VS4Dney4WX

--HG--
extra : rebase_source : b26919c1b0fcb32e5339adeef5be5becae6032cf
2016-04-27 14:16:50 +10:00
Yoshi Huang ba1bb72568 Bug 1263496 - Part 3: fix for nsNullPrincipal::Create
This fixed the locations listed by
http://searchfox.org/mozilla-central/search?q=nsNullPrincipal::Create(&redirect=true
that needs to inherit origin attributes.
2016-04-27 18:38:07 +08:00
Boris Zbarsky d17aec7b6a Bug 1260511 part 3. In dom::Throw, ignore the pending xpconnect exception if we were given a non-default message string (because we don't want to lose that string). Also, make sure to always clear the pending xpconnect exception there. r=khuey 2016-04-22 16:03:05 -04:00
Boris Zbarsky 40c7808bf8 Bug 1260511 part 2. Change XPConnect's handling of exceptions thrown from JS components so that if an nsresult integer is thrown we convert it into an actual exception object before handing it out to content instead of propagating out the numeric value. r=khuey 2016-04-22 16:03:05 -04:00
Boris Zbarsky 2f533f506d Bug 1265770. Don't try to get a prototype for the interface object for an interface that's [NoInterfaceObject], since it's just unnecessary work that can't even be done at all in some cases (e.g. when the parent interface is also [NoInterfaceObject]). r=peterv 2016-04-20 18:04:56 -04:00
John Dai 706b538497 Bug 964583 - Revert Web IDL [EnforceRange] (unsigned) long long boundary conditions to match ES6. r=bz 2016-04-20 03:12:00 +02:00
Daisuke Akatsuka f9df5acae8 Bug 1244643 - Part 1: Implement AnimationEffectTiming easing. r=hiro
MozReview-Commit-ID: 14H3t787wRy

--HG--
extra : rebase_source : 6ce0e427680becca50d4feeeac6bbcb5f9bbfb30
2016-04-14 09:08:08 +09:00
Boris Zbarsky 911713a99f Bug 1264377. Get rid of some unnecessary custom JSClass hook functions in xpconnect sandboxes and DOM simple globals. r=bholley 2016-04-14 14:54:01 -04:00
Nathan Froyd 5de480bee4 Bug 1264187 - check for a ProtoAndIfaceCache before blindly destroying it; r=bz
We normally create global objects in the DOM bindings via:

  1. Call JS_NewGlobalObject.
  2. Set a private slot to hold a ProtoAndIfaceCache.
  3. Other steps that aren't relevant here.

However, it's possible for step 1 to construct a global inside the JS
engine and then fail to initialize it in some way.  When that happens,
the newly-created object will be subjected to GC and any GC-related
hooks that were passed in to JS_NewGlobalObject.  Which implies that our
tracing and finalization hooks must be prepared to handle an object
that's not fully initialized--i.e. doesn't have a ProtoAndIfaceCache
object allocated for it.  We handled such a case in our trace hook, but
we failed to add the same check for our finalization hook.  Do so.
2016-04-14 11:42:34 -04:00
Nicholas Nethercote 60dcde7875 Bug 1261723 (part 2) - Separate class ops from js::Class. code=njn,h4writer. r=efaust,bz.
js::Class op are often all null. And when they're not all null, they're often
duplicated among classes. By pulling them out into their own struct, and using a
(possibly null) pointer in js::Class, we can save 114 KiB per process on
64-bit, and half that on 32-bit.
* * *
imported patch separate-ClassOps-2

--HG--
extra : rebase_source : bd751bf247e9491c1966a123dbeffa573657dfb1
2016-04-01 11:00:01 +11:00
Boris Zbarsky 272e533b18 Bug 1262630. Replace workers::GetGlobalObjectForGlobal with xpc::NativeGlobal. r=khuey 2016-04-07 21:58:21 -04:00
Olli Pettay 0a1b93ddf6 Bug 684208 - make dispatchEvent()'s return value to follow the spec, r=masayuki
--HG--
extra : rebase_source : d94e95611c2eb14171a693a5197afbd6e98f696a
2016-04-07 15:49:12 +03:00
Tooru Fujisawa 5efb474b91 Bug 1165052 - Part 0: Add throwOutOfMemory testing function and use it instead of Array.prototype.splice in test_oom_reporting.html. r=efaust 2016-04-07 19:20:22 +09:00
Ms2ger dd6ade76ab Bug 1260417 - Part c: Stop mentioning requests around CallSetup::mRootedCallable; r=bz
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.
2016-04-07 09:11:52 +02:00
Ms2ger 7942e7f996 Bug 1260417 - Part b: Depend on AutoEntryScript to find an appropriate JSContext CallSetup; r=bz 2016-04-07 09:11:52 +02:00
Ms2ger c005f7ce82 Bug 1260417 - Part a: Add a comment about the compartment of CallbackObject::mCallback; r=bz 2016-04-07 09:11:52 +02:00
Kyle Huey 285235dfaa Bug 1261428: Migrate the useless setTimeout error message to the bindings infrastructure. r=bz 2016-04-06 14:20:30 -07:00
Ben Kelly 9f390beeff Bug 1256428 P3 Add ServiceWorkerUpdateJob2. r=jdm 2016-04-06 13:27:22 -07:00
Peter Van der Beken f781f02ccd Bug 1245650 - remove JavaScript-navigator-property category support. r=bz.
Generate normal properties with getters for things marked as NavigatorProperty,
instead of defining these from a resolve hook.
2016-02-05 20:20:08 +01:00
Nicholas Nethercote 0faa7a06ba Bug 1261720 (part 2) - Move ClassExtension::isWrappedNative into js::Class::flags. r=jorendorff.
This saves 10 KiB of static data on 64-bit, and half that on 32-bit.

--HG--
extra : rebase_source : f0e9c5cdba7f5a71cda046152691de6a5184a223
2016-04-04 08:47:15 +10:00
Nicholas Nethercote f7dab46ae8 Bug 1261720 (part 1) - Separate js::ClassExtension from js::Class. r=jorendorff,bz.
js::ClassExtension is often all null. When it's not all null, it's often
duplicated among classes. By pulling it out into its own struct, and using a
(possibly null) pointer in js::Class, we can save 17 KiB per process on
64-bit, and half that on 32-bit.

--HG--
extra : rebase_source : eb78ade09ce268e886d091f6cbc38d7e5e912527
2016-04-04 08:45:07 +10:00
Chris Manchester f7a1b3fb60 Bug 1242051 - Add inter-directory test support file dependencies to ini manifests. r=gps
Previously, every test and support file would be synced to the objdir
when running any test. Now that only those support files and tests requested
are synced, we note support files required beyond those in a test's
directory in ini manifests.

MozReview-Commit-ID: EmlDz9d4lqt
2016-04-04 14:56:52 -07:00
Boris Zbarsky 80d8bedf90 Bug 1246153 part 3. Use the new clean global setup for doing from-JSON creation of dictionaries. r=bholley 2016-04-04 12:29:18 -04:00
Boris Zbarsky 63950bd866 Bug 1246153 part 2. Create a way to ask for a clean new global that works on both mainthread and workers. r=bholley 2016-04-04 12:29:16 -04:00
Boris Zbarsky 190e8db66b Bug 1246153 part 1. Restrict initialization of dictionaries from JSON to dictionaries that can actually be represented in JSON. r=bholley 2016-04-04 12:16:13 -04:00
Kit Cambridge 2bfd46b860 Bug 1257401 - Remove the worker descriptor for `PushManager`. r=khuey
MozReview-Commit-ID: 4nZElH1K3W5

--HG--
extra : rebase_source : d325e2fc44124acc0bd04b133605bf04a99ab906
2016-04-01 15:25:49 -07:00
Kit Cambridge 9bf9d2c2c9 Bug 1257401 - Remove the worker descriptor for `PushSubscription`. r=khuey
MozReview-Commit-ID: 9rTJn4KU2Es

--HG--
extra : rebase_source : 446483edea7d5a08c4accf3c4787f08bc3a94cd5
2016-03-31 10:49:07 -07:00
Kyle Huey e0648b2c3a Bug 934889: Use JS_InitStandardClasses everywhere now that it works. r=bz 2016-04-01 11:28:47 -07:00
Daisuke Akatsuka fe1ca49a35 Bug 1260933 - Part 2: For invalid duration values, print the invalid value. r=birtles
MozReview-Commit-ID: 1vg3M3yY19Z

--HG--
extra : rebase_source : 6b994da55078bce5f5db788f8fce483da883ac41
2016-03-31 19:20:59 +09:00
Daisuke Akatsuka 7c788ee98a Bug 1260933 - Part 1: For invalid easing values, print the invalid value. r=birtles
MozReview-Commit-ID: HJEjvGyUnCN

--HG--
extra : rebase_source : e640bcf99d1cf05cad9fe937db92ef80794cb6d6
2016-03-31 19:20:42 +09:00
Nicholas Nethercote 8d77da691d Bug 1260653 (follow-up) - Use |MOZ_CONSTEXPR| instead of |constexpr| to unbreak builds with VS 2013. r=birtles. 2016-04-01 13:51:18 +11:00
Nicholas Nethercote 358a6071d9 Bug 1260653 - Shrink NativeProperties. r=bz.
This patch makes NativeProperties variable-length and reduces static data by
110,336 bytes on 64-bit, and half that on 32-bit.

MozReview-Commit-ID: 2etZ5AnEhgO

--HG--
extra : rebase_source : 6a167b64df7da3c6940114782fe08337f04a694d
2016-03-31 09:57:20 +11:00
Nicholas Nethercote e114b226dc Bug 1259194 (part 4) - Separate js::ObjectOps from js::Class. r=efaust,mrbkap,bz.
js::ObjectOps is often all null. When it's not all null, it's often duplicated
many times among classes. By pulling it out into its own struct, and using a
(possibly null) pointer in js::Class, we can save 208 KiB per process on
64-bit, and half that on 32-bit.

--HG--
extra : rebase_source : 5be8fe45f652392571b8a6d7b63777cbafba6ae4
2016-03-24 07:00:29 +11:00
Nathan Froyd cccdd9fbca Bug 1177488 - use |const char*| for representing async call reasons; r=bz,fitzgen
Using a simple |const char*| is more memory-efficient than allocating a
JS string. We still have to allocate the JS string for passing things
into JS, but ideally we will be able to move the point of allocation
much closer to where it's actually needed, rather than indiscriminantly
doing it all the time.
2016-03-23 10:40:53 -04:00
Boris Zbarsky 4622df74e0 Bug 1104955 part 3. Pass our unscopable names to CreateInterfaceObjects and have it define the right thing on the prototype. r=khuey 2016-03-29 15:50:38 -04:00
Boris Zbarsky 99babb71e8 Bug 1104955 part 2. Make codegen output a list of unscopable names that we can then pass to CreateInterfaceObjects. r=khuey
Note that this does not take into account the exposed/enabled state of the
relevant properties.  This should be OK, I hope.  Taking that state into account
would be rather annoying, unfortunately.  We could make codegen fail if
something is conditionally exposed and unscopable, if desired...
2016-03-29 15:49:48 -04:00
Boris Zbarsky 052df2b3f5 Bug 1104955 part 1. Add parsing for [Unscopeable] in IDL. r=khuey 2016-03-29 15:49:45 -04:00
Nicholas Nethercote c01058efe7 Bug 1259194 (part 1) - Add 's' prefixes to some statics generated for dom bindings. r=bz.
This makes Class, PrototypeClass and InterfaceObjectClass match existing cases
like sAttributes{,_ids,specs}, sNativeProperties, sNativePropertyHooks.
2016-03-24 06:48:44 +11:00
Wes Kocher ea76ed99d7 Backed out changeset 95494e68c722 (bug 1177488) for crashes in test_bug732665.xul CLOSED TREE
MozReview-Commit-ID: IFUHUBUCnCD
2016-03-25 12:11:48 -07:00
Boris Zbarsky d8d55b4579 Bug 1259545. Remove the JS_SaveFrameChain bits in CallbackObject error reporting, since they are no longer needed. r=bholley
The code this is working around no longer exists.
2016-03-25 11:11:20 -04:00
Nathan Froyd 418aa2af4f Bug 1177488 - use |const char*| for representing async call reasons; r=bz,fitzgen
Using a simple |const char*| is more memory-efficient than allocating a
JS string. We still have to allocate the JS string for passing things
into JS, but ideally we will be able to move the point of allocation
much closer to where it's actually needed, rather than indiscriminantly
doing it all the time.
2016-03-23 10:40:53 -04:00
Jonathan Watt d274717f72 Bug 1259172 - Fix assertion in Codegen.py's InitUnforgeablePropertiesOnHolder function. r=bz 2016-03-04 16:24:16 +00:00
Nicholas Nethercote f80479d54a Bug 1011826 - Split Prefable into two pieces. r=bz.
The fields in Prefable relating to disabling are usually all zero. This patch
moves them into a new struct PrefableDisablers. This reduces static data size
by 92 KB, which applies to every process. It might also make isEnabled() faster
because the common case only involves one test instead of two.

--HG--
extra : rebase_source : 004eb8221e23b741c4837dd95af93e437edb4587
2016-03-24 06:09:24 +11:00
Andrea Marchesini 931f576f19 Bug 1246091 - patch 4/7 - Expose ConsoleCallData to WorkerDebuggerGlobalScope, r=ejpbruel 2016-03-23 22:55:07 +01:00
Andrea Marchesini e2091ba30e Bug 1246091 - patch 2/7 - Propagate initialization error in Console.cpp, r=ejpbruel 2016-03-23 22:55:07 +01:00
Nicholas Nethercote a299ce6d78 Bug 1258924 - Reorder DOMIfaceAndProtoJSClass fields to reduce padding. r=bz.
On 64-bit this reduces sizeof(DOMIfaceAndProtoJSClass) from 336 to 328, saving
20 KiB. On 32-bit it should save half that.
2016-03-24 05:54:38 +11:00
Boris Zbarsky 25c4270d09 Bug 1258585. Remove some remaining vestiges of WebIDL quickstubs. r=peterv 2016-03-23 17:46:26 -04:00
Boris Zbarsky 8b4ef1c72e Bug 1255817 part 6. Fix up some comments in CallbackObject that refer to things that no longer exist. r=bholley 2016-03-23 11:44:55 -04:00
Boris Zbarsky e3b2de6aa9 Bug 1255817 part 2. Get rid of AutoJSAPI::OwnsErrorReporting and AutoJSAPI::TakeOwnershipOfErrorReporting. r=bholley 2016-03-23 11:44:54 -04:00
Boris Zbarsky ede5a13ec4 Bug 1257725 part 5. Get rid of ThreadsafeAutoJSContext usage in IDBRequest::CaptureCaller. r=khuey 2016-03-23 11:02:57 -04:00
Boris Zbarsky 5140ac5aae Bug 1257725 part 1. Get rid of ThreadsafeAutoJSContext usage in JSEventHandler::HandleEvent. r=smaug 2016-03-23 11:02:57 -04:00
Boris Zbarsky bc347a401b Bug 1257919 part 10. Make the caller and formattedStack getters on JSStackFrame take an explicit JSContext. r=khuey 2016-03-22 13:50:35 -04:00
Boris Zbarsky dde5cae5bb Bug 1257919 part 9. Make the asyncCause/asyncCaller getters on JSStackFrame take an explicit JSContext. r=khuey 2016-03-22 13:50:31 -04:00
Boris Zbarsky 42b3bbe27a Bug 1257919 part 8. Make the line/column number getters on JSStackFrame take an explicit JSContext. r=khuey 2016-03-22 13:50:31 -04:00
Boris Zbarsky 54987c5cc1 Bug 1257919 part 7. Make the name getter on JSStackFrame take an explicit JSContext. r=khuey 2016-03-22 13:50:31 -04:00
Boris Zbarsky efa07c06d1 Bug 1257919 part 6. Make the filename getter on JSStackFrame take an explicit JSContext. r=khuey 2016-03-22 13:50:31 -04:00
Boris Zbarsky ecd56b7ee6 Bug 1257919 part 5. Get rid of the now-unused StackFrame class. r=khuey 2016-03-22 13:50:31 -04:00
Boris Zbarsky 655d4654c8 Bug 1257919 part 4. Stop returning StackFrame instances from exceptions::CreateStack. C++ callers of GetCurrentJSStack or exceptions::CreateStack always check for null anyway, and none of them seem to want this non-JS thing. r=khuey 2016-03-22 13:50:31 -04:00
Boris Zbarsky 12ede800fa Bug 1257919 part 3. Make the various toString methods on exceptions take an explicit JSContext. r=khuey 2016-03-22 13:50:31 -04:00
Sebastian Hengst 055a2f1834 Backed out changeset 6403c45366e0 (bug 1257919) 2016-03-22 21:10:55 +01:00
Sebastian Hengst 60e4be8fc0 Backed out changeset 1b5db6edd791 (bug 1257919) 2016-03-22 21:10:45 +01:00
Sebastian Hengst dac1daf443 Backed out changeset 83dfa9e03d0e (bug 1257919) 2016-03-22 21:10:37 +01:00
Sebastian Hengst 0e9bf1445a Backed out changeset 6e95ee3cd4c6 (bug 1257919) 2016-03-22 21:10:21 +01:00
Sebastian Hengst e6e4d30446 Backed out changeset c4faeb0be959 (bug 1257919) 2016-03-22 21:10:12 +01:00
Sebastian Hengst 336c2cc4ae Backed out changeset 08f1c7239cdf (bug 1257919) 2016-03-22 21:10:01 +01:00
Sebastian Hengst d5e963398d Backed out changeset cf816f733296 (bug 1257919) 2016-03-22 21:09:53 +01:00
Sebastian Hengst 8b2bf79a7a Backed out changeset ff81c52375ba (bug 1257919) 2016-03-22 21:09:32 +01:00
Boris Zbarsky 8062407932 Bug 1257919 part 10. Make the caller and formattedStack getters on JSStackFrame take an explicit JSContext. r=khuey 2016-03-22 13:50:35 -04:00
Boris Zbarsky eea8812d6b Bug 1257919 part 9. Make the asyncCause/asyncCaller getters on JSStackFrame take an explicit JSContext. r=khuey 2016-03-22 13:50:31 -04:00
Boris Zbarsky 5df498fbd2 Bug 1257919 part 8. Make the line/column number getters on JSStackFrame take an explicit JSContext. r=khuey 2016-03-22 13:50:31 -04:00
Boris Zbarsky cc563df19f Bug 1257919 part 7. Make the name getter on JSStackFrame take an explicit JSContext. r=khuey 2016-03-22 13:50:31 -04:00
Boris Zbarsky 38af226a36 Bug 1257919 part 6. Make the filename getter on JSStackFrame take an explicit JSContext. r=khuey 2016-03-22 13:50:31 -04:00
Boris Zbarsky f42db79269 Bug 1257919 part 5. Get rid of the now-unused StackFrame class. r=khuey 2016-03-22 13:50:31 -04:00
Boris Zbarsky 8ba7a0b580 Bug 1257919 part 4. Stop returning StackFrame instances from exceptions::CreateStack. C++ callers of GetCurrentJSStack or exceptions::CreateStack always check for null anyway, and none of them seem to want this non-JS thing. r=khuey 2016-03-22 13:50:31 -04:00
Boris Zbarsky 8ef4cc7c3d Bug 1257919 part 3. Make the various toString methods on exceptions take an explicit JSContext. r=khuey 2016-03-22 13:50:31 -04:00
Daisuke Akatsuka f479d03a6b Bug 1253470 - Part 4: Produce console warnings for invalid easing. r=birtles 2016-03-18 16:28:22 +09:00
Daisuke Akatsuka a152d59824 Bug 1253470 - Part 1: Produce console warnings for invalid duration. r=birtles 2016-03-18 10:07:10 +09:00
Tom Schuster ed7a4103c8 Bug 1256688 - Change BPH::has to follow [[HasProperty]] for ordinary objects. r=jorendorff 2016-03-19 01:30:03 +01:00
Kyle Huey 2fc599905e Bug 1257355: Remove the worker descriptor for WorkerNavigator. r=bz
--HG--
rename : dom/workers/Navigator.cpp => dom/workers/WorkerNavigator.cpp
rename : dom/workers/Navigator.h => dom/workers/WorkerNavigator.h
2016-03-18 14:15:46 -07:00
Boris Zbarsky 172598b4e2 Bug 1257335. Replace some AutoSafeJSContext uses with AutoJSAPI or AutoJSContext uses. r=bholley
In general, using an AutoJSAPI inited with an object is NOT the same as using
AutoSafeJSContext (or AutoJSAPI inited without an object) and then entering the
compartment of the object: the former will report exceptions to the global of
the object as it comes off the stack, while the latter will not.  This only
really matters if we have an object from a window or worker global and hence
might fire error events, or report internal stuff to the web console.

The changes to initing with an object made in this bug are OK for the following
reasons:

1) dom/base/Console.cpp: Always clears its exception before coming off the stack.
2) dom/base/nsDOMClassInfo.cpp: Inits with a non-web global.
3) dom/base/nsFrameMessageManager.cpp: Inits with a non-web global.
4) dom/media/MediaPermissionGonk.cpp: We probably want the caller to notice if
   anything here throws.
5) dom/xbl/nsXBLPrototypeBinding.cpp: Inits with a non-web global.
6) dom/xul/nsXULElement.cpp: Inits with a non-web global.
7) extensions/pref/autoconfig/src/nsJSConfigTriggers.cpp: Inits with a non-web global.
8) ipc/testshell/XPCShellEnvironment.cpp: Inits with a non-web global.
2016-03-18 10:48:38 -04:00
Wes Kocher ef118686fd Backed out changeset 057ffdc30f1e (bug 1257355) for build bustage CLOSED TREE
MozReview-Commit-ID: 6e53Rrv5mEz

--HG--
rename : dom/workers/WorkerNavigator.cpp => dom/workers/Navigator.cpp
rename : dom/workers/WorkerNavigator.h => dom/workers/Navigator.h
2016-03-17 15:38:39 -07:00
Kyle Huey bee42d87b9 Bug 1257355: Remove the worker descriptor for WorkerNavigator. r=bz
--HG--
rename : dom/workers/Navigator.cpp => dom/workers/WorkerNavigator.cpp
rename : dom/workers/Navigator.h => dom/workers/WorkerNavigator.h
2016-03-17 15:06:14 -07:00
Till Schneidereit 6602beaac6 Bug 1257030 - Add support for supplying preexisting stack instead of capturing one for use as the async parent stack of CallbackObject. r=bz,tromey 2016-03-17 18:07:43 +01:00
Kyle Huey f00a582ac4 Bug 1257389: Use fallible allocation for content-controlled string in bug 1257389. r=bz
--HG--
extra : rebase_source : 904526e9c7ef9a90ac0bb73984af5d95dd8e60fc
2016-03-16 20:04:10 -07:00
Kyle Huey 171ac8799b Bug 1257042: Remove the worker descriptor for PushEvent and PushMessageData. r=bz 2016-03-16 13:44:24 -07:00
Sebastian Hengst c213b3dd0c Backed out changeset 06101225c145 (bug 1257042) for bustage. r=backout on a CLOSED TREE 2016-03-16 20:30:32 +01:00
Kyle Huey 24341cb722 Bug 1257042: Remove the worker descriptor for PushEvent and PushMessageData. r=bz 2016-03-16 11:51:11 -07:00
Kyle Huey 9b06834782 Bug 1257039: Remove the worker descriptor for FileReaderSync. r=bz 2016-03-16 11:51:11 -07:00
Kyle Huey 348998b290 Bug 1257038: Remove the worker descriptor for WorkerLocation. r=bz
--HG--
rename : dom/workers/Location.cpp => dom/workers/WorkerLocation.cpp
rename : dom/workers/Location.h => dom/workers/WorkerLocation.h
2016-03-16 11:51:11 -07:00
Nicholas Nethercote 666b54a97d Bug 1255655 - Const-ify mozilla::dom::ErrorFormatString. r=baku.
--HG--
extra : rebase_source : 0f8d74ff1043835c54d68eb4002d72c2f94921cd
2016-03-11 13:05:10 +11:00
Steve Fink 517605b022 Bug 1246804 - Switch to using in-source annotations. Use C++ inheritance information when describing GC types. Add a test suite., r=terrence
MozReview-Commit-ID: HCcG2k8Wyb9

--HG--
extra : rebase_source : 732ef6ecc52f0e528d38b8c42e442919eba9b5ae
extra : source : 901b1c651c982ccbf42604231c723d168e1cde69
2015-09-29 13:39:33 -07:00
Steve Fink 57bca06b15 Backed out changeset 901b1c651c98 (bug 1246804)
--HG--
extra : rebase_source : d80a34f467275bf74672b87fd09a254b39ee20a1
2016-03-14 21:58:31 -07:00
Steve Fink 2dada4b1a0 Bug 1246804 - Switch to using in-source annotations. Use C++ inheritance information when describing GC types. Add a test suite., r=terrence
MozReview-Commit-ID: HCcG2k8Wyb9

--HG--
extra : rebase_source : 4b048fdcb150662c82e1b623e455551cc7281251
2015-09-29 13:39:33 -07:00
Wes Kocher 168746512d Backed out changeset ee3c99e6f676 (bug 1177488) for LeakSanitizer failures
MozReview-Commit-ID: FFfF4u2vOrS

--HG--
extra : rebase_source : 0c7f5e290b388b2f35837a5f757f2d962b973da3
2016-03-14 13:15:21 -07:00
Nathan Froyd 6b6c2a1fcd Bug 1177488 - use |const char*| for representing async call reasons; r=bz,fitzgen
Using a simple |const char*| is more memory-efficient than allocating a
JS string.  We still have to allocate the JS string for passing things
into JS, but ideally we will be able to move the point of allocation
much closer to where it's actually needed, rather than indiscriminantly
doing it all the time.
2016-03-08 16:29:25 -05:00
Ehsan Akhgari 38d1ffea4e Bug 1043562 - Hide the Contacts API from the contexts that lack sufficient privileges, such as Firefox desktop and Android; r=smaug 2016-03-13 15:17:54 -04:00
Boris Zbarsky 20514713f3 Bug 1255718. Remove the unused JSContext argument of AudioBuffer::Create. r=ehsan 2016-03-11 16:43:31 -05:00
Boris Zbarsky 57fc0e989c Bug 1255709. Simplify the JSContext/GlobalObject handling in ServiceWorkerRegistrationMainThread::GetPushManager a bit. r=bkelly 2016-03-11 16:43:31 -05:00
Boris Zbarsky ab1c6dbdb0 Bug 1255706 part 2. Remove JSContext argument from WorkerPrivate::Terminate. r=khuey 2016-03-11 16:43:30 -05:00
Sebastian Hengst 7045a40a0f Backed out changeset 50c03319c341 (bug 1246091) for mochitest failures. r=backout 2016-03-11 20:16:19 +01:00
Andrea Marchesini c4e620f562 Bug 1246091 - Expose ConsoleEvents to Worker Debugger Actors via Console object directly, r=ejpbruel 2016-03-11 17:59:52 +01:00
Tom Schuster c1175e55e5 Bug 1253866 - Remove Proxy.create from crash tests. r=bz 2016-03-11 13:32:26 +01:00
Ehsan Akhgari 09a89f85f6 Bug 1255636 - Give a better error message when the Request constructor fails because of a cross-origin referrer URL; r=bkelly 2016-03-10 21:11:30 -05:00
Kyle Huey 9eea75a6f5 Bug 1252268: If the slow script dialog aborts an interval timer callback, don't schedule it again. r=bz 2016-03-10 01:50:56 -08:00
Boris Zbarsky c1e007e11b Bug 1255181. Remove AutoJSAPI::InitWithLegacyErrorReporting. r=bholley 2016-03-09 19:02:25 -05:00
Boris Zbarsky 36d4079be7 Bug 1254847 part 3. Make AutoEntryScript always take ownership of error reporting. r=bholley 2016-03-09 19:02:03 -05:00
Andrea Marchesini a3cd53613f Bug 1255099 - XHR CTOR doesn't need to use implicitJSContext, r=bz 2016-03-09 20:28:33 +01:00
Boris Zbarsky 3d39097c61 Bug 1254293. Fix dom::GetArrayIndexFromId to actually follow the spec for large indices (i.e. ones that don't fit in in int32_t). r=peterv 2016-03-08 17:21:40 -05:00
Morgan Phillips d95ecfa483 Bug 1245877 - Expose error message names via the debugger object; r=jorendorff
--HG--
extra : rebase_source : 87a2c2f682285048be1c57c280f4e3af48b9d524
2016-03-04 12:21:57 -08:00
Nathan Froyd f1c0aa7371 Bug 1170045 - part 2 - use SegmentedVector in the DeferredFinalize implementation; r=mccr8
This change ought to make the necessary allocations for many deferred
finalizations smaller, at the cost of some extra space usage and
slightly slower walking over the array.
2016-03-04 12:06:06 -05:00
sakshi 1af0b67296 Bug 1197311 - Remove PR_snprintf calls in dom/ r=froydnj 2016-02-17 14:23:39 -05:00
Ehsan Akhgari 38637e2005 Bug 1251872 - Part 1: Implement Request.referrerPolicy; r=jdm 2016-03-03 16:43:55 -05:00
Ehsan Akhgari 36207d26f5 Bug 1251448 - Add support for RequestInit.referrer; r=jdm 2016-03-02 18:18:27 -05:00
Boris Zbarsky 4d888c1249 Bug 1250949. Add some better documentation to the dictionary init codegen. r=ehsan 2016-03-02 12:38:24 -05:00
Boris Zbarsky 69924c14ce Bug 1252123. Remove some unnecessary JSContext arguments from worker ScriptLoader methods. r=khuey 2016-02-29 14:52:42 -05:00
Jan de Mooij 7692130d1e Bug 1221421 part 2 - Add test. r=bz 2016-02-27 17:32:42 +01:00
Boris Zbarsky 60b1a3f005 Bug 1251045 part 6. Remove the JSContext argument from some worker debugger methods that no longer need it. r=khuey 2016-02-26 15:23:12 -05:00
Ehsan Akhgari afaabe46dc Bug 1250985 - Part 1: Add a way to identify whether a WebIDL dictionary has any members present; r=bzbarsky 2016-02-25 19:49:06 -05:00
Boris Zbarsky 38ed0f626b Bug 1249652 part 1. Add a method on ErrorResult to steal an exception, if any, from a JSContext. r=khuey 2016-02-24 10:38:31 -05:00
Gregory Szorc 503851935a Bug 1249858 - Stop processing IPDL and WebIDL files during artifact builds; r=glandium
We don't process IPDL and WebIDL files during artifact builds. The
backend shouldn't need to care about them.

Before: 2001 total backend files; 2001 created; 0 updated; 0 unchanged; 0 deleted
After:  1945 total backend files; 1945 created; 0 updated; 0 unchanged; 0 deleted

After this change, we no longer write any .cpp files to the objdir
during config.status for artifact builds.

As part of this, we stopped generated webidlsrcs.mk and the build broke
because of an unguarded use in a Makefile.

After this change, only 102/3366 files in the objdir after
`mach configure` are not a) in _virtualenv b) named backend.mk
c) named Makefile (~950 each of backend.mk and Makefile).

MozReview-Commit-ID: 11AIn1i4x4f

--HG--
extra : rebase_source : ac90bb9f6be8b7b986aa0a61b3ccc203a18346a6
2016-02-19 21:46:29 -08:00
Carsten "Tomcat" Book 839ce412a8 merge fx-team to mozilla-central a=merge 2016-02-23 16:54:50 +01:00
Eddy Bruel dae2755a45 Bug 1119490 - Expose the URL constructor to WorkerDebuggerGlobalScope;r=khuey 2016-02-22 10:41:09 +01:00
Andrew McCreight b80e656e9e Bug 1247679, part 3 - Replace NS_IMPL_CYCLE_COLLECTION_TRACE_JSVAL_MEMBER_CALLBACK with JS_MEMBER. r=smaug 2016-02-22 10:11:02 -08:00
Boris Zbarsky 6f8f413e72 Bug 1216751 part 5. Remove the now-unnecessary value iterator infrastructure, since it's entirely handled via the %ArrayPrototype% methods now. r=qdot 2016-02-17 22:58:07 -05:00
Boris Zbarsky 6f458fb1f3 Bug 1216751 part 4. Implement forEach for iterable interfaces. r=qdot 2016-02-17 22:58:04 -05:00
Boris Zbarsky ac58157b15 Bug 1216751 part 3. For pair iterators, @@iterator should be an alias for "entries". Similarly for maplikes and "entries" and setlikes and "values". r=qdot 2016-02-17 22:58:02 -05:00
Boris Zbarsky dcb6669fbd Bug 1216751 part 2. For value iterators, "entries", "keys", and "values" must just come from Array.prototype. r=qdot 2016-02-17 22:58:00 -05:00
Boris Zbarsky a7cbbd23ab Bug 1216751 part 1. Restrict value iterators to interfaces that have indexed properties and pair iterators to interfaces that do not have indexed properties. r=qdot 2016-02-17 22:57:57 -05:00
Boris Zbarsky 8c34247af6 Bug 1248233. Make js::ReportOutOfMemory respect the autoJSAPIOwnsErrorReporting() flag on the context options. r=luke 2016-02-17 22:56:42 -05:00
Boris Zbarsky 3dba4c9b72 Bug 1248719. Fix things so that taking ownership of error reporting on an AutoJSAPI on a worker is OK even if that AutoJSAPI was initialized without an explicit global. r=bholley 2016-02-17 22:56:36 -05:00
Kyle Huey 31dabb4558 Bug 1247117: De-namespace much of IndexedDB. r=baku 2016-02-16 13:46:08 -08:00
Boris Zbarsky 7f1e8d6111 Bug 1247346. Slot indices on IDL interface members that get a slot should be per-interface, not a single per-member number. r=peterv
This matters when a [Cached] attribute appears on an interface, call it C,
which is a consequential interface for both A and B.  There is no a priori
reason that A and B would have identical numbers of their own [Cached]
attributes, which will come before the members of consequential interfaces in
the member array, so in general the attribute may have different slot indices in A
and B.

The approach taken here is to keep things simple and make the slot index of an
interface member either None or a dict mapping interface name to the slot
index.  In the common case of only one interface being involved this is a
little wasteful, but it keeps things simple for consumers, and one extra dict
per [Cached] attribute is not a big deal in the grand scheme of the data
structures the Web IDL parser produces.  Another option would be to store None,
a number (if there is only one interface involved), or a dict (if there are
several interfaces involved).  If we did that, we'd probably want to add some
method to get the slot index for a given interface, because the logic for doing
that would get a bit more complicated.
2016-02-12 21:29:49 -05:00
Deepthi Venkitaramanan 008e6b8991 Bug 1244328 - Merge the functionality of DOMSettableTokenList into DOMTokenList and make everything that used to refer to DOMSettableTokenList refer to DOMTokenList instead. r=bzbarsky 2016-02-11 17:50:42 -05:00
Boris Zbarsky 98fb58a90f Bug 1241349 part 5. Start using binding_detail::UnprivilegedJunkScopeOrWorkerGlobal in dictionary ToJSON conversions. r=bholley 2016-02-10 23:31:33 -05:00
Boris Zbarsky e25e4580b2 Bug 1241349 part 4. Start using binding_detail::UnprivilegedJunkScopeOrWorkerGlobal in maplike/setlike code. r=bholley 2016-02-10 23:31:33 -05:00
Boris Zbarsky b0e7faec5a Bug 1241349 part 3. Add a binding_detail::UnprivilegedJunkScopeOrWorkerGlobal function which returns a global object that can be used for some bindings things. r=bholley 2016-02-10 23:31:33 -05:00
Boris Zbarsky 9f63f6adc2 Bug 1241349 part 2. Restrict generation of ToJSON methods on dictionaries to only dictionaries we can safely stringify with JS::ToJSONMaybeSafely. r=bholley 2016-02-10 23:31:33 -05:00
Tom Schuster 9c44f6d73e Bug 1246318 - Make the proxy enumerate trap non-standard. r=efaust 2016-02-10 00:12:24 +01:00
Boris Zbarsky 24566ec012 Bug 1243001 part 7. Stop wrappercaching dom::Promise when SPIDERMONKEY_PROMISE is defined. r=peterv
nsWrapperCache expects the object it stores to have an ObjectMoved op that will
notify the wrapper cache when the object is moved.  SpiderMonkey promises don't
have a way to do this.

The XPCConvert changes are needed to allow code that passes around Promise
objects as nsISupports to continue working instead of ending up with
double-wrapped nsISupports (XPCWrappedNative for an nsISupports XPCWrappedJS)
around the SpiderMonkey Promise.
2016-02-09 17:40:31 -05:00
Boris Zbarsky fbe6dcf99f Bug 1243001 part 6. Implement Promise::AppendNativeHandler in the SPIDERMONKEY_PROMISE world. r=peterv
This patch introduces a fake IDL interface just to get the benefits of
cycle collection for the JS-to-C++ link we now need for PromiseNativeHandler
(because the SpiderMonkey Promise somehow needs to point to the
PromiseNativeHandler).  Now in practice a bunch of our PromiseNativeHandlers
are not cycle collected.  That kinda freaks me out, but spot-checking a few
suggests they do not in fact leak (either because they don't form cycles or
because the Promise they're observing always settles and then releases them).
Either way, that's a problem that exists with or without this patch...
2016-02-09 17:40:31 -05:00
Boris Zbarsky 3366af6c39 Bug 1243001 part 5. Get rid of most of the dom::Promise methods when SPIDERMONKEY_PROMISE is defined, and reimplement the rest in terms of SpiderMonkey Promise. r=peterv
This is the bulk of the new dom::Promise implementation.  It's using the APIs
that bug 911216 part 1 adds.
2016-02-09 17:40:31 -05:00
Boris Zbarsky 7fd3989391 Bug 1243001 part 2. Make Promise an empty [NoInterfaceObject] interface when SPIDERMONKEY_PROMISE is defined. r=peterv
The idea is to not define a "Promise" property on the global and not generate
any of the methods, since SpiderMonkey will implement all of those, but to keep
some of the conversion to/from JS logic and the IDL parser validation bits that
we have right now.  Once we can assume SPIDERMONKEY_PROMISE we can probably
change how the "Promise" identifier is handled by the IDL parser and how the
resulting type is handled by codegen, but for now we're aiming for minimal
changes.
2016-02-09 17:40:30 -05:00
Myk Melez a6aff185d2 Bug 1238576 - disable mozApps API on desktop/Android; r=ehsan,ochameau,bz,mcmanus,jmaher,marco 2016-02-08 11:24:22 -08:00
Kit Cambridge d977630d47 Bug 1243781 - Push methods called from a worker should reject with a `DOMException`. r=mt
--HG--
extra : commitid : GyMrfLbnMVY
extra : rebase_source : a68422c66ede9f3eaca14de1d966be75ebd622b9
2016-01-28 08:23:29 -08:00
Ben Kelly 1de96897ae Bug 1244764 P1 Make Cache .add()/.addAll() fail if a Response.ok() is false. r=ehsan 2016-02-04 07:59:52 -08:00
Daniel Holbert 842b5dc8ae Bug 1241021 part 2: Make GenerateCSS2PropertiesWebIDL.py produce capitalized as well as uncapitalized WebkitFoo/webkitFoo DOM style accessors. r=bz 2016-02-03 20:17:45 -08:00
Daniel Holbert 7555a4a195 Bug 1241021 part 1: Refactor GenerateCSS2PropertiesWebIDL.py to invoke a helper function for each line. r=bz 2016-02-03 20:17:44 -08:00
Birunthan Mohanathas 690e6fe38b Bug 1235261 - Part 3: Switch remaining uses of AutoFallibleTArray to AutoTArray. r=froydnj
This is effectively a no-op because the affected array operations already use
`mozilla::fallible`.
2016-02-02 17:36:30 +02:00
Birunthan Mohanathas d7371d07d0 Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Jeff Walden 5af86098d3 Bug 1216150 - Split xpc::InitGlobalObject into an options-setting component and a global-object-modifying component, with the options-setting component being called before global object creation in all callers. r=bz 2016-02-01 12:48:03 -08:00
Carsten "Tomcat" Book 0cc03eb73c Backed out changeset 6d13649d2f01 (bug 1243781) 2016-02-01 12:40:36 +01:00
Kyle Huey 91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Kit Cambridge cb042fa9d8 Bug 1243781 - Push methods called from a worker should reject with a `DOMException`. r=mt
--HG--
extra : commitid : 8agVK4llzMA
extra : rebase_source : 9f646dee24cc980bef4b01a86550e4e0f12bba14
2016-01-28 08:23:29 -08:00
Boris Zbarsky c7fe6eed14 Bug 1243438. Don't try to include the filename '<unknown>' when including headers for unions that have a built-in typedef they're referenced by. r=peterv 2016-01-29 16:56:04 -05:00
Tom Schuster 4d6aaf2f25 Bug 1242214 - Rename JSPropertyDescriptor JS::PropertyDescriptor everywhere else. r=smaug 2016-01-28 11:28:04 +01:00
Ehsan Akhgari 46cedd4e9b Bug 1242211 - Mark MozMapRooter as final; r=baku 2016-01-25 10:15:45 -05:00
Ehsan Akhgari 4923320e0a Bug 1242210 - Mark RootedTypedArray as final; r=baku 2016-01-25 10:15:45 -05:00
Boris Zbarsky d4db9bedd0 Bug 1242054. Get rid of AbortablePromise, so we can move Promise into SpiderMonkey more easily. r=khuey 2016-01-23 00:37:44 -05:00
Jakob Stoklund Olesen da78ae7e9b Bug 1238679 - Put JSJitInfo::depth in anonymous union. r=nbp
Add a JSJitInfo::nativeOp field which will be used to identify SIMD operations.
2016-01-20 12:50:06 -08:00
Chris Peterson b4090821b2 Bug 1240592 - Remove unnecessary -Wno-uninitialized from dom/bindings. r=khuey 2016-01-15 23:40:24 -08:00
Ehsan Akhgari d08dcc913c Bug 1209081 - Part 1: Implement the "navigate" value for RequestMode; r=bkelly 2016-01-19 17:46:10 -05:00
Carsten "Tomcat" Book b5e5b490e9 Merge mozilla-central to mozilla-inbound 2016-01-15 11:48:08 +01:00
Carsten "Tomcat" Book 7e52b24fab merge mozilla-inbound to mozilla-central a=merge 2016-01-15 11:46:47 +01:00
Gregory Szorc 4a8a6a844e Bug 1239210 - Don't process WebIDL files when not compiling; r=glandium
The output of WebIDL codegen is a bunch of .h and .cpp files. These
aren't relevant when not compiling.

This change appears to shave ~3-4s off the "export" tier time for
--disable-compile-environment builds on my i7-6700K because WebIDL
codegen is currently a long pole in that tier. After this patch,
artifact clobber builds are ~43.5s.

--HG--
extra : rebase_source : 95c96e1631ddb8d2efc89d8462fe0f8ade1ecf1f
2016-01-14 23:14:58 -08:00
Ehsan Akhgari a35b970c9e Bug 1239788 - Don't include non-main-thread assertions in the constructor enabled check for [Exposed=System] WebIDL interfaces; r=bzbarsky 2016-01-14 16:55:50 -05:00
Olli Pettay 996520ebd1 Bug 1157469 - null check wrapper in case WrapNode fails, r=bholley 2016-01-11 20:32:12 +02:00
Lars T Hansen 1b2551c10b Bug 1231337 - part 2, conditionally enable shared memory for dedicated workers. r=khuey
--HG--
extra : rebase_source : 9da6daa1211937d0fe1ca11eccce4ea90ca0e637
extra : histedit_source : 4d08c392a2766d46dcb41b14dea24d4c4f9be855
2016-01-06 16:31:38 +01:00
Terrence Cole 3a07971436 Bug 1238786 - Part 2: We no longer need to null check before using trace APIs; r=smaug
--HG--
extra : rebase_source : 5fdbdaa7be739afd93294b729d878ed33c55b5ce
2016-01-12 13:07:54 -08:00
Terrence Cole fd0fcea703 Bug 1235923 - Part 2: Use new Root tracing APIs in Gecko; r=smaug 2015-12-30 11:31:16 -08:00
Morris Tseng 1ae8baf23c Bug 917505 - Add WEBGL_compressed_texture_es3 support. r=jgilbert r=smaug
--HG--
extra : commitid : 96pBvjbX0be
2016-01-08 10:12:22 +08:00
Andrea Marchesini 4fd7346fa1 Bug 1237674 - Rename nsFormData to mozilla::dom::FormData, r=smaug
--HG--
rename : dom/base/nsFormData.cpp => dom/base/FormData.cpp
rename : dom/base/nsFormData.h => dom/base/FormData.h
2016-01-07 19:30:36 +00:00
Terrence Cole 97c4c6520f Backout 7621c3ea95cb11e1c376a9f705accc0f90057c0a (bug 1235923) for build bustage on a CLOSED TREE.
--HG--
extra : rebase_source : 6c54aa7e1af75c270ab2b6833b56c780c537e297
2016-01-06 12:05:06 -08:00
Terrence Cole d38e840e6f Bug 1235923 - Part 2: Use new Root tracing APIs in Gecko; r=smaug 2015-12-30 11:31:16 -08:00
Tooru Fujisawa 88d3b3ecc6 Bug 1180290 - Part 5: Remove getter/setter variant for ThrowInvalidThis message. r=bz 2016-01-06 17:54:00 +09:00
Tooru Fujisawa 0063cbce8a Bug 1180290 - Part 2: Handle prefix in DefinePropertyById. r=till,smaug 2016-01-05 03:21:24 +09:00
Terrence Cole bb224242a8 Bug 1235598 - Part 2: Use TraceEdge exclusively in Gecko; r=smaug
--HG--
extra : rebase_source : 27afd7eecd5a13f8d28b888b64d5e44b3c4a74a5
2015-12-30 08:52:14 -08:00
Tom Tromey e385bd20d9 Bug 1235636 - rewrite PCToLineNumber; r=fitzgen 2016-01-04 09:18:56 -07:00
Wes Kocher a69ea37914 Backed out 2 changesets (bug 1235598) for linux reftest bustage
Backed out changeset 3bcd3c276785 (bug 1235598)
Backed out changeset 80cd10a8b3d7 (bug 1235598)

--HG--
extra : commitid : DZRlFy6bH2m
extra : rebase_source : 3479cd1146e58115883f2329861647a962d162cc
2015-12-31 15:51:13 -08:00
Terrence Cole 9d97726f6c Bug 1235598 - Part 2: Use TraceEdge exclusively in Gecko; r=smaug
--HG--
extra : rebase_source : c18f7e97d09f0cd91d0d837d2cdc65926cd3de64
2015-12-30 08:52:14 -08:00
Olli Pettay 5ca565690e Bug 1120016 - Allocate short lived JS wrappers in the Nursery, r=mccr8,terrence 2015-12-31 15:21:49 +02:00
Wes Kocher 792ca14825 Backed out changeset 0d55a6e4e98e (bug 1120016) for 980 b2g hazards
--HG--
extra : commitid : 27OIHVsa17S
2015-12-30 16:34:18 -08:00
Mike Hommey c2d36c7522 Bug 1235676 - Replace $(abspath $(DIST)) with $(ABS_DIST). r=mshal 2015-12-31 08:10:02 +09:00
Terrence Cole 2d98949f4f Backout Bug 1235598 Part 2 because of merge bustage on a CLOSED TREE 2015-12-30 15:05:24 -08:00
Terrence Cole 4710ce6d97 Bug 1235598 - Part 2: Use TraceEdge exclusively in Gecko; r=smaug
--HG--
extra : rebase_source : fba9dbd3f6bc7b36074f58d11c411deb84c1ff1e
2015-12-30 08:52:14 -08:00
Jeff Walden 5be7be38a1 Bug 1235615 - Split JS::CompartmentOptions into JS::CompartmentCreationOptions that are immutable characteristics of a compartment, and JS::CompartmentBehaviors that may be changed after the compartment's been created. r=terrence
--HG--
extra : rebase_source : f08c380ae247d3308d4c36788ac765de1b75af50
2015-12-28 16:15:52 -06:00
Olli Pettay 2066f6d7b3 Bug 1120016 - Allocate short lived JS wrappers in the Nursery, r=mccr8,terrence
--HG--
extra : rebase_source : 3d51b7fc9962a93eb6071328db84b5b327225246
2015-12-30 19:16:13 +02:00
Tom Schuster 0adeb23681 Bug 603201 - Tests: Enable primitive receivers in [[Get]]. r=jorendorff 2015-12-21 23:43:06 +01:00
Nicholas Nethercote 550252abf1 Bug 1231256 (part 3) - Remove unused parameter from TryToOuterize(). r=roc.
--HG--
extra : rebase_source : 0376ed10b93d69cd6545acdd20315610f4d2833c
2015-12-07 14:03:18 -08:00
Catalin Badea 6e247e4c81 Bug 1221992 - Fix test using GetMostRecentWindow from the child process. r=smaug 2015-12-11 13:32:15 -05:00
Jan de Mooij 1762bca503 Bug 1225396 part 4 - Remove @@iterator workaround in Codegen.py. r=bz 2015-12-09 22:56:17 -05:00
Andrea Marchesini f503703375 Bug 1231094 - patch 1 - nsDOMFileReader to mozilla::dom::FileReader, r=sicking
--HG--
rename : dom/base/nsDOMFileReader.cpp => dom/base/FileReader.cpp
rename : dom/base/nsDOMFileReader.h => dom/base/FileReader.h
2015-12-09 06:22:40 -05:00
Mike Hommey 158e08c29b Bug 1230355 - Remove include_deps. r=mshal
We used to use include_deps to trigger a fast-path in pymake, but we don't
use pymake anymore, so we can use normal includes now.
2015-12-09 19:23:53 +09:00
Sebastian Hengst 114ca318d6 Backed out 2 changesets (bug 1221992) for almost permafailing M-e10s(2) on Linux debug. r=backout
Backed out changeset ad20808dd3c4 (bug 1221992)
Backed out changeset 7cdcda3e65fb (bug 1221992)
2015-12-05 21:13:41 +01:00
Catalin Badea 78b73592a0 Bug 1221992 - Fix test using GetMostRecentWindow from the child process. r=smaug 2015-12-04 19:14:44 +02:00
Boris Zbarsky affdb545dd Bug 1230291. Correctly include nsContentUtils when generating a manual hasInstance with nsIDOM* stuff or when we have a JS-implemented interface with clearable cached attrs 2015-12-04 09:51:04 -05:00
Wes Kocher bfbadfd96d Backed out 2 changesets (bug 1221992) for windows debug assertions in browser_perf-categories-js-calltree.js
Backed out changeset bcd90e591038 (bug 1221992)
Backed out changeset 6affaa386b9b (bug 1221992)

--HG--
extra : commitid : 4w08gUrbqQr
2015-12-03 15:56:59 -08:00
Catalin Badea 6c1a994648 Bug 1221992 - Fix test using GetMostRecentWindow from the child process. r=smaug 2015-12-03 23:19:29 +02:00
Peter Van der Beken 426b1b699a Bug 1227987: Simplify CGDOMJSClass::define. r=bz.
--HG--
extra : rebase_source : aaf309c651b97ec750c56c2fbdf635529718fa14
2015-11-25 16:31:42 +01:00
Nathan Froyd c381a6b86c Bug 1218454 - part 2 - don't #include nsContentUtils.h from CallbackObject.h; r=bz
We used to need nsContentUtils.h here for nsCxPusher, but since that got
moved to ScriptSettings.h, we no longer need nsContentUtils.h for
anything.
2015-10-26 12:14:47 -04:00
Boris Zbarsky 89a6485e7f Bug 1172246. Make sure CallSetup's handling of exceptions it wants to deal with itself works even when the callable is a JSNative that uses the JS_Report*Error APIs instead of throwing exceptions in the usual way. r=bholley 2015-06-08 16:16:27 -04:00
Lars T Hansen b62493634b Bug 1176214 - Part 11: Changes to DOM, except for WebGL. r=bz, r=clb
--HG--
extra : rebase_source : 9c9d3f493822d68be20597d9974292ed5ec4ab70
2015-11-25 19:04:50 +01:00
Boris Zbarsky e4fd35820f Bug 1048695 part 2. Make interface members not be exposed based on their nonExposedGlobals. r=peterv 2015-12-01 12:02:36 -05:00
Boris Zbarsky 09e35c652a Bug 1048695 part 1. Pass the set of globals where a member should NOT be exposed to MemberCondition. r=peterv 2015-12-01 12:02:33 -05:00
Nathan Froyd df330eaf5c Bug 1229176 - make check for ChromeOnly interfaces for header inclusion more complete; r=bz
If an interface has a {Chrome,}Constructor(), it doesn't show up as a
normal member.  If the interface has a ChromeConstructor, we need to
include nsContentUtils.h in the generated file for a
ThreadsafeIsCallerChrome check.  There is an existing check for a
descriptor's ChromeOnly-ness in CGBindingRoot; this check is used to
determine whether nsContentUtils.h is included in the generated file.
But the check in descriptorHasChromeOnly doesn't detect this
(ChromeOnly) constructor, and so nsContentUtils.h won't be included if
there are no other ChromeOnly members, or if the interface itself is not
ChromeOnly.

Therefore, we need to take the constructor of the interface (if any)
into account when checking for ChromeOnly-ness.
2015-11-30 20:57:57 -05:00
Boris Zbarsky 8ed93afa4c Bug 1229031. Make sure to not init binding pref var caches on worker threads. r=smaug 2015-11-30 22:04:20 -05:00
Boris Zbarsky 73208ce2f3 Bug 1228707. Add a away to call Web IDL callbacks while ignoring any errors from them, and use it in a few places. r=smaug 2015-11-30 22:04:09 -05:00
Boris Zbarsky 4cb14db1a1 Bug 1170760 part 13. Add subclassing support to Promise::Then/Catch. r=baku,efaust 2015-11-25 15:48:10 -05:00
Boris Zbarsky bc6a0c8f1c Bug 1170760 part 12. Rip out the promise-resolved-with-promise fast path. r=baku 2015-11-25 15:48:09 -05:00
Boris Zbarsky 0baeed7ed3 Bug 1170760 part 10. Add subclassing support to Promise::Resolve. r=baku,efaust 2015-11-25 15:48:09 -05:00
Boris Zbarsky 52d7142a8e Bug 1170760 part 9. Stop using Promise::Resolve in the bindings for PromiseDebugging. r=baku 2015-11-25 15:48:09 -05:00
Boris Zbarsky 7c7786c7ac Bug 1170760 part 7. Add subclassing support to Promise::Race. r=baku,efaust
Note that the web platform tests don't actually have quite the behavior they're
expected to per the spec yet.  They will get adjusted later on as we add
subclassing support to Promise.resolve and Promise.prototype.then.
2015-11-25 15:48:09 -05:00
Boris Zbarsky 7e919bdf2d Bug 1170760 part 5. Implement NewPromiseCapability which can either return a PromiseCapability as in the spec, or one that has a native promise and maybe resolve/reject functions if the consumer asked for them. r=baku,efaust 2015-11-25 15:48:09 -05:00
Boris Zbarsky c9985b9298 Bug 1170760 part 4. Change Promise::Constructor to run in the Xray compartment when new Promise happens over Xrays. r=peterv 2015-11-25 15:48:08 -05:00
Boris Zbarsky 7229385d25 Bug 1170760 part 3. Add an @@species getter on Promise. r=peterv 2015-11-25 15:48:08 -05:00
Boris Zbarsky 64186b5b76 Bug 1170760 part 2. Pass in the 'this' value to Promise static methods. r=peterv 2015-11-25 15:48:08 -05:00
Phil Ringnalda 53745073f0 Back out 13 changesets (bug 1170760) for Gu bustage in homescreen/test/unit/apps_test.js
CLOSED TREE

Backed out changeset 5d84599a8846 (bug 1170760)
Backed out changeset 6104fe33d5f5 (bug 1170760)
Backed out changeset 1dfb229da01d (bug 1170760)
Backed out changeset f380faddfdd8 (bug 1170760)
Backed out changeset 541831dc6b57 (bug 1170760)
Backed out changeset 6a5b7dfab882 (bug 1170760)
Backed out changeset ee514a256922 (bug 1170760)
Backed out changeset 3c2c1acc34ee (bug 1170760)
Backed out changeset dc2a7f5dc5d6 (bug 1170760)
Backed out changeset b312a08fbab5 (bug 1170760)
Backed out changeset cb6aba9b8497 (bug 1170760)
Backed out changeset 39e4f5b1ba40 (bug 1170760)
Backed out changeset 7d79cce3630a (bug 1170760)
2015-11-25 21:02:55 -08:00
Boris Zbarsky d71fb767c8 Bug 1170760 part 13. Add subclassing support to Promise::Then/Catch. r=baku,efaust 2015-11-25 15:48:10 -05:00
Boris Zbarsky f1d0f460ff Bug 1170760 part 12. Rip out the promise-resolved-with-promise fast path. r=baku 2015-11-25 15:48:09 -05:00
Boris Zbarsky 93faa5b1b0 Bug 1170760 part 10. Add subclassing support to Promise::Resolve. r=baku,efaust 2015-11-25 15:48:09 -05:00
Boris Zbarsky a623100bc3 Bug 1170760 part 9. Stop using Promise::Resolve in the bindings for PromiseDebugging. r=baku 2015-11-25 15:48:09 -05:00
Boris Zbarsky df222dfc09 Bug 1170760 part 7. Add subclassing support to Promise::Race. r=baku,efaust
Note that the web platform tests don't actually have quite the behavior they're
expected to per the spec yet.  They will get adjusted later on as we add
subclassing support to Promise.resolve and Promise.prototype.then.
2015-11-25 15:48:09 -05:00
Boris Zbarsky aaff15aaaa Bug 1170760 part 5. Implement NewPromiseCapability which can either return a PromiseCapability as in the spec, or one that has a native promise and maybe resolve/reject functions if the consumer asked for them. r=baku,efaust 2015-11-25 15:48:09 -05:00
Boris Zbarsky 56a0511eb4 Bug 1170760 part 4. Change Promise::Constructor to run in the Xray compartment when new Promise happens over Xrays. r=peterv 2015-11-25 15:48:08 -05:00
Boris Zbarsky c1ba24a868 Bug 1170760 part 3. Add an @@species getter on Promise. r=peterv 2015-11-25 15:48:08 -05:00
Boris Zbarsky b4cbee7794 Bug 1170760 part 2. Pass in the 'this' value to Promise static methods. r=peterv 2015-11-25 15:48:08 -05:00
Mike Hommey ca5e376580 Bug 1227380 - Move LOCAL_INCLUDES and CXXFLAGS to moz.build in dom/bindings/. r=mshal 2015-11-25 08:23:17 +09:00
Chris Pearce 220ccc0478 Bug 1223980 - Add iterable<ArrayBuffer,MediaKeyStatus> to MediaKeyStatusMap. r=bz 2015-11-24 13:13:21 +13:00
Sunny Sidhu 268b906ced Bug 1225782 - Removes GlobalPropertiesAreOwn(). r=bz 2015-11-20 10:00:00 +01:00
Boris Zbarsky 35f1292e72 Bug 1225603. Codegen ToJSValue overloads for Web IDL enums. r=smaug,jib 2015-11-21 12:15:11 -05:00
Boris Zbarsky 888bc2d651 Back out bug 1172246 because of mochitest-JP bustage. Who needs tests that we care about running on try anyway? 2015-11-20 18:00:27 -05:00
Boris Zbarsky bc25c907d6 Bug 1172246. Make sure CallSetup's handling of exceptions it wants to deal with itself works even when the callable is a JSNative that uses the JS_Report*Error APIs instead of throwing exceptions in the usual way. r=bholley 2015-06-08 16:16:27 -04:00
Boris Zbarsky 72f8befdf5 Bug 979591. Disallow calling WebIDL constructors as functions even for system callers in release builds. r=peterv 2015-11-20 16:29:41 -05:00
Boris Zbarsky 71b052b436 Bug 1224007 part 6. Change MaybeSetPendingException to set the ErrorResult state to "not failed", just like SuppressException and StealNSResult already do, and assert in the destructor that the ErrorResult is not Failed().
This is not quite as strong as being able to assert that all codepaths that might
lead to failure call one of the above methods, but being able to assert that
would involve a lot of extra noise at callsites.  Or at least changing the
signature of StealNSResult to use an outparam and return a boolean indicating
whether the ErrorResult was failure or not, or something, so StealNSResult
can be usefully called on successful ErrorResults too.
2015-11-20 16:29:41 -05:00
Boris Zbarsky c3bc1cdc40 Bug 1224007 part 5. Get rid of ErrorResult::StealJSException. r=peterv 2015-11-20 16:29:41 -05:00
Boris Zbarsky fb747879e0 Bug 1224007 part 3. Push down WouldReportJSException into MaybeSetPendingException, since anyone calling the latter will propagate the JS exception as needed. r=peterv 2015-11-20 16:29:41 -05:00
Boris Zbarsky 8ab5390043 Bug 1224007 part 2. Make the various ErrorResult::Report* methods private, so consumers all go through MaybeSetPendingException and rename them to more clearly indicate what they're actually doing. r=peterv 2015-11-20 16:29:41 -05:00
Boris Zbarsky c19412a7ac Bug 1224007 part 1. Rename ThrowMethodFailed to MaybeSetPendingException and make it an ErrorResult instance method. r=peterv 2015-11-20 16:29:40 -05:00
Boris Zbarsky df75080cc3 Bug 1226479. Change ErrorResult::ThrowTypeError/ThrowRangeError to take string references, not pointers. r=mccr8 2015-11-20 13:36:46 -05:00
Boris Zbarsky 9533b5464f Bug 1226448. Fix Optional::Construct to do perfect forwarding, and fix the dictionary assignment operator code for members that can have missing values to not try constructing and already constructed member. r=jib 2015-11-20 13:36:45 -05:00