Commit Graph

597877 Commits

Author SHA1 Message Date
Dorel Luca
def68fde1d Merge mozilla-central to mozilla-inbound 2018-05-28 11:57:33 +03:00
Dorel Luca
c581ba2f76 Merge mozilla-inbound to mozilla-central. a=merge 2018-05-28 11:46:41 +03:00
Emilio Cobos Álvarez
3240b9b6d9 Bug 1462618: The restyle root machinery could work better. r=heycam
Consider the test-case where we have:

<div>
  <span id=a />
  <span id=b />
</div>

We try to set one bit on "a", and a different one on "b".

Ideally we'll end up with <div> as the root with both bits. But with the current
code we'd go all the way to the document unnecessarily. This fixes it by
checking the bits we've propagated up to the top instead of existingBits.

MozReview-Commit-ID: GfwjwCBpkuy
2018-05-28 10:45:49 +02:00
Emilio Cobos Álvarez
6bd746e8d9 Bug 1464060: Unify DoGetStyle* implementations. r=xidorn
Both branches are equal now.

MozReview-Commit-ID: 2XmYvGC0ETx
2018-05-28 10:40:32 +02:00
Emilio Cobos Álvarez
3f97dd5cab Bug 1464060: Make the general setup for computed style bits nicer. r=xidorn
This patch:

 * Makes StyleStructID an enum class, and moves it to the mozilla namespaces.

 * Introduces StyleStructConstants with some constants scattered through the
   codebase.

 * Makes the computed style bits an enum class, and splits mPseudoType and mBits
   into their own members, since we were using a uint64_t when we have only a
   couple flags and CSSPseudoElementType is a byte. We statically assert that
   the number of style structs is less or equal to 32.

 * Makes mPseudoTag, mPseudoType and mBits const, since we don't want them to be
   mutated from C++, and we still need a few more refactorings (mostly getting
   rid of FinishStyle) to avoid mutating ComputedStyle instead.

MozReview-Commit-ID: 7qsTtASGcYB
2018-05-28 10:40:00 +02:00
Emilio Cobos Álvarez
de6fa5fd09 Bug 1464060: Remove some unused templating and arguments. r=xidorn
Also don't rely on 'using namespace mozilla' in the cpp files that include
nsStyleStructInlines.h.

MozReview-Commit-ID: DLZiMpSzIFn
2018-05-28 10:40:00 +02:00
Emilio Cobos Álvarez
dc60d6f0c2 Bug 1464060: Remove a bunch of unused style bits. r=xidorn
MozReview-Commit-ID: FLACqfSHfSO
2018-05-28 10:17:11 +02:00
Emilio Cobos Álvarez
2fe6f39529 Bug 1464428: Optimize QuerySelector in shadow trees. r=xidorn
Pretty much the same setup we have for document.

We have the awkwardness of having to check containing shadow manually for
ShadowRoot because it's not available in TNode (and making it available added a
bit more complexity that wasn't worth it IMO).

MozReview-Commit-ID: CqOh0sLHf6o
2018-05-28 10:08:35 +02:00
James Graham
746d69c97a Bug 1464567 - Increase labelable-elements test assert count in webrender, a=testonly
MozReview-Commit-ID: 3L3QWkZd7R7
2018-05-28 08:58:01 +01:00
Kris Maglione
a55436fb3d Bug 1460610: Follow-up: Fix test expectations. r=bustage DONTBUILD
MozReview-Commit-ID: 5jGHu7WKY30
2018-05-27 21:51:16 -07:00
Kris Maglione
894cc5fddb Bug 1461145: Follow-up: Fix still more racy tests. r=bustage,test-only
MozReview-Commit-ID: AnyF6jwyhDv

--HG--
extra : rebase_source : 97640dd2f31cc1105e0296b356d781996ee37113
2018-05-27 18:34:36 -07:00
Matt Woodrow
636753b307 Bug 1436505. r=mats, a=abillings
--HG--
extra : rebase_source : 9f91c91eb1061577148e1880dc4dc5655f7b099a
2018-05-28 12:42:54 +12:00
Kris Maglione
f72f5fc596 Bug 1461145: Follow-up: Fix more racy tests. r=bustage CLOSED TREE
MozReview-Commit-ID: 7uep5FCvVwC

--HG--
extra : rebase_source : 22e6c32288fe6dfd72625eabdebb1bb5c4637069
2018-05-27 17:53:01 -07:00
Daisuke Akatsuka
db03ba6e9c Bug 1462229 - Part 4: Add test for fast removal. r=gl
MozReview-Commit-ID: 2Fr3v7OwkMm

--HG--
extra : rebase_source : e3496abe4485d9aff8540acedca654d9cc2a09e5
2018-05-28 09:28:00 +09:00
Daisuke Akatsuka
7703af13b4 Bug 1462229 - Part 3: Guard that not touching null object during creating graph after animation inspector destroyed. r=gl
MozReview-Commit-ID: 2UWt3aq1e4x

--HG--
extra : rebase_source : ef6f2047efccde2fbc80b0cbfb4b82a181ecf1dd
2018-05-28 09:27:55 +09:00
Daisuke Akatsuka
eae57fa593 Bug 1462229 - Part 2: Avoid updating SummaryGraphPath if the component have been destroyed or other node have been selected while calling async function. r=gl
MozReview-Commit-ID: 2ECelUt6nmd

--HG--
extra : rebase_source : c20d830d2ae5d58201a6f23be53e41c225d4332b
2018-05-28 08:57:30 +09:00
Daisuke Akatsuka
a2ab4f6ce5 Bug 1462229 - Part 1: Avoid updating the state of removed animation. r=gl
MozReview-Commit-ID: IAdHpqXe4Ta

--HG--
extra : rebase_source : 6255f47ef9a21673bb2b809f41529cc877cc30ba
2018-05-28 08:57:16 +09:00
Gurzau Raul
61aeafad6a Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-28 00:45:59 +03:00
Olli Pettay
1577002b50 Bug 1460069 - enable Shadow DOM in Nightly, r=emilio
--HG--
extra : rebase_source : 6feacbd0d1a808da4c1aa032d1305a91f9586c77
2018-05-27 17:25:55 +03:00
moz-wptsync-bot
b7e5c9e23c Bug 1464567 - [wpt-sync] Update web-platform-tests to 347a7974c93326910109cd0f3386cc427add4ec5, a=testonly
wpt-head: 347a7974c93326910109cd0f3386cc427add4ec5
wpt-type: landing
2018-05-27 14:15:08 +00:00
moz-wptsync-bot
52f178346f Bug 1463050 [wpt PR 11019] - Update wpt metadata, a=testonly
wpt-pr: 11019
wpt-type: metadata
2018-05-27 14:15:07 +00:00
Hiroki Nakagawa
994a0a9af9 Bug 1463050 [wpt PR 11019] - Worker: Add service worker interception tests for module loading on dedicated workers, a=testonly
Automatic update from web-platform-testsWorker: Add service worker interception tests for module loading on dedicated workers

This CL adds both web-platform-tests and conventional layout tests because the
current Chrome implementation is not spec-compatible in terms of service worker
scope matcing with dedicated workers (see https://crbug.com/731599). The layout
tests will be removed after the issue is fixed.

Bug: 680046
Change-Id: If214bd2f647ee5e7257ae134a870cf1e4ddac608
Reviewed-on: https://chromium-review.googlesource.com/1059979
Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org>
Reviewed-by: Matt Falkenhagen <falken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#560851}

--

wpt-commits: 347a7974c93326910109cd0f3386cc427add4ec5
wpt-pr: 11019
2018-05-27 14:15:07 +00:00
Cosmin Sabou
3bd2f780a2 Merge central to inbound. a=merge 2018-05-27 16:04:12 +03:00
Cosmin Sabou
5a74471337 Merge inbound to mozilla-central. a=merge 2018-05-27 15:58:59 +03:00
Tim Nguyen
db14fc11a2 Bug 1464633 - Fix typo in browser_ext_themes_autocomplete_popup.js test. r=dao
MozReview-Commit-ID: JwqKMvklK4K

--HG--
extra : rebase_source : c8cb5b07e99f3e0dbf7012405ec5785b3a984bb2
2018-05-27 12:08:30 +02:00
Dão Gottwald
567db8f401 Bug 1459352 - Fix disabled text color in webext theme styled control center. r=ntim
MozReview-Commit-ID: LjXHocbRcXb

--HG--
extra : rebase_source : 5e8124fd3e2006444b1c292fb516884b1b04c52e
2018-05-27 10:57:11 +02:00
Julian Seward
fef50df448 Bug 1461304 - Windows bustage eg: /js/src/wasm/WasmBinaryToAST.cpp when Gecko 62 merges to Beta on 2018-06-14. r=froydnj.
Some configurations of SpiderMonkey wind up producing C++ switch statements of
the form

   switch (..) {
     default: break;
   }

We hoped that they would simply be optimised out without comment.  But MSVC
warns about the lack of non-default cases, which then are escalated into
errors, causing the build to fail.  This commit simply disables that warning
feature when building with MSVC.

--HG--
extra : rebase_source : 468022d30cdaf483aaa64fc7aa9dd1308fbc7335
2018-05-27 09:39:06 +02:00
Jan de Mooij
1879873837 Bug 1464134 part 1 - Fix various places to use Realm instead of JSCompartment. r=luke 2018-05-27 11:53:11 +02:00
Michal Novotny
63375bc80b Bug 1377570 - Enable RCWN on mobile. r=valentin
This patch enables racing cache with network on mobile when cellular data isn't used.
2018-05-27 03:59:00 +03:00
Hiroyuki Ikezoe
5c588a8653 Bug 1464627 - Fix the spec link to 3D rotation matrix. r=emilio DONTBUILD
MozReview-Commit-ID: F5P4pCvD0Ww

--HG--
extra : rebase_source : 8c97814986517b81affa39c3be06e18427d1e4e8
2018-05-27 09:55:06 +09:00
Ciure Andrei
6fcdd84322 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-05-27 01:22:30 +03:00
Ciure Andrei
a46cbc1ae5 Merge inbound to mozilla-central. a=merge 2018-05-27 01:17:13 +03:00
Cosmin Sabou
4a95166f46 Bug 1463383 - Disable mobile/android/components/extensions/test/mochitest/test_ext_popup_behavior.html for frequent timeouts. r=nbeleuzu 2018-05-27 00:43:00 +03:00
Emilio Cobos Álvarez
14326e571a Backed out changeset d48abd83fc7c (bug 1463884) since it's not the correct fix. r=me
If the font enumeration thread runs during the Servo traversal, it'd end up
thinking it _is_ (incorrectly) a Servo thread.
2018-05-27 10:04:27 +02:00
rahul0379
a90bc4ed77 Bug 1464433 - Cleaning up nsINode::GetElementById. r=emilio 2018-05-27 10:03:48 +02:00
maharsh312
f431bdeaf2 Bug 1464321 - Changed return type of two methods in JSScript with relative format string change. r=arai 2018-05-27 04:00:06 +05:30
Julian Seward
886ec674df Bug 1452588 - Import WebAssembly reference tests for import/export of mutable globals. r=bbouvier.
This bug is for importation of spec tests for the WA mutable-global
extension, as proposed at https://github.com/WebAssembly/mutable-global.

In particular it imports the following tests in that repo:

  test/core/globals.wast (wrapped in JS)
  test/core/linking.wast (ditto)
  test/js-api/jsapi.js

The resulting files linking.js and globals.js are placed in a new
subdirectory, js/src/jit-test/tests/wasm/spec/proposal_mutable_global to
make it clear that they pertain to the proposal, and so as not to alter the
existing tests.

There have also been some changes to the test harness code as required to
support the new tests, as follows:

* js/src/jit-test/lib/wasm-testharness.js: the existing logic for locating
  the harness/ subdir appears to assume that all the test scripts live in
  the same directory, which is no longer the case.  It has been reworked
  so as to use a fixed offset relative to |libdir| rather than a fixed
  offset from |scriptdir|.

* js/src/jit-test/lib/wasm-testharness.js: the revised jsapi.js requires a
  new function |assert_not_equals|, but it does not appear possible to
  define it in the same way that |assert_equals| is defined.  A simple
  implementation of |assert_not_equals| has therefore been added.

* src/jit-test/tests/wasm/spec/harness/index.js: a couple more registry
  entries were added, as required by the new globals.js and linking.js.

* js/src/jit-test/tests/wasm/spec/harness/wasm-module-builder.js: added
  a |mutable| parameter to addImportedGlobal().

* js/src/jit-test/tests/wasm/spec/jsapi.js: there are many changes, but
  almost all of them result simply from the resync.

* js/src/jit-test/tests/wasm/spec/proposal_mutable_global/directives.txt
* js/src/jit-test/tests/wasm/spec/proposal_mutable_global/globals.wast.js
* js/src/jit-test/tests/wasm/spec/proposal_mutable_global/linking.wast.js
  New files.

--HG--
extra : rebase_source : 1f049fced054e2a979c1ab364f75aaf805de1255
2018-05-26 20:04:49 +02:00
Kris Maglione
27f054b14e Bug 1461145: Follow-up follow-up: Fix setTimeout flakiness in tests that load SpecialPowersObserverAPI. r=bustage
MozReview-Commit-ID: 1JTl2Aj1wFK
2018-05-26 18:15:19 -07:00
Kris Maglione
3dd63c92d7 Bug 1461145: Follow-up: Temporarily disable test task for too many failures. r=bustage,test-only DONTBUILD
MozReview-Commit-ID: 8rOOceQfWjG

--HG--
extra : amend_source : 2c236e0983c157bb22b7f341e72e6259b3483bdd
2018-05-26 17:50:23 -07:00
Dão Gottwald
007fc77913 Bug 1462635 - Fix disabled text color in webext theme styled popups. r=ntim
MozReview-Commit-ID: myI1PNipvK

--HG--
extra : rebase_source : 6df227c1bd260dbb296e5b269e6c5c39606db386
2018-05-26 18:45:06 +02:00
Margareta Eliza Balazs
80660b5be9 Backed out changeset c77b29b0e913 (bug 1451827) for bc frequent failures in extensions/test/browser/browser_ext_themes_autocomplete_popup.js 2018-05-26 18:40:06 +03:00
Emilio Cobos Álvarez
82d64f3b99 Bug 1464595: Cleanup single transform functions that can't really error. r=hiro
Also call them "resolve" since it's the general term for computing something
more specific than what you have.

Though I don't feel strongly about that, feel free to push back.

MozReview-Commit-ID: KtqjzlppZLp

--HG--
extra : rebase_source : bc98820991f8858486f7bbaab929bc60d4d39b0c
2018-05-26 16:22:52 +02:00
Dão Gottwald
a65aba9fb0 Bug 1451827 - In dark popups styled by webext themes, set --urlbar-popup-url-color and .text-link color to the same value. r=jaws
MozReview-Commit-ID: KkE3VQv19Q0
2018-05-26 12:52:18 +02:00
Margareta Eliza Balazs
b47af51698 Merge inbound to mozilla-central. a=merge 2018-05-26 12:45:17 +03:00
Boris Zbarsky
b74339d763 Bug 1464478. Update the pass-CPOW-to-C++ test to not rely on nodes being passed as xpidl-declared interfaces. r=mrbkap 2018-05-26 00:23:07 -04:00
Boris Zbarsky
7d29e0bc6e Bug 1464519. Remove some dead code in nsXULPopupListener::HandleEvent. r=felipe
We've been bailing out if |target| is not nsIContent for a long time now, so
all the code handling it not being an nsIDOMNode is dead.
2018-05-26 00:23:04 -04:00
Dorel Luca
047df7a932 Merge mozilla-inbound to mozilla-central. a=merge 2018-05-26 07:09:39 +03:00
Dorel Luca
145f37a74f Backed out changeset 18a7b3b1332d (bug 1464288) for failing reftests at reftest/tests/layout/reftests/display-list/1464288-1.htm a=backout 2018-05-26 07:04:24 +03:00
Randell Jesup
42686d4bdc Bug 1463494: delete the sensor observerlist array in a deferred manner r=froyd,jchen
clean up sensorlist if Dispatch fails
2018-05-25 21:16:28 -04:00
André Bargull
db0ffdf2b9 Bug 1464368 - Mark a few Atomics tests as "random" to avoid frequent intermittents. r=sfink 2018-05-25 06:04:20 -07:00