Commit Graph

603310 Commits

Author SHA1 Message Date
Eitan Isaacson
a17a08b748 Bug 1473730 - Don't speak entire subtree of document when it is focused. r=yzen
After page load the document is focused and the entire subtree is
spoken. It should only speak the name.

--HG--
extra : rebase_source : bfc5542969fa29c45b9617d873a3dba7bf1a47c2
2018-07-10 08:43:00 +03:00
arthur.iakab
7bd656627d Backed out changeset caab8817cbf2 (bug 1466979)For build bustages on js/src/vm/UbiNode.cpp CLOSED TREE 2018-07-10 22:56:05 +03:00
Andreas Tolfsen
de45691916 Bug 1447977 - Handle cyclic references in element prototypes. r=automatedtester
JavaScript objects can be nested to any depth, and as such we must
check that the value to be serialised contains a cyclic structure
before attempting to marshaling it.  We handle this correctly for
collections and arbitrary objects by relying on JSON.stringify.

For example with arrays:

	let arr = [];
	arr.push(arr);

And for objects:

	let obj = {};
	obj.reference = obj;

However, members of the different element prototypes (HTMLElement,
SVGElement, XULElement, et al.) may also contain cyclic references
via user-defined own properties:

	let body = document.documentElement;
	body.reference = body;

JSON.stringify enumerates an object's own properties, which means
it picks up on body's "reference" property in the above example.

Marionette needs to special case element prototypes because we want
to marshal them as web elements.  This patch replaces JSON.stringify
with a custom function for testing if a value contains cyclic
structures that special-cases elements.

MozReview-Commit-ID: 1TQtHrjf401

--HG--
extra : rebase_source : 382cadca8a19971fbb74850b1904bb9ebdc9061e
2018-07-06 20:08:37 +01:00
Andreas Tolfsen
5c26c522ac Bug 1447977 - Move cyclic object test function to evaluate. r=automatedtester
Moves the innards of assert.acyclic to evaluate.isCyclic so it can
be called externally without throwing.  It makes more sense for
this function to be exposed on the evaluate module, since other
behaviour related to JSON marshaling is also defined there.

MozReview-Commit-ID: 4WjEy8Sjqrm

--HG--
extra : rebase_source : 88cd829f3e178ec49ae532ea0af0a62defb4469f
2018-07-06 18:35:21 +01:00
Andreas Tolfsen
85be64f2ee Bug 1447977 - Move evaluate module API docs to RST. r=automatedtester
MozReview-Commit-ID: I5Pj8EsNyFc

--HG--
extra : rebase_source : 0e2ae0e961da92d4660368a8c28c717e1a0cd891
2018-07-06 16:36:19 +01:00
Dave Hunt
2847cb1fcb Bug 1473727 - Avoid recreating virtual environment every time by using a unique environment for each Python version; r=ahal,dustin
This patch uses the PIPENV_PYTHON environment variable to append a suffix to the created virtual environment path according to the version specified. It also uses the PIPENV_DEFAULT_PYTHON_VERSION environment variable to avoid recreating the virtual environment every time. With these changes we are able to switch back and forth between Python versions without the expense of recreating environments, however there is a risk of these environments becoming stale. In this scenario it may be necessary to clobber the virtual environment root within the obj dir.

MozReview-Commit-ID: C4vuwNh04CP

--HG--
extra : rebase_source : 301c8418fe5b873ffadec37af11e98cfda8667b8
2018-07-09 14:57:38 +01:00
Andrew Halberstadt
0ad2e9342d Bug 1413922 - [tryselect] Merge vcs.py into mozversioncontrol r=gps
Differential Revision: https://phabricator.services.mozilla.com/D1808

--HG--
rename : tools/tryselect/vcs.py => tools/tryselect/push.py
extra : moz-landing-system : lando
2018-07-10 19:22:00 +00:00
Andrew Halberstadt
812d9fb038 Bug 1413922 - [mozversioncontrol] Always use hglib.client if available and fall back to subprocesses if not, r=gps
Most HG commands use subprocesses, even if a context manager (and therefore an
hglib client) has been created. There are only two commands that make use of
the client, but they *only* work inside a context manager. I don't think
there are any technical reason these two commands *need* to use the context
manager.

This patch merges the HgRepository._run_in_client function with
HgRepository._run(). If a client exists, that will be used, otherwise a
subprocess will be used.

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

--HG--
extra : moz-landing-system : lando
2018-07-10 20:41:49 +00:00
Matt Woodrow
e03be5d39e Bug 1474402 - Disable TryUpdateTransformOnly when we have RDL enabled since it can cause sorting issues. r=miko
MozReview-Commit-ID: GguBTl2zZXO

--HG--
extra : rebase_source : 4657a9476dc0fbb74337e68b7a6dfa25a27d766c
2018-07-10 08:48:58 +12:00
Eitan Isaacson
6e015436cb Bug 1473605 - Don't clump labels and controls together. It messes with focus events. r=yzen 2018-07-05 15:06:00 +03:00
Nazım Can Altınova
c51d375549 Bug 1473303 - Add a AutoProfilerLabel member to AutoEntryScript class to add a label frame for evaluating scripts r=bz
MozReview-Commit-ID: CqfO7r7JoPS

--HG--
extra : rebase_source : 44f85f3b698ddb539134f75ea2bbc324b7ce8627
2018-07-04 15:35:07 +02:00
Wander Lairson Costa
a6edc697ce Bug 1473818: Fix global constructors count regression r=jonco
Bug 1465505 moved from PRJ_Now to mozilla::TimeStamp. As a side effect,
it introduced a few extra global constructors calls.

This patch fixes it.

MozReview-Commit-ID: 9VX83JZIyds

--HG--
extra : rebase_source : 01a22a8eea3ab224dbaa1a93d2a73ebb9ab6b6ea
2018-07-06 18:28:08 -03:00
Marco Bonardo
e9e4f16179 Bug 1474401 - Replace probes owner for PLACES_DATABASE_CORRUPTION_HANDLING_STAGE and PLACES_MOST_RECENT_EXPIRED_VISIT_DAYS r=Standard8,chutten
The probe owner should be an actual contact and not a mailing list

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

--HG--
extra : moz-landing-system : lando
2018-07-10 15:32:03 +00:00
Kartikaya Gupta
11b43679d8 Bug 1421825 - Fix crash and re-enable crashtest. r=jrmuizel
In some cases we get a gecko display list that looks like this:

WrapList with asr(<A>, <B>)
  Item with asr (<B>) and clipchain(<something> [A])

In this case, we would initialize the WebRenderLayerScrollData for the
nested item using a stop-at ancestor of A (because that was the leafmost
ASR from the containing WrapList) but the item itself has an ASR of B,
which is an ancestor of A. So when walking up from B we'd never hit the
stop-at ancestor, and so we'd end up duplicating metrics from the
containing WRLSD onto the nested WRLSD. This generated an assertion
failure in the APZ code.

This patch detects this scenario and skips adding metrics on the nested
WRLSD. This produces an APZ tree equivalent to what the non-WebRender
path would produce.

MozReview-Commit-ID: 8eo6pzXXKBd

--HG--
extra : rebase_source : 0581c54c4d9fa6ca08249e42b306c7155022bec7
2018-07-10 09:37:40 -04:00
Michael Kaply
81556be6b8 Bug 1352598 - Add WebExtension API for access to search. r=aswan
MozReview-Commit-ID: 4pV2DGMcV7G

--HG--
extra : rebase_source : 650606638e580daa0c7f3b49e8fd085b039705bc
2018-06-18 10:39:12 -05:00
Jim Chen
3f398d4b6f Bug 1463484 - 2. Add test for find-in-page; r=esawin,snorp
Add some test cases for find-in-page and the different flags.

MozReview-Commit-ID: BzN0OTSUy7z

--HG--
extra : rebase_source : ef558aedc71d04f33dfa58271a29cd66486ff89d
2018-07-10 13:12:55 -04:00
Jim Chen
f5a1a1b10b Bug 1463484 - 1. Add SessionFinder; r=droeh,esawin,snorp
Add a SessionFinder API for find-in-page functionality.

MozReview-Commit-ID: KB7dOPUC6s2

--HG--
extra : rebase_source : d90400bfa15ba311668d5da37a64465863bec05d
2018-07-10 13:12:55 -04:00
Michael Kaply
cda5e3b2cd Bug 1460419 - Remove geoSpecificPref code from search service. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D2036

--HG--
extra : moz-landing-system : lando
2018-07-10 13:17:20 +00:00
Andrew Swan
d6104e5c4c Bug 1451513 Part 2: Convert mochikit to a webextension r=jmaher,kmag
This is another quick-and-dirty port.  Some of the test logic could
probably be moved to unprivileged extension code but there's no urgent
reason to do that right now.

MozReview-Commit-ID: Af0XQbakLsx

--HG--
rename : testing/mochitest/bootstrap.js => testing/mochitest/api.js
extra : rebase_source : 17f8af667e73555bd69391d3be0835c3e50c90cd
2018-07-05 15:42:11 -07:00
Andrew Swan
0696fa5e78 Bug 1451513 Part 1: Allow registering chrome: content resources r=kmag
MozReview-Commit-ID: IuUnzb24jCN

--HG--
extra : rebase_source : 4c9c3e2c0ddbb64df47af88c74ee1267a15a6af3
2018-07-05 13:59:25 -07:00
Johannes Willbold
e5d310f78d Bug 1473967: Added C++/Rust glue code for maxptime, r=dminor
Added the C++/Rust glue code for maxptime.
Added the C++ unit test CheckMaxPtime.

MozReview-Commit-ID: 58Qbrpktxwx

--HG--
extra : rebase_source : 1aed17367e230f0e397b196b759deaf18e4a3fd8
2018-07-06 10:51:30 -07:00
Johannes Willbold
0e35e80e48 Bug 1433529: Fixed TODOs in parse_sdp, r=dminor
Changed parse_sdp to use StringView instad of raw pointers
Fixed all TODOs by using the existing StringView::into trait instead of doing a manual string conversion.

MozReview-Commit-ID: 5m7rLAu8vwS

--HG--
extra : rebase_source : f34cf389829772b4ca84d7ba895a8b71bd620f64
2018-06-29 15:03:58 -07:00
Kristen Wright
19310fa39a Bug 1466979 - Separate JS::ubi::EdgeVectorTracer and JS::ubi::SimpleEdgeRange into UbiNodeUtils.h r=jimb
Separated SimpleEdgeRange into the new UbiNodeUtils.h, updated build files, changed SimpleEdgeRange::init to SimpleEdgeRange::addTracerEdges, created bool addEdge to add new edges to the vector.
2018-05-31 14:13:00 -07:00
L. David Baron
a71a9e006e Bug 1474516 - A little cleanup of border-collapse code while reviewing bug 1405929. r=dholbert
MozReview-Commit-ID: A3zoPCvu4jU
2018-07-11 09:34:43 +10:00
Kristen Wright
35cd421aed Bug 1466979 - Separate JS::ubi::EdgeVectorTracer and JS::ubi::SimpleEdgeRange into UbiNodeUtils.h r=jimb
Separated SimpleEdgeRange into the new UbiNodeUtils.h, updated build files, changed SimpleEdgeRange::init to SimpleEdgeRange::addTracerEdges, created bool addEdge to add new edges to the vector.
2018-05-31 14:13:00 -07:00
Ryan VanderMeulen
16150016a5 Bug 1462906 - Make HTTP throttling v2 algorithm Nightly-only due to video streaming regressions. r=mayhemer
--HG--
extra : rebase_source : c5abffe2795c2c608d72deeb1e246f98297430fa
2018-07-10 14:53:36 -04:00
Ben Kelly
a99ba38721 Bug 1469048 Disable service worker propagation when e10s pref is enabled. r=mrbkap
--HG--
extra : rebase_source : f7a11d459a7f54ecc8b71746ff2810a7bb276692
2018-07-09 16:02:41 -07:00
Ben Kelly
87bf0f7f23 Bug 1459209 P15 Implement RemoteServiceWorkerContainerImpl::GetReady() across IPC to the parent-side SWM. r=mrbkap
--HG--
extra : rebase_source : 119a1cb66828c3dbb21cce86aca67793f0657321
2018-07-09 16:02:41 -07:00
Ben Kelly
d7b64230f7 Bug 1459209 P14 Implement RemoteServiceWorkerContainerImpl::GetRegistrations() across IPC to the parent-side SWM. r=mrbkap
--HG--
extra : rebase_source : 464a53e3e0c3eb37cdc7f4c73a43140fba4d5794
2018-07-09 16:02:41 -07:00
Ben Kelly
be03ee0457 Bug 1459209 P13 Implement RemoteServiceWorkerContainerImpl::GetRegistration() across IPC to the parent-side SWM. r=mrbkap
--HG--
extra : rebase_source : 60f674e9d1d5c0701f6ed3145427ad8fc7012e55
2018-07-09 16:02:40 -07:00
Ben Kelly
4207daa618 Bug 1459209 P12 Implement RemoteServiceWorkerContainerImpl::Register() across IPC to the parent-side SWM. r=mrbkap
--HG--
extra : rebase_source : 4c57b9b8006ab4378c5a0be4a7c13136152f80b0
2018-07-09 16:02:40 -07:00
Ben Kelly
e9dc1bae32 Bug 1459209 P11 Propogate registration state changes back from the parent to the child. r=mrbkap
--HG--
extra : rebase_source : 86bea6e7bcf6376d1fc5366a1a07b208f3805ce0
2018-07-09 16:02:40 -07:00
Ben Kelly
39b1a104c9 Bug 1459209 P10 Implement RemoteServiceWorkerRegistrationImpl::Unregister() across IPC to the parent-side SWM. r=mrbkap
--HG--
extra : rebase_source : 8411bc26ff172a9888e040fc09b21cab745e4161
2018-07-09 16:02:40 -07:00
Ben Kelly
94f85205a9 Bug 1459209 P9 Implement RemoteServiceWorkerRegistrationImpl::Update() across IPC to the parent-side SWM. r=mrbkap
--HG--
extra : rebase_source : 87d77ea7472b59b7e0d243d714ad19158cd7c332
2018-07-09 16:02:40 -07:00
Ben Kelly
6323d7c413 Bug 1459209 P8 Implement RemoteServiceWorkerImpl::PostMessage() across IPC and to the parent-side SWM. r=mrbkap
--HG--
extra : rebase_source : d38628cc7b8822b4213c8034f0c1dd783585ddfb
2018-07-09 16:02:40 -07:00
Ben Kelly
fd93586372 Bug 1459209 P7 Scaffold a ServiceWorkerContainerProxy class to connect the parent actor to the main thread SWM. r=mrbkap
--HG--
extra : rebase_source : 4693118c6b7bfe93ea772e4ab21f79c6a2448598
2018-07-09 16:02:40 -07:00
Ben Kelly
5e3089171b Bug 1459209 P6 Scaffold a ServiceWorkerRegistrationProxy class to connect the parent actor to the main thread SWM. r=mrbkap
--HG--
extra : rebase_source : 355d278c7b891ae8de0a136d5c7db024ad0d0a76
2018-07-09 16:02:40 -07:00
Ben Kelly
d6345919a0 Bug 1459209 P5 Scaffold a ServiceWorkerProxy class to connect the parent actor to the main thread SWM. r=mrbkap
--HG--
extra : rebase_source : 555963a72a75785fc2aa43d7fa2abedeb758289d
2018-07-09 16:02:40 -07:00
Ben Kelly
e486332066 Bug 1459209 P4 Scaffold RemoteServiceWorkerRegistrationImpl to connect the binding registration to the actor. r=mrbkap
--HG--
extra : rebase_source : 6e113ac5ead01a50d8dcdd5c0124c42901b84c5e
2018-07-09 16:02:39 -07:00
Ben Kelly
9797d85bc5 Bug 1459209 P3 Scaffold RemoteServiceWorkerContainerImpl to connect the binding ServiceWorkerContainer to the PServiceWorkerContainerChild actor. r=mrbkap
--HG--
extra : rebase_source : b0a51ce7bbc1b9b27531584d0647ae28d56b15e2
2018-07-09 16:02:39 -07:00
Ben Kelly
09c855d41b Bug 1459209 P2 Scaffold RemoteServiceWorkerImpl to connect the binding ServiceWorker to the PServiceWorkerChild actor. r=mrbkap
--HG--
extra : rebase_source : 07ec45d8d019e708be144464302168ce331518e9
2018-07-09 16:02:39 -07:00
Ben Kelly
b970b0c8cc Bug 1459209 P1 Add IPC actor boilerplate for PServiceWorker, PServiceWorkerContainer, and PServiceWorkerRegistration. r=mrbkap
--HG--
extra : rebase_source : 10106a76c6e9188238a89821d59bdcbf4eedbab6
2018-07-09 16:02:39 -07:00
David Major
fe9ee7a8b7 Bug 1474628: Set win32-msvc/opt jobs to use a stub-installer where necessary. r=Callek 2018-07-10 14:30:38 -04:00
Boris Zbarsky
8f7c90d6be Bug 1473149. Add an external string variant that keeps a DynamicAtom alive. r=njn,rwood
The change to call AsStatic() in SetKnownLiveAtom is drive-by performance cleanup.
2018-07-10 11:21:42 -07:00
Andrea Marchesini
8fe4d55300 Bug 1472927 - Fix CSP violation events in workers, r=asuth, r=ckerschb 2018-07-10 18:53:03 +02:00
Jason Laster
35cd9cbfcc Bug 1474366 - Update Debugger Frontend v70. r=dwalsh 2018-07-10 12:45:20 -04:00
Andreea Pavel
41fc51d32b Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-07-10 19:38:34 +03:00
Andreea Pavel
a80651653f Merge mozilla-inbound to mozilla-central. a=merge 2018-07-10 19:33:22 +03:00
Boris Zbarsky
e2156c39cb Bug 820891 part 3. Make scroll* properties for tables work with the table wrapper box, not the table box. r=dholbert
--HG--
rename : testing/web-platform/tests/css/cssom-view/table-client-props.html => testing/web-platform/tests/css/cssom-view/table-scroll-props.html
2018-07-10 09:28:11 -07:00
Boris Zbarsky
ebe5685319 Bug 820891 part 2. Make client* properties for tables work with the table wrapper box, not the table box. r=dholbert
--HG--
rename : testing/web-platform/tests/css/cssom-view/table-offset-props.html => testing/web-platform/tests/css/cssom-view/table-client-props.html
2018-07-10 09:28:09 -07:00