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

8 Коммитов

Автор SHA1 Сообщение Дата
Dave Townsend ce00037e9a Bug 1555319: Normalize the case of the installation path to always get a consistent install hash. r=froydnj
The XRE_EXECUTABLE_FILE directory entry gives us the actual path that the binary
was launched with. On systems where the filesystem is case insensitive this
can be in any case, which ends up being a different install hash. This patch
ensures that we get the correct case for the install path before generating the
hash.

We have the problem of users who are already affected by this issue. This patch
also leaves the old hash available, if no default profile is found for the
correct hash then we also check for a profile for the old hash, if so we use it
for this hash going forwards. Testing this is kind of a pain, we have to add a
way to override the old hash that we will check against. I'm not totally happy with
how it is done here but not sure there is anything better.

This also adds a test that calling xpcshell with differing cases returns the
same install hash.

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

--HG--
extra : source : 1a595782402c95aa1f7b26e892e38a500ebb9a77
extra : amend_source : 749b03b93cd4687a83cd696a5cbedc9f2ebc69fc
extra : histedit_source : 459eae02e0e953d5108fd6d7609d9e640eeb695e%2C9fdaaec17723a5e1e7d277d08cd41d16da99437f
2019-06-12 10:48:09 -07:00
Csoregi Natalia 3b2ed723f5 Backed out 2 changesets (bug 1555319) for xpcshell failures on test_install_hash.js.
Backed out changeset aa7807c7e488 (bug 1555319)
Backed out changeset 1a595782402c (bug 1555319)
2019-06-26 23:09:47 +03:00
Dave Townsend 604b35687d Bug 1555319: Normalize the case of the installation path to always get a consistent install hash. r=froydnj
The XRE_EXECUTABLE_FILE directory entry gives us the actual path that the binary
was launched with. On systems where the filesystem is case insensitive this
can be in any case, which ends up being a different install hash. This patch
ensures that we get the correct case for the install path before generating the
hash.

We have the problem of users who are already affected by this issue. This patch
also leaves the old hash available, if no default profile is found for the
correct hash then we also check for a profile for the old hash, if so we use it
for this hash going forwards. Testing this is kind of a pain, we have to add a
way to override the old hash that we will check against. I'm not totally happy with
how it is done here but not sure there is anything better.

This also adds a test that calling xpcshell with differing cases returns the
same install hash.

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

--HG--
extra : rebase_source : 43277e55337f9198b0ec0e6ef8d03ece61c1c5a7
2019-06-12 10:48:09 -07:00
Dorel Luca 33af9598d8 Backed out changeset 7aef19c3fd3d (bug 1555319) for build bustage on OSX. CLOSED TREE 2019-06-24 21:46:37 +03:00
Dave Townsend 3a5af74d53 Bug 1555319: Normalize the case of the installation path to always get a consistent install hash. r=froydnj
The XRE_EXECUTABLE_FILE directory entry gives us the actual path that the binary
was launched with. On systems where the filesystem is case insensitive this
can be in any case, which ends up being a different install hash. This patch
ensures that we get the correct case for the install path before generating the
hash.

We have the problem of users who are already affected by this issue. This patch
also leaves the old hash available, if no default profile is found for the
correct hash then we also check for a profile for the old hash, if so we use it
for this hash going forwards. Testing this is kind of a pain, we have to add a
way to override the old hash that we will check against. I'm not totally happy with
how it is done here but not sure there is anything better.

This also adds a test that calling xpcshell with differing cases returns the
same install hash.

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

--HG--
extra : moz-landing-system : lando
2019-06-24 17:52:58 +00:00
Carl Corcoran 2e80270b6e Bug 1360493 write a test asserting that Firefox launches without hanging; r=rstrong
MozReview-Commit-ID: D0axTNp4KCt

--HG--
extra : rebase_source : b56359ba3797a62f51fbc421d404409f994df11f
2017-05-17 08:22:08 +02:00
Carsten "Tomcat" Book 318136aacc Backed out changeset 420cf7ba089f (bug 1360493) for eslint failure in own test 2017-05-18 09:13:05 +02:00
Carl Corcoran caa301de9b Bug 1360493 write a test asserting that Firefox launches without hanging; r=rstrong
MozReview-Commit-ID: D0axTNp4KCt

--HG--
extra : rebase_source : e3e785f5ea69a9ddb0c0369fe18ee0d59a3ab1ac
2017-05-17 08:22:08 +02:00