Commit Graph

1314 Commits

Author SHA1 Message Date
Geoff Brown
4f07c8ba29 Bug 1440714 - Convert Android marionette tests to use adb.py; r=bc 2018-04-26 10:43:08 -06:00
Andreea Pavel
a608b0b7f9 Backed out changeset cf1022433399 (bug 1433574) Linux build bustages on a CLOSED TREE 2018-04-24 04:35:07 +03:00
Andrew Swan
a359959d1e Bug 1433574 Remove startup addon update check r=kmag
MozReview-Commit-ID: AjcRaDqjDNy

--HG--
extra : rebase_source : a95e8b61647d7fb91a3d5b455ba55a056fe0c2bc
2018-04-23 14:59:11 -07:00
Andreas Tolfsen
3e389d5b45 Bug 1452597 - Remove debug_script functionality for injected scripts. r=maja_zf
The WebDriver:ExecuteScript and WebDriver:ExecuteAsyncScript commands
accepts a "debug_script" parameter that attaches an error handler
on the WindowProxy in the sandbox.

This used to be necessary because the error handler used to be
attached to the content window instead of the sandbox.

MozReview-Commit-ID: ImRVkC5T75O

--HG--
extra : rebase_source : c13c33b4d708879f66bd906f431157720842690c
2018-04-09 13:13:18 +01:00
Andreas Tolfsen
edb0e19511 Bug 1452483 - Use relative path to source file for injected scripts. r=maja_zf
The basename is not sufficient to locate the file.  Using the file's
relative path will match the behaviour of JavaScript stacktraces.

We can't use relative paths on Windows because the source file may
exist on another disk drive, and on Windows you cannot make relative
paths across disk drives because they don't share the same root.

MozReview-Commit-ID: 4EPITa2kH6J

--HG--
extra : rebase_source : 44781ee506b5150b8e48e8a6b63142badee5b172
2018-04-09 11:43:08 +01:00
Andreas Tolfsen
578b658ea0 Bug 1452483 - Strip whitespace from injected scripts. r=maja_zf
The injected script may contain a lot of whitespace padding on
either side of the string when using multi-line strings ("""foo""")
in Python.  To improve readability of the trace log we can strip
it off before sending it to Marionette.

MozReview-Commit-ID: 2cNlwVzqWTK

--HG--
extra : rebase_source : 1ec06523a6e99e188b8cb7b616b357c1e9dea125
2018-04-09 11:41:46 +01:00
Henrik Skupin
48c0225a24 Bug 1434926 - Release marionette_driver 2.6.0 and marionette_harness 4.4.0. r=ato
DONTBUILD

MozReview-Commit-ID: F5dIk9HYN9L

--HG--
extra : rebase_source : f28f48434899e7e38c0b5e2a312205b932305cde
2018-04-11 10:46:38 +02:00
Henrik Skupin
340ebbc7bd Bug 1451727 - [marionette] Remove deprecated WebDriver commands. r=ato
Removes the following deprecated WebDriver commands from marionette
client: Element.size, Element.location, set_script_timeout,
set_search_timeout, and set_page_load_timeout.

It doesn't touch get_window_position, set_window_position,
window_size, and set_window_size because those are covered
by bug 1348145.

MozReview-Commit-ID: 9b74toO1Rzm

--HG--
extra : rebase_source : a9a73cf8cc36ed3d428ce1c7c54b83b9f0f4a63c
2018-04-06 12:12:24 +02:00
Henrik Skupin
d8fa75315b Bug 1451727 - [marionette] Remove unused execute_js_script method. r=ato
MozReview-Commit-ID: 3tkQmmRZfbd

--HG--
extra : rebase_source : 02ca72d05f8b5dd8f16bff98ea1ff9fdd50ec98a
2018-04-06 11:15:51 +02:00
Henrik Skupin
105a8df3da Bug 1451727 - [marionette] Update vendor specific commands to use custom prefixes. r=ato
All chrome context related commands have to use the "Marionette"
prefix. For those commands which accidentally have been put under
the "WebDriver" prefix a fallback to the old command is needed
in the Marionette client.

Also update related comments about possible removal dates.

MozReview-Commit-ID: IZLL6pineSO

--HG--
extra : rebase_source : 7e4cbe604d1f0b35cce01173a438b898658018b3
2018-04-05 21:23:57 +02:00
Henrik Skupin
ff8a4a9bc2 Bug 1451727 - [marionette] Update WebDriver specific commands to use the "WebDriver" prefix. r=ato
MozReview-Commit-ID: 57wk5BD8F2m

--HG--
extra : rebase_source : 538165f66d5b21e259696077ef3abf7a8a6a74c8
2018-04-05 18:08:48 +02:00
Andreea Pavel
d45f43c124 Backed out changeset 6fd96d40bdb3 (bug 1400233) at request a=backout r=whimboo 2018-04-06 10:08:55 +03:00
wambui
e4f7f97546 Bug 1400233 - Drop ContentWebElement.LegacyIdentifier key from Marionette; r=ato
Remove the legacy key that Marionette uses in addition to the identifier key.

MozReview-Commit-ID: 6IVtLxOJPoS

--HG--
extra : rebase_source : 8c4628d32cdcc7b1b7145b8c7c2660708f3bd20d
2018-03-13 11:56:13 +03:00
Henrik Skupin
d5fa7501a9 Bug 1449862 - [marionette] Check for available port each time before starting binary. r=ato
To prevent race conditions when a formerly started Firefox instance is
still claiming the port of the server socket, the port availability has
to be checked each time before the binary gets started. Otherwise the
client could accidentally connect to the wrong process, and also would
run the remaining tests with it.

MozReview-Commit-ID: JUaHYD2b1Rf

--HG--
extra : rebase_source : 842227b95ab996106f81d86785cc242b6b4cf3ee
2018-03-29 10:01:45 +02:00
Andreas Tolfsen
33d987d48a Bug 1401129 - Add peer review note to automation files. r=whimboo
MozReview-Commit-ID: 47708JTKoro

--HG--
extra : rebase_source : 234d2b84008937a6df8a36dcf05d341a0c4ae387
2018-03-12 11:47:28 +00:00
Andreas Tolfsen
77efd9020a Bug 1401129 - Restore extensions.shield-recipe-client.api_url in automation tools. r=whimboo
The extensions.shield-recipe-client.api_url preference was
replaced with app.normandy.api_url in bug 1436113.  There are
multiple automation tools in the tree that target out-of-tree
release channels and removing the old preference would break these.

This patch re-adds the old preference with a note of when it was removed.

MozReview-Commit-ID: HhTfRFkRQTC

--HG--
extra : rebase_source : ec726c528b57e197a34e3e094c1c4bfe5d23da55
2018-03-08 15:47:09 +00:00
Andreas Tolfsen
3ca71a66e9 Bug 1401129 - Restore datareporting.healthreport.about.reportUrl in automation tools. r=whimboo
The datareporting.healthreport.about.reportUrl preference was removed
in bug 1352497, but there are multiple automation tools in the tree
that target out-of-tree release channels.

This patch restores the preference with a note that it was removed
in Firefox 59.

MozReview-Commit-ID: Lg8bxoiIfxn

--HG--
extra : rebase_source : ce3744baf37b30210239a5b840ee9fb1f7dc38f4
2018-03-08 15:32:06 +00:00
Ed Lee
2522cd1b36 Bug 1444404 - Use default (true) value for browser.newtabpage.enabled for testing. r=jmaher
Before bug 1383599, the pref had effectively been always true as about:newtab always just loaded activity stream. Switching the test pref to be true matches the old behavior to fix the AWSY regression to later decide what this pref should be for testing in bug 1444498.

MozReview-Commit-ID: Af9v2rgUZdl

--HG--
extra : rebase_source : 39c81b51f6809dc7d7c8454554f2a84b724b398c
2018-03-09 10:47:10 -08:00
Gijs Kruitbosch
0b74070674 Bug 1433133 - remove unused prefs and exported bits from NewTabUtils.jsm, r=dao
MozReview-Commit-ID: 75xPd5hKexV

--HG--
extra : rebase_source : 31fed5ea4584098112aa00f4d6189f9605a6520a
2018-03-06 22:56:07 +00:00
Mike Cooper
466bc9466e Bug 1436113 - Part 2: Refactor "shield-recipe-client" to "normandy" r=Gijs
MozReview-Commit-ID: 8i9Jrq8rj3W

--HG--
extra : rebase_source : 9fb6772a231d214659d024348a52997c74dd5523
extra : amend_source : 312164e67feb3ac43b6b760cad73a2ff6e1f601a
extra : source : 8ccf1c3f156f19293c8a692585a663c5f685d195
2018-03-02 11:18:59 -08:00
Narcis Beleuzu
d970361c95 Backed out 2 changesets (bug 1436113) for bc failures on browser_about_studies.js
Backed out changeset 8ccf1c3f156f (bug 1436113)
Backed out changeset 18a7f08a6cdc (bug 1436113)

--HG--
rename : toolkit/components/normandy/content/AboutPages.jsm => browser/extensions/shield-recipe-client/content/AboutPages.jsm
rename : toolkit/components/normandy/content/about-studies/about-studies.css => browser/extensions/shield-recipe-client/content/about-studies/about-studies.css
rename : toolkit/components/normandy/content/about-studies/about-studies.html => browser/extensions/shield-recipe-client/content/about-studies/about-studies.html
rename : toolkit/components/normandy/content/about-studies/about-studies.js => browser/extensions/shield-recipe-client/content/about-studies/about-studies.js
rename : toolkit/components/normandy/content/about-studies/common.js => browser/extensions/shield-recipe-client/content/about-studies/common.js
rename : toolkit/components/normandy/content/about-studies/img/shield-logo.png => browser/extensions/shield-recipe-client/content/about-studies/img/shield-logo.png
rename : toolkit/components/normandy/content/about-studies/shield-studies.js => browser/extensions/shield-recipe-client/content/about-studies/shield-studies.js
rename : toolkit/components/normandy/content/shield-content-frame.js => browser/extensions/shield-recipe-client/content/shield-content-frame.js
rename : toolkit/components/normandy/content/shield-content-process.js => browser/extensions/shield-recipe-client/content/shield-content-process.js
rename : toolkit/components/normandy/docs/data-collection.rst => browser/extensions/shield-recipe-client/docs/data-collection.rst
rename : toolkit/components/normandy/docs/index.rst => browser/extensions/shield-recipe-client/docs/index.rst
rename : toolkit/components/normandy/jar.mn => browser/extensions/shield-recipe-client/jar.mn
rename : toolkit/components/normandy/lib/ActionSandboxManager.jsm => browser/extensions/shield-recipe-client/lib/ActionSandboxManager.jsm
rename : toolkit/components/normandy/lib/AddonStudies.jsm => browser/extensions/shield-recipe-client/lib/AddonStudies.jsm
rename : toolkit/components/normandy/lib/Addons.jsm => browser/extensions/shield-recipe-client/lib/Addons.jsm
rename : toolkit/components/normandy/lib/CleanupManager.jsm => browser/extensions/shield-recipe-client/lib/CleanupManager.jsm
rename : toolkit/components/normandy/lib/ClientEnvironment.jsm => browser/extensions/shield-recipe-client/lib/ClientEnvironment.jsm
rename : toolkit/components/normandy/lib/EventEmitter.jsm => browser/extensions/shield-recipe-client/lib/EventEmitter.jsm
rename : toolkit/components/normandy/lib/FilterExpressions.jsm => browser/extensions/shield-recipe-client/lib/FilterExpressions.jsm
rename : toolkit/components/normandy/lib/Heartbeat.jsm => browser/extensions/shield-recipe-client/lib/Heartbeat.jsm
rename : toolkit/components/normandy/lib/LogManager.jsm => browser/extensions/shield-recipe-client/lib/LogManager.jsm
rename : toolkit/components/normandy/lib/NormandyApi.jsm => browser/extensions/shield-recipe-client/lib/NormandyApi.jsm
rename : toolkit/components/normandy/lib/NormandyDriver.jsm => browser/extensions/shield-recipe-client/lib/NormandyDriver.jsm
rename : toolkit/components/normandy/lib/PreferenceExperiments.jsm => browser/extensions/shield-recipe-client/lib/PreferenceExperiments.jsm
rename : toolkit/components/normandy/lib/PreferenceFilters.jsm => browser/extensions/shield-recipe-client/lib/PreferenceFilters.jsm
rename : toolkit/components/normandy/lib/RecipeRunner.jsm => browser/extensions/shield-recipe-client/lib/RecipeRunner.jsm
rename : toolkit/components/normandy/lib/Sampling.jsm => browser/extensions/shield-recipe-client/lib/Sampling.jsm
rename : toolkit/components/normandy/lib/SandboxManager.jsm => browser/extensions/shield-recipe-client/lib/SandboxManager.jsm
rename : toolkit/components/normandy/lib/ShieldPreferences.jsm => browser/extensions/shield-recipe-client/lib/ShieldPreferences.jsm
rename : toolkit/components/normandy/lib/Storage.jsm => browser/extensions/shield-recipe-client/lib/Storage.jsm
rename : toolkit/components/normandy/lib/TelemetryEvents.jsm => browser/extensions/shield-recipe-client/lib/TelemetryEvents.jsm
rename : toolkit/components/normandy/lib/Uptake.jsm => browser/extensions/shield-recipe-client/lib/Uptake.jsm
rename : toolkit/components/normandy/lib/Utils.jsm => browser/extensions/shield-recipe-client/lib/Utils.jsm
rename : toolkit/components/normandy/moz.build => browser/extensions/shield-recipe-client/moz.build
rename : toolkit/components/normandy/skin/osx/Heartbeat.css => browser/extensions/shield-recipe-client/skin/osx/Heartbeat.css
rename : toolkit/components/normandy/skin/shared/Heartbeat.css => browser/extensions/shield-recipe-client/skin/shared/Heartbeat.css
rename : toolkit/components/normandy/skin/shared/heartbeat-icon.svg => browser/extensions/shield-recipe-client/skin/shared/heartbeat-icon.svg
rename : toolkit/components/normandy/skin/shared/heartbeat-star-lit.svg => browser/extensions/shield-recipe-client/skin/shared/heartbeat-star-lit.svg
rename : toolkit/components/normandy/skin/shared/heartbeat-star-off.svg => browser/extensions/shield-recipe-client/skin/shared/heartbeat-star-off.svg
rename : toolkit/components/normandy/test/.eslintrc.js => browser/extensions/shield-recipe-client/test/.eslintrc.js
rename : toolkit/components/normandy/test/browser/.eslintrc.js => browser/extensions/shield-recipe-client/test/browser/.eslintrc.js
rename : toolkit/components/normandy/test/browser/action_server.sjs => browser/extensions/shield-recipe-client/test/browser/action_server.sjs
rename : toolkit/components/normandy/test/browser/browser.ini => browser/extensions/shield-recipe-client/test/browser/browser.ini
rename : toolkit/components/normandy/test/browser/browser_ActionSandboxManager.js => browser/extensions/shield-recipe-client/test/browser/browser_ActionSandboxManager.js
rename : toolkit/components/normandy/test/browser/browser_AddonStudies.js => browser/extensions/shield-recipe-client/test/browser/browser_AddonStudies.js
rename : toolkit/components/normandy/test/browser/browser_Addons.js => browser/extensions/shield-recipe-client/test/browser/browser_Addons.js
rename : toolkit/components/normandy/test/browser/browser_CleanupManager.js => browser/extensions/shield-recipe-client/test/browser/browser_CleanupManager.js
rename : toolkit/components/normandy/test/browser/browser_ClientEnvironment.js => browser/extensions/shield-recipe-client/test/browser/browser_ClientEnvironment.js
rename : toolkit/components/normandy/test/browser/browser_EventEmitter.js => browser/extensions/shield-recipe-client/test/browser/browser_EventEmitter.js
rename : toolkit/components/normandy/test/browser/browser_FilterExpressions.js => browser/extensions/shield-recipe-client/test/browser/browser_FilterExpressions.js
rename : toolkit/components/normandy/test/browser/browser_Heartbeat.js => browser/extensions/shield-recipe-client/test/browser/browser_Heartbeat.js
rename : toolkit/components/normandy/test/browser/browser_LogManager.js => browser/extensions/shield-recipe-client/test/browser/browser_LogManager.js
rename : toolkit/components/normandy/test/browser/browser_NormandyDriver.js => browser/extensions/shield-recipe-client/test/browser/browser_NormandyDriver.js
rename : toolkit/components/normandy/test/browser/browser_PreferenceExperiments.js => browser/extensions/shield-recipe-client/test/browser/browser_PreferenceExperiments.js
rename : toolkit/components/normandy/test/browser/browser_RecipeRunner.js => browser/extensions/shield-recipe-client/test/browser/browser_RecipeRunner.js
rename : toolkit/components/normandy/test/browser/browser_ShieldPreferences.js => browser/extensions/shield-recipe-client/test/browser/browser_ShieldPreferences.js
rename : toolkit/components/normandy/test/browser/browser_Storage.js => browser/extensions/shield-recipe-client/test/browser/browser_Storage.js
rename : toolkit/components/normandy/test/browser/browser_about_preferences.js => browser/extensions/shield-recipe-client/test/browser/browser_about_preferences.js
rename : toolkit/components/normandy/test/browser/browser_about_studies.js => browser/extensions/shield-recipe-client/test/browser/browser_about_studies.js
rename : toolkit/components/normandy/test/browser/browser_Normandy.js => browser/extensions/shield-recipe-client/test/browser/browser_bootstrap.js
rename : toolkit/components/normandy/test/browser/fixtures/addon-fixture/manifest.json => browser/extensions/shield-recipe-client/test/browser/fixtures/addon-fixture/manifest.json
rename : toolkit/components/normandy/test/browser/fixtures/normandy.xpi => browser/extensions/shield-recipe-client/test/browser/fixtures/normandy.xpi
rename : toolkit/components/normandy/test/browser/head.js => browser/extensions/shield-recipe-client/test/browser/head.js
rename : toolkit/components/normandy/test/unit/.eslintrc.js => browser/extensions/shield-recipe-client/test/unit/.eslintrc.js
rename : toolkit/components/normandy/test/unit/echo_server.sjs => browser/extensions/shield-recipe-client/test/unit/echo_server.sjs
rename : toolkit/components/normandy/test/unit/head_xpc.js => browser/extensions/shield-recipe-client/test/unit/head_xpc.js
rename : toolkit/components/normandy/test/unit/invalid_recipe_signature_api/api/v1/index.json => browser/extensions/shield-recipe-client/test/unit/invalid_recipe_signature_api/api/v1/index.json
rename : toolkit/components/normandy/test/unit/invalid_recipe_signature_api/api/v1/recipe/signed/index.json => browser/extensions/shield-recipe-client/test/unit/invalid_recipe_signature_api/api/v1/recipe/signed/index.json
rename : toolkit/components/normandy/test/unit/invalid_recipe_signature_api/normandy.content-signature.mozilla.org-20210705.dev.chain => browser/extensions/shield-recipe-client/test/unit/invalid_recipe_signature_api/normandy.content-signature.mozilla.org-20210705.dev.chain
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/console-log/implementation/sha384-RGx3rydrSq53UfmW9kFcK0mQYra67XIvZvr4MhmAe--ljiiMQOtgM7Cmca48um3v => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/console-log/implementation/sha384-RGx3rydrSq53UfmW9kFcK0mQYra67XIvZvr4MhmAe--ljiiMQOtgM7Cmca48um3v
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/console-log/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/console-log/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/opt-out-study/implementation/sha384-HM_avYcD00o27ufwU1V7PIBtiuMAXML6MMwlYrDEqDX-XzGVuOfL52RCM680JExN => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/opt-out-study/implementation/sha384-HM_avYcD00o27ufwU1V7PIBtiuMAXML6MMwlYrDEqDX-XzGVuOfL52RCM680JExN
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/opt-out-study/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/opt-out-study/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/preference-experiment/implementation/sha384-KQgG38GQ7KZAb2VIB48ANQO6nBcxZoLm2ORzUviRT5nAvSywyPjZ5cJIElw6iXIt => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/preference-experiment/implementation/sha384-KQgG38GQ7KZAb2VIB48ANQO6nBcxZoLm2ORzUviRT5nAvSywyPjZ5cJIElw6iXIt
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/preference-experiment/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/preference-experiment/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/show-heartbeat/implementation/sha384-dEGiyKPEln8Ns5cQHzGpMIGdirSAAX0X-Kwlu-U3sJ05yNbO-ANij_a6c5SyL7G4 => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/show-heartbeat/implementation/sha384-dEGiyKPEln8Ns5cQHzGpMIGdirSAAX0X-Kwlu-U3sJ05yNbO-ANij_a6c5SyL7G4
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/show-heartbeat/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/show-heartbeat/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/signed/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/signed/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/classify_client/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/classify_client/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/recipe/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/recipe/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/recipe/signed/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/recipe/signed/index.json
rename : toolkit/components/normandy/test/unit/mock_api/normandy.content-signature.mozilla.org-20210705.dev.chain => browser/extensions/shield-recipe-client/test/unit/mock_api/normandy.content-signature.mozilla.org-20210705.dev.chain
rename : toolkit/components/normandy/test/unit/query_server.sjs => browser/extensions/shield-recipe-client/test/unit/query_server.sjs
rename : toolkit/components/normandy/test/unit/test_NormandyApi.js => browser/extensions/shield-recipe-client/test/unit/test_NormandyApi.js
rename : toolkit/components/normandy/test/unit/test_Sampling.js => browser/extensions/shield-recipe-client/test/unit/test_Sampling.js
rename : toolkit/components/normandy/test/unit/test_SandboxManager.js => browser/extensions/shield-recipe-client/test/unit/test_SandboxManager.js
rename : toolkit/components/normandy/test/unit/test_Utils.js => browser/extensions/shield-recipe-client/test/unit/test_Utils.js
rename : toolkit/components/normandy/test/unit/utils.js => browser/extensions/shield-recipe-client/test/unit/utils.js
rename : toolkit/components/normandy/test/unit/xpcshell.ini => browser/extensions/shield-recipe-client/test/unit/xpcshell.ini
rename : toolkit/components/normandy/vendor/LICENSE_THIRDPARTY => browser/extensions/shield-recipe-client/vendor/LICENSE_THIRDPARTY
rename : toolkit/components/normandy/vendor/PropTypes.js => browser/extensions/shield-recipe-client/vendor/PropTypes.js
rename : toolkit/components/normandy/vendor/React.js => browser/extensions/shield-recipe-client/vendor/React.js
rename : toolkit/components/normandy/vendor/ReactDOM.js => browser/extensions/shield-recipe-client/vendor/ReactDOM.js
rename : toolkit/components/normandy/vendor/classnames.js => browser/extensions/shield-recipe-client/vendor/classnames.js
rename : toolkit/components/normandy/vendor/mozjexl.js => browser/extensions/shield-recipe-client/vendor/mozjexl.js
2018-03-01 06:44:44 +02:00
Mike Cooper
44cb9587b4 Bug 1436113 - Part 2: Refactor "shield-recipe-client" to "normandy" r=Gijs
This includes simplifiying the startup process, migrating to a new
pref namespace, renaming files, and updating references to the code.

MozReview-Commit-ID: A2cYpsjCOAE

--HG--
extra : rebase_source : a47e156160e2e0f85f0000703f2da24e781c727d
2018-02-21 15:02:04 -08:00
Narcis Beleuzu
afbe720872 Backed out 2 changesets (bug 1436113) for ESlint failure on Normandy.jsm. CLOSED TREE
Backed out changeset 0a2b1c60cec5 (bug 1436113)
Backed out changeset 88dd78f248e2 (bug 1436113)

--HG--
rename : toolkit/components/normandy/content/AboutPages.jsm => browser/extensions/shield-recipe-client/content/AboutPages.jsm
rename : toolkit/components/normandy/content/about-studies/about-studies.css => browser/extensions/shield-recipe-client/content/about-studies/about-studies.css
rename : toolkit/components/normandy/content/about-studies/about-studies.html => browser/extensions/shield-recipe-client/content/about-studies/about-studies.html
rename : toolkit/components/normandy/content/about-studies/about-studies.js => browser/extensions/shield-recipe-client/content/about-studies/about-studies.js
rename : toolkit/components/normandy/content/about-studies/common.js => browser/extensions/shield-recipe-client/content/about-studies/common.js
rename : toolkit/components/normandy/content/about-studies/img/shield-logo.png => browser/extensions/shield-recipe-client/content/about-studies/img/shield-logo.png
rename : toolkit/components/normandy/content/about-studies/shield-studies.js => browser/extensions/shield-recipe-client/content/about-studies/shield-studies.js
rename : toolkit/components/normandy/content/shield-content-frame.js => browser/extensions/shield-recipe-client/content/shield-content-frame.js
rename : toolkit/components/normandy/content/shield-content-process.js => browser/extensions/shield-recipe-client/content/shield-content-process.js
rename : toolkit/components/normandy/docs/data-collection.rst => browser/extensions/shield-recipe-client/docs/data-collection.rst
rename : toolkit/components/normandy/docs/index.rst => browser/extensions/shield-recipe-client/docs/index.rst
rename : toolkit/components/normandy/jar.mn => browser/extensions/shield-recipe-client/jar.mn
rename : toolkit/components/normandy/lib/ActionSandboxManager.jsm => browser/extensions/shield-recipe-client/lib/ActionSandboxManager.jsm
rename : toolkit/components/normandy/lib/AddonStudies.jsm => browser/extensions/shield-recipe-client/lib/AddonStudies.jsm
rename : toolkit/components/normandy/lib/Addons.jsm => browser/extensions/shield-recipe-client/lib/Addons.jsm
rename : toolkit/components/normandy/lib/CleanupManager.jsm => browser/extensions/shield-recipe-client/lib/CleanupManager.jsm
rename : toolkit/components/normandy/lib/ClientEnvironment.jsm => browser/extensions/shield-recipe-client/lib/ClientEnvironment.jsm
rename : toolkit/components/normandy/lib/EventEmitter.jsm => browser/extensions/shield-recipe-client/lib/EventEmitter.jsm
rename : toolkit/components/normandy/lib/FilterExpressions.jsm => browser/extensions/shield-recipe-client/lib/FilterExpressions.jsm
rename : toolkit/components/normandy/lib/Heartbeat.jsm => browser/extensions/shield-recipe-client/lib/Heartbeat.jsm
rename : toolkit/components/normandy/lib/LogManager.jsm => browser/extensions/shield-recipe-client/lib/LogManager.jsm
rename : toolkit/components/normandy/lib/NormandyApi.jsm => browser/extensions/shield-recipe-client/lib/NormandyApi.jsm
rename : toolkit/components/normandy/lib/NormandyDriver.jsm => browser/extensions/shield-recipe-client/lib/NormandyDriver.jsm
rename : toolkit/components/normandy/lib/PreferenceExperiments.jsm => browser/extensions/shield-recipe-client/lib/PreferenceExperiments.jsm
rename : toolkit/components/normandy/lib/PreferenceFilters.jsm => browser/extensions/shield-recipe-client/lib/PreferenceFilters.jsm
rename : toolkit/components/normandy/lib/RecipeRunner.jsm => browser/extensions/shield-recipe-client/lib/RecipeRunner.jsm
rename : toolkit/components/normandy/lib/Sampling.jsm => browser/extensions/shield-recipe-client/lib/Sampling.jsm
rename : toolkit/components/normandy/lib/SandboxManager.jsm => browser/extensions/shield-recipe-client/lib/SandboxManager.jsm
rename : toolkit/components/normandy/lib/ShieldPreferences.jsm => browser/extensions/shield-recipe-client/lib/ShieldPreferences.jsm
rename : toolkit/components/normandy/lib/Storage.jsm => browser/extensions/shield-recipe-client/lib/Storage.jsm
rename : toolkit/components/normandy/lib/TelemetryEvents.jsm => browser/extensions/shield-recipe-client/lib/TelemetryEvents.jsm
rename : toolkit/components/normandy/lib/Uptake.jsm => browser/extensions/shield-recipe-client/lib/Uptake.jsm
rename : toolkit/components/normandy/lib/Utils.jsm => browser/extensions/shield-recipe-client/lib/Utils.jsm
rename : toolkit/components/normandy/moz.build => browser/extensions/shield-recipe-client/moz.build
rename : toolkit/components/normandy/skin/osx/Heartbeat.css => browser/extensions/shield-recipe-client/skin/osx/Heartbeat.css
rename : toolkit/components/normandy/skin/shared/Heartbeat.css => browser/extensions/shield-recipe-client/skin/shared/Heartbeat.css
rename : toolkit/components/normandy/skin/shared/heartbeat-icon.svg => browser/extensions/shield-recipe-client/skin/shared/heartbeat-icon.svg
rename : toolkit/components/normandy/skin/shared/heartbeat-star-lit.svg => browser/extensions/shield-recipe-client/skin/shared/heartbeat-star-lit.svg
rename : toolkit/components/normandy/skin/shared/heartbeat-star-off.svg => browser/extensions/shield-recipe-client/skin/shared/heartbeat-star-off.svg
rename : toolkit/components/normandy/test/.eslintrc.js => browser/extensions/shield-recipe-client/test/.eslintrc.js
rename : toolkit/components/normandy/test/browser/.eslintrc.js => browser/extensions/shield-recipe-client/test/browser/.eslintrc.js
rename : toolkit/components/normandy/test/browser/action_server.sjs => browser/extensions/shield-recipe-client/test/browser/action_server.sjs
rename : toolkit/components/normandy/test/browser/browser.ini => browser/extensions/shield-recipe-client/test/browser/browser.ini
rename : toolkit/components/normandy/test/browser/browser_ActionSandboxManager.js => browser/extensions/shield-recipe-client/test/browser/browser_ActionSandboxManager.js
rename : toolkit/components/normandy/test/browser/browser_AddonStudies.js => browser/extensions/shield-recipe-client/test/browser/browser_AddonStudies.js
rename : toolkit/components/normandy/test/browser/browser_Addons.js => browser/extensions/shield-recipe-client/test/browser/browser_Addons.js
rename : toolkit/components/normandy/test/browser/browser_CleanupManager.js => browser/extensions/shield-recipe-client/test/browser/browser_CleanupManager.js
rename : toolkit/components/normandy/test/browser/browser_ClientEnvironment.js => browser/extensions/shield-recipe-client/test/browser/browser_ClientEnvironment.js
rename : toolkit/components/normandy/test/browser/browser_EventEmitter.js => browser/extensions/shield-recipe-client/test/browser/browser_EventEmitter.js
rename : toolkit/components/normandy/test/browser/browser_FilterExpressions.js => browser/extensions/shield-recipe-client/test/browser/browser_FilterExpressions.js
rename : toolkit/components/normandy/test/browser/browser_Heartbeat.js => browser/extensions/shield-recipe-client/test/browser/browser_Heartbeat.js
rename : toolkit/components/normandy/test/browser/browser_LogManager.js => browser/extensions/shield-recipe-client/test/browser/browser_LogManager.js
rename : toolkit/components/normandy/test/browser/browser_NormandyDriver.js => browser/extensions/shield-recipe-client/test/browser/browser_NormandyDriver.js
rename : toolkit/components/normandy/test/browser/browser_PreferenceExperiments.js => browser/extensions/shield-recipe-client/test/browser/browser_PreferenceExperiments.js
rename : toolkit/components/normandy/test/browser/browser_RecipeRunner.js => browser/extensions/shield-recipe-client/test/browser/browser_RecipeRunner.js
rename : toolkit/components/normandy/test/browser/browser_ShieldPreferences.js => browser/extensions/shield-recipe-client/test/browser/browser_ShieldPreferences.js
rename : toolkit/components/normandy/test/browser/browser_Storage.js => browser/extensions/shield-recipe-client/test/browser/browser_Storage.js
rename : toolkit/components/normandy/test/browser/browser_about_preferences.js => browser/extensions/shield-recipe-client/test/browser/browser_about_preferences.js
rename : toolkit/components/normandy/test/browser/browser_about_studies.js => browser/extensions/shield-recipe-client/test/browser/browser_about_studies.js
rename : toolkit/components/normandy/test/browser/browser_Normandy.js => browser/extensions/shield-recipe-client/test/browser/browser_bootstrap.js
rename : toolkit/components/normandy/test/browser/fixtures/addon-fixture/manifest.json => browser/extensions/shield-recipe-client/test/browser/fixtures/addon-fixture/manifest.json
rename : toolkit/components/normandy/test/browser/fixtures/normandy.xpi => browser/extensions/shield-recipe-client/test/browser/fixtures/normandy.xpi
rename : toolkit/components/normandy/test/browser/head.js => browser/extensions/shield-recipe-client/test/browser/head.js
rename : toolkit/components/normandy/test/unit/.eslintrc.js => browser/extensions/shield-recipe-client/test/unit/.eslintrc.js
rename : toolkit/components/normandy/test/unit/echo_server.sjs => browser/extensions/shield-recipe-client/test/unit/echo_server.sjs
rename : toolkit/components/normandy/test/unit/head_xpc.js => browser/extensions/shield-recipe-client/test/unit/head_xpc.js
rename : toolkit/components/normandy/test/unit/invalid_recipe_signature_api/api/v1/index.json => browser/extensions/shield-recipe-client/test/unit/invalid_recipe_signature_api/api/v1/index.json
rename : toolkit/components/normandy/test/unit/invalid_recipe_signature_api/api/v1/recipe/signed/index.json => browser/extensions/shield-recipe-client/test/unit/invalid_recipe_signature_api/api/v1/recipe/signed/index.json
rename : toolkit/components/normandy/test/unit/invalid_recipe_signature_api/normandy.content-signature.mozilla.org-20210705.dev.chain => browser/extensions/shield-recipe-client/test/unit/invalid_recipe_signature_api/normandy.content-signature.mozilla.org-20210705.dev.chain
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/console-log/implementation/sha384-RGx3rydrSq53UfmW9kFcK0mQYra67XIvZvr4MhmAe--ljiiMQOtgM7Cmca48um3v => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/console-log/implementation/sha384-RGx3rydrSq53UfmW9kFcK0mQYra67XIvZvr4MhmAe--ljiiMQOtgM7Cmca48um3v
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/console-log/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/console-log/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/opt-out-study/implementation/sha384-HM_avYcD00o27ufwU1V7PIBtiuMAXML6MMwlYrDEqDX-XzGVuOfL52RCM680JExN => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/opt-out-study/implementation/sha384-HM_avYcD00o27ufwU1V7PIBtiuMAXML6MMwlYrDEqDX-XzGVuOfL52RCM680JExN
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/opt-out-study/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/opt-out-study/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/preference-experiment/implementation/sha384-KQgG38GQ7KZAb2VIB48ANQO6nBcxZoLm2ORzUviRT5nAvSywyPjZ5cJIElw6iXIt => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/preference-experiment/implementation/sha384-KQgG38GQ7KZAb2VIB48ANQO6nBcxZoLm2ORzUviRT5nAvSywyPjZ5cJIElw6iXIt
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/preference-experiment/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/preference-experiment/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/show-heartbeat/implementation/sha384-dEGiyKPEln8Ns5cQHzGpMIGdirSAAX0X-Kwlu-U3sJ05yNbO-ANij_a6c5SyL7G4 => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/show-heartbeat/implementation/sha384-dEGiyKPEln8Ns5cQHzGpMIGdirSAAX0X-Kwlu-U3sJ05yNbO-ANij_a6c5SyL7G4
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/show-heartbeat/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/show-heartbeat/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/action/signed/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/action/signed/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/classify_client/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/classify_client/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/recipe/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/recipe/index.json
rename : toolkit/components/normandy/test/unit/mock_api/api/v1/recipe/signed/index.json => browser/extensions/shield-recipe-client/test/unit/mock_api/api/v1/recipe/signed/index.json
rename : toolkit/components/normandy/test/unit/mock_api/normandy.content-signature.mozilla.org-20210705.dev.chain => browser/extensions/shield-recipe-client/test/unit/mock_api/normandy.content-signature.mozilla.org-20210705.dev.chain
rename : toolkit/components/normandy/test/unit/query_server.sjs => browser/extensions/shield-recipe-client/test/unit/query_server.sjs
rename : toolkit/components/normandy/test/unit/test_NormandyApi.js => browser/extensions/shield-recipe-client/test/unit/test_NormandyApi.js
rename : toolkit/components/normandy/test/unit/test_Sampling.js => browser/extensions/shield-recipe-client/test/unit/test_Sampling.js
rename : toolkit/components/normandy/test/unit/test_SandboxManager.js => browser/extensions/shield-recipe-client/test/unit/test_SandboxManager.js
rename : toolkit/components/normandy/test/unit/test_Utils.js => browser/extensions/shield-recipe-client/test/unit/test_Utils.js
rename : toolkit/components/normandy/test/unit/utils.js => browser/extensions/shield-recipe-client/test/unit/utils.js
rename : toolkit/components/normandy/test/unit/xpcshell.ini => browser/extensions/shield-recipe-client/test/unit/xpcshell.ini
rename : toolkit/components/normandy/vendor/LICENSE_THIRDPARTY => browser/extensions/shield-recipe-client/vendor/LICENSE_THIRDPARTY
rename : toolkit/components/normandy/vendor/PropTypes.js => browser/extensions/shield-recipe-client/vendor/PropTypes.js
rename : toolkit/components/normandy/vendor/React.js => browser/extensions/shield-recipe-client/vendor/React.js
rename : toolkit/components/normandy/vendor/ReactDOM.js => browser/extensions/shield-recipe-client/vendor/ReactDOM.js
rename : toolkit/components/normandy/vendor/classnames.js => browser/extensions/shield-recipe-client/vendor/classnames.js
rename : toolkit/components/normandy/vendor/mozjexl.js => browser/extensions/shield-recipe-client/vendor/mozjexl.js
2018-03-01 00:37:47 +02:00
Mike Cooper
8688589946 Bug 1436113 - Part 2: Refactor "shield-recipe-client" to "normandy" r=Gijs
This includes simplifiying the startup process, migrating to a new
pref namespace, renaming files, and updating references to the code.

MozReview-Commit-ID: A2cYpsjCOAE

--HG--
extra : rebase_source : abf1f517b78952d42b0142ca458444eed61c939a
2018-02-21 15:02:04 -08:00
Henrik Skupin
6dd0ee8186 Bug 1438035 - [marionette] Add Unicode support for profile path in switch_profile(). r=ato
The format string for the profile path in _update_profile caused
encoding problems if the profile name is a unicode string.

MozReview-Commit-ID: 9mTntFIcCtZ

--HG--
extra : rebase_source : 6e6b5b905798eda2e27989723c070a2d12fc5f73
2018-02-14 21:32:04 +01:00
Andrew Halberstadt
f354075c7a Bug 1434430 - [flake8] Fix blank 'except' statements r=rwood
This is a new issue that gets linted with flake8 3.5.0. Basically you should
never use a blank except: statement.

This will catch all exceptions, including KeyboardInterrupt and SystemExit
(which is likely not intended). If a catch all is needed, use
`except: Exception`.  If you *really* mean to also catch KeyboardInterrupt et
al, use `except: BaseException`.

Of course, being specific is often better than a catch all.

MozReview-Commit-ID: FKx80MLO4RN

--HG--
extra : rebase_source : 7c74a7d0d81f2c984b47aff3a0ee3448b791177b
2018-01-31 14:32:08 -05:00
Andreas Tolfsen
4982c07af4 Bug 1433497 - Include new Marionette prefs in Python client. r=whimboo
Some time ago the Marionette server renamed a couple of preferences to
be more in line with the naming scheme of other preferences in Gecko.
Unfortunately we forgot to update the Marionette Python client to
include these.

This patch does not remove the older preference names because there
is no need to unnecessarily break the client when it is used with
older Firefox versions, although in theory it is now safe to remove them.

MozReview-Commit-ID: 8gyFfgd2VkX

--HG--
extra : rebase_source : 8814ea91a13a9bff54d59032a9e28c3a79a33f17
2018-01-26 16:56:15 +00:00
Henrik Skupin
5a9dfcb26a Bug 1429759 - Allow Marionette tests to change the user profile. r=automatedtester,maja_zf
If Marionette handles the instance of the application including the
user profile, the tests should be able to change the user profile.

This will enable tests to cover specific bugs in the application as
caused by the profile name and path.

To prevent dataloss changing the profile should only be allowed
when the application is not running.

MozReview-Commit-ID: JWQGV4JWP61

--HG--
extra : rebase_source : 0339d15e21233333cea8de14d1f2f37ab0206418
2018-01-11 15:21:11 +01:00
iceman
5d31e3d10a Bug 1407763 - Enable py2 and py3 compat linters for testing/marionette. r=ahal
MozReview-Commit-ID: 4IYhPPGlJlo

--HG--
extra : rebase_source : a27b89c734082fc8acbc329ded75d7ef87d70dbe
2018-01-17 16:14:43 +01:00
Coroiu Cristina
410cc33022 Backed out 1 changesets (bug 1429759) on request from whimboo a=backout
Backed out changeset e2dd58774f0c (bug 1429759)
2018-01-18 10:37:15 +02:00
Henrik Skupin
a1474a6ed5 Bug 1429759 - Allow Marionette tests to change the user profile. r=automatedtester
If Marionette handles the instance of the application including the
user profile, the tests should be able to change the user profile.

This will enable tests to cover specific bugs in the application as
caused by the profile name and path.

To prevent dataloss changing the profile should only be allowed
when the application is not running.

MozReview-Commit-ID: JWQGV4JWP61

--HG--
extra : rebase_source : 18270e9790f11fffc2a33a231dbc8229a1bf12d2
2018-01-11 15:21:11 +01:00
Henrik Skupin
f3030b9118 Bug 1429562 - Remove obsolete optional parameter reset_session_id from delete_session. r=ato
By calling "delete_session" the currently used session id always has to be reset,
because each session has its own unique id.

MozReview-Commit-ID: H9RiuNj7fRd

--HG--
extra : rebase_source : 13ca1cf1c80d74024fce5323f9d91b12fd8b5ad2
2018-01-11 12:24:15 +01:00
Maja Frydrychowicz
60613594fe Bug 1341466 - Stop Marionette test run when Android emulator is unresponsive; r=automatedtester
The clean-up code in FennecInstance now counts and logs consecutive DMErrors.
The Marionette clean-up code then throws an UnresponsiveInstanceException
if we hit consecutive errors more than twice, which interrupts the
test run entirely. (Previously, MarionetteTestRunner would just keep running
tests despite consecutive clean-up failures, and eventually it would time out.)

This change allows us to take advantage of the retry mechanism in the
mozharness script that runs all Android tests: it sets the job status to "retry"
if it finds DMError in the test log after the run_tests step is done.

MozReview-Commit-ID: J36XuFVK1aK

--HG--
extra : rebase_source : 4feada21d7b4260e73054339fa79c61911d259ee
2017-11-16 12:00:49 -05:00
Henrik Skupin
d9dbc0370f Bug 1420098 - Release Marionette driver 2.5.0 and harness 4.3.0. r=ato
MozReview-Commit-ID: 8XvkYnDOAF7

--HG--
extra : rebase_source : 5483f396b1606dd35d5fa8973e9f0c7f5fe9e59c
2017-11-30 15:20:36 +01:00
Dão Gottwald
aff5b2a7f6 Bug 1352497 - Remove about:healthreport. r=gfritzsche,nechen
MozReview-Commit-ID: 4FQ5aL2XrU5

--HG--
extra : rebase_source : a8863472a82697b3e7668866a35f14b6f01fafe7
2017-11-28 11:38:15 +01:00
Cosmin Sabou
651cb90a8a Backed out changeset be86ccde4f4a (bug 1352497) for bc failures on Windows 7 debug with e10s at docshell/test/browser/browser_bug1309900_crossProcessHistoryNavigation.js r=backout a=backout 2017-11-26 01:36:44 +02:00
Dão Gottwald
bfd060da04 Bug 1352497 - Remove about:healthreport. r=gfritzsche,nechen
MozReview-Commit-ID: 8aPg9oDFIlu

--HG--
extra : rebase_source : 6e9836a6d66b464df1228f7ed84e9b37bad8809c
2017-11-22 13:51:08 +01:00
Gijs Kruitbosch
469382710e Bug 1408044 - stop using about.dtd as an example in firefox-ui/puppeteer/marionette docs/tests, r=whimboo
MozReview-Commit-ID: 4zog9pSgCs9

--HG--
extra : rebase_source : 978a490b010179ded8b7ab3bdddf659fb0a331af
2017-11-14 23:37:04 +00:00
Henrik Skupin
e43cb5fb67 Bug 1418227 - Socket timeout is lost in TcpTransport.connect(). r=automatedtester
The socket_timeout getter should not return the timeout directly
from the socket instance, because right after socket.socket() it
is set to "None" internally, which will cause the original value
as requested by Marionette to be lost.

MozReview-Commit-ID: DkmvvJ4bDF9

--HG--
extra : rebase_source : 8ff6bf641f4583cc72c8939b49f161d825067e0a
2017-11-17 10:15:13 +01:00
Henrik Skupin
7a50842880 Bug 1418227 - Indicate that sock instance is private. r=automatedtester
The sock instance in TcpTransport should not be modified by code
outside of the class. As such indicate it least as private.

MozReview-Commit-ID: FGgZHYj7EdV

--HG--
extra : rebase_source : b725134f3378e900e1539a446c3af2743ae1e510
2017-11-17 10:24:38 +01:00
Ciure Andrei
a8907fc95a Backed out 5 changesets (bug 1408044) for failing Android test: TestAboutPagesPreparer.java:24: cannot find symbol. r=backout on a CLOSED TREE
Backed out changeset 5c5152ad910d (bug 1408044)
Backed out changeset c9a062838c12 (bug 1408044)
Backed out changeset 9ceaa645f2a9 (bug 1408044)
Backed out changeset 10fc0a581606 (bug 1408044)
Backed out changeset 513140019014 (bug 1408044)
2017-11-17 12:19:30 +02:00
Gijs Kruitbosch
c1e68c5edc Bug 1408044 - stop using about.dtd as an example in firefox-ui/puppeteer/marionette docs/tests, r=whimboo
MozReview-Commit-ID: 4zog9pSgCs9

--HG--
extra : rebase_source : 546415e95c83591d2077a9d6995e69d091a64f73
2017-11-14 23:37:04 +00:00
Henrik Skupin
f92190a78d Bug 1414882 - Require successful handshake in raise_for_port. r=ato
In case another application is still using the port, and the
handshake with Marionette server is not successful, the
function should return immediately. Otherwise it has to continue
to wait until a successful connection has been made..

MozReview-Commit-ID: CuOMNotmCDP

--HG--
extra : rebase_source : 9772f7b4e08860c4e97ac07fde0b679242f22456
2017-11-08 15:30:40 +01:00
Henrik Skupin
be10891d69 Bug 1414882 - Add handshake to Marionette client. r=ato
A connection to Marionette server should only be accepted
if the application type equals to 'gecko', and the protocol
version as returned is supported by the client.

MozReview-Commit-ID: LjZCsL4dt8Y

--HG--
extra : rebase_source : 66603c2705f3369c357b69895d536af00e5e8511
2017-11-08 15:26:50 +01:00
Henrik Skupin
30459eae54 Bug 1414882 - Remove wait_for_port in favor of raise_for_port. r=ato
wait_for_port() is defined to return a boolean value, which
makes it impossible to return more detailed information in
case of a connection cannot be established. Further the
raise_for_port() method is a simple wrapper, without any
additional usage.

MozReview-Commit-ID: 2A4sCaEylgP

--HG--
extra : rebase_source : c589cd73332c73e3a7adafcf2ccfc8246013f4ca
2017-11-08 20:25:47 +01:00
Nicholas Nethercote
f4dd5e2636 Bug 1414096 (attempt 2) - Remove support for nsISupportsString values in nsPrefBranch::{get,set}ComplexValue(). r=florian.
Bug 1345294 introduced nsPrefBranch::{get,set}StringPref(), which allowed the
getting of utf8 strings from prefs, which previously required using
nsISupportsString with {get,set}ComplexValue. That bug also converted most
uses.

This patch finishes the job.

- It removes the nsISupportsString support.

- It converts existing code that relied on the nsISupportsString.

- It removes the lint that was set up to detect such uses of nsISupportsString.

--HG--
extra : rebase_source : b885ee784704819e181430200af5ef762e269d14
2017-11-10 09:07:48 +11:00
Narcis Beleuzu
57d9eb5fb1 Backed out 1 changesets (bug 1414096) for dt1 failures "devtools/client/commandline/test/browser_cmd_pref3.js" r=backout on a CLOSED TREE
Backed out changeset e843de356b7e (bug 1414096)
2017-11-08 18:04:01 +02:00
Nicholas Nethercote
8b3d03c666 Bug 1414096 - Remove support for nsISupportsString values in nsPrefBranch::{get,set}ComplexValue(). r=florian.
Bug 1345294 introduced nsPrefBranch::{get,set}StringPref(), which allowed the
getting of utf8 strings from prefs, which previously required using
nsISupportsString with {get,set}ComplexValue. That bug also converted most
uses.

This patch finishes the job.

- It removes the nsISupportsString support.

- It converts existing code that relied on the nsISupportsString.

- It removes the lint that was set up to detect such uses of nsISupportsString.

--HG--
extra : rebase_source : fb7af066adfa0491a79fae6282a62b08661553c8
2017-10-31 16:34:35 +11:00
Henrik Skupin
ee8b5842a8 Bug 1413852 - Improve failure message for socket connection attempts. r=automatedtester
Instead of a general socket timeout failure indicate that no hello
data has been received through the socket right after the call to
connect().

MozReview-Commit-ID: EPNiCLNyFFH

--HG--
extra : rebase_source : 05c45e99b3250f847a5c8120f23ecc9dd154212c
2017-11-02 12:03:03 +01:00
Henrik Skupin
4b8ddfe81b Bug 1413852 - TcpTransport.receive() doesn't obey current socket timeout. r=automatedtester
The getter for socket_timeout should always return the current socket
timeout from the socket instance first, and only fallback to the
private property if no socket instance exists.

This ensures that all methods will always operate on the current
socket timeout value.

Also using a timeout of 2s for receiving the hello string might be too
less for slow running builds. To prevent intermittent failures for
start_session, a good value might be 60s.

MozReview-Commit-ID: HywjFfClrRr

--HG--
extra : rebase_source : 4207e46c99445ddf7e0c4b653c865e76eb9a9c23
2017-11-02 11:33:23 +01:00