Commit Graph

591420 Commits

Author SHA1 Message Date
Andrew Halberstadt
198dd77c3a Bug 1445944 - [mozprofile] Add a 'create_profile' helper method for instanting an instance from an app r=rwood
This will make it a bit easier for consumers to create a profile instance. They
can just call:

    profile = create_profile('firefox', prefs=...)

Instead of needing to first find the class, then do the instantiation.

MozReview-Commit-ID: 7FqAGsSyZVe

--HG--
extra : rebase_source : 3172189618d6948959edfc61d6782373d27a2cbb
2018-04-12 12:40:47 -04:00
Andrew Halberstadt
d0deb3a47c Bug 1445944 - [mozprofile] Convert mozprofile unittests to the pytest format r=davehunt
This is a much cleaner and easier to understand test format. It will also make
it easier to add tests for the upcoming ChromeProfile changes.

MozReview-Commit-ID: DizKGt0qkPF

--HG--
rename : testing/mozbase/mozprofile/tests/addonid.py => testing/mozbase/mozprofile/tests/test_addonid.py
rename : testing/mozbase/mozprofile/tests/bug758250.py => testing/mozbase/mozprofile/tests/test_bug758250.py
rename : testing/mozbase/mozprofile/tests/permissions.py => testing/mozbase/mozprofile/tests/test_permissions.py
rename : testing/mozbase/mozprofile/tests/server_locations.py => testing/mozbase/mozprofile/tests/test_server_locations.py
extra : rebase_source : 07953fd02a8592ed31e1972d646ff93bfd25d80b
2018-04-13 11:06:10 -04:00
Andrew Halberstadt
3d3df5c730 Bug 1445944 - [mozrunner] Create a base BlinkRuntimeRunner and add a ChromeRunner to the runners list r=rwood
This allows consumers to bootstrap Chrome with mozrunner. For now the profile implementation
is just an empty class but this will be expanded in a future commit.

MozReview-Commit-ID: 1Z14FudH0JJ

--HG--
extra : rebase_source : b593965a6bd725b133adf42ff31d61726bcff520
2018-04-12 22:29:17 -04:00
Andrew Halberstadt
07297de09a Bug 1445944 - [mozrunner] Convert mozrunner unittests to the pytest format r=davehunt
This will make it easier to add the ChromeRunner tests in the next couple of
commits.

MozReview-Commit-ID: 2Nfz92FStSX

--HG--
rename : testing/mozbase/mozrunner/tests/mozrunnertest.py => testing/mozbase/mozrunner/tests/conftest.py
extra : rebase_source : 27837679b744e7f765fdb2d4f43d4bab14fb2dc0
2018-04-12 15:14:03 -04:00
Andrew Halberstadt
11c250e87b Bug 1445944 - [mozrunner] Remove ability to specify the 'wrap_command' function on an Application context r=rwood
This is a leftover artifact from the B2G days that isn't being used anymore.

MozReview-Commit-ID: FZoTwHltmAG

--HG--
extra : rebase_source : 455450f360fa222522f365118d1e687528e08b69
2018-04-12 12:08:05 -04:00
Andrew Halberstadt
bcf900bf38 Bug 1445944 - [moztest] Update shared test fixtures so they can work outside of mozilla-central r=rwood
This isn't strictly related to this bug, but it is a change made to mozbase in
the raptor repo that is worth backporting here. Figured it's easiest to land it
alongside the other mozbase backports.

MozReview-Commit-ID: DW7I2zKZZNk

--HG--
extra : rebase_source : a000d27774f224d37f981d6683d96c65846b8a32
2018-04-12 12:03:16 -04:00
shindli
f7d6e8df78 Backed out 3 changesets (bug 1186265) for wpt8 failures in /css/geometry/interfaces.html on a CLOSED TREE
Backed out changeset d8986aead3e0 (bug 1186265)
Backed out changeset 2ba85ec7c9da (bug 1186265)
Backed out changeset f3a0b2686f45 (bug 1186265)
2018-04-16 21:57:47 +03:00
Margareta Eliza Balazs
c67897746e Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-16 21:50:32 +03:00
Margareta Eliza Balazs
dbef13782c Backed out 2 changesets (bug 1451278) for breaking windows pgo builds a=backout
Backed out changeset ac685df07bfc (bug 1451278)
Backed out changeset 5944ccd5060d (bug 1451278)
2018-04-16 21:41:03 +03:00
Andreea Pavel
a30a60eadc Merge mozilla-inbound to mozilla-central. a=merge 2018-04-16 12:52:34 +03:00
Nicholas Nethercote
2224229b3d Bug 1451278 - Remove NS_ConstExprIsAscii() functions. r=froydnj
MozReview-Commit-ID: DG2HUOa7x6y

--HG--
extra : rebase_source : a0e2f24f96cb688d11984827acb1361abc4988e6
2018-04-16 08:37:25 +10:00
Nicholas Nethercote
e1318b1d03 Bug 1451278 - Remove ConstExpr hash functions. r=froydnj
MozReview-Commit-ID: L6yRyt4DZRR

--HG--
extra : rebase_source : 2d56a50b1a99e66c397165b9b851e23ca66d97a0
2018-04-16 08:37:15 +10:00
Makoto Kato
2b953ae3f5 Bug 1361052 - DeleteSelectionAndPrepareToCreateNode should be more safety. r=masayuki
Bug 768765 isn't enough for fix.  Since Selection::GetAnchorFocusRange can
return nullptr, we should consider this condition.

And I cannot reproduce this using crash test, so I add mochitest for this.

MozReview-Commit-ID: 8Ei5YBIBuWv

--HG--
extra : rebase_source : cd11517f73179d949479716a83baec0e1f492eca
2018-04-13 16:58:06 +09:00
Xidorn Quan
441a45aca4 Bug 1453521 - Support prefs for aliases in Servo side. r=heycam
MozReview-Commit-ID: 8DAFmLDVYlR

--HG--
extra : rebase_source : 6477a01ad81b66f99856e07792d480dcf63ff315
2018-04-12 10:27:43 +10:00
Masayuki Nakano
38691686f7 Bug 1453872 - Make HTMLEditRules::JoinNodesSmart() return { aRightNode - aLeftNode.Length() } by default r=m_kato
This is regression of bug 1423835.

When I fixed the bug, I accidentally changed the result of
HTMLEditRules::JoinNodesSmart() to use new API.  However, it was simple
misunderstand.  The original code sets the initial value of result to
{ aRightNode - aLeftNode.Length() } but I understood it as
{ aRightNode - aRightNode.Length() }.  Therefore, this patch backs out the
patch only for this line.

MozReview-Commit-ID: 5rD7YFij8v

--HG--
extra : rebase_source : c11770892ab7416b9bf5d3329fc8b7b413387747
2018-04-13 13:18:13 +09:00
James Teh
c68c566fd8 Bug 1453876: Fix accessibility blocking of the Ask.com Toolbar. r=eeejay
Bug 1421018 intended to block the Ask.Com Toolbar (tbnotifier.exe).
This is basically malware and is responsible for a huge number of unnecessary accessibility instantiations.
However, there seems to have been some confusion and we ended up blocking tbnnotifier.exe instead.
This changes that block to tbnotifier.exe.

MozReview-Commit-ID: 2gZF8sYeGtb

--HG--
extra : rebase_source : 3d14a24c12748edfc31ddf7dac51bca491abd744
2018-04-13 15:12:13 +10:00
Jim Chen
9e1cc5b538 Bug 1452200 - 3. Don't limit AndroidLog tag length; r=jchen
In practice, Android never enforced restrictions on the tag length, and
in newer versions, the restriction is removed, so we shouldn't limit the
tag length at all.

MozReview-Commit-ID: JQF9FBdB5Fj

--HG--
extra : rebase_source : 71aa09210d694b68a72043f7588fbd799f385c23
2018-04-15 14:53:29 -04:00
Jim Chen
e87a6fc89b Bug 1452200 - 2. Convert existing code to use new logging functions; r=snorp
Use the new "debug" and "warn" functions with template literals in
existing code.

MozReview-Commit-ID: 4ob6mom6pQF

--HG--
extra : rebase_source : 564f23c8de1256f73c085845fe030d8bbf45b19c
2018-04-15 14:53:29 -04:00
Jim Chen
9fd43f9378 Bug 1452200 - 1c. Inject logging functions into GeckoView JS modules; r=snorp
Inject new logging functions, "debug" and "warn", into each GeckoView JS
module that geckoview.js loads. Also do the same thing for frame script
classes that extend from GeckoViewContentModule.

The new logging functions are used with template literals (debug `hello
${foo} world`;), which are lazily evaluated, so disabled logs don't use
as many CPU cycles. They can also be easily enabled/disabled.

MozReview-Commit-ID: 7ZfYAMrcCyU

--HG--
extra : rebase_source : 8a830f29ea1cabcdc5055fc86c9880a5216aa456
2018-04-15 14:53:29 -04:00
Jim Chen
48885775a4 Bug 1452200 - 1b. Add template literal support to Log.jsm; r=markh
Make Log.jsm functions support tagged template literals. For example,
instead of |logger.debug("foo " + bar)| or |logger.debug(`foo ${bar}`)|,
you can now use |logger.debug `foo ${bar}`| (without parentheses).

Using tagged template literals has the benefit of less verbosity
compared to regular string concatenation, with the added benefit of
lazily-stringified parameters -- the parameters are only stringified
when logging is enabled, possibly saving from an expensive stringify
operation.

This patch also fixes a bug in BasicFormatter where consecutive tokens
are not formatted correctly (e.g. "${a}${b}").

MozReview-Commit-ID: 9kjLvpZF5ch

--HG--
extra : rebase_source : ccf4e9fae9fa9ea7581de82296035fcc736ca58e
2018-04-15 14:53:28 -04:00
Jim Chen
2eb44a3425 Bug 1452200 - 1a. Add AndroidAppender for Log.jsm; r=markh
Add an AndroidAppender that lets Log.jsm output to the Android logs,
using AndroidLog.jsm. Because the Android logging system keeps track of
the log metadata (time/level/name) separately from the log message, the
patch also adds a separate AndroidFormatter that does not prepend the
metadata to the log message itself.

MozReview-Commit-ID: C9oBbgVQOEc

--HG--
extra : rebase_source : eb1e8622b059ee45b574830426194ea35643b37c
2018-04-15 14:53:28 -04:00
Emilio Cobos Álvarez
7bce4fa96c Bug 37468: followup: Cleanup line terminators. r=me
DONTBUILD, since it's whitespace-only.

MozReview-Commit-ID: D61WzJbTgXZ
2018-04-15 14:24:25 +02:00
Gurzau Raul
3cfe9af000 Backed out 2 changesets (bug 1452618) for frequently failing mochitest on Android on a CLOSED TREE
Backed out changeset 5bf3bfedd867 (bug 1452618)
Backed out changeset fdcb9f2ec9d9 (bug 1452618)
2018-04-15 13:12:56 +03:00
Gijs Kruitbosch
7e069d9ac9 Bug 1452618 - make getAddonBlocklistEntry asynchronous, r=kmag
MozReview-Commit-ID: 4Kpx7M57404

--HG--
extra : rebase_source : d5ec8fa24ebbcc1463079ab9e06ab7080115ca90
2018-04-09 16:00:38 +01:00
Gijs Kruitbosch
768b4d55ea Bug 1452618 - track force-disabling things so we don't accidentally re-enable them by using isUsableAddon later, r=kmag
MozReview-Commit-ID: B7ZAw04cVaZ

--HG--
extra : rebase_source : 9ad20ac016bcb8f76dd1cd8f534ec9fae41da2c0
2018-04-13 15:01:05 +01:00
shindli
cdc66c6a3b Backed out changeset 99c2396a4c87 (bug 1453979) for mozmake.exe failures in z:/build/build/src/accessible/ipc/win/DocAccessibleChild.cpp on a CLOSED TREE 2018-04-16 21:07:44 +03:00
Brian Birtles
1ae7767b40 Bug 1452290 - Update the labels in the DevTools meatball menu; r=jryans
This also updates the link behavior to use the less privileged openWebLink.

MozReview-Commit-ID: HHDQKAQz6hQ

--HG--
extra : rebase_source : d57670983073893be6c67fe0c3dc991cbe1e5eb2
2018-04-16 19:44:22 +02:00
J. Ryan Stinnett
e6b95c17e8 Bug 1453846 - Remove DevTools RDP events. r=Honza
A few years ago in bug 1126274, we added RDP events to the DevTools transport so
that the add-on RDP Inspector could display packets as they flow by.

The add-on no longer works as it is not a WebExtension.  Maybe someday we'll
revisit this, but for now this removes some dead code.

MozReview-Commit-ID: AvgQhYWwBUA

--HG--
extra : rebase_source : 45a295cb8b06729a0e3f74a90ce1094633f0f121
2018-04-13 12:57:48 -05:00
David Keeler
fd3dbbaaa3 bug 1453741 - (2/2) remove nsIX509CertDB.findCertByEmailAddress r=fkiefer,jcj
nsIX509CertDB.findCertByEmailAddress performs multiple certificate verifications
on the main thread, which is bad because it blocks the main thread and can cause
nested event loop spinning. Firefox doesn't even use this function. Other
products that use this function will either have to re-implement it locally or
find some other workaround.

MozReview-Commit-ID: HShl0H8cgxs

--HG--
extra : rebase_source : 63ee16b600ca7c2867352ee1ad791eb79b82a77c
2018-04-12 12:46:25 -07:00
David Keeler
2b9926416f bug 1453741 - (1/2) remove nsIX509CertDB.verifyCert{AtTime,Now} r=fkiefer,jcj
These functions perform certificate verification on the main thread, which is
already a bad idea. They can also cause OCSP requests to be made from the main
thread, which will cause nested event loop spinning, which is an even worse
idea. Luckily this really only affects tests.

MozReview-Commit-ID: LqDAgDmlyER

--HG--
extra : rebase_source : c86414db0b6d6e7e83b5e3f371506b773813cdbf
2018-04-11 16:23:48 -07:00
Kartikaya Gupta
b3befc287a Bug 1453463 - Update existing code to be more efficient by using the new map. r=botond
This updates existing bits of code (notably one of the GetTargetAPZC
methods) to use the new map for more efficient lookups. Places that
used GetTargetNode with a presshell-ignoring comparator can now use
GetTargetAPZC as well.

MozReview-Commit-ID: GFjO6KigVop

--HG--
extra : rebase_source : 336a7118927bd6c3f0e4edaf15770afb1f6602a9
2018-04-16 09:33:08 -04:00
Kartikaya Gupta
10a405ffe9 Bug 1453463 - Keep an APZC map on APZCTreeManager. r=botond
We are already building an almost-what-we-want map in the
TreeBuildingState, so I modified to be exactly what we want, and then
just move it to the APZCTreeManager once the tree build is done.

MozReview-Commit-ID: 40RVwYv93wR

--HG--
extra : rebase_source : 118b28dfb796f8153d07dfb356eb45a0d8298c8d
2018-04-16 09:33:08 -04:00
Kartikaya Gupta
5d85aede20 Bug 1453463 - Refactor to make unordered_maps with guid keys a little cleaner. r=botond
This is mostly just moving the existing hash function and introducing
additional helpers to create maps with presshell-ignoring guid keys. We
can use this in one place trivially so I did that as well.

MozReview-Commit-ID: G8nMS1PECT4

--HG--
extra : rebase_source : 4f34da9db77f7ec4b7e5ebaeccd532c8f8c92283
2018-04-16 09:33:07 -04:00
Greg Tatum
ddc6d1f8f2 Bug 1454000 - Add documentation for DevTools flags and their logging behavior; r=jryans
MozReview-Commit-ID: EU5OsfXXY6Q

--HG--
extra : rebase_source : 0a896db9ad832f53dda1c2ceef2f9d8a3ef002c0
2018-04-13 10:46:46 -05:00
Gijs Kruitbosch
95b991b77b Bug 1452618 - make getAddonBlocklistEntry asynchronous, r=kmag
MozReview-Commit-ID: 4Kpx7M57404

--HG--
extra : rebase_source : 6c5a242b40288703fb424e81ea701eeba3c71a27
2018-04-09 16:00:38 +01:00
Gijs Kruitbosch
a7f6ba42a1 Bug 1452618 - track force-disabling things so we don't accidentally re-enable them by using isUsableAddon later, r=kmag
MozReview-Commit-ID: B7ZAw04cVaZ

--HG--
extra : rebase_source : f5349905640c1c7403c11df9370f9a38c1d35584
2018-04-13 15:01:05 +01:00
Gurzau Raul
bd326a2a6b Backed out 5 changesets (bug 1452200) for mochitest-chrome failures on Android on a CLOSED TREE
Backed out changeset ed07fb947b5e (bug 1452200)
Backed out changeset b03e9dc6ecd7 (bug 1452200)
Backed out changeset e4cdad2cd3d2 (bug 1452200)
Backed out changeset 8ac249bdc772 (bug 1452200)
Backed out changeset 225bb7ed5f71 (bug 1452200)
2018-04-15 09:19:04 +03:00
Nico Grunbaum
b5c0e1c02f Bug 1449832 - restore screen share scaling code to prevent cropping r=pehrsons
MozReview-Commit-ID: KctPLbF4PSa

--HG--
extra : rebase_source : 8a3a63a1df890e2343dec44f4cdfe1193d317a9a
2018-04-12 14:26:14 -07:00
Markus Stange
dc2e7f64fa Bug 1421088 - Move code out of DrawWidgetBackground into a new method called ComputeWidgetInfo. r=spohl
MozReview-Commit-ID: 2XeZHH4lJrj

--HG--
extra : rebase_source : 40c05f8748b8534dbc55a1cea1d44f1fbd4321a1
extra : source : 359f50ab6156dc33aa04dda62816b87fe3883d7d
2018-04-14 23:31:11 -04:00
Bharat Raghunathan
e1b9a0b9c4 Bug 1450201 - Fix TypeError by processing the function only if it is a DOMNodes. r=gl
MozReview-Commit-ID: HGJcGaeEuEO
2018-04-09 07:56:32 +05:30
Olli Pettay
91a86f87f7 Bug 1454107 - "Re-enable passive touch listeners on window/document/documentElement/body". r=kats 2018-04-13 16:35:00 +03:00
Sebastian Hengst
3128a74b25 Backed out changeset ca3375f6ba92 (bug 1447040) for frequently failing wpt /service-workers/cache-storage/serviceworker/cache-abort.https.html: remove files not removed because of conflict and re-run manifest udpate 2018-04-16 02:09:07 +03:00
Sebastian Hengst
f6fa7710b2 Backed out changeset ca3375f6ba92 (bug 1447040) for frequently failing wpt /service-workers/cache-storage/serviceworker/cache-abort.https.html: fix test manifest 2018-04-16 01:48:08 +03:00
Narcis Beleuzu
72df6941d4 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-04-16 01:28:00 +03:00
Narcis Beleuzu
a30cf7c67c Backed out changeset ca3375f6ba92 (bug 1447040) for frequently failing wpt /service-workers/cache-storage/serviceworker/cache-abort.https.html 2018-04-16 01:20:28 +03:00
James Graham
4daf082666 Bug 1452643 - Update wptserve args in marionette runner, r=me ON A CLOSED TREE
MozReview-Commit-ID: DvCYUNlX3VQ
2018-04-15 19:26:00 +01:00
Jan de Mooij
869fec072d Bug 1452982 part 10 - Rename *ActiveCooperatingThread to *MainThread. r=jonco 2018-04-15 13:18:46 +02:00
Csoregi Natalia
a9a2483cec Merge mozilla-central to inbound. a=merge CLOSED TREE
--HG--
extra : rebase_source : bdcf059fd5dd355e5949760f00b5c5cb46f3528e
2018-04-15 12:19:10 +03:00
Paolo Amadini
81a5dec57f Bug 1454148 - Fix class of the "View Bookmarks Toolbar" and "View Bookmarks Sidebar" items in the Bookmarks button menu. r=Gijs
MozReview-Commit-ID: 9Dp1mSpSkNS

--HG--
extra : rebase_source : a591c1d3218d24bc06810a66c5fc4b6b257f5ebb
2018-04-14 11:48:48 +01:00
James Graham
43244ec90f Bug 1453415 - Don't try to pause after a crashed test, r=ato 2018-04-15 09:40:40 +01:00