Jeff Walden
300564f701
Bug 1461556 - Don't PodZero ObjectGroupCompartment -- just add member initializers inside the class definition. r=jandem
...
--HG--
extra : rebase_source : 915094b5f3393087952deb579ea92e352544f74f
2018-05-18 11:45:40 -07:00
Jeff Walden
719310e29a
Bug 1461556 - Don't PodZero ObjectGroup instances inside the ObjectGroup constructor -- set most fields using member-initializers in the constructor, and add initializers in the class body for the remaining two fields. r=jandem
...
--HG--
extra : rebase_source : 8549cfea05d0ab0cf0fb7c6eac5f349d2649d167
2018-05-18 11:45:26 -07:00
Jeff Walden
8031f784af
Bug 1462544 - Use <algorithm> functions to fill and copy data in Bitmap.* rather than PodOperations.h functions. r=jandem
...
--HG--
extra : rebase_source : 3e96b8528ffe20339186c9c1363214fa2ddc7539
2018-05-18 11:44:44 -07:00
Jeff Walden
47bf188b58
Bug 1462544 - Various readability and IWYU fixes to ds/Bitmap.h. r=jandem
...
--HG--
extra : rebase_source : ea026e0f651cac7cfee6b0e2aa3291f548795152
2018-05-18 11:44:28 -07:00
Jeff Walden
561722cb1c
Bug 1462540 - Initialize NativeIterator objects (and any associated property name strings and HeapReceiverGuards) all within a single constructor call, without using PodZero. r=jandem
...
--HG--
extra : rebase_source : 5b1634954f659b7c0b35fde2826b8f91e2d2db43
2018-05-16 23:55:40 -07:00
Jeff Walden
0b60c0f525
Bug 1462540 - Remove NativeIterator::guard_array: its numeric value is identical to NativeIterator::props_end. r=jandem
...
--HG--
extra : rebase_source : 4170734ae6b3f07adae1f753c60c8749f363de20
2018-05-16 23:24:28 -07:00
Jeff Walden
5c98c1d16e
Bug 1462540 - Remove NativeIterator::props_array (it's trivial to recalculate it when it's needed), and add a bunch of alignment assertions verifying the delicate memory layout of NativeIterator followed by the (only dynamically known number of) properties it iterates followed by the (only dynamically known number of) ReceiverGuards it uses. r=jandem
...
--HG--
extra : rebase_source : de4e3ebde61634d75567b8d9edf91081e3828a35
2018-05-16 23:24:13 -07:00
Jeff Walden
1d684d9831
Bug 1461556 - Add a JSScript constructor to initialize JSScript inside JSScript::Create without using PodZero. r=jandem
...
--HG--
extra : rebase_source : 2710b604377040c1d6fd7df211556cfbceae75ac
2018-05-16 17:00:57 -07:00
Jeff Walden
041e57eb10
Bug 1461556 - Replace a PodZero of js::gcstats::Statistics::phaseTimes with a loop overwriting every element value with a default-initialized (i.e. zeroed) value. r=jandem
...
--HG--
extra : rebase_source : 5e28be4fbfc21b47e48f876b5b32a283052ef562
2018-05-16 21:00:59 -07:00
Jeff Walden
2b6f63de78
Bug 1461556 - Replace a PodZero of js::gcstats::Statistics::totalTimes_ with a loop asserting every element was default-initialized to zero. r=jandem
...
--HG--
extra : rebase_source : e05859608c689e3d9dac671292ad7ed2522fad66
2018-05-16 20:56:18 -07:00
Jeff Walden
890404de4b
Bug 1461556 - Add member initializers to the function pointers in JS::AsmJSCacheOps so that JSRuntime::asmJSCacheOps, a js::UnprotectedData<JS::AsmJSCacheOps>, will have its members nulled out automatically when the JSRuntime field is initialized. r=jandem
...
--HG--
extra : rebase_source : affbfe4407abb456231e74633a6c0a10044a280f
2018-05-16 20:11:59 -07:00
Jeff Walden
37589d31cd
Bug 1461556 - Rename TypeSet::clone to TypeSet::cloneIntoUninitialized to indicate that it freshly initializes the TemporaryTypeSet* provided to it. Also removes existing code that, quite unnecessarily, partly initialized that argument. r=jandem
...
--HG--
extra : rebase_source : 2dcc8becf0ecdf8ea41bae4ad55439ddcfc7be21
2018-05-16 19:29:57 -07:00
Jeff Walden
b1287bc521
|this|-qualify a member-function call inside a MOZ_ASSERT that gcc will ICE on, depending on what code is #include'd, without the qualification. No bug, r=me as does-the-job-and-it's-not-fugly
...
--HG--
extra : rebase_source : e845db0d62d559073e574262f868aab7d5984455
2018-05-16 19:00:59 -07:00
Jeff Walden
d92b94813c
Bug 1461556 - Don't use PodCopy/PodMove to implement typed-array element-to-element copying: bog-standard std::copy and std::copy_n are readily optimized to the same thing, and they don't have a non-obvious requirement that the type being copied be trivial. r=jandem
...
--HG--
extra : rebase_source : b91630234c96cea9d689c57d4430bd4296622d63
2018-05-16 19:00:54 -07:00
Jeff Walden
db36cedbd6
Bug 1461556 - Give uint8_clamped a defaulted (and also trivial) default constructor, copy constructor, and copy-assignment operator. (This also allows uint8_clamped to be permissibly memmove'd and memcpy'd.) r=jandem
...
--HG--
extra : rebase_source : 2b0d5c9517c47c68803a00ca701e8abc3f31c5d8
2018-05-16 19:00:04 -07:00
Jeff Walden
0128813edd
Bug 1462261 - Abandon the idea of HashTableEntry being "POD", make its constructor explicitly initialize HashTableEntry::keyHash, give it a destructor that destroys the stored T if the entry is live, and call both constructor and destructor in the necessary places. r=jandem
...
--HG--
extra : rebase_source : 99c72ac86fa32d683397c8060d58872617153976
2018-05-16 14:18:11 -07:00
Jeff Walden
5bd2e61e1d
Bug 1462261 - Don't use AlignedStorage2 to implement HashTableEntry. r=jandem
...
--HG--
extra : rebase_source : 79e9c2287f8e443ff5da1c96f3707b8d066099fc
2018-05-16 13:29:52 -07:00
Mats Palmgren
2a64b931c6
Bug 1458902 - [css-grid] Update a few WPT / reftests to new percentage row-gap layout. r=dholbert
...
--HG--
rename : testing/web-platform/tests/css/css-grid/reference/grid-collapsed-row-gutters-ref.html => testing/web-platform/tests/css/css-grid/reference/grid-percentage-gap-ref.html
2018-05-18 21:09:23 +02:00
Mats Palmgren
32dff95bd8
Bug 1458902 - [css-grid] Re-resolve row-gap against the sum of row track sizes for auto-sized grid containers. r=dholbert
...
Per CSSWG resolution in:
https://github.com/w3c/csswg-drafts/issues/1921#issuecomment-342269371
2018-05-18 21:09:21 +02:00
Chris AtLee
abedb6c83d
Bug 1237182: remove mock(chroot) support r=Callek
...
--HG--
extra : source : 806b003761cee8d8f0bc1da6405caf8000708be9
extra : intermediate-source : bbf1842aa32ec180664a714e415775947e39849c
2018-05-16 12:31:33 -04:00
Chris AtLee
3892646752
Bug 1237182: Get rid of taskcluster helpers r=Callek
...
--HG--
extra : source : 2c880c094b7308e734e38e37eac21ef46a034212
extra : histedit_source : 712c05d1e5b62f887660cc385760301b01acb23f
2018-05-17 09:38:23 -04:00
Olli Pettay
ae41728c3d
Bug 1404864 - ensure HTMLInputElement.form works per spec in Shadow DOM, r=peterv
...
--HG--
extra : rebase_source : a9a597728ec3e5f2949de6769ce4ee490993a797
2018-05-18 20:02:14 +03:00
Ryan Hunt
fff38caff1
Bug 1458480 - Add a skia memory reporter and report on font cache usage. r=lsalzman, r=njn
...
--HG--
extra : rebase_source : 399b5be69d5c56d48bc15447f447f9c79c116c04
extra : amend_source : 3ccaab165dd48064366ed50bc3688d348362010a
extra : histedit_source : c606b880ac8dabbc4e824323146918ea4e5073ae
2018-05-14 16:47:01 -05:00
Chris AtLee
217eb3f541
Bug 1237182: Remove unused mapper mixin r=Callek
...
MozReview-Commit-ID: GN7lGzWwcvx
--HG--
extra : source : 8bb3896f6b84062734ad08b92b76c698a1ac59ac
extra : histedit_source : 698169a2b7c1edc3e746e63bd88d80f7cd9a07ff
2018-05-16 12:47:20 -04:00
André Bargull
ffd9baf5df
Bug 1462448: Use nursery allocation for baseline string-split and avoid extra heap-slot init for Latin1 strings. r=jandem
...
--HG--
extra : rebase_source : 72e0dee87f5516dccd9bff5d8a382078cb329f7a
2018-05-17 12:43:44 -07:00
André Bargull
8e29e7d8f2
Bug 1461929: Use FillArgumentsFromArraylike for async functions and async generators. r=arai
...
--HG--
extra : rebase_source : 75ff82a73c92ce09e9ac7db5f1460077112b5d17
2018-05-16 04:35:02 -07:00
Michael Hoffmann
8f38bdc154
Bug 1461328 - Handle !important for font-family in inspector correctly. r=pbro
...
--HG--
extra : rebase_source : 293c85d17d1849d052e2d010be811e64640af4b8
2018-05-18 04:21:00 +03:00
Eden Chuang
130e426839
Bug 1435157 - mochitest for AddressErrors in WebPayment. r=baku
...
--HG--
extra : rebase_source : e1a782bab18fede5fe12e91ff26f1dd3037ccee2
2018-05-18 14:40:34 +08:00
Eden Chuang
029423a6e2
Bug 1435157 - Support AddressErrors in WebPayment. r=baku.
...
1. Add AddressErrors in PaymentRequest.webidl.
2. IPC for passing AddressErrors.
3. Getters for AddressErrors in nsIPaymentDetails.
--HG--
extra : rebase_source : 64c57003d57e064b5284cc64447c0c0740f16121
2018-05-17 19:59:16 +08:00
Jim Chen
5ac39f4f7b
Bug 1461747 - 3. Add missing permissions; r=me
...
Add missing geolocation permissions in geckoview_example and geckoview
androidTest.
2018-05-18 11:26:37 -04:00
Emilio Cobos Álvarez
3a031c33a3
Bug 1461070: Skip starting other transitions based on specified, not already-started transitions. r=birtles,dbaron
...
MozReview-Commit-ID: 3D5elrj2Ypi
2018-05-18 17:21:16 +02:00
Jim Chen
bd7bc7fd80
Bug 1461747 - 2. Fix typo in notification permission; r=me
...
MozReview-Commit-ID: Iwl1IIg8KPq
2018-05-18 11:18:04 -04:00
Jim Chen
4763384cf3
Bug 1461747 - 1. Add more permission tests; r=snorp
...
Add permission tests for geolocation and notifications.
MozReview-Commit-ID: CR8TGxsUyoL
2018-05-18 11:18:04 -04:00
Gabriel Luong
295877e7ea
Bug 1462451 - Remove checks for the 3 pane toggle button. r=jryans
2018-05-18 10:59:04 -04:00
Joel Maher
5b3afd93d3
backout 3 patches (1ee5b2531836, cac593a84f72, 95ccdb87f63f) from bug 1392106 for not fixing font rendering problems.
...
--HG--
extra : rebase_source : 30b2aa771eeaa978a8e3af18009f22562d764831
2018-05-18 06:40:00 +03:00
Andrea Marchesini
5840b63b8a
Bug 1462605 - PerformanceNavigationTiming.name must be the value of the address of the current document, r=valentin
2018-05-18 16:20:19 +02:00
Jim Chen
828b2d9eef
Bug 1458020 - 6. Use separate emulator config for geckoview-junit tests; r=gbrown
...
The geckoview-junit tests require the OSS audio backend for the Android
4.3 ARM emulator, but mochitests don't work well with the OSS audio
backend. Therefore, use a different config file for the geckoview-junit
tests.
MozReview-Commit-ID: 20tzjtVdTuB
2018-05-18 10:16:05 -04:00
Jim Chen
c68f5f3de7
Bug 1458020 - 5. Return default sample rate / frames per buffer; r=esawin
...
We apparently fail to get these properties when running in an emulator,
so we should just return default values.
MozReview-Commit-ID: IZVYIG9INaq
2018-05-18 10:16:04 -04:00
Jim Chen
6ed91a89a9
Bug 1458020 - 4. Add camera permission in the parent process; r=snorp
...
We had a permission error because we were trying to add camera
permission in the child process. Move it to the parent process, where
the permission is actually checked.
MozReview-Commit-ID: 2OE3BznlVTD
2018-05-18 10:16:04 -04:00
Jim Chen
4053e24872
Bug 1458020 - 3. Set JavaVM when actually using video capture; r=jib
...
We currently set the Android JavaVM pointer in MediaEngineWebRTC.
However, because of that, we end up setting the pointer in the child
process, even though we really want to set the pointer in the parent
process because that's where the camera will be accessed.
This patch makes us set JavaVM inside VideoEngine itself, where we
actually access the camera in the parent process.
MozReview-Commit-ID: 3TeLiiK2vyh
2018-05-18 10:16:04 -04:00
Jim Chen
9a556235ef
Bug 1458020 - 2. Add PermissionDelegateTest; r=snorp
...
Add a test for the permission delegate that currently tests for Android
and content media permissions.
MozReview-Commit-ID: LEGfkN11Bh9
2018-05-18 10:16:04 -04:00
Jim Chen
0a61f5d916
Bug 1458020 - 1b. Add forceGarbageCollection; r=me
...
Add GeckoSessionTestRule.forceGarbageCollection() for improving the
stability of resource-intensive tests, by garbage-collecting before
running the test.
MozReview-Commit-ID: A4ITTPsPNNy
2018-05-18 10:16:04 -04:00
Jim Chen
4dd13f4142
Bug 1458020 - 1a. Add waitForJS and waitForChromeJS; r=me
...
Add waitForJS and waitForChromeJS methods that are similar to evaluateJS
and evaluateChromeJS. However, the wait methods count as wait events,
and will affect the behavior of forCallbacksDuringWait and
delegateDuringNextWait. The wait methods also wait for Promises to
resolve before returning their values.
MozReview-Commit-ID: IG41fw9zrBW
2018-05-18 10:16:03 -04:00
Paolo Amadini
fefb57eaed
Bug 1462297 - Fix leftover reference to "browser-tabPreviews.xml". rs=Aryx on a CLOSED TREE
...
--HG--
extra : rebase_source : bf8b607435de2a0dc92d9bfdb85ec92b4f8bf5e7
extra : amend_source : 17ef46c9aaee692d91c7603cd7d8f8bcad0d5c4c
2018-05-18 14:43:37 +01:00
Jan de Mooij
d576950ebd
Bug 1461938 part 7 - Move varNames from JSCompartment to JS::Realm. r=jwalden
2018-05-18 15:18:24 +02:00
Jan de Mooij
b95abd503e
Bug 1461938 part 6 - Move global object from JSCompartment to JS::Realm. r=jonco
2018-05-18 15:18:23 +02:00
Jan de Mooij
f820ec7afa
Bug 1461938 part 5 - Some atoms compartment/realm related changes. r=jonco
2018-05-18 15:18:23 +02:00
Paolo Amadini
5c9fd0f400
Bug 1462297 - Remove the "ctrlTab-preview" binding. r=bgrins
...
MozReview-Commit-ID: BPJiakgo3wR
--HG--
extra : rebase_source : d8286c8ff275694ed8ccbc8f755ca208ac979f97
2018-05-18 14:07:00 +01:00
Andrew Osmond
fd436b732a
Backed out changeset 6c8bf287d25b (bug 1462431) for web platform reftest failure. r=aosmond
2018-05-18 08:59:26 -04:00
Andrew Osmond
f3770eb5fc
Bug 1462431 - Expand image downscale-on-decode to perform best effort sizing. r=tnikkel
...
When an image must be upscaled in only one dimension, we can
downscale-on-decode to a closer size than the native size. For example,
if an image is 32000x100, and we want 200x200, we can choose to decode
at 200x100. This allows drawing to scale in only one dimension, and use
less memory to store the decoded data, all the while not affecting the
display quality.
2018-05-18 08:32:12 -04:00