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

609116 Коммитов

Автор SHA1 Сообщение Дата
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
Brindusan Cristian ba708c34ec Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-13 00:53:06 +03:00
Brindusan Cristian 8d06786539 Merge inbound to mozilla-central. a=merge 2018-08-13 00:49:13 +03:00
Brindusan Cristian 91db530d6b Merge autoland to mozilla-central. a=merge 2018-08-13 00:47:25 +03:00
makmm 0d42280111 Bug 1476580 - rewrite italic font toggle using ::before. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D3013

--HG--
extra : moz-landing-system : lando
2018-08-12 20:15:27 +00:00
Narcis Beleuzu f4e5fb2d0f Backed out 2 changesets (bug 1474028) per chmanchester`s request. a=backout
Backed out changeset 52bd814d3589 (bug 1474028)
Backed out changeset 39a528147c34 (bug 1474028)
2018-08-12 21:22:45 +03:00
Francesco Lodolo (:flod) 69e36d1081 Bug 1482637 - Add missing trailing period to contentBlocking.notDetected string r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D3144

--HG--
extra : moz-landing-system : lando
2018-08-12 15:13:57 +00:00
Cosmin Sabou ca86972424 Backed out 8 changesets (bug 1481009) for causing devtools crashes @XUL + 0x37bba19. a=backout
Backed out changeset 11ee868c5903 (bug 1481009)
Backed out changeset 4a0c7dd5e1ac (bug 1481009)
Backed out changeset 4e6908123a97 (bug 1481009)
Backed out changeset 6869ea5ebd32 (bug 1481009)
Backed out changeset 85eec9cfc3d9 (bug 1481009)
Backed out changeset f7f4127aa9d8 (bug 1481009)
Backed out changeset 58598aa3cf0c (bug 1481009)
Backed out changeset 1ec7f635f4f3 (bug 1481009)
2018-08-12 14:50:41 +03:00
Nicholas Nethercote cbac1e147a Bug 1481998 - Change sJSObjWrappers initialization. r=luke
GCHashMap will shortly lose its initialized() function, so we need another way
to indicate whether this table has been created. This patch changes it to use a
pointer instead.

--HG--
extra : rebase_source : 05ce9f2938d1fc8373cbac77c0b3bd62633f93d8
2018-08-09 14:15:42 +10:00
Brindusan Cristian 6823adfae8 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-13 00:54:04 +03:00
Kris Maglione c65e3607f7 Bug 1481021: Follow-up: Fix another test that relies on bad COW behavior. r=me,test-only
--HG--
extra : rebase_source : 253c3dbdfd1dc6dc586198049384ac466e8a73a8
extra : amend_source : d8e5bbb6acf2d53fdc1055cfd269153ebc55018e
2018-08-11 17:12:34 -07:00
Kris Maglione 7ce09e1fd8 Bug 1481025: Fix devtools code which calls message manager methods with a null target. r=ochameau
MozReview-Commit-ID: KJeQjwhfJbw

--HG--
extra : rebase_source : 682a0007b1fa802643e5ec43e0ff40db8efded03
2018-08-04 15:51:56 -07:00
Kris Maglione 637cac1ea7 Bug 1481024: Stop relying on lexical variables being available across frame scripts. r=yzen
The accessibility tests currently rely, in many places, on lexical variables
defined in global frame scripts being available to other non-global frame
scripts. While that is currently the case, it will stop being so soon.

And, while the simplest solution would be to define them as properties on the
frame message manager by using `var` rather than `let`, storing references to
the current content window in a frame script scope is unsafe at best, and
should be avoided at all costs.

MozReview-Commit-ID: 4FCGtLgcFzl

--HG--
extra : rebase_source : d21206c9f119ca0ce61f9956f84a2e2d11484bca
2018-08-02 20:19:50 -07:00
Ciure Andrei 1c0025e0de Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-08-12 05:19:52 +03:00
Dorel Luca 2325ef30c4 Backed out 16 changesets (bug 1481478, bug 1482434, bug 1477230, bug 1459618, bug 1460281, bug 1450151, bug 1480787, bug 1480724, bug 1459593, bug 1480560) for wpt failures on multipefiles. CLOSED TREE
Backed out changeset 16c9abfa230c (bug 1482434)
Backed out changeset 0cff8da6a4f4 (bug 1481478)
Backed out changeset f4716486af30 (bug 1460281)
Backed out changeset bf082e33a824 (bug 1459593)
Backed out changeset 936c2d035358 (bug 1459593)
Backed out changeset b0e2387b5781 (bug 1450151)
Backed out changeset 7fe7da394986 (bug 1450151)
Backed out changeset 5fd6d3ad49ea (bug 1459618)
Backed out changeset e08114ea42d3 (bug 1459618)
Backed out changeset ba42a3f7a317 (bug 1480724)
Backed out changeset 21ac820030f7 (bug 1480724)
Backed out changeset d7eaecb758f7 (bug 1480787)
Backed out changeset 509f61d497cd (bug 1480560)
Backed out changeset 63a59e79c1dd (bug 1480560)
Backed out changeset d7389a33caea (bug 1477230)
Backed out changeset 04e49a49f1ea (bug 1477230)
2018-08-12 02:40:19 +03:00
Ciure Andrei f900c72a93 Merge inbound to mozilla-central. a=merge 2018-08-12 00:53:49 +03:00
Dorel Luca 3eadc92da5 Backed out changeset 4575c3b6b09c (bug 1450824) for failing wpt on svg/painting/reftests/markers-orient-001.svg. CLOSED TREE 2018-08-12 00:51:29 +03:00
moz-wptsync-bot f2f1f517d5 Bug 1482434 - [wpt-sync] Update web-platform-tests to d309efd6d5a63376db72494c21d403624c14d7af, a=testonly
wpt-head: d309efd6d5a63376db72494c21d403624c14d7af
wpt-type: landing
2018-08-11 18:33:23 +00:00
Ms2ger af71eca771 Bug 1481478 [wpt PR 12338] - Fix some typos in testharness.js., a=testonly
Automatic update from web-platform-testsFix some typos in testharness.js.

--

wpt-commits: 5ee7f865c347c346d8bf3295d7b5e2602f5caca7
wpt-pr: 12338
2018-08-11 18:33:23 +00:00
Chris Lilley 4b979f9ac1 Bug 1460281 [wpt PR 10926] - Add test for marker 'orient' attribute., a=testonly
Automatic update from web-platform-testsMerge pull request #10926 from Tavmjong/markers-orient

Add test for marker 'orient' attribute.
--

wpt-commits: eea0b54014e970a2f94f1c35ec6e18ece76beb76
wpt-pr: 10926
2018-08-11 18:33:22 +00:00
moz-wptsync-bot cfa4dc3916 Bug 1459593 [wpt PR 10868] - Update wpt metadata, a=testonly
wpt-pr: 10868
wpt-type: metadata
2018-08-11 18:33:21 +00:00
Chris Lilley e53edc0d28 Bug 1459593 [wpt PR 10868] - Add basic text 'inline-size' tests., a=testonly
Automatic update from web-platform-testsMerge pull request #10868 from Tavmjong/inline-size

Add basic text 'inline-size' tests.
--

wpt-commits: 4d887869b49459f5fc5313171b94aea62de7d7bb
wpt-pr: 10868
2018-08-11 18:33:21 +00:00
Chris Lilley 6e17619fbd Bug 1450824 [wpt PR 10275] - Add tests for rel, rellist, download, and text on SVGAElement, a=testonly
Automatic update from web-platform-testsMerge pull request #10275 from dstorey/svgaelement-additions

Add tests for rel, rellist, download, and text on SVGAElement
--

wpt-commits: 60f5bae752dd625ae83a730c635254cdb9f3d970
wpt-pr: 10275
2018-08-11 18:33:21 +00:00
moz-wptsync-bot 9859827793 Bug 1450151 [wpt PR 10249] - Update wpt metadata, a=testonly
wpt-pr: 10249
wpt-type: metadata
2018-08-11 18:33:20 +00:00
Chris Lilley 0e3e35e6ff Bug 1450151 [wpt PR 10249] - Add test for DocumentAndElementEventHandlers in SVG, a=testonly
Automatic update from web-platform-testsMerge pull request #10249 from dstorey/svg-document-element-events

Add test for DocumentAndElementEventHandlers in SVG
--

wpt-commits: 1529e32ac8073c48e872e7d705a10daa24decbbf
wpt-pr: 10249
2018-08-11 18:33:20 +00:00
moz-wptsync-bot 2ca1938d9a Bug 1459618 [wpt PR 10871] - Update wpt metadata, a=testonly
wpt-pr: 10871
wpt-type: metadata
2018-08-11 18:33:19 +00:00
Chris Lilley c06597e90c Bug 1459618 [wpt PR 10871] - Add basic text multiline text (via 'white-space')., a=testonly
Automatic update from web-platform-testsMerge pull request #10871 from Tavmjong/multi-line

Add basic text multiline text (via 'white-space').
--

wpt-commits: 910640bcb4924b36e4cd5fc1dc0fd12ff13c09be
wpt-pr: 10871
2018-08-11 18:33:19 +00:00
moz-wptsync-bot 976da82242 Bug 1480724 [wpt PR 12293] - Update wpt metadata, a=testonly
wpt-pr: 12293
wpt-type: metadata
2018-08-11 18:33:18 +00:00
Ms2ger bcc1d76033 Bug 1480724 [wpt PR 12293] - Use a .worker.js test for WorkerGlobalScope_requestAnimationFrame., a=testonly
Automatic update from web-platform-testsUse a .worker.js test for WorkerGlobalScope_requestAnimationFrame.

--

wpt-commits: 5a3a984492dcd1b1586576790922baf0a208dfb5
wpt-pr: 12293
2018-08-11 18:33:18 +00:00
Morten Stenshorne d4dfc6b9d9 Bug 1480787 [wpt PR 12297] - [LayoutNG] Pass constraint space to inline children for min/max., a=testonly
Automatic update from web-platform-tests[LayoutNG] Pass constraint space to inline children for min/max.

Orthogonal flow root children are going to need to calculate an
extrinsic constraint space. We already got this right for direct block
children, but not for floated children of inline child nodes.

Three tests start to pass, but I wrote a new test as well, that's more
to the point (it used to fail a DCHECK, and then render incorrectly, if
we bypassed that).

Cq-Include-Trybots: luci.chromium.try​:linux_layout_tests_layout_ng
Change-Id: Iffea4e8cb26f41f8b5caac4bbb7185df5f62f7d7
Reviewed-on: https://chromium-review.googlesource.com/1162175
Reviewed-by: Koji Ishii <kojii@chromium.org>
Reviewed-by: Emil A Eklund <eae@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#581188}

--

wpt-commits: 25475a3887220baee22dfef032474040401d84e3
wpt-pr: 12297
2018-08-11 18:33:17 +00:00
moz-wptsync-bot b2470ea83f Bug 1480560 [wpt PR 12284] - Update wpt metadata, a=testonly
wpt-pr: 12284
wpt-type: metadata
2018-08-11 18:33:17 +00:00
Luke Bjerring 4f9bebeed8 Bug 1480560 [wpt PR 12284] - Update the screen-capture IDL file, a=testonly
Automatic update from web-platform-testsAdd the screen-capture IDL file + test (#12284)

--

wpt-commits: ae2f8dd7e531d6da7a651021dd00af9f3082d58d
wpt-pr: 12284
2018-08-11 18:33:16 +00:00
moz-wptsync-bot 47295c9325 Bug 1477230 [wpt PR 12089] - Update wpt metadata, a=testonly
wpt-pr: 12089
wpt-type: metadata
2018-08-11 18:33:16 +00:00
Manuel Rego Casasnovas 96cbc8abeb Bug 1477230 [wpt PR 12089] - [css-grid] Change how percentage row tracks and gaps are resolved, a=testonly
Automatic update from web-platform-tests[css-grid] Change how percentage row tracks and gaps are resolved

The CSSWG decided to change how percentage row tracks and gutters
in a grid container with indefinite height are resolved.

The CSSWG issues are:
* https://github.com/w3c/csswg-drafts/issues/1921
* https://github.com/w3c/csswg-drafts/issues/509

So far they were resolved as "auto", like it happens with
percentage heights in regular blocks. But now they're going to behave
similar to what happens in the columns axis, they would be ignored
to compute the intrinsic height.
This causes that we need to repeat the track sizing algorithm
when we have a grid container with indefinite height
that has some percentage rows using the intrinsic height
calculated on the first pass. Then the percentages will be resolved
against the intrinsic height.

We are adding two new tests for this new behavior
on top of updating several tests that were using percentages.
We also add a test for content alignment and the second pass
when the row size changes, the last case fails due to crbug.com/871230.

JFTR, intent to implement and ship thread:
https://groups.google.com/a/chromium.org/d/msg/blink-dev/CJgcT4hR7Rk/58WfZNbWBQAJ

BUG=846187
TEST=css/css-grid/grid-definition/grid-percentage-rows-indefinite-height-001.html
TEST=css/css-grid/grid-definition/grid-percentage-rows-indefinite-height-002.html
TEST=css/css-grid/alignment/grid-content-alignment-second-pass-002.html

Change-Id: I2a1959af6c95e0c47d294580599fdbf9bc432348
Reviewed-on: https://chromium-review.googlesource.com/1142409
Commit-Queue: Manuel Rego <rego@igalia.com>
Reviewed-by: Sergio Villar <svillar@igalia.com>
Cr-Commit-Position: refs/heads/master@{#581185}

--

wpt-commits: 244c6baf38953eac29840e2fbcb8a42dd8bafe88
wpt-pr: 12089
2018-08-11 18:33:15 +00:00
Jean-Yves Avenard f5fbe2c29b Bug 1480190 - Enable media-capablities extension by default. r=drno,bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D3061

--HG--
extra : moz-landing-system : lando
2018-08-11 17:37:08 +00:00
Dale Harvey 330a576a5c Bug 1481289 - Update autoplay media blocked icon. r=dao
MozReview-Commit-ID: Dxmf6uoNlSI
2018-08-11 16:29:05 +01:00
Brian Hackett ec353304d3 Bug 1465491 - Add remaining web replay tests.
--HG--
extra : rebase_source : 696fe3e6223bdb4790a03e6c1229beabe16ca974
2018-08-10 18:20:15 +00:00
Jan de Mooij b3d493f06a Bug 1482423 part 2 - Use js::IsSystemCompartment in xpc::AccessCheck::isChrome. r=mrbkap
--HG--
extra : rebase_source : 7998deb57b0fd8fddcc822bb726a29d3942d3601
2018-08-11 13:12:49 +02:00
Jan de Mooij ab76b86554 Bug 1482423 part 1 - Assert compartments don't contain both system/non-system realms. r=luke
--HG--
extra : rebase_source : 44c6949467eb246ac523fae3dbe96f5848ff2602
2018-08-11 13:12:49 +02:00
ExE Boss 49402056bc Bug 1482411 - Port bug 1371951 changes to extension-mac.css r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D3112

--HG--
extra : moz-landing-system : lando
2018-08-10 15:00:35 +00:00
Ed Lee a23ae6debf Bug 1482565 - Support and show @Яндекс and @百度 searches for yandex and baidu r=mkaply
Depends on D3133
Depends on D3033

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

--HG--
extra : moz-landing-system : lando
2018-08-11 13:26:39 +00:00
Andreea Pavel 260e13f78d Merge mozilla-central to autoland. a=backout 2018-08-11 13:49:05 +03:00