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

606830 Коммитов

Автор SHA1 Сообщение Дата
Jon Coppeard e0ec59962b Bug 1479388 - Move most WeakMap inline method definitions into a separate header r=sfink 2018-07-31 09:50:08 +01:00
Nicholas Nethercote 8c1a2345bc Bug 1479631 - Fix media.memory_caches_combined_limit_kb value on Android. r=drno
It was accidentally changed from 524288 to 32768 on Android by bug 1448222.
This commit changes it back.

--HG--
extra : rebase_source : 9181928dccf0cfcd0f70c1c3840d43c378f38ca4
2018-07-31 10:19:51 +10:00
Jan de Mooij bdb81c4ee7 Bug 1479363 part 11 - Use JSAutoRealm instead of JSAutoRealmAllowCCW in toolkit/recordreplay/ipc. r=bhackett 2018-07-31 08:37:58 +02:00
Jan de Mooij 0868c2088f Bug 1479363 part 9 - Use JSAutoRealm instead of JSAutoRealmAllowCCW in js/src. r=luke 2018-07-31 08:37:48 +02:00
Jan de Mooij fa4de44430 Bug 1479363 part 8 - Use JSAutoRealm instead of JSAutoRealmAllowCCW in js/xpconnect/wrapper. r=bholley 2018-07-31 08:37:38 +02:00
Jan de Mooij 43f54ada0c Bug 1479363 part 7 - Use JSAutoRealm instead of JSAutoRealmAllowCCW in js/xpconnect/src. r=mrbkap 2018-07-31 08:37:26 +02:00
Jan de Mooij 01fa47134b Bug 1479363 part 4 - Use JSAutoRealm instead of JSAutoRealmAllowCCW in dom/workers and dom/worklet. r=baku 2018-07-31 08:37:17 +02:00
Jan de Mooij 9b9ef5d8db Bug 1479363 part 3 - Use JSAutoRealm instead of JSAutoRealmAllowCCW in dom/xbl and dom/xul. r=bholley 2018-07-31 08:37:07 +02:00
Andrew Swan d50724f571 Bug 1477866 Fix documentation typo r=me
--HG--
extra : rebase_source : 1956ab9f3fd39b48cbe359eea4202a07d5e5dfbe
2018-07-30 22:23:04 -07:00
Nicholas Nethercote b85493f609 Bug 1477626 - Move js::Hash{Set,Map} into MFBT. r=Waldo
The main change is that the patch copies js/public/HashTable.h to
mfbt/HashTable.h, and then changes it as follows.

- Changes `js` namespaces to `mozilla` (and removes some now-unnecessary
  `mozilla::` qualifiers).

- Changes the default AllocPolicy from the SpiderMonkey-specific
  `TempAllocPolicy` to the generic `MallocAllocPolicy`.

- Adds `#include "AllocPolicy.h"` (like mfbt/Vector.h).

- Changes `JS_DEBUG` use to `DEBUG`.

- Minor comment updates, as necessary.

js/public/HashTable.h is now tiny, holding just a few renamings of things from
the `mozilla` namespace into the `js` namespace to minimize churn elsewhere.
(Those renamings keep `TempAllocPolicy` as the default AllocPolicy for
js::Hash{Set,Map}.)

Also, various template specializations had to be moved from the `js` namespace
to the `mozilla` namespace to avoid compile errors.

MozReview-Commit-ID: GS9Qn9YeYDA

--HG--
rename : js/public/HashTable.h => mfbt/HashTable.h
2018-07-26 20:15:49 +10:00
Steve Fink be01a29ee7 No bug. Minor jorendb tweaks: make $$ mean last value seen, and use it internally for Error printing. r=me
DONTBUILD because NPOTB.

--HG--
extra : _rewrite_noise : b71a655d40278495b9049ba3e167ec2540ce3ead
extra : rebase_source : ea8d4a767eb330107967d1010ec627a91d0b3dff
extra : topic : jorendb.fix
extra : amend_source : 2a9e9d7bf19a5ef8c43bce3bf374aac15d90e725
2017-09-26 20:58:40 -07:00
Tooru Fujisawa 9627ef81a3 Bug 1478792 - Check the search term in the request URL in tests for about:home. r=Gijs 2018-07-31 12:27:23 +09:00
Tooru Fujisawa 28f1424ea4 Bug 1477157 - Store the info about the existence of the default case into the switch ParseNode. r=jwalden 2018-07-31 12:23:03 +09:00
Coroiu Cristina 1d00056a61 Merge mozilla-central to inbound a=merge 2018-07-31 05:07:24 +03:00
Coroiu Cristina 6ba5f27325 Backed out 4 changesets (bug 1477693) for perma-failing reftests at tests/layout/reftests/svg/smil/transform/scale-1-ref.svg a=backout
Backed out changeset 069ad25949f3 (bug 1477693)
Backed out changeset 34f12e5543aa (bug 1477693)
Backed out changeset 864e12713e98 (bug 1477693)
Backed out changeset fa4d0ff6f779 (bug 1477693)
2018-07-31 05:02:33 +03:00
Coroiu Cristina 9e8155b8f6 Merge inbound to mozilla-central a=merge 2018-07-31 00:58:28 +03:00
Cosmin Sabou 09c97210a7 Backed out 2 changesets (bug 1473732) for devtools and web platform reftest leaks. CLOSED TREE
Backed out changeset 7742f4ea046b (bug 1473732)
Backed out changeset 3354b6d032f3 (bug 1473732)
2018-07-30 20:52:11 +03:00
Cosmin Sabou e748fd8968 Backed out 15 changesets (bug 1475409, bug 1461450, bug 1474369, bug 1471726) for causing rooting hazards and browser chrome failures. CLOSED TREE
Backed out changeset 7ce27aa3ce68 (bug 1474369)
Backed out changeset a8a4e2414daa (bug 1474369)
Backed out changeset 13c9626970e2 (bug 1474369)
Backed out changeset 9817819b7765 (bug 1475409)
Backed out changeset 39fcebfe6529 (bug 1475409)
Backed out changeset c19ca740d3d1 (bug 1475409)
Backed out changeset b26c90518fca (bug 1474369)
Backed out changeset cbdde0474521 (bug 1474369)
Backed out changeset ccea3049fe0f (bug 1474369)
Backed out changeset e9f6d2544a82 (bug 1474369)
Backed out changeset 99c4d07d4b88 (bug 1474369)
Backed out changeset c721ada8a6d6 (bug 1461450)
Backed out changeset 961379be0f5e (bug 1461450)
Backed out changeset cf2448b2635f (bug 1471726)
Backed out changeset 408961783c95 (bug 1471726)
2018-07-30 20:31:24 +03:00
Jonathan Kew a78b7458a9 Bug 1478720 - Increase the fractional adjustment applied to 'opsz' on macOS to avoid using the font's default setting, which may be mishandled by Core Text. r=lsalzman 2018-07-30 17:53:09 +01:00
Andreea Pavel d960e5a77a Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-07-30 19:40:38 +03:00
Andreea Pavel be1d7773cc Merge mozilla-inbound to mozilla-central. a=merge 2018-07-30 19:35:30 +03:00
Andreea Pavel 840f785b1e Backed out 8 changesets (bug 1475228) for wpt failures e.g. html/semantics/scripting-1/the-script-element/execution-timing/088.html on a CLOSED TREE
Backed out changeset b2d18ea619ec (bug 1475228)
Backed out changeset 45d3ffe3308e (bug 1475228)
Backed out changeset 02b27f8441be (bug 1475228)
Backed out changeset b82c2cf4b3f1 (bug 1475228)
Backed out changeset 2bc8f24dc3fc (bug 1475228)
Backed out changeset 6104ea971587 (bug 1475228)
Backed out changeset 7c83633262db (bug 1475228)
Backed out changeset 34fb24d52f08 (bug 1475228)
2018-07-30 16:49:02 +03:00
Robert Bartlensky 1891f8a1f7 Bug 1479401: Include lib directory into the infer tar, and change maintainer. r=andi
MozReview-Commit-ID: Ibyw9SCMVVB

--HG--
extra : rebase_source : 4266ed81d1647daa1eada83b66cb4ef6b5d1af3a
2018-07-30 12:45:02 +01:00
Nicholas Nethercote faa9066821 Bug 1477626 - Remove use of JS_BIT in js/src/HashTable.h. r=Waldo
MozReview-Commit-ID: DRba0Z0Olo0

--HG--
extra : rebase_source : a9b48c986cd09c37039bd81e054f129afce48171
2018-07-26 20:12:55 +10:00
Nicholas Nethercote 0f205a7ce0 Bug 1477626 - Move ScrambleHashCode() from js/src/Utility.h to mfbt/HashFunctions.h. r=Waldo
And use it in PLDHashTable.cpp.

MozReview-Commit-ID: BqwEkE0p5AG

--HG--
extra : rebase_source : bd9118e24b82add6ad1fdcb067a5f25b25e90201
2018-07-26 18:52:47 +10:00
Nicholas Nethercote 25a1140207 Bug 1477626 - Introduce mozilla::HashNumber and use it in various places. r=Waldo
Currently we have three ways of representing hash values.

- uint32_t: used in HashFunctions.h.

- PLDHashNumber: defined in PLDHashTable.{h,cpp}.

- js::HashNumber: defined in js/public/Utility.h.

Functions that create hash values with functions from HashFunctions.h use a mix
of these three types. It's a bit of a mess.

This patch introduces mozilla::HashNumber, and redefines PLDHashNumber and
js::HashNumber as synonyms. It also changes HashFunctions.h to use
mozilla::HashNumber throughout instead of uint32_t.

This leaves plenty of places that still use uint32_t that should use
mozilla::HashNumber or one of its synonyms, but I didn't want to tackle that
now.

The patch also:

- Does similar things for the constants defining the number of bits in each
  hash number type.

- Moves js::HashNumber from Utility.h to HashTable.h, which is a better spot
  for it. (This required changing the signature of ScrambleHashCode(); that's
  ok, it'll get moved by the next patch anyway.)

MozReview-Commit-ID: EdoWlCm7OUC

--HG--
extra : rebase_source : 5b92c0c3560eb56850cd8832f8ee514d25e3c16f
2018-07-26 18:52:46 +10:00
Nicholas Nethercote e683e03e60 Bug 1477626 - Use `uint32_t` instead of `unsigned` in HashTable.h. r=Waldo
Because it's more precise, and gives us more consistency.

MozReview-Commit-ID: BLYXYSHgZ7v

--HG--
extra : rebase_source : 527379499a7f2868e032982d7967005df6599bf1
2018-07-26 18:52:46 +10:00
Nicholas Nethercote 049d8130b0 Bug 1477626 - Replace some bespoke code with a call to CeilingLog2(). r=Waldo
After all, bug 543034 was fixed 9 years ago.

MozReview-Commit-ID: HDPO3gGuQMx

--HG--
extra : rebase_source : 6a1410c30e63f2ea5a4f918ba932b814d50c34dd
2018-07-26 18:52:46 +10:00
Cosmin Sabou 674efd0cee Backed out changeset 701d67d48f5d (bug 1479050) for xpcshell failures on test_VariablesView_filtering-without-controller.js. CLOSED TREE 2018-07-31 04:29:40 +03:00
qiaopengcheng ffa75bd086 Bug 1478560 - Fix the compiling error of the struct nsXPTCVariant. r=glandium 2018-07-31 09:39:31 +09:00
Dave Townsend 9aff8f126b Bug 1479050: Migrate a number of call-sites to use document.createXULElement. r=bgrins
--HG--
extra : rebase_source : 6872abc17b71d43ffbd88e1de4c92761ad911cc1
2018-07-30 12:29:28 -07:00
Jeff Walden c1f20bd15f Bug 1478892 - Make all parser-related classes instantiable for UTF-8 source text. r=arai
--HG--
extra : rebase_source : 1362f83f3865c6c8a819851fdd2ced97ef19c267
2018-07-25 20:12:22 -07:00
Jeff Walden b80011efe0 Bug 1478587 - Instantiate TokenStreamSpecific for UTF-8. r=arai
--HG--
extra : rebase_source : e8b132c2b39a4aefa5771113dddcabebab634899
2018-07-26 19:45:02 -07:00
Jeff Walden 40fe1106ab Bug 1478587 - Make number-parsing functions deal with UTF-8 input. r=arai
--HG--
extra : rebase_source : f241963f6eded2b4263bda46550cb0fc4db03303
2018-07-25 20:11:25 -07:00
Jeff Walden 20a7434c8e Bug 1478587 - Make FindReservedWord work for CharT=Utf8Unit. r=arai
--HG--
extra : rebase_source : 96394f351a6085a0f95fb70114358a31f5ca27e7
2018-07-25 20:11:22 -07:00
Jeff Walden 90533433e6 Bug 1478587 - Implement mozilla::Utf8AsUnsignedChars to centralize UTF-8-to-unsigned-chars casts and their justifications. r=froydnj
--HG--
extra : rebase_source : 98d7eb2e5bb183e39437fbfdbbee0f301ccb768a
2018-07-26 19:43:33 -07:00
Jeff Walden 714d372b05 Bug 1478587 - Make ReportUnterminatedRegExp accept an int32_t unit, not a CharT unit. r=arai
--HG--
extra : rebase_source : 7910effed2279012c16049a7a6ec366001e468bf
2018-07-25 20:11:18 -07:00
Jeff Walden 5208988fd6 Bug 1478587 - Switch on the numeric type underlying CharT, not on CharT itself, in a couple switches in TokenStreamSpecific::getTokenInternal. r=arai
--HG--
extra : rebase_source : fec04544c4072b1c2d2a3dbdc6f7efbf1ff3d101
2018-07-25 20:11:15 -07:00
Jeff Walden d81ee847b2 Bug 1478587 - Add CharT casts when comparing code units to particular ASCII characters. r=arai
--HG--
extra : rebase_source : ed272d382f28335033e23fba7247fe4a69883ae0
2018-07-25 20:11:12 -07:00
Jeff Walden 8df486c3ad Bug 1478587 - Return the result of CodeUnitValue(), not a CharT, from GeneralTokenStreamChars::getCodeUnit. r=arai
--HG--
extra : rebase_source : 857b231a27e5e6a24c7e1799970248106e705be7
2018-07-25 20:11:08 -07:00
Jeff Walden f263f82ed2 Bug 1478587 - Implement correct handling of Unicode line/paragraph separators in template/string literals for UTF-8. r=arai
--HG--
extra : rebase_source : 7944b8497be0b004e2f57f600535d1b670e44a5b
2018-07-25 20:11:05 -07:00
Jeff Walden 895d138fce Bug 1478587 - Invoke TokenStreamChars::getNonAsciiCodePointDontNormalize passing CharT lead (not int32_t). r=arai
--HG--
extra : rebase_source : 1639af7937210303397a706ede3a24a22d8a5ffe
2018-07-25 20:11:01 -07:00
Dave Townsend 5b71f53b28 Bug 1479050: Add document.createXULElement for creating XUL elements from any document type. r=bz
Tags: #secure-revision

Bug #: 1479050

Differential Revision: https://phabricator.services.mozilla.com/D2482

--HG--
extra : rebase_source : 190ce867f17dd62e68ff119842f1fe977d43bbc4
extra : amend_source : de4a7661b9efd72b009b9d2c56f0d2a902192bbe
2018-07-27 14:24:23 -07:00
Cosmin Sabou bfc1e72e01 Backed out changeset 9035ff3757ac (bug 1415980) at request from froydnj on the suspicion that it's going to break MSVC builds when it gets merged to central. 2018-07-31 01:19:49 +03:00
Coroiu Cristina 38f8ebc675 Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-07-31 01:03:29 +03:00
Cosmin Sabou 91170e2db1 Backed out changeset df39b3369446 (bug 1426176) for causing toolchains clang bustages. CLOSED TREE
--HG--
extra : rebase_source : 99cc3e3b40d0ca7c0ae58d3c8553b0339f8c74b1
2018-07-31 00:48:47 +03:00
Andrea Marchesini f7b001ece2 Bug 1479407 - nsMultiplexInputStream::AppendElement should be fallible, r=froydnj 2018-07-30 23:15:36 +02:00
Andrea Marchesini a2d7453121 Bug 1477539 - Sanitizer.jsm must cleanup content preferences, r=Gijs 2018-07-30 23:15:15 +02:00
Nathan Froyd 017b016850 Bug 1415980 - make hash keys movable and not copyable; r=erahm
Everything that goes in a PLDHashtable (and its derivatives, like
nsTHashtable) needs to inherit from PLDHashEntryHdr.  But through a lack
of enforcement, copy constructors for these derived classes didn't
explicitly invoke the copy constructor for PLDHashEntryHdr (and the
compiler didn't invoke the copy constructor for us).  Instead,
PLDHashTable explicitly copied around the bits that the copy constructor
would have.

The current setup has two problems:

1) Derived classes should be using move construction, not copy
   construction, since anything that's shuffling hash table keys/entries
   around will be using move construction.

2) Derived classes should take responsibility for transferring bits of
   superclass state around, and not rely on something else to handle
   that.

The second point is not a huge problem for PLDHashTable (PLDHashTable
only has to copy PLDHashEntryHdr's bits in a single place), but future
hash table implementations that might move entries around more
aggressively would have to insert compensation code all over the place.
Additionally, if moving entries is implemented via memcpy (which is
quite common), PLDHashTable copying around bits *again* is inefficient.

Let's fix all these problems in one go, by:

1) Explicitly declaring the set of constructors that PLDHashEntryHdr
   implements (and does not implement).  In particular, the copy
   constructor is deleted, so any derived classes that attempt to make
   themselves copyable will be detected at compile time: the compiler
   will complain that the superclass type is not copyable.

   This change on its own will result in many compiler errors, so...

2) Change any derived classes to implement move constructors instead
   of copy constructors.  Note that some of these move constructors are,
   strictly speaking, unnecessary, since the relevant classes are moved
   via memcpy in nsTHashtable and its derivatives.
2018-07-30 17:15:11 -04:00
Cosmin Sabou 78e9e22969 Backed out 2 changesets (bug 1465491) for turning bug 1270731 into permafail. CLOSED TREE
Backed out changeset 32c5b19c77c9 (bug 1465491)
Backed out changeset 2073834a70d6 (bug 1465491)
2018-07-30 23:57:02 +03:00