Commit Graph

14322 Commits

Author SHA1 Message Date
Andrew Osmond
2088409e88 Bug 523950 - Part 3. Add preferences to control animated image decoding behaviour. r=tnikkel
image.animated.decode-on-demand.threshold-kb is the maximum size in kB
that the aggregate frames of an animation can use before it starts to
discard already displayed frames, and redecode them as necessary. The
lower it is set to, the less overall memory we will consume at the
expense of execution time for as long as the tab with the animation(s)
above the threshold are kept open.

image.animated.decode-on-demand.batch-size is the minimum number of
frames we want to have buffered ahead of an animation's currently
displayed frame. The decoding will request this number of frames at a
time to maximize use of memory caching. Note that this is related to the
above preference as well; increasing the batch size will in effect raise
what the minimum threshold. This simplifies the logic in patches later
in the series.
2018-02-28 13:34:52 -05:00
Florian Quèze
c714053d73 Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
Sebastian Hengst
769222fadf merge mozilla-inbound to mozilla-central. a=merge
--HG--
rename : browser/base/content/tabbrowser.xml => browser/base/content/tabbrowser.js
2018-02-28 12:54:12 +02:00
Nathan Froyd
c821ec9351 Bug 1441584 - part 1 - declare inner URI Mutator classes final; r=valentin
For documentation purposes and to assist the compiler.
2018-02-27 20:13:57 -05:00
Kearwood "Kip" Gilbert
98f42b8d7f Bug 1438044 - re-enable WebVR for macOS in release r=smaug
For FF59, we disabled WebVR for macOS before allowing it to ride the trains to release.  Softvision was unable to verify for QA due to challenges getting a working hardware configuration for macOS VR at SoftVision.

We have since gained approval from the Firefox Release Team to re-enable WebVR for macOS in release for FF60.

Essentially, we need to reverse the changes in bug 1426500 and uplift to FF59/Beta before the next cycle.

--HG--
extra : rebase_source : 1b0c68b130f869f0e71cf2d93db92bb78dddc79b
2018-02-26 10:04:08 -08:00
Jonathan Kingston
873d5b44df Bug 1440709 - Disabling mixed content upgrading for now. r=ckerschb
MozReview-Commit-ID: AMaEstZlrI1

--HG--
extra : rebase_source : 49333a5d935d6b33ae5b683da3dee99f1edad289
2018-02-27 18:31:55 +00:00
Jonathan Kingston
ada03a865d Bug 1359076: Disable all Device Sensor APIs except orientation by default r=bkelly
This patch disables device sensors except orientation by default.
It implements per-sensor prefs to disable orientation, motion, proximity and ambient light
selectively. The patch also makes the pref checks happen at runtime (versus on process
start) using Preferences::AddBoolVarCache.
The patch also removes the related Event constructors also.

MozReview-Commit-ID: EA8ARjjtlkF

--HG--
rename : dom/events/test/test_bug742376.html => dom/events/test/test_deviceSensor.html
rename : dom/events/test/test_eventctors.html => dom/events/test/test_disabled_events.html
rename : dom/events/test/test_eventctors.html => dom/events/test/test_eventctors_sensors.html
extra : rebase_source : 39da98ac9226ac727f5197d28561b0b762da06f4
2017-07-24 10:07:00 +02:00
Chris H-C
061d5897a0 bug 1435753 - Resume collection of extended data from Release Candidate builds on beta, too r=froydnj,gfritzsche
Before Firefox 58 we collected extended collection from users on nightly,
aurora, and beta. Then we had to change things (see bug 1406391).

In doing so, we accidentally stopped receiving data from "release candidate"
beta builds. This patch resumes that collection by detecting an RC build as
having a MOZ_UPDATE_CHANNEL of "release", but an app.update.channel of "beta"

MozReview-Commit-ID: 3EzzDtQj8Kw

--HG--
extra : rebase_source : 371d2b804cad4fff3fc6a954621e651940867435
2018-02-27 14:12:43 -05:00
arthur.iakab
bc464b37ba Merge mozilla-central to mozilla-inbound 2018-02-27 12:05:43 +02:00
arthur.iakab
9bffb6aa72 Merge inbound to mozilla-central. a=merge 2018-02-27 11:58:55 +02:00
Valentin Gosu
ec9082b60a Bug 1433958 - Change code that sets nsIURI.query to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: JKW8IsaFY10

--HG--
extra : rebase_source : 45ffa07c34739adf4de681fec1370645b0f74985
2018-02-26 20:43:46 +01:00
Valentin Gosu
4c1c2d2005 Bug 1433958 - Change code that sets nsIURI.ref to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: 4caicZFBkcQ

--HG--
extra : rebase_source : fe32f156392a9e0ce69fa6030278eaca43a69482
2018-02-26 20:43:46 +01:00
Valentin Gosu
910fb72867 Bug 1433958 - Change code that calls nsIURI.setQueryWithEncoding to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: crYLGLcsk6

--HG--
extra : rebase_source : db2165ae51a39b852c640d677771109df6d1e579
2018-02-26 20:43:45 +01:00
Valentin Gosu
710c2e2fc9 Bug 1433958 - Change code that sets nsIURI.filePath to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: GYHpakKPEbe

--HG--
extra : rebase_source : 521966b446284fbe215dfc8518acafc5de9ded5c
2018-02-26 20:43:45 +01:00
Jan de Mooij
b2a33e80a2 Bug 1437483 part 3 - Enable Ion object type barrier mitigations by default. r=luke 2018-02-27 10:23:25 +01:00
Kit Cambridge
fc5a8652b1 Bug 1440467 - Add a pref to always connect to the Push server without existing subscriptions. r=mt
MozReview-Commit-ID: ARXbgfaMJDd

--HG--
extra : rebase_source : e085456af40b6150a9026fa52b25405fe6ee43a1
2018-02-22 19:58:20 -08:00
Honza Bambas
767d4dafd2 Bug 1440663 - Add a preference to limit document opening data conversion recursion depth to nsDocumentOpenInfo, r=smaug
--HG--
extra : histedit_source : 939bf4439875a7d88617d36cbf060e9d728c65fb
2018-02-23 08:00:00 +02:00
Nicholas Nethercote
0b1e4d13e5 Back out 633b2c102c95 (bug 1438732) because it increases memory usage. r=erahm
The increase was 64 KiB per process on 64-bit, and 32 KiB per process on
32-bit. Not worth it for the small improve in code niceness.
2018-02-27 09:38:18 +11:00
Jan de Mooij
190f5a93e1 Bug 1437483 part 1 - Add pref for Spectre mitigations for Ion object type barriers. r=nbp 2018-02-26 15:25:37 +01:00
Csoregi Natalia
166bce1123 Merge inbound to mozilla-central. a=merge 2018-02-24 12:13:21 +02:00
Sebastian Hengst
e6ed14057b merge mozilla-central to autoland on a CLOSED TREE
--HG--
extra : amend_source : d88824ea9bbe5e0298f0d64fd0e4cdedcbee342c
2018-02-24 03:07:44 +02:00
Tom Ritter
f98bfacba8 Bug 1376865 Automatically decline the canvas permission if it is not in response to user input r=baku
The canvas prompt is extremely annoying. It happens everyone, automatically. And in
99.9% (not scientific) of cases it is not triggered by user input, but my automatic
tracking scripts.

This commit will automatically decline the canvas read if it was not triggered by
user input.

Just in case this breaks something irrepairably, we have a cutoff pref.

We don't intend to keep this pref forever, and have asked anyone who sets it to
tell us why.

MozReview-Commit-ID: CxNkuraRWpV

--HG--
extra : rebase_source : 12cfc94cecbd378c0859ae50066c6338bcaa6692
2018-02-17 13:53:05 -06:00
Eric Rahm
cbfd16320a Bug 1438732 - Use nsClassHashtable for prefs hashtable. r=njn
--HG--
extra : rebase_source : a17b9490b6d52d2ed4e510f27a2410f56724f861
2018-02-15 16:43:32 -08:00
Jonathan Kew
d7d940f86f Bug 1440658 - Update woff2 library to latest upstream code (currently at 1bccf208bca986e53a647dfe4811322adb06ecf8, release 1.0.2). r=fredw 2018-02-23 14:32:23 +00:00
Jonathan Kew
a06e2ce390 Bug 1440656 - Update brotli library to upstream release 1.0.2. r=fredw 2018-02-23 14:32:23 +00:00
Andrew Osmond
b18fc05e36 Bug 1427639 - Part 1. Add preferences to control image frame allocations in volatile memory or the heap. r=tnikkel
image.mem.volatile.min_threshold_kb is the minimum buffer allocation for
an image frame in KB before it will use volatile memory. If it is less
than it will use the heap. This only is set to > 0 on Android.

image.mem.animated.use_heap forces image frames to use the heap if it is
for an animated image. This is only enabled for Android, and was
previously a compile time option also for Android.
2018-02-22 14:26:29 -05:00
Jonathan Kew
10215d3497 Bug 1440411 - Remove the obsolete gfx.font_loader.families_per_slice pref (no longer used by any code). r=jrmuizel 2018-02-22 20:55:39 +00:00
Makoto Kato
601cf3a789 Bug 1431570 - Use Malgun Gothic as default font of Korean on release channel. r=jfkthame
--HG--
extra : rebase_source : 89c6aabd133798cb2b167e3e26f9a364a6cf1d93
2018-02-22 18:37:43 +09:00
Matt Woodrow
172126b4a6 Bug 1440144 - Let retained dl ride the trains. r=miko 2018-02-22 13:10:21 +13:00
Csoregi Natalia
957058e69e Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-21 23:53:19 +02:00
Jason Orendorff
a48654929c Bug 1439665 - Part 1: #include some headers directly in files that use them. r=sfink.
"Include what you use."

--HG--
extra : rebase_source : 2239a380029e0efbc9dd3042459222a67c38d70f
extra : amend_source : 4453c32cc469caa592049167205666997f1a1e7b
extra : histedit_source : a533edd4a4d3d0642b08989e93674661d27baa6a%2C37d27eeef9580381ccc0de8507f60166dabf1730
2018-02-20 11:28:12 -06:00
Jonathan Kingston
8afc412494 Bug 1435733 - Upgrade mixed display content pref. r=baku,ckerschb,francois,mayhemer
MozReview-Commit-ID: ETIgVF3zhRu

--HG--
extra : rebase_source : e4c59f50584158f4b31527347b10424b56692fa1
2018-02-05 15:37:27 +00:00
Gurzau Raul
082f8e6d89 Merge inbound to mozilla-central. a=merge 2018-02-21 12:01:33 +02:00
Valentin Gosu
55a7a824c6 Bug 1435671 - Reduce binary size by making NS_MutateURI.Apply not be a templated method r=mayhemer
We instead add a templated method NS_MutatorMethod that returns a std::function<nsresult(nsIURIMutator*)> which Apply then calls with mMutator as an argument.
The function returned by NS_MutatorMethod performs a QueryInterface, then calls the passed method with arguments on the result.

MozReview-Commit-ID: Jjqp7gGLG1D

--HG--
extra : rebase_source : f2a17aee7bb66a7ba8652817d43b9aa7ec7ef710
2018-02-21 01:00:54 +01:00
nbeleuzu@mozilla.com
01eef6aff1 Backed out changeset c9dcce0a1068 (bug 1435671) for build bustages on nsIURIMutator.h. CLOSED TREE 2018-02-21 00:06:46 +02:00
Valentin Gosu
f1850e9354 Bug 1435671 - Reduce binary size by making NS_MutateURI.Apply not be a templated method r=mayhemer
We instead add a templated method NS_MutatorMethod that returns a std::function<nsresult(nsIURIMutator*)> which Apply then calls with mMutator as an argument.
The function returned by NS_MutatorMethod performs a QueryInterface, then calls the passed method with arguments on the result.

MozReview-Commit-ID: Jjqp7gGLG1D

--HG--
extra : rebase_source : 592d13349a8c4627c7ce3146ec592f577b39f3cc
2018-02-20 22:39:40 +01:00
Nicholas Nethercote
135442b9ce Bug 107264 - Add error recovery to the prefs parser. r=glandium
This was first suggested 17 years ago!

The error recovery works by just scanning forward for the next ';' token.

This change allows a lot of the gtest tests to be combined.

MozReview-Commit-ID: CbZ2OFtdIxf

--HG--
extra : rebase_source : 5a43fff06e88b45a095725856bbe1e6b5470c9a0
2018-02-21 08:29:23 +11:00
Nicholas Nethercote
3352757fbc Bug 107264 - Make prefs parser errors louder. r=glandium
MozReview-Commit-ID: Ah36kygP3ix

--HG--
extra : rebase_source : 64c60ac60de01c6d9b405f93d7292f69ee650571
2018-02-19 16:32:34 +11:00
Andreas Pehrson
e52987eee4 Bug 1436352 - Enable turning microphone off on track-disable by default. r=jib
MozReview-Commit-ID: LwIPkOD46p3

--HG--
extra : rebase_source : ddf21aec7f95c4071cc1955f446353e3b0361c36
2018-02-19 16:13:43 +01:00
Xidorn Quan
b378bc1325 Bug 1417138 part 2 - Enable stylo-chrome by default. r=bholley
MozReview-Commit-ID: D19QBD4nqWf

--HG--
extra : rebase_source : 614ee44f14447ad6719b5c1c55073a736da88533
extra : source : 8e0394db471fdc75cdee12013944ed9a2873cd62
2018-02-13 16:30:43 +11:00
Tooru Fujisawa
dc9e1f8ab9 Bug 1438599 - Part 2: Import fdlibm from FreeBSD (revision b21ccf63f28a3a4692d8a31419e0a725a1b1a800). r=jwalden 2018-02-18 22:56:46 +09:00
Tooru Fujisawa
cacb9bf19b Bug 1438599 - Part 1: Rebase local patches for fdlibm. r=jwalden 2018-02-18 22:56:38 +09:00
Tooru Fujisawa
777d46a71e Bug 1438599 - Part 0: Echo the applying patch in fdlibm update script. r=jwalden 2018-02-18 22:56:29 +09:00
Andreea Pavel
2e506ce663 Merge mozilla-inbound to mozilla-central. a=merge 2018-02-17 23:44:10 +02:00
Dorel Luca
e3b96b7694 Merge mozilla-central to mozilla-inbound 2018-02-17 12:01:23 +02:00
Jonathan Kew
f33b65d235 Bug 1438522 - Cherry-pick recent FreeType fixes for variation fonts and flex rendering. r=jrmuizel 2018-02-17 09:04:16 +00:00
Gurzau Raul
c276a6b86e Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-02-17 00:11:50 +02:00
Andrew Osmond
4318a7dc60 Bug 1436247 - Part 2. Shutdown idle image decoder threads after the configured timeout. r=tnikkel
The image decoding thread pool can grow to be quite large, up to 32
threads, depending on the number of processors on the system. If the
user is not actively browsing, these threads are occupying resources
which could be reused elsewhere. After the timeout period, it will
release up to half of the threads in the pool.
2018-02-13 06:43:31 -05:00
Narcis Beleuzu
2d9816273c Merge inbound to mozilla-central. a=merge 2018-02-16 11:49:59 +02:00
Noemi Erli
060d1f8fed Backed out 2 changesets (bug 1417138) for failing in slave/test/build/tests/reftest/tests/layout/reftests/xul/menulist-shrinkwrap-2.xul on a CLOSED TREE
Backed out changeset 4e0d4c91940b (bug 1417138)
Backed out changeset 92fa88d94170 (bug 1417138)
2018-02-16 04:48:23 +02:00
Nicholas Nethercote
046941efbf Bug 1436863 - Only send possibly-changed prefs to content processes. r=glandium.
The meaning of "possibly-changed" is provided by the big comment above
MustSendToContentProcesses.

On a new profile this reduces the number of prefs sent like so:
- Command-line: 222 --> 3
- IPC:         3129 --> 130

On an older profile:
- Command-line: 222 --> 3
- IPC:         3165 --> 180

MozReview-Commit-ID: DcgedhXhZd8

--HG--
extra : rebase_source : acef424fab5031347cbcbd5c3e6a24ee66895ef9
2018-02-09 16:31:13 +11:00
Jeff Walden
29bf925937 Bug 1437729 - Make fdlibm::atan2(y, x)'s handling for |x == 1.0| not potentially invoke signed integer overflow. r=arai
--HG--
rename : modules/fdlibm/patches/15_use_safer_strict_assign_on_visual_studio.patch => modules/fdlibm/patches/16_use_safer_strict_assign_on_visual_studio.patch
extra : rebase_source : c4d0988163c9f854d28e67c1c1568f7c1f99929a
2018-02-13 09:00:53 -08:00
Jonathan Kingston
9f340d8168 Bug 1429732 - Use a pref to disable registerProtocolHandler in insecure contexts. r=baku,dao
MozReview-Commit-ID: 9NxFv57CyZO

--HG--
extra : rebase_source : 897ca40537493cc9df4bef7a538a5fdb04769889
2018-02-04 12:10:10 +00:00
Margareta Eliza Balazs
55aa0e75d6 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-15 22:43:18 +02:00
Andreea Pavel
2a7b1dfa56 Merge mozilla-central to autoland. on a CLOSED TREE 2018-02-15 12:34:12 +02:00
Andreea Pavel
74b7ffee40 Merge mozilla-inbound to mozilla-central a=merge
--HG--
rename : js/src/jscompartment.cpp => js/src/vm/JSCompartment.cpp
rename : js/src/jscompartment.h => js/src/vm/JSCompartment.h
rename : js/src/jsscript.cpp => js/src/vm/JSScript.cpp
rename : js/src/jsscript.h => js/src/vm/JSScript.h
extra : amend_source : 9c233cb959c45e401189d089a094f9d141d2b912
2018-02-15 12:24:21 +02:00
Masayuki Nakano
9893d30a7f Bug 1430551 - Make editor use <div> as defaultParagraphSeparator even in release channel r=m_kato
No Nightly testers don't report new compatibility issue.  Additionally, if we
make Firefox use <div> as defaultParagraphSeparator in release build, web
services may stop supporting our current behavior quickly because they can
get rid of hack for us.  Therefore, we should do this in the cycle of Gecko 60
which is next ESR.  If we did this later, ESR users may have become not to be
able to use existing web services suddenly immediately after we did this in 61
or 62.  We should avoid this bad scenario.

MozReview-Commit-ID: 7Um79Ky7n8i

--HG--
extra : rebase_source : 45c6d521ddc1166decb60cc8437ffb703b1e9aff
2018-02-12 00:31:44 +09:00
Nicholas Nethercote
b91c61842a Bug 1438088 - Store a Pref* in each hash table slot instead of a Pref. r=erahm.
This has two advantages. First, it reduces memory usage, as per the following
calculation.

64-bit:
- Old sizes:
  - sizeof(Pref) = 32
- New sizes:
  - sizeof(PrefEntry) = 16
  - sizeof(Pref) = 32
- Change:
  - -16 per empty slot in the hash table
  - +16 per used slot
  - A win if less than half the table slots are used

32-bit
- Old sizes:
  - sizeof(Pref) = 20
- New sizes:
  - sizeof(PrefEntry) = 8
  - sizeof(Pref) = 16
- Change:
  - -12 per empty slot in the hash table
  - +4 per used slot in the hash table
  - A win if table is < 75% full

Table size:
- The table is currently less than half full: ~3100 used out of 8192 slots.
- The table is always <= 75% full, because that's the max load factor (for
  non-gigantic tables).
- Therefore it's a win for both cases.

Old sizes, chrome process, 64-bit:

> 718,712 B (00.36%) -- preferences
> +--262,176 B (00.13%) -- hash-table
> +--197,384 B (00.10%) -- callbacks
> +--114,688 B (00.06%) -- pref-name-arena
> +---92,240 B (00.05%) -- root-branches
> +---30,456 B (00.02%) -- string-values
> +---21,688 B (00.01%) -- cache-data
> +-------80 B (00.00%) -- misc

New sizes, chrome process, 64-bit:

> 672,568 B (00.41%) -- preferences
> +--181,160 B (00.11%) -- callbacks
> +--131,104 B (00.08%) -- hash-table      # smaller
> +--114,688 B (00.07%) -- pref-name-arena
> +--101,152 B (00.06%) -- pref-values     # new
> +---92,240 B (00.06%) -- root-branches
> +---30,456 B (00.02%) -- string-values
> +---21,688 B (00.01%) -- cache-data
> +-------80 B (00.00%) -- misc

Old sizes, smallest content process, 64-bit:

> 500,712 B (02.89%) -- preferences
> +--262,176 B (01.51%) -- hash-table
> +--114,688 B (00.66%) -- pref-name-arena
> +---62,520 B (00.36%) -- callbacks
> +---30,456 B (00.18%) -- string-values
> +---17,832 B (00.10%) -- cache-data
> +---12,960 B (00.07%) -- root-branches
> +-------80 B (00.00%) -- misc

New sizes, smallest content process, 64-bit:

> 470,792 B (02.70%) -- preferences
> +--131,104 B (00.75%) -- hash-table       # smaller
> +--114,688 B (00.66%) -- pref-name-arena
> +--101,152 B (00.58%) -- pref-values      # new
> +---62,520 B (00.36%) -- callbacks
> +---30,456 B (00.17%) -- string-values
> +---17,832 B (00.10%) -- cache-data
> +---12,960 B (00.07%) -- root-branches
> +-------80 B (00.00%) -- misc

The "hash-table" values drop by more than the size of the new "pref-values"
value.

On 64-bit, this reduces memory usage per process by 30--40 KB. On 32-bit, the
number is slightly more.

The second major advantage of this change is flexibility -- it opens up the
possibility of different Pref objects being stored in different way. For
example, static Prefs could be stared statically, letting them be shared
between processes so long as they don't change (see bug 1437168).

MozReview-Commit-ID: KmgbJaoOQ1J

--HG--
extra : rebase_source : 9f8201583432c1414ab3e17e80fe23a369ac264b
2018-02-02 16:30:13 +11:00
Marco Bonardo
b24d9c6370 Bug 1438130 - Disable preloaded top websites suggestions in the Address Bar until ready. r=Gijs
This feature is confusing for Nightly users in its current state, and the
suggested websites, in foreign languages, may look worrisome to some.
Bug 1340663 must figure out these issues before re-enabling the feature.

MozReview-Commit-ID: 6RJ0Ff1B3AJ

--HG--
extra : rebase_source : 569b5ae833c4f5c05656522d0d9d0ad00679c370
2018-02-16 17:12:13 +01:00
Csoregi Natalia
ddab1c3b47 Backed out 2 changesets (bug 1417138) for failing test_message_manager_ipc.html on Android. CLOSED TREE
Backed out changeset 0264b78fe72b (bug 1417138)
Backed out changeset c559b013b025 (bug 1417138)
2018-02-16 20:37:36 +02:00
Jon Coppeard
11e04720be Bug 1438139 - Enable <script type="module"> by default r=smaug 2018-02-15 15:35:20 +00:00
Dorel Luca
dabf7b41ee Merge mozilla-central to autoland. CLOSED TREE
--HG--
extra : amend_source : 021950f3661e3b1d96e768155c5754b7af039f84
2018-02-15 00:35:45 +02:00
Margareta Eliza Balazs
2fd871d8b3 Backed out 4 changesets (bug 1436247) for c2 failures in dom/events/test/test_DataTransferItemList.html on a CLOSED TREE
Backed out changeset 858d629f761d (bug 1436247)
Backed out changeset 4ce2bfe462a0 (bug 1436247)
Backed out changeset 3650631487c7 (bug 1436247)
Backed out changeset c32ead4e3525 (bug 1436247)
2018-02-13 19:56:26 +02:00
Nathan Froyd
e3a6281dd3 Bug 1437606 - part 2 - use NS_IMPL_ISUPPORTS in modules/libpref/; r=njn
Now that we've used the standard NS_IMPL_QUERY_INTERFACE macro, we can
start using the even more standard NS_IMPL_ISUPPORTS macro.
2018-02-13 09:57:33 -05:00
Nathan Froyd
9285fd3fe9 Bug 1437606 - part 1 - use NS_IMPL_QUERY_INTERFACE in modules/libpref/; r=njn
This construct is nicer than NS_INTERFACE_MAP_BEGIN and assures the
reader there's no weirdness in the QI implementation.  This change does
mean that PGO doesn't get an opportunity to measure the frequency of
which interfaces are QI'd most often.  I think this is probably an OK
tradeoff to make, given the prevalence of NS_IMPL_QUERY_INTERFACE
elsewhere in the codebase.

The one thing we have to ensure with this change is that the ambiguous
QI to nsISupports uses the proper class after the change.  The
NS_IMPL_QUERY_INTERFACE macro chooses the first interface listed to
disambiguate the cast to nsISupports.
2018-02-13 09:57:33 -05:00
Andrew Osmond
94c773742a Bug 1436247 - Part 2. Shutdown idle image decoder threads after the configured timeout. r=tnikkel
The image decoding thread pool can grow to be quite large, up to 32
threads, depending on the number of processors on the system. If the
user is not actively browsing, these threads are occupying resources
which could be reused elsewhere. After the timeout period, it will
release up to half of the threads in the pool.
2018-02-13 06:43:31 -05:00
Ciure Andrei
72080bd73c Merge inbound to mozilla-central. a=merge 2018-02-13 00:08:37 +02:00
Tom Ritter
1c60c301ab Bug 1435296 Bump the default timer precision resolution to 2ms r=baku
MozReview-Commit-ID: G33jNNJVRSU

--HG--
extra : rebase_source : b34e8cb65407c2379e1714aab22b2c8c60d98b57
2018-02-02 11:05:40 -06:00
Ryan Hunt
b796b12ab7 Add 'layers.omtp.dump-capture' for logging DrawTargetCapture (bug 1435938, r=bas)
MozReview-Commit-ID: GCyHRg8Dn6c

--HG--
extra : histedit_source : 297fbbc9defda0accc894fabdc30256a8484b4c4
2018-02-05 22:03:49 -06:00
Nicholas Nethercote
8f5a9b5df1 Bug 1436643 - Use a PLDHashTable initEntry function for Pref. r=froydnj
This lets us have a proper constructor for Pref, which is nice.

The patch also adds a missing case to PrefTypeToString(), and reorders the
fields in Pref to be more sensible.

MozReview-Commit-ID: A01ULF4q08O

--HG--
extra : rebase_source : 835e494ad18e3ea4de9f02beca8266551bfffe5e
2018-02-09 13:34:03 +11:00
Jonathan Kew
e9f040dc25 Bug 1435684 - Enable the paint-order property for HTML text. r=dbaron 2018-02-11 12:36:05 +00:00
Nicolas B. Pierron
2015caa45a Bug 1433111 - Add JS Shell and about:config switch for Value masking. r=jandem 2018-02-09 16:49:32 +00:00
Csoregi Natalia
bcaa305dbd Backed out 2 changesets (bug 1435938) for rusttest failures on linux. CLOSED TREE
Backed out changeset b24907f82186 (bug 1435938)
Backed out changeset db4018b4b695 (bug 1435938)
2018-02-09 18:21:54 +02:00
Jan de Mooij
52f3d5b9f2 Bug 1434230 part 4 - Enable Spectre string mitigations by default. r=luke 2018-02-09 16:47:37 +01:00
Ryan Hunt
21ab059373 Add 'layers.omtp.dump-capture' for logging DrawTargetCapture (bug 1435938, r=bas)
MozReview-Commit-ID: GCyHRg8Dn6c

--HG--
extra : rebase_source : f827c36f3bf5a55b20a42f21dcab8d1935e956e5
extra : histedit_source : 988a537ce5904887b9e811849120ab2e14709832
2018-02-05 22:03:49 -06:00
Masatoshi Kimura
eb51cbc6c9 Bug 1428568 - Stop using GetNativePath in libjar. r=mayhemer
mZips key is used only for internal hashtable lookups, so GetPersistentDescriptor is suitable.

MozReview-Commit-ID: 48wDOSjyo3r

--HG--
extra : rebase_source : 03c4b47812dade1d3e321727aafacfbc12bcbf32
extra : intermediate-source : 85a0b6bc25a1f960767ac28ff23a8c26829946a2
extra : source : 544bf26e258d42c835c80672416b0e29a48ba33b
2017-12-15 20:58:51 +09:00
Jan de Mooij
482d8c9a7b Bug 1434230 part 1 - Some Spectre mitigations for loadStringChars. r=luke,nbp
--HG--
extra : rebase_source : 463ec4c2195df912071064f97dbb07243a08ad75
2018-02-08 22:01:52 +01:00
Narcis Beleuzu
f2b1b8c261 Backed out 3 changesets (bug 1434230) for assertion failures on MacroAssembler.cpp
Backed out changeset 7f67769bbbd8 (bug 1434230)
Backed out changeset 6598194588d7 (bug 1434230)
Backed out changeset 9c9ba4938b08 (bug 1434230)
2018-02-08 23:55:40 +02:00
Jan de Mooij
b55aa41d52 Bug 1434230 part 1 - Some Spectre mitigations for loadStringChars. r=luke,nbp 2018-02-08 22:01:52 +01:00
Tom Schuster
7fd063c021 Bug 1420101 - Add default enabled pref for Array.prototype.values. r=jandem,bz
--HG--
extra : rebase_source : a8e3eb91d08c22e63a4ff4ac499067b8a64996f1
2018-02-02 18:46:21 +01:00
Nicholas Nethercote
b001a7cd81 Bug 1435942 - Fix buggy getters in Preferences.h. r=glandium
They currently fail to pass on `aKind`, always getting the user value (when
possible). There are three callsites that are affected:

- nsSHistory::Startup, docshell/shistory/nsSHistory.cpp.
- FeatureState::SetDefaultFromPref(), in gfx/config/gfxFeature.cpp.
- gfxPlatform::InitOMTPConfig(), in gfx/thebes/gfxPlatform.cpp.

The patch also adds a gtest that would have failed prior to the fix.

MozReview-Commit-ID: L0U1XQmPUFc

--HG--
extra : rebase_source : d51d09836609c5a45d0b9f20570427681d8b3309
2018-02-07 09:11:11 +11:00
Jan de Mooij
7283c849b7 Bug 1435266 - Enable Spectre index masking by default. r=luke 2018-02-07 17:56:34 +01:00
Masayuki Nakano
d6f1c6f7dd Bug 1435730 - part 1: Make TSFTextStore::GetTextExt() not return TS_E_NOLAYOUT error to Japanist 10 when the range is in composition string r=m_kato
Similar to ATOK, Japanist 10 requests all or part of composition string.
If we return TS_E_NOLAYOUT in this case, you'll see candidate window at
top-left of the screen.

For avoiding this issue, we should not return TS_E_NOLAYOUT to Japanist 10
when the query range is in composition string.

MozReview-Commit-ID: 2OPafUO5PQC

--HG--
extra : rebase_source : bd7a594d8d3540374d61860651b69528aa6e3793
2018-02-06 14:45:22 +09:00
Nicholas Nethercote
55036b82ae Bug 1435943 - Tweak Preferences::GetType() and nsPrefBranch::GetPrefType(). r=glandium
This patch rearranges these functions so that nsPrefBranch::GetPrefType() calls
into Preferences::GetType(), because all other nsPrefBranch methods depend on
Preferences methods.

The patch also removes the `aKind` argument from GetType(), because it has no
effect -- a pref only has one type, regardless of whether it has a default
value, a user value, or both.

MozReview-Commit-ID: J3vxFPaP8S3
2018-02-06 17:08:07 +11:00
Gurzau Raul
772c8edfef Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-07 02:29:42 +02:00
Andrew McCreight
5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Narcis Beleuzu
458abc4de4 Backed out changeset 905555709846 (bug 1435296) for mochitest GPU failures on /browser_profiling-webgl.js. CLOSED TREE 2018-02-06 16:29:18 +02:00
Tom Ritter
3c316eb5b3 Bug 1435296 Bump the default timer precision resolution to 2ms r=baku
MozReview-Commit-ID: G33jNNJVRSU

--HG--
extra : rebase_source : 4b7dace8b5ccb3c28d337350435f4a7bd45f061b
2018-02-02 11:05:40 -06:00
Alexis Beingessner
8acb1d6f40 Bug 1362115 - turn on blob-images by default with webrender. r=kats
MozReview-Commit-ID: GH4Ukj01rJ5

--HG--
extra : rebase_source : 96b48cc87d31ee75b069d08f72fec259d87b957f
2018-02-01 14:00:26 -05:00
Narcis Beleuzu
84cea84b12 Merge inbound to mozilla-central. a=merge 2018-02-06 11:54:42 +02:00
Valentin Gosu
3c233e8b30 Bug 1432519 - Make nsIURL attributes readonly r=mayhemer
MozReview-Commit-ID: KuPILT7rX6N

--HG--
extra : rebase_source : 75b84d74d74539ed3b178480cfa0aa37cfc9d947
2018-01-31 03:06:58 +01:00
arthur.iakab
a090750861 Merge mozilla-central to autoland
--HG--
extra : rebase_source : a5345fa7da5587fdc8dc5e1fd160bbaa03ef6214
2018-02-02 12:11:39 +02:00
Nicholas Nethercote
c91fdaccff Bug 823023 - Tweak the comment at the top of prefs.js. r=glandium
Specifically:
- Make the warning about editing in all-caps;
- Make it clear that about:config is a browser thing;
- Add a mention of the user.js file;
- Use C++ comments, because I prefer them to C comments and I am the module
  owner :)

MozReview-Commit-ID: 9GXS5nNHywO
2018-02-02 12:36:20 +11:00
Nicholas Nethercote
00fa66ab0c Bug 1435144 - Fix the last part of the prefs parser gtest. r=glandium
MozReview-Commit-ID: KPG5SX2vwce
2018-02-02 14:48:13 +11:00
Andrew McCreight
589eaa7bb4 Bug 1434952 - Remove signed.applets.codebase_principal_support pref. r=mrbkap
MozReview-Commit-ID: K8nic9kw8gF

--HG--
extra : rebase_source : 2f99d4594c88a4e6f38cbe740af8e10a5a528a81
2018-02-01 12:44:59 -08:00
Dorel Luca
8600436f5d Backed out 2 changesets (bug 1362115) for frequent crashtest failures in gfx/tests/crashtests/1317403-1.html
Backed out changeset 761a65991c7f (bug 1362115)
Backed out changeset 71eb4d997c0d (bug 1362115)
2018-02-02 11:15:27 +02:00
Valentin Gosu
bbd69887b2 Bug 1432613 - Make nsIJAREntry.JAREntry readonly r=mayhemer
MozReview-Commit-ID: 3yPZIn2NkH

--HG--
extra : rebase_source : 357520401bb0797e7e01b6a6b6e250062b7619b5
2018-01-23 22:04:33 +01:00
Alexis Beingessner
5070b17ee7 Bug 1362115 - turn on blob-images by default with webrender. r=kats
MozReview-Commit-ID: GH4Ukj01rJ5

--HG--
extra : rebase_source : 7022cb76018ae06147e257ed3854352627687031
2018-02-01 14:00:26 -05:00
Jonathan Kingston
53c9c480b7 Bug 1354175 - Disable AppCache in insecure contexts. r=baku,bkelly,mayhemer
MozReview-Commit-ID: wYWHkGlV8h

--HG--
extra : rebase_source : 9a600559a9d61c42baf9e3e5fde6e35d5adeaf90
2018-01-12 19:09:30 +00:00
Florian Quèze
2b1c8dccb6 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00