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

568262 Коммитов

Автор SHA1 Сообщение Дата
Julian Descottes f55b078bf6 Bug 1408369 - move back aboutdevtools.dtd to devtools/shim/locales;r=flod
Add localization notes to aboutdevtools.dtd and move it back to the locales
folder where it can be picked up by localization teams.

MozReview-Commit-ID: 8fDimFwdBXv

--HG--
rename : devtools/shim/aboutdevtools/tmp-locale/aboutdevtools.dtd => devtools/shim/locales/en-US/aboutdevtools.dtd
extra : rebase_source : a39410806d2fc930eaaf74c7894371aa041b0dfe
2017-11-06 15:36:28 +01:00
Julian Descottes d0d415d3b0 Bug 1408369 - create about:devtools welcome message dynamically;r=flod,nchevobbe
The welcome message used to be defined in DTD. Since it has a dynamic part (the
toggle toolbox shortcut) it's easier for localization purposes to have it in a
properties file and dynamically insert it.

MozReview-Commit-ID: FhgQjbs8Dw0

--HG--
extra : rebase_source : 35efe9ccd3ce17931edbba5e0deac32c81fc7609
2017-11-07 21:53:55 +01:00
Julian Descottes 2695e6bb98 Bug 1412029 - add probes to about:devtools;r=bgrins,datareview=francois
This changeset adds 3 scalars:
- devtools.aboutdevtools.opened -> logged every time the page is loaded
- devtools.aboutdevtools.installed -> logged when the user clicks on the
  install button
- devtools.aboutdevtools.noinstall_exits -> logged when leaving the page
  if devtools is not enabled

And 2 keyed histograms:
- DEVTOOLS_ABOUT_DEVTOOLS_OPENED_REASON (is it a shortcut, is it a menu
  item etc...)
- DEVTOOLS_ABOUT_DEVTOOLS_OPENED_KEY (in case of a keyshortcut, what is
  the keyshortcut id)


MozReview-Commit-ID: 1DET1ozf8i4

--HG--
extra : rebase_source : f2f96e29a8849dec83b03d6daacbf6c6ca7fce2f
2017-11-01 18:41:42 +01:00
Julian Descottes 9d5d22f390 Bug 1412029 - pass key shortcut id to aboutdevtools page;r=bgrins
MozReview-Commit-ID: 4Fmj1p1bgsB

--HG--
extra : rebase_source : f236777ea914ebad6cc7a0e61be97491b6eb97c2
2017-11-01 14:47:31 +01:00
Valentin Gosu 132162d150 Bug 1415206 - Remove RustURL from Gecko r=bagder
This class isn't being used right now, and MozURL is a much better alternative if interaction with rust URLs is required.

MozReview-Commit-ID: ADdYRrrTnr6

--HG--
extra : rebase_source : b36aa26c20e7daaadab1f3360bab0ed4681eb7f8
2017-11-07 17:11:08 +01:00
Narcis Beleuzu 0f581d68da Backed out 2 changesets (bug 1412029) for ESLint failure "/devtools/shim/aboutdevtools/aboutdevtools.js" r=backout on a CLOSED TREE
Backed out changeset ab41b0060a87 (bug 1412029)
Backed out changeset d3a84e128c3c (bug 1412029)
2017-11-08 13:38:10 +02:00
CYBAI 3031fa200c servo: Merge #19119 - style: Move font-size outside of mako (from CYBAI:font-size-out-of-mako); r=emilio
This is a sub-PR of #19015
r? emilio

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #19111  (github issue number if applicable).
- [x] These changes do not require tests

Source-Repo: https://github.com/servo/servo
Source-Revision: fd8b4b59c2a624bb08f7db08b300c50718e1336d

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 03d7d5a6315607ef019c6bbd5058711e7863d664
2017-11-08 04:05:47 -06:00
Julian Descottes 418a668f0e Bug 1412029 - add probes to about:devtools;r=bgrins,datareview=francois
This changeset adds 3 scalars:
- devtools.aboutdevtools.opened -> logged every time the page is loaded
- devtools.aboutdevtools.installed -> logged when the user clicks on the
  install button
- devtools.aboutdevtools.noinstall_exits -> logged when leaving the page
  if devtools is not enabled

And 2 keyed histograms:
- DEVTOOLS_ABOUT_DEVTOOLS_OPENED_REASON (is it a shortcut, is it a menu
  item etc...)
- DEVTOOLS_ABOUT_DEVTOOLS_OPENED_KEY (in case of a keyshortcut, what is
  the keyshortcut id)


MozReview-Commit-ID: 1DET1ozf8i4

--HG--
extra : rebase_source : 5038fcb6741653b7f66581cd601ba9dea58a847f
2017-11-01 18:41:42 +01:00
Julian Descottes 2e31574d55 Bug 1412029 - pass key shortcut id to aboutdevtools page;r=bgrins
MozReview-Commit-ID: 4Fmj1p1bgsB

--HG--
extra : rebase_source : f236777ea914ebad6cc7a0e61be97491b6eb97c2
2017-11-01 14:47:31 +01:00
Narcis Beleuzu e8f9b9e9a8 Merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-11-08 12:55:21 +02:00
Narcis Beleuzu 218e1676cb Merge inbound to mozilla-central r=merge a=merge 2017-11-08 12:51:09 +02:00
Bob Owen 009df3d87d Bug 1415250 Part 2: Make level 4 the default for the Windows content process sandbox. r=jimm 2017-11-08 08:06:15 +00:00
Bob Owen cd430d0c58 Bug 1415250 Part 1: Block prntm64.dll and guard32.dll in sandboxed child processes. r=jimm 2017-11-08 08:06:14 +00:00
Cervantes Yu 6129f0777e Bug 1414714 - Part 3: Remove more unused prefs defined in gfxPrefs. r=nical
This removes non-"gfx.*" prefs defined in gfxPrefs.h, but the generated gfxPrefs
properties are not accessed anywhere in the code base:
* apz.overscroll.spring_friction
* apz.overscroll.stop_velocity_threshold
* apz.overscroll.stretch_factor
* dom.w3c_touch_events.enabled - this pref is accessed in other places, but not through
gfxPrefs::TouchEventsEnabled().
* general.smoothScroll.lines
* general.smoothScroll.pixels
* layers.composer2d.enabled
* layers.stereo-video.enabled

MozReview-Commit-ID: 5OByjpnFthJ
2017-11-08 15:27:06 +08:00
Cervantes Yu c6bc943ace Bug 1414714 - Part 2: Remove unused gfx.* prefs. r=nical
The following prefs are removed because they are defined in gfxPrefs, but the
resulting gfxPrefs property is used at all.
* gfx.SurfaceTexture.detach.enabled
* gfx.touch.resample.*
* gfx.screen-mirroring.enabled

MozReview-Commit-ID: CyI3JN4TTu5
2017-11-08 15:26:50 +08:00
Cervantes Yu d9dd8249c1 Bug 1414714 - Part 1: Remove unused telemetry environment pref "gfx.direct2d.use1_1". r=chutten
MozReview-Commit-ID: 5zbW8UTm8Wa
2017-11-08 15:26:34 +08:00
Andrea Marchesini f863b85f64 Bug 1410106 - Better check about privateBrowsing for IDB, r=asuth 2017-11-08 06:43:50 +01:00
Boris Zbarsky d9bcae2dfb Bug 1415182. Make the External interface [NoInterfaceObject], per spec. r=qdot
MozReview-Commit-ID: DCX4uxAFPAu
2017-11-08 00:25:55 -05:00
Boris Zbarsky 97828fce1d Bug 1415389. Make ChromeUtils a WebIDL namespace. Remove ThreadSafeChromeUtils. r=kmag
MozReview-Commit-ID: 9ysAeaBMNVt
2017-11-08 00:25:33 -05:00
Dão Gottwald 371ca3e990 Bug 1415235 - Rename adjustTabstrip to _updateCloseButtons. r=florian
MozReview-Commit-ID: GBL3qGVKyZc

--HG--
extra : rebase_source : 71a5b04a2e888099eddc2a78515b1ac337f0483e
2017-11-07 18:35:30 +01:00
Marco Bonardo bf0b20593d Bug 1403009 - Intermittent failure in browser_test_favicon.js. r=kershaw
MozReview-Commit-ID: 9phZS4o5FC8

--HG--
extra : rebase_source : efde3a0acbbd92d26b033aaafd65bc11d97f13d2
2017-11-06 21:35:49 +01:00
JW Wang f53f02fb3e Bug 1415397 - use Span<> to replace low level pointer arithmetic in ReadFromCache(). r=bechen,gerald
MozReview-Commit-ID: HH6KXtMfSIJ

--HG--
extra : rebase_source : a6fe803e3e89a0f89c225e2415a233a945a6a716
extra : intermediate-source : 8c37409d77f675c89fd9b2fb276aa80c57d4eb7f
extra : source : 1f0e76b45b7d89bcc10d59e302fe4b08e87cc96c
2017-11-02 11:36:56 +08:00
Emilio Cobos Álvarez ecc1a99b7d servo: Merge #19139 - style: Get rid of parse_specified (from emilio:bye-parse-specified); r=jdm
It has a single use, and I don't think we should use it in the future.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4a2103b9e600a3b372d2770669b3f9f597d1e4b3

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 1eeb00ce680cf49ce752a0d8c8ed5fc8fad2d0df
2017-11-07 23:44:17 -06:00
Makoto Kato 5edeee8f72 Bug 1414581 - Part 2. Add crashtest. r=masayuki
MozReview-Commit-ID: 3H4DSubkt0q

--HG--
extra : rebase_source : e34e609f0056398f799dc6dbdf769cca89a412df
2017-11-06 17:06:09 +09:00
Makoto Kato 44e777349b Bug 1414581 - Part 1. Require more nullptr check of parent node. r=masayuki
Bug 1402904 added nullptr check for parent node, but I forgot to add this
nullptr check of selected node for outdent command.
So I need to add more nullptr check.

MozReview-Commit-ID: Au9wrG6htk8

--HG--
extra : rebase_source : bd73b1b667b6dc869ebcea3fdfbe1eb3b04a8cde
2017-11-06 17:05:37 +09:00
Sylvestre Ledru 79a24b6820 Bug 1414631 - Remove the Chromium Process class r=jld
MozReview-Commit-ID: B5NmJPQhGYm

--HG--
extra : rebase_source : 686a0877def17a2d79b33f912f20ccbd7228a4cf
2017-11-07 14:57:23 +01:00
Alfredo.Yang 6816c396dc Bug 1393045 - support QT AudioSampleEntry v2. r=kinetik
MozReview-Commit-ID: GchJJBrdKYm

--HG--
extra : rebase_source : a74d0c4a944802e1905c6e16d052d2675322fc3e
2017-11-08 09:21:58 +08:00
Peter Major edc2cc261c Bug 1408962 - Make add cookie command webdriver spec comformant r=ato,whimboo
* Changed positiveInteger to validate upper bounds
* Removed processing for the no longer existent 'session' field
* Added default values for absent fields

MozReview-Commit-ID: E4x6TyMwZQs

--HG--
extra : rebase_source : 745cfeb0e3757651ed20f04de19eccb98eea9fc5
2017-10-28 11:37:40 +01:00
NARCIS BELEUZU 7140a8e634 Backed out 1 changesets (bug 1413989) for ESLint failure "browser/components/migration/tests/unit/test_MigrationUtils_timedRetry.js" r=backout on a CLOSED TREE
Backed out changeset 7d8c4617ad28 (bug 1413989)
2017-11-08 11:03:45 +02:00
Emilio Cobos Álvarez eac54e955c Bug 1415149: Simplify nsCSSFrameConstructor::GetRangeInsertionPoint. r=bz
MozReview-Commit-ID: HsICs5TvhGU

--HG--
extra : rebase_source : 2207c64cdffe7475a04419364110fb4133d306c8
2017-11-06 19:08:08 +01:00
Doug Thayer 3e82b6a5bb Bug 1413989 - include Timer.jsm in MigrationUtils.jsm r=MattN
setTimeout was previously undefined. Created a test specifically
for MigrationUtils, since trying to test this through an actual
Chrome migration path seemed trickier and more fragile.

MozReview-Commit-ID: 33U7ZzzG1CC

--HG--
extra : rebase_source : 0399d9bc768d8eb7451fbb75ec3282f903cdb4ad
2017-11-07 15:48:02 -08:00
Delphine Lebédel e64d4a4e5f Bug 1411110 - [ia] Search plugin set up for Interlingua on Firefox Android, r=flod
MozReview-Commit-ID: 7ayczE2fyQx

--HG--
extra : rebase_source : 4e9590a91cf58f4c82b0d424d7f84515d937ef98
2017-11-07 13:53:23 -08:00
steveck-chung 80061fee88 Bug 1402963 - Part 2: Merge the credit card record into existing data. r=lchang
MozReview-Commit-ID: 3Hkqvo2rK9R

--HG--
extra : rebase_source : 04b0d7dcfd8b82888cc7e74fa61ece38e025b6c5
2017-10-25 17:46:56 +08:00
Liam ce20333b74 Bug 1408790 - The non-selected elements with ids should be lightened to the same color as the non-selected classes r=gl
MozReview-Commit-ID: AjcnYsxxqAs
2017-10-15 17:45:12 -06:00
Yura Zenevich f11712779f Bug 1415115 - forcing test window focus on dialog close. r=surkov
MozReview-Commit-ID: B71ChCA8Uzm
2017-11-07 23:15:06 -05:00
Nicholas Nethercote 79aa95fa24 Bug 1414150 - Remove the "idle_queue.*" prefs. r=farre.
There's no good reason why these can't be code constants.

Especially given that, due to a bug, changes to the
"idle_queue.{min,long}_period" constants were not being passed onto the C++
code!

Here's why: those two prefs were specified as integers in all.js. But we used
AddFloatVarCache() to set up the reading of those prefs. libpref fakes floats
by storing them as strings and then converting them to floats when they are
read.

Which means that AddFloatVarCache() used to fail to get the value from all.js
-- because there's a type mismatch, int vs. string -- and instead use the
fallback default. That value is the same as the one in all.js, which is lucky.
But if someone changed the value in about:config to 100 (an integer), a similar
failure would have occured and the value used by the C++ code wouldn't be
updated!

Also note that idle_queue.max_timer_thread_bound did not have a value in
all.js.

What a mess!

--HG--
extra : rebase_source : 86f8fa905163803eb95007609c029e18c2c4f586
2017-11-08 07:54:16 +11:00
Nicholas Nethercote 8f7cdde0dc Bug 1414150 - Remove the "consoleservice.{logging,enabled}" prefs. r=jchen.
It seems fine to specify these as code constants.

--HG--
extra : rebase_source : d507d3351bfba06cbf69e140da9a6b8152c9e931
2017-11-08 07:54:13 +11:00
Nicholas Nethercote 1455a7fc09 Bug 1414150 - Remove the "memory.low_*" prefs. r=erahm,dmajor.
There's no good reason why these should't just be constants. The patch also
appends "MiB" to some of the C++ values to make their meaning clearer.

This patch fixes one outright bug, and one inconsistency.

The bug is due to a prefname mismatch:

- ContentPrefs.cpp and AvailableMemoryTracker.cpp use
  "memory.low_virtual_mem_threshold_mb".

- all.js uses "memory.low_virtual_memory_threshold_mb".

Which means that "memory.low_virtual_memory_threshold_mb" showed up in
about:config, but if you changed it nothing would happen because the callback
listened for changes to to "memory.low_virtual_mem_threshold_mb"!

Now for the inconsistency. The above means we actually use a value of 256 for
the virtual memory threshold, even though all.js says 128. But we *do* use a
value of 128 for the commit space threshold, because that's what all.js says
and that prefname is used correctly everywhere. The patch changes the commit
space threshold to 256 for consistency with the virtual memory threshold.

What a mess!

--HG--
extra : rebase_source : d3842c732efa9ab0e90eeb6a4f341aeb289589ed
2017-11-08 07:49:46 +11:00
Nicholas Nethercote 2513a08f85 Bug 1414150 - Remove the "memory.free_dirty_pages" pref. r=glandium.
This was originally added for b2g, where the pref had a different value.
Bug 1398033 enabled it everywhere.

--HG--
extra : rebase_source : c8bb03190cd00d25e6c2ec62a99ed8e911e08197
2017-11-07 19:34:18 +11:00
Cervantes Yu 688b2f09c8 Bug 1415103 - Remove dead code in crash reporting. r=gsvelto
This removes dead code using headlessClient and lastRunCrashID in crash
reporting. headlessClient is unconditional now. nsIXULRuntime.lastRunCrashID
is not used anymore so remove code for implementing it.


MozReview-Commit-ID: AU4bUeIx3O0
2017-11-08 11:49:37 +08:00
Matthew Gregan f26c326098 Bug 1409904 - Convert error! logging to warn! to avoid spurious stderr spamming from audioipc. r=kamidphish 2017-11-08 16:20:48 +13:00
Matt Woodrow cd1604ef74 Bug 1414397 - Make sure we properly invalidate the entire frame subtree when detecting a caret frame change. r=miko
--HG--
extra : rebase_source : add63296c95ea090ca79ab120bede8038ce4f59e
2017-11-08 15:33:34 +13:00
Matt Woodrow fca4960b0f Bug 1412110 - Make sure we build a wrap list for the caret frame, since it will have multiple display items. r=miko
--HG--
extra : rebase_source : b59ff089835023c96daa1e1bf1c7f5bde6c75f15
2017-11-08 15:32:27 +13:00
Matt Woodrow 0cd1c74fe2 Bug 1413833 - Don't use WeakFrame for the modified frame list since get slow with large numbers of frames. r=miko
--HG--
extra : rebase_source : c2c2f2c6435ad1b2f246d1339ee548dc60cec4b4
2017-11-08 15:25:44 +13:00
Matt Woodrow 09ea8a23b0 Bug 1413833 - Cap the number of modified frames that we track to avoid the overhead getting too large. r=miko
--HG--
extra : rebase_source : cc26dd15613b9bbe6ca199d21817cbed16143dfe
2017-11-08 15:23:34 +13:00
Nicholas Nethercote 49b155a761 Bug 1414188 - Remove ValueObserver. r=glandium.
libpref has callbacks. You can register a callback function against a
particular pref (or pref prefix), and it'll be called when any matching pref
changes.

This is implemented in two layers. The lower layer is the list of CallbackNode
objects, pointed to by gFirstCallback.

The upper layer involves gObserverTable, which is a hash table of ValueObserver
objects. It is used for callbacks registered via
Preferences::RegisterCallback() and Preferences::Add*VarCache(), but not for
observers registered with Preferences::Add{Weak,Strong}Observer(). If multiple
callbacks with identical prefnames, callback functions and MatchKinds occur,
they are commoned up into a single ValueObserver, which is then wrapped by a
single CallbackNode. (The callbacks within a single ValueObserver can have
different void* aClosure args; ValueObserver keeps those in an nsTArray.)

Note also that gObserverTable is very inelegant, with duplication of data
between the keys and the values due it being a
nsRefPtrHashtable<ValueObserverHashKey, ValueObserver> and ValueObserver being
a subclass of ValueObserverHashKey(!)

This extra layer might make sense if there were a lot of commoning up
happening, but there's not. Across all process kinds there is an average of
between 1.2 and 1.7 closures per ValueObserver. The vast majority have 1
closure, and there are a handful that have multiple; the highest number I've
seen is 71.

(Note that this two-layer design probably seemed more natural back when libpref
was spread across multiple files.)

This patch removes the ValueObserver layer. The only tricky part is that there
is a notion of a MatchKind -- ExactMatch or PrefixMatch -- which exists in the
ValueObserverLayer but not in the CallbackNode layer. So the patch moves the
MatchKind into the CallbackNode layer, which is straightforward.

On Linux64 this reduces memory usage by about 40 KiB in the parent process and
about 30 KiB in each content processes.

The performance implications are minor.

- The list of CallbackNodes is a bit longer, so when a pref is changed we must
  check more nodes. But we avoid possibly doing prefname matching twice.

- Callback registration is much faster, just a simple list prepend, without any
  hash table insertion required.

- Callback unregistration is probably not much different. There is a longer
  list to traverse, but no hash table removal.

- Pref lookup is by far the hottest libpref operation, and it's unchanged.

For perf to be genuinely affected would require (a) a *lot* more
almost-duplicate callbacks that would have been commoned up, and (b) frequent
changing of the pref those callbacks are observing. This seems highly unlikely.

MozReview-Commit-ID: 6xo4xmytOf3

--HG--
extra : rebase_source : cf9884a8a40b2cc3b00ab165ae5ab4ec3383f72d
2017-11-02 20:38:34 +11:00
Andrea Marchesini bd3028679b Bug 1415086 - Fixing a out-of-scope issue for a string in Worklet code, r=qdot 2017-11-08 00:58:11 +01:00
Sebastian Hengst 6ad3193382 Backout a3785ec9a48c / bug 1410276 on request from pbone - Add a canary field to nsStringBuffer. r=backout 2017-11-08 01:45:38 +02:00
Nicholas Nethercote 8b3d03c666 Bug 1414096 - Remove support for nsISupportsString values in nsPrefBranch::{get,set}ComplexValue(). r=florian.
Bug 1345294 introduced nsPrefBranch::{get,set}StringPref(), which allowed the
getting of utf8 strings from prefs, which previously required using
nsISupportsString with {get,set}ComplexValue. That bug also converted most
uses.

This patch finishes the job.

- It removes the nsISupportsString support.

- It converts existing code that relied on the nsISupportsString.

- It removes the lint that was set up to detect such uses of nsISupportsString.

--HG--
extra : rebase_source : fb7af066adfa0491a79fae6282a62b08661553c8
2017-10-31 16:34:35 +11:00
David Parks 888261f789 Bug 1411631 - Use ContiguousEnumSerializerInclusive for GetOpenFileName IPC. r=jimm
Use the new helper for serializing enums in IPDL.
2017-11-01 01:59:31 -07:00