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

28 Коммитов

Автор SHA1 Сообщение Дата
Andreas Tolfsen 719b4c5e30 Bug 1482829 - Track Marionette logger verbosity with Log#manageLevelFromPref. r=whimboo
This patch adopts Logger#managerLevelFromPref from Log.jsm to set
and keep track of the Marionette logger's verbosity.

This has the advantage that we do not have to roll separate
implementations of Log for the child- and parent processes.  It also
has the upside that the log level will be reflected when changed
at runtime through the use of an observer.
2018-08-17 12:55:33 +01:00
Andreas Tolfsen 394ba9bb0b Bug 1476305 - Add pref to not truncate Marionette log messages. r=automatedtester
Marionette currently truncates a selection of log messages that
exceed 250 characters.  It is however sometimes, usually when
debugging locally, to not truncate logs so one can see exactly what
is sent to and fro the server.
2018-07-24 13:33:51 +01:00
Andreas Tolfsen 53d1d59075 Bug 1458742 - Correct marionette.log.level docs for case insensitivity. r=maja_zf
The marionette.log.level value is case insensitive and this commit
points that out in the documentation associated with the preference.

MozReview-Commit-ID: KZGFE9feFRl

--HG--
extra : rebase_source : 26dad92ff74f8752785061a59df891668c9a0310
2018-05-02 17:18:51 -07:00
Andreas Tolfsen d964f30a08 Bug 1456050 - Add marionette.debugging.clicktostart to MarionettePrefs. r=whimboo
MozReview-Commit-ID: BAxcJFcv1uD

--HG--
extra : rebase_source : 7982a7e72b0c878621db896613f53599053c56e7
2018-04-23 07:17:44 +01:00
Andreas Tolfsen 0d24869932 Bug 1432894 - Register marionette.contentListener pref. r=whimboo
marionette.contentListener is being used for silly purposes in
Marionette to tell us when it is "safe" to reuse a content frame.
It will be removed with https://bugzil.la/marionette-window-tracking
but we should nonetheless keep track of which preferences are used.

MozReview-Commit-ID: 5gMCMuYfLBa

--HG--
extra : rebase_source : 884b9e546dd8dd8786fb9b6a984642ff3cb3dcc2
2018-04-16 09:15:48 +01:00
Brindusan Cristian 681c4cb5d6 Backed out 4 changesets (bug 1432894) for linting opt test-doc-generate failures.
Backed out changeset fb56c3c325d3 (bug 1432894)
Backed out changeset 531f8f2af57d (bug 1432894)
Backed out changeset 8e9f1887bc89 (bug 1432894)
Backed out changeset f37ff744e424 (bug 1432894)
2018-04-22 19:24:09 +03:00
Andreas Tolfsen 516454daac Bug 1432894 - Register marionette.contentListener pref. r=whimboo
marionette.contentListener is being used for silly purposes in
Marionette to tell us when it is "safe" to reuse a content frame.
It will be removed with https://bugzil.la/marionette-window-tracking
but we should nonetheless keep track of which preferences are used.

MozReview-Commit-ID: 5gMCMuYfLBa

--HG--
extra : rebase_source : 884b9e546dd8dd8786fb9b6a984642ff3cb3dcc2
2018-04-16 09:15:48 +01:00
Andreas Tolfsen cb8c6e7e1d Bug 1454876 - Correct marionette.enabled pref doc. r=maja_zf
The documentation for the marionette.enabled preference is wrong: it
claims that it is used for disabling the Marionette XPCOM component,
but in reality it starts and stops the TCP server.

MozReview-Commit-ID: 8oQz8HjPnii

--HG--
extra : rebase_source : 7771f02e18457bc5e567553ca921995d95c40bdd
2018-04-18 08:05:26 +01:00
Andreas Tolfsen aa4f63e6a1 Bug 1169290 - Reintroduce marionette.enabled pref. r=maja_zf
Some time ago it was decided to remove the marionette.enabled
preference due to concerns that XPCOM addons would be able to
flip arbitrary preferences, potentially causing the remote control
protocol to be activiated unintentionally.

Since then XPCOM based addons have been removed from Firefox in
favour of WebExtensions which do not have the capability to modify
preferences.  There are no current plans to make WebExtensions able
to change preferences:

	https://wiki.mozilla.org/WebExtensions/FAQ#Does_the_WebExtensions_API_provide_access_to_preferences.3F

This patch reintroduces the marionette.enabled preference, which when
flipped to true will enable Marionette and spin up the TCP listener.
Conversely it will stop the TCP listener and disable the component
when switched back to false.

The primary motivation for reintroducing it is the forthcoming
addition of a new navigator.webdriver WebIDL attribute.  The WebIDL
interfaces can be annotated with [Pref="<pref name>"] which will
automatically generate C++ code for determining whether it should be
present in the interface.  This is the easiest and least obstrusive
way for Marionette to cause the webdriver attribute to appear on
the navigator global.

MozReview-Commit-ID: 28wN8Z3Q2a6

--HG--
extra : rebase_source : 6390b470bb7793a0c38cacc77e557000b497a290
2018-01-27 19:03:18 +00:00
Andreas Tolfsen 4a9ad8f9af Bug 1433501 - Include marionette.debugging.clicktostart in prefs list. r=whimboo
This includes the marionette.debugging.clicktostart preference
we use when --jsdebugger is passed to "./mach marionette test"
or geckodriver in the Marionette preference listing.  This will
expose it in about:config.

MozReview-Commit-ID: 4iIcSR4LB7M

--HG--
extra : rebase_source : 696accf67e448855da35ed094d879a81fd3efacd
2018-01-26 17:03:32 +00:00
Andreas Tolfsen 3232705db4 Bug 1433501 - Sort Marionette prefs lexicographically. r=whimboo
MozReview-Commit-ID: HAt7VYfo460

--HG--
extra : rebase_source : 5340d7eece59841504b68a051fd76b772e90df44
2018-01-26 17:01:41 +00:00
Andreas Tolfsen b86d19c98a Bug 1376128 - Expose unrecognised eslint globals; r=automatedtester
In particular, XPCNativeWrapper should probably be made available
by default.

MozReview-Commit-ID: E1oYFyApbLi

--HG--
extra : rebase_source : 4e27ad6882bd4e43dadc97d4fd2a186e01510dfd
2017-06-28 11:04:14 -07:00
Andreas Tolfsen c6333df5ad Bug 1355888 - Clarify that -marionette flag works cross platform; r=whimboo
Windows systems only accept singled-dashed -marionette, whereas Unix
platforms accept both that and double-dashed --marionette.  This makes
the documentation true for all supported platforms.

MozReview-Commit-ID: IG7ir2HVoHo

--HG--
extra : rebase_source : f3b2740e47f373e5f784d131f1844f82b4c56990
2017-04-13 15:22:40 +01:00
Andreas Tolfsen 8216b2843e Bug 1355888 - Remove marionette.enabled pref; r=maja_zf,whimboo
There are no current use cases for starting and stopping the Marionette
server at runtime through a preference.  Since it is possible for
arbitrary addons to modify any preference, we are removing it to reduce
the potential attack surface for Marionette.

This effectively leaves only three ways of starting Marionette:
By passing the -marionette flag to the Firefox binary at startup,
setting the MOZ_MARIONETTE environment variable, and by calling
server.TCPListener#start(), which is an internal chrome API.

MozReview-Commit-ID: 9zKsV8ufySU

--HG--
extra : rebase_source : c0914f2ab99229d507830bbf9704e82bd83b1883
2017-04-13 15:08:14 +01:00
Andreas Tolfsen 917c3b22c0 Bug 1356229 - Remove marionette.forcelocal preference; r=whimboo
marionette.forcelocal was historically used to connect free-standing B2G
devices over real networks, such as wi-fi, to Marionette.  Since we do
not have this use case anymore and Android uses adb and port forwarding,
this removes the marionette.forcelocal preference to reduce the attack
surface for Marionette.

MozReview-Commit-ID: KgqUrilpwMM

--HG--
extra : rebase_source : 43cbb0e3928f3c2a383d66ec30873953a45beda5
2017-04-13 14:19:38 +01:00
Andreas Tolfsen 914224d736 Bug 1350887 - Include Marionette prefs amongst defaults; r=ted,whimboo
The Marionette component ships in Firefox, but is not enabled by default.
We want to facilitate activating Marionette at runtime by flipping
the marionette.enabled preference, and showing the Marionette related
preferences in about:config helps discoverability.

It is also useful to rely on the preferences' default values so that
they do not have to be hardcoded in the component.

When Marionette is enabled by setting marionette.enabled to true, a set of
recommended automation preferences found in testing/marionette/server.js
are set if the user has not overriden/user-defined one of them and
marionette.prefs.recommended is true (default).  When Marionette is
stopped, the altered preferences are reset.

MozReview-Commit-ID: 3HLnEI0TEBB

--HG--
extra : rebase_source : 8be91ed46c443dd120cbc4b42c729cf3ae250b5f
2017-03-29 18:25:55 +01:00
Andreas Tolfsen eb895f6667 Bug 1350887 - Ensure Marionette prefs file has sensible name; r=maja_zf
Files appended to JS_PREFERENCE_FILES are moved into the
objdir/dist/bin/defaults/pref directory, shared with default global
preferences from other parts of Gecko.

To ensure Marionette's preference file ends up in this directory with
a sensible name, we put it in testing/marionette/prefs/marionette.js so
that it ends up in the objdir as dist/bin/defaults/pref/marionette.js.

MozReview-Commit-ID: 9YJ7vysDjSJ

--HG--
rename : testing/marionette/prefs.js => testing/marionette/prefs/marionette.js
extra : rebase_source : a5f275ed051eac659e89b55e8dfe950b67885618
2017-03-30 14:52:16 +01:00
Sebastian Hengst 05dc53ce54 Backed out changeset 5146b0e10a73 (bug 1350887) for failing 541406-1.html with assertion aEditor at IMEContentObserver.cpp:285. r=backout
--HG--
rename : testing/marionette/prefs/marionette.js => testing/marionette/prefs.js
2017-04-04 15:59:20 +02:00
Sebastian Hengst 7cd5efe8b6 Backed out changeset eef96bc84d1f (bug 1350887) 2017-04-04 15:54:39 +02:00
Andreas Tolfsen 0b0f19694e Bug 1350887 - Include Marionette prefs amongst defaults; r=ted,whimboo
The Marionette component ships in Firefox, but is not enabled by default.
We want to facilitate activating Marionette at runtime by flipping
the marionette.enabled preference, and showing the Marionette related
preferences in about:config helps discoverability.

It is also useful to rely on the preferences' default values so that
they do not have to be hardcoded in the component.

When Marionette is enabled by setting marionette.enabled to true, a set of
recommended automation preferences found in testing/marionette/server.js
are set if the user has not overriden/user-defined one of them and
marionette.prefs.recommended is true (default).  When Marionette is
stopped, the altered preferences are reset.

MozReview-Commit-ID: 3HLnEI0TEBB

--HG--
extra : rebase_source : 6557962c8dbd91002bbf22690ef03cd4cbcbbe38
2017-03-29 18:25:55 +01:00
Andreas Tolfsen 90caadb8dd Bug 1350887 - Ensure Marionette prefs file has sensible name; r=maja_zf
Files appended to JS_PREFERENCE_FILES are moved into the
objdir/dist/bin/defaults/pref directory, shared with default global
preferences from other parts of Gecko.

To ensure Marionette's preference file ends up in this directory with
a sensible name, we put it in testing/marionette/prefs/marionette.js so
that it ends up in the objdir as dist/bin/defaults/pref/marionette.js.

MozReview-Commit-ID: 9YJ7vysDjSJ

--HG--
rename : testing/marionette/prefs.js => testing/marionette/prefs/marionette.js
extra : rebase_source : 54e084700d1ae691a0395531156626f56190f0fe
2017-03-30 14:52:16 +01:00
Wes Kocher d11e3dc66d Backed out 7 changesets (bug 1350887) for build bustage on a CLOSED TREE
Backed out changeset d2b395e6c5c0 (bug 1350887)
Backed out changeset 5a6d5c43135f (bug 1350887)
Backed out changeset ec57676ad0d1 (bug 1350887)
Backed out changeset 4a3d1a8767f7 (bug 1350887)
Backed out changeset 40cd9ca1553e (bug 1350887)
Backed out changeset d264991a436d (bug 1350887)
Backed out changeset b915d40a6ba6 (bug 1350887)

--HG--
rename : testing/marionette/prefs/marionette.js => testing/marionette/prefs.js
2017-04-03 13:30:35 -07:00
Andreas Tolfsen 60d2ed38a3 Bug 1350887 - Include Marionette prefs amongst defaults; r=ted,whimboo
The Marionette component ships in Firefox, but is not enabled by default.
We want to facilitate activating Marionette at runtime by flipping
the marionette.enabled preference, and showing the Marionette related
preferences in about:config helps discoverability.

It is also useful to rely on the preferences' default values so that
they do not have to be hardcoded in the component.

When Marionette is enabled by setting marionette.enabled to true, a set of
recommended automation preferences found in testing/marionette/server.js
are set if the user has not overriden/user-defined one of them and
marionette.prefs.recommended is true (default).  When Marionette is
stopped, the altered preferences are reset.

MozReview-Commit-ID: 3HLnEI0TEBB

--HG--
extra : rebase_source : 00b22e2b63cf2f5183c49bdc84bcc172b8a4c3a1
2017-03-29 18:25:55 +01:00
Andreas Tolfsen f2e39ffedb Bug 1350887 - Ensure Marionette prefs file has sensible name; r=maja_zf
Files appended to JS_PREFERENCE_FILES are moved into the
objdir/dist/bin/defaults/pref directory, shared with default global
preferences from other parts of Gecko.

To ensure Marionette's preference file ends up in this directory with
a sensible name, we put it in testing/marionette/prefs/marionette.js so
that it ends up in the objdir as dist/bin/defaults/pref/marionette.js.

MozReview-Commit-ID: 9YJ7vysDjSJ

--HG--
rename : testing/marionette/prefs.js => testing/marionette/prefs/marionette.js
extra : rebase_source : d5bf0abf80d20086945d51e05f3e5115880fdc20
2017-03-30 14:52:16 +01:00
Sebastian Hengst 58d0365b43 Backed out changeset 1438936f7cb6 (bug 1350887) for breaking packaging on OSX. r=backout
--HG--
rename : testing/marionette/prefs/marionette.js => testing/marionette/prefs.js
2017-04-03 21:40:48 +02:00
Sebastian Hengst 59be82dec9 Backed out changeset 69db9d3db655 (bug 1350887) 2017-04-03 21:40:12 +02:00
Andreas Tolfsen b268b662fb Bug 1350887 - Include Marionette prefs amongst defaults; r=ted,whimboo
The Marionette component ships in Firefox, but is not enabled by default.
We want to facilitate activating Marionette at runtime by flipping
the marionette.enabled preference, and showing the Marionette related
preferences in about:config helps discoverability.

It is also useful to rely on the preferences' default values so that
they do not have to be hardcoded in the component.

When Marionette is enabled by setting marionette.enabled to true, a set of
recommended automation preferences found in testing/marionette/server.js
are set if the user has not overriden/user-defined one of them and
marionette.prefs.recommended is true (default).  When Marionette is
stopped, the altered preferences are reset.

MozReview-Commit-ID: 3HLnEI0TEBB

--HG--
extra : rebase_source : 56e99bb5d075b54dedc2a957e0f46a209a1e48a8
2017-03-29 18:25:55 +01:00
Andreas Tolfsen 70882edb17 Bug 1350887 - Ensure Marionette prefs file has sensible name; r=maja_zf
Files appended to JS_PREFERENCE_FILES are moved into the
objdir/dist/bin/defaults/pref directory, shared with default global
preferences from other parts of Gecko.

To ensure Marionette's preference file ends up in this directory with
a sensible name, we put it in testing/marionette/prefs/marionette.js so
that it ends up in the objdir as dist/bin/defaults/pref/marionette.js.

MozReview-Commit-ID: 9YJ7vysDjSJ

--HG--
rename : testing/marionette/prefs.js => testing/marionette/prefs/marionette.js
extra : rebase_source : d5bf0abf80d20086945d51e05f3e5115880fdc20
2017-03-30 14:52:16 +01:00