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

609164 Коммитов

Автор SHA1 Сообщение Дата
Hiroyuki Ikezoe d1f6ab90ec Bug 1481699 - Merge two if statements for 'start-server' into a single one. r=jdescottes
And fix some log messages.
2018-08-13 06:12:55 +09:00
Nicholas Nethercote 10d6977432 Bug 1477627 - Convert CCGraph::mPtrToNodeMap to a mozilla::HashSet. r=mccr8
Because mozilla::HashSet is much faster than PLDHashTable, and mPtrToNodeMap is
hot.

--HG--
extra : rebase_source : bd861a1cd07ae27f4d18ce5c01ca40c5bb73c035
2018-08-14 09:25:51 +10:00
Gabriel Luong 066bf1d6aa Bug 1457086 - Bump the markup badges font-size to 10px on 1dppx screens and 9px for higher resolution screens. r=rcaliman 2018-08-13 23:32:03 -04:00
Peter Simonyi c3ec2fa929 Bug 1469705: allow menus.refresh() without an onShown listener r=mixedpuppy
MozReview-Commit-ID: 3GbQEoSFTW8

--HG--
extra : rebase_source : cfb50b104e14c1e38b319c207164c96c3fa0f55e
2018-07-05 22:06:23 -04:00
Daniel Stenberg 315e5ddcc0 bug 1466462 - TRR: disable EDNS Client Subnet by default r=mcmanus
Set the "network.trr.disable-ECS" pref to false to disable.

MozReview-Commit-ID: GE6L8Vpvuu0

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

--HG--
extra : moz-landing-system : lando
2018-08-13 15:45:15 +00:00
Csoregi Natalia 81732c6774 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-13 18:44:46 +03:00
Csoregi Natalia 2466b82b72 Merge inbound to mozilla-central. a=merge 2018-08-13 18:42:53 +03:00
Daniel Stenberg 11c02fe803 bug 1475781 - revert the doubled DNS cache r=mcmanus
Almost no cache hit improvement was detected.

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

--HG--
extra : moz-landing-system : lando
2018-08-13 14:41:42 +00:00
Csoregi Natalia 32cdffd7a4 Backed out changeset 6b4359d502be (bug 1482466) for test_TelemetrySession_activeTicks.js failures. CLOSED TREE 2018-08-13 18:15:40 +03:00
Bogdan Tara af579cb55e Backed out changeset bc15796e6fa7 (bug 1478644) static analysis failures on win2012 2018-08-13 17:57:18 +03:00
Jay Lim 7d50ddd963 Bug 1482422 - Use UTF-8 character set instead of ASCII when reading Activity Stream scripts with `mozJSSubScriptLoader`. r=mconley
The default character set that is used to read sub-scripts using
`mozJSSubScriptLoader` is ASCII. Scripts for Activity Stream contains strings
which are encoded in UTF-8, and therefore, reading them in ASCII will display
the strings incorrectly.

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

--HG--
extra : moz-landing-system : lando
2018-08-13 14:08:16 +00:00
Chris H-C 81200add33 bug 1482466 - Ensure subsession activeTicks are correct in simpleMeasurements r=Dexter
Differential Revision: https://phabricator.services.mozilla.com/D3128

--HG--
extra : moz-landing-system : lando
2018-08-13 13:58:40 +00:00
Rob Wu f0b033f907 Bug 1481179 - Stop extensions from changing the icon in the top-level menu r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D3198

--HG--
extra : moz-landing-system : lando
2018-08-13 13:25:50 +00:00
Hiroyuki Ikezoe dcd6231961 Bug 1482753 - Introduce two macros to implement HAL observers handy. r=gsvelto
If `ScreenConfiguration` were `ScreenInformation` we could integrate
notification functions into the macros too.

Differential Revision: https://phabricator.services.mozilla.com/D3182
2018-08-13 10:57:50 +09:00
Hiroyuki Ikezoe 2e21aec705 Bug 1482753 - Move power/Types.h into hal/ and WakeLockObserver into hal namespace. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D3181

--HG--
rename : dom/power/Types.h => hal/HalWakeLockInformation.h
2018-08-13 10:57:50 +09:00
Hiroyuki Ikezoe 330f831cb7 Bug 1482753 - Move battery/Types.h into hal/ and BatteryObserver into hal namespace. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D3180

--HG--
rename : dom/battery/Types.h => hal/HalBatteryInformation.h
2018-08-13 10:57:50 +09:00
Hiroyuki Ikezoe ce58f0c053 Bug 1482753 - Move network/Types.h into hal/ and NetworkObserver into hal namespace. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D3179

--HG--
rename : dom/network/Types.h => hal/HalNetworkInformation.h
2018-08-13 10:57:50 +09:00
Hiroyuki Ikezoe 0381486a5f Bug 1481699 - Send host:kill command through TCP socket instead of spawning a new adb process with 'kill-server'. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D3170
2018-08-13 06:12:55 +09:00
Hiroyuki Ikezoe db4c3c99a6 Bug 1481699 - Do not process any further data after we started shutting down the ADB server. r=jdescottes
In the genuine adb binary, when it received 'host:kill' command, it exits the
server process soon [1].  Whereas, in our mock adb.py which is based on
SocketServer.TCPServer in python, when we call
SocketServer.TCPServer.shutdown() in the case of 'kill-server' command, the
server process doesn't exit soon since the shutdown() function just sets a
flag [2] and serve_forever() polls it [3] every |poll_interval| seconds,
|poll_interval| is 0.5 seconds by default.  Thus it's possible that new incoming
requests are processed during polling.

This is the real cause of the race condition that the adb server still keeps
alive when 'adb kill-server' finished.  So we don't need to the workaround
for the race condition.

[1] 4039051d6d/adb/adb.cpp (1049)
[2] 65b5ef02ec/Lib/socketserver.py (L248)
[3] https://docs.python.org/2/library/socketserver.html#SocketServer.BaseServer.serve_forever

Differential Revision: https://phabricator.services.mozilla.com/D3169
2018-08-13 06:08:34 +09:00
Hiroyuki Ikezoe 720a215841 Bug 1481699 - Send back 'OKAY' to the client when the adb server received 'kill-server' command. r=jdescottes
Because the genuine adb binary does it [1].  And doing it before shutdown
thread is created to make sure it's sent to the client.

[1] 4039051d6d/adb/adb.cpp (1055)

Differential Revision: https://phabricator.services.mozilla.com/D3168
2018-08-13 06:08:34 +09:00
Hiroyuki Ikezoe 2a0f871277 Bug 1481699 - Rename ADBServer to ADBRequestHandler. r=jdescottes
Since it's actually a child of SocketServer.BaseRequestHandler.

Differential Revision: https://phabricator.services.mozilla.com/D3167
2018-08-13 06:08:33 +09:00
Julian Descottes 4ee534cfd7 Bug 1482054 - Allow to add and remove network locations in Connect Page;r=daisuke
Tags: #secure-revision

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

--HG--
extra : rebase_source : d27bb72917e51d27d8962ad73fcab68b3ef011c2
extra : intermediate-source : c1f6b6006ff78e8810de6a0d1bb702d6e97842d7
extra : source : 155c202de099e91847a5eb691e602ae37e6ed905
2018-08-09 18:47:57 +02:00
Julian Descottes 5bc33348c5 Bug 1482054 - List existing network locations in Connect Page;r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D3098

--HG--
extra : rebase_source : 0d3111d004ea0a87ae562918aa153a7fa7c00587
2018-08-10 09:49:49 +02:00
Julian Descottes 7582837622 Bug 1482054 - Add icon for network section of connect page;r=daisuke
This icon is copied from the common globe icon, except that it supports
context-fill.

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

--HG--
extra : rebase_source : fb33161d0dead6a42566cdd3c95df8216a607811
2018-08-10 09:40:58 +02:00
Julian Descottes 2726db3e53 Bug 1482054 - Create module to manage network locations;r=daisuke
This patch introduces a new preference:
  devtools.aboutdebugging.network-locations

- this preference is a string pref, that should be a stringified
  JavaScript array.
- the default value is "[]".
- the module supports getting, adding, removing and observing
  network locations.

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

--HG--
extra : rebase_source : c167a689bccda547f12b4970775c2e7feab49553
2018-08-10 09:38:55 +02:00
Julian Descottes 7dec286e7b Bug 1482054 - Move .button and .ellipsis-text to aboutdebugging.css;r=daisuke
In order to reuse the button and ellipsis styles in the Connect page,
I would like to move the corresponding styles to a common stylesheet.

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

--HG--
extra : rebase_source : 4a2eef73edf9b648776dbb3c6ba094160f4e99e8
2018-08-10 09:29:57 +02:00
Julian Descottes 584cd0dd8c Bug 1482054 - Fix classname for ConnectPage;r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D3094

--HG--
extra : rebase_source : 2248a07635cd558db4c228b2d755eaec186483be
2018-08-09 12:07:01 +02:00
Julian Descottes 2919fa351b Bug 1482054 - Sort rules in ConnectPage.css alphabetically;r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D3093

--HG--
extra : rebase_source : 48624699ae83791bf35d17316e53d6f7030683ce
2018-08-09 11:31:44 +02:00
Julian Descottes ff68c6ddd7 Bug 1482054 - Group aboutdebugging constants together;r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D3092

--HG--
extra : rebase_source : bc159e987ab3d1957c41187e8d6c9689a3f4cd8d
2018-08-10 08:00:40 +02:00
Bogdan Tara e72c851d67 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-13 13:00:51 +03:00
"Emilio Cobos Álvarez" f3d30ca484 Bug 1472020 - Make AccessibleCaret a bit saner. r=bz,TYLin
Avoid processing anon content in nsCanvasFrame, then getting more anon content
via AccessibleCaretEventHub::Init. Instead call Init before creating the custom
content container. We could also throw a script runner at it I guess, but this
prevents the reentrancy issue.

Avoid cloning nodes during layout, just use the same node (already cloned in
InsertAnonymousContent) instead.

The RemoveChild in GetAnonymousContent to handle the reframes instead of cloning
around is a bit hacky, but I don't think it's really worth extending
PostDestroyData for this special case.

Differential Revision: https://phabricator.services.mozilla.com/D1889
2018-08-13 11:56:48 +02:00
Bogdan Tara 8374f362e7 Merge inbound to mozilla-central. a=merge 2018-08-13 12:56:44 +03:00
Ionut Goldan 958d7d166b Bug 1472979 - Add Web Tooling Benchmark as a jsshell-bench test r=jmaher
Add Web Tooling Benchmark & (WIP) setup fetch task

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

--HG--
extra : moz-landing-system : lando
2018-08-13 07:29:07 +00:00
Daisuke Akatsuka 32c964c1cf Bug 1477598 - Part 5: Remove extra css loading. r=me 2018-08-13 16:26:15 +09:00
Masayuki Nakano e235a4e390 Bug 1482015 - Create HTMLEditor::RemoveInlinePropertyInternal() for internal use r=m_kato
For making it possible to distinguish if HTMLEditor::RemoveInlineProperty() is
called by outer class or editor itself, this patch creates
Create HTMLEditor::RemoveInlinePropertyInternal() and makes the internal
callers use this new method.

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

--HG--
extra : moz-landing-system : lando
2018-08-13 06:16:24 +00:00
James Teh 0912c08892 Bug 1480060: Support aria-multiselectable on role tablist. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D3076

--HG--
extra : moz-landing-system : lando
2018-08-13 06:28:35 +00:00
Masayuki Nakano 205851fb7c Bug 1482013 - Create HTMLEditor::SetInlinePropertyInternal() for internal use r=m_kato
For making it possible to distinguish if SetInlineProperty() is called by outer
class or the editor itself, this patch creates SetInlinePropertyInternal().

Additionally, this makes the first argument of SetInlineProperty() from
nsAtom* to nsAtom& since it's not nullable.

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

--HG--
extra : moz-landing-system : lando
2018-08-13 05:16:10 +00:00
Masayuki Nakano c0e869978e Bug 1482012 - part 2: Create TextEditor::PasteAsAction() as non-virtual method for outer C++ code r=m_kato
User may paste a lot with pressing Accel+V for a while (i.e., with auto repeat).
So, calling nsIEditor::Paste() may be in a hot path and we can now make
non-virtual public method with AsHTMLEditor().

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

--HG--
extra : moz-landing-system : lando
2018-08-13 04:37:56 +00:00
Masayuki Nakano fa50ac3342 Bug 1482012 - part 1: Create HTMLEditor::PasteInternal() for internal use r=m_kato
HTMLEditor::Paste() is an override of nsIEditor.  So, it's virtual and public.
We should use protected method for internal use and should make it non-virtual
if possible.  This patch creates PasteInternal() which is a protected
non-virtual method.

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

--HG--
extra : moz-landing-system : lando
2018-08-13 04:15:34 +00:00
Daisuke Akatsuka 021e22e1ec Bug 1477598 - Part 4: Add a listener to detect updating the extensions. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D3090
2018-08-10 17:04:32 +09:00
Daisuke Akatsuka a13587f219 Bug 1477598 - Part 3: Implement inspection action. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D3087
2018-08-10 16:40:46 +09:00
Daisuke Akatsuka 780f8d0ac7 Bug 1477598 - Part 2: Implement UI for extensions. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D3084
2018-08-10 16:04:47 +09:00
Daisuke Akatsuka d167eeed73 Bug 1477598 - Part 1: Implement a mechanism to dispatch extensions. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D3083
2018-08-10 15:56:05 +09:00
Martin Thomson 59b2975f6c Bug 1479501 - Disable TLS version fallback, r=ekr
--HG--
extra : source : 91fcd26d7794d96c757a44cdffe6e799ccdc6d3a
extra : amend_source : f72f8d7c6500b3fe825dd24d676558438609e699
2018-08-10 12:10:35 +10:00
Nicholas Nethercote b9e071e2e8 Bug 1481998 - Make mozilla::Hash{Map,Set}'s entry storage allocation lazy. r=luke,sfink
Entry storage allocation now occurs on the first lookupForAdd()/put()/putNew().
This removes the need for init() and initialized(), and matches how
PLDHashTable/nsTHashtable work. It also removes the need for init() functions
in a lot of types that are built on top of mozilla::Hash{Map,Set}.

Pros:

- No need for init() calls and subsequent checks.

- No memory allocated for empty tables, which are not that uncommon.

Cons:

- An extra branch in lookup() and lookupForAdd(), but not in put()/putNew(),
  because the existing checkOverloaded() can handle it.

Specifics:

- Construction now can take a length parameter.

- init() is removed. Explicit length-setting, when necessary, now occurs in the
  constructors.

- initialized() is removed.

- capacity() now returns zero when the entry storage is absent.

- lookupForAdd() is no longer `const`, because it can instantiate the storage,
  which requires modifications.

- lookupForAdd() can now return an invalid AddPtr in two cases:

  - old: hashing failure (due to OOM in the hasher)

  - new: OOM while instantiating entry storage

  The existing failure handling paths for the old case work for the new case.

- clear(), finish(), and clearAndShrink() are replaced by clear(), compact(),
  and reserve(). The old compactIfUnderloaded() is also removed.

- Capacity computation code is now in its own functions, bestCapacity() and
  hashShift(). setTableSizeLog2() is removed.

- uint32_t is used throughout for capacities, instead of size_t, for
  consistency with other similar values.

- changeTableSize() now takes a capacity instead of a deltaLog2, and it can now
  handle !mTable.

Measurements:

- Total source code size is reduced by over 900 lines. Also, lots of existing
  lines got shorter (i.e. two checks were reduced to one).

- Executable size barely changed, down by 2 KiB on Linux64. The extra branches
  are compensated for by the lack of init() calls.

- Speed changed negligibly. The instruction count for Bench_Cpp_MozHash
  increased from 2.84 billion to 2.89 billion but any execution time change was
  well below noise.
2018-08-10 18:00:29 +10:00
Nicholas Nethercote a04c29f828 Bug 1481998 - Define lookup() in terms of readonlyThreadsafeLookup(). r=luke
The two functions are almost identical. This change minimizes duplication.

--HG--
extra : rebase_source : 08bb79d21084eec63702525ce6179e22686bec5c
2018-08-10 15:35:13 +10:00
Makoto Kato fef13a2f66 Bug 1464251 - SplitNodeDeepWithTransaction might create orphan node. r=masayuki
SplitStyleAbovePoint calls SplitNodeDeepWithTransaction repeatedly. If
SplitNodeDeepWithTransaction creates orphan node like this test case,
this crash occurs.  So we should check whether node becomes orphan node.

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

--HG--
extra : moz-landing-system : lando
2018-08-09 08:22:50 +00:00
Xidorn Quan 0b27da2b4b Bug 1478178 - Sync the condition in ApplyFrameJustification as that in ComputeFrameJustification. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D2817

--HG--
extra : moz-landing-system : lando
2018-08-13 00:07:35 +00:00
Cameron McCormack a2eba7a28c Bug 1482677 - Remove unused BorrowedAtom. r=emilio,TYLin
MozReview-Commit-ID: FEnicnGj118

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

--HG--
extra : moz-landing-system : lando
2018-08-12 11:16:25 +00:00
Emilio Cobos Álvarez 727fe6d4b7 Bug 1482694 - Don't clear the insertion point from ClearInsertedChildren if we're not the insertion point the node is assigned to. r=smaug
What's going on is that nested XBL insertion points are completely unsound, and
we leave all sorts of kids in mInsertedChildren when bindings dynamically
change.

So if bindings change in a particular way so that the innermost insertion point
is cleared, but the outermost bindings aren't, like this, we end up with an
inconsistent flattened tree.

This prevents the inconsistent flattened tree in this case, though what ought
to happen in the SetXBLInsertionPoint(nullptr) case is setting the insertion
point to the outer insertion point.

But we don't keep track of all our insertion points, and I don't think it's
worth to fix that given XBL is going away unless it gives us more problems. See
also bug 1425362 & co.

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

--HG--
extra : moz-landing-system : lando
2018-08-12 18:17:48 +00:00