Closed
Bug 1132521
Opened 9 years ago
Closed 9 years ago
Mozmill add-on tests are broken because installing via an unsecure connection is not allowed anymore
Categories
(Mozilla QA Graveyard :: Mozmill Tests, defect, P1)
Mozilla QA Graveyard
Mozmill Tests
Tracking
(firefox35 unaffected, firefox36 unaffected, firefox37 fixed, firefox38 fixed)
RESOLVED
FIXED
mozilla38
Tracking | Status | |
---|---|---|
firefox35 | --- | unaffected |
firefox36 | --- | unaffected |
firefox37 | --- | fixed |
firefox38 | --- | fixed |
People
(Reporter: whimboo, Assigned: whimboo)
References
Details
(Keywords: regression)
Attachments
(3 files, 2 obsolete files)
18.19 KB,
patch
|
chmanchester
:
review+
|
Details | Diff | Splinter Review |
1.98 KB,
patch
|
mihaelav
:
review+
|
Details | Diff | Splinter Review |
20.00 KB,
patch
|
chmanchester
:
review+
|
Details | Diff | Splinter Review |
Bug 1128126 changed the way when extensions can be installed. So by default only the HTTPS schema is allowed now in latest Nightly builds since Feb 11th. To allow our tests to install those add-ons for testing, we have to set "extensions.install.requireSecureOrigin" to false. This should be done for all the tests which make use of localhost. For tests against mozqa.com we should change them to HTTPS.
Comment 1•9 years ago
|
||
This patch should fix all the add-on tests.
Attachment #8563504 -
Flags: review?(mihaela.velimiroviciu)
Attachment #8563504 -
Flags: review?(hskupin)
Attachment #8563504 -
Flags: review?(andreea.matei)
Assignee | ||
Comment 2•9 years ago
|
||
It looks like the feature as implemented to secure the addon installation is not complete. There is one use case which let the user still install extensions via an unsafe connection. That is the reason why not all of our addon tests are affected! So we see the notification when clicking on an XPI link or using the install trigger method. But not when directly loading http://mozqa.com/data/firefox/addons/extensions/icons.xpi.
Assignee | ||
Comment 3•9 years ago
|
||
Comment on attachment 8563504 [details] [diff] [review] fix_addons_modal.patch Review of attachment 8563504 [details] [diff] [review]: ----------------------------------------------------------------- We have to fix all the tests. I have a patch nearly ready.
Attachment #8563504 -
Flags: review?(mihaela.velimiroviciu)
Attachment #8563504 -
Flags: review?(hskupin)
Attachment #8563504 -
Flags: review?(andreea.matei)
Attachment #8563504 -
Flags: review-
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•9 years ago
|
||
Attachment #8563504 -
Attachment is obsolete: true
Attachment #8563527 -
Flags: review?(cmanchester)
Assignee | ||
Comment 5•9 years ago
|
||
Comment on attachment 8563527 [details] [diff] [review] fix permissions for non HTTPS sources Review of attachment 8563527 [details] [diff] [review]: ----------------------------------------------------------------- So it looks like that we do not need the changes for tests which do directly load the URL. To be sure that this is not getting regressed I will revert my changes, or better we use the trigger all the time. I will come with an update later.
Attachment #8563527 -
Flags: review?(cmanchester)
Assignee | ||
Comment 6•9 years ago
|
||
So this fixes the problem by changing all install sources to use the XPI trigger and white-listing the URL beside allowing an installation via HTTP from localhost. A direct install is being tested in the remote addon install via FTP.
Attachment #8563527 -
Attachment is obsolete: true
Attachment #8563663 -
Flags: review?(cmanchester)
Comment 7•9 years ago
|
||
Comment on attachment 8563663 [details] [diff] [review] fix permissions for non HTTPS sources v2 Review of attachment 8563663 [details] [diff] [review]: ----------------------------------------------------------------- ::: firefox/tests/remote/testAddons/testInstallAddonFromFTP.js @@ +27,1 @@ > prefs.setPref(PREF_INSTALL_DIALOG, INSTALL_DIALOG_DELAY); Is this block necessary or incomplete? Changes to this test seem inconsistent with the others.
Attachment #8563663 -
Flags: review?(cmanchester) → review+
Assignee | ||
Comment 8•9 years ago
|
||
Comment on attachment 8563663 [details] [diff] [review] fix permissions for non HTTPS sources v2 Review of attachment 8563663 [details] [diff] [review]: ----------------------------------------------------------------- ::: firefox/tests/remote/testAddons/testInstallAddonFromFTP.js @@ +27,1 @@ > prefs.setPref(PREF_INSTALL_DIALOG, INSTALL_DIALOG_DELAY); This is a remote test and triggers the add-on installation by directly loading the XPI URL. In such a case there is no security check performed, and we also don't need a white-listing of the host.
Assignee | ||
Comment 9•9 years ago
|
||
https://hg.mozilla.org/qa/mozmill-tests/rev/cc4868faaff9
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox38:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 38
Comment 10•9 years ago
|
||
(In reply to Henrik Skupin (:whimboo) from comment #9) > https://hg.mozilla.org/qa/mozmill-tests/rev/cc4868faaff9 I think this patch misses the fix for "remote/restartTests/testAddons_RestartlessExtensionWorksAfterRestart/" test.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 11•9 years ago
|
||
This test(/restartTests/testAddons_RestartlessExtensionWorksAfterRestart/test1.js) is still failing.Here are the reports: http://mozmill-daily.blargon7.com/#/remote/failure?app=All&branch=All&platform=All&from=2015-02-13&to=2015-02-13&test=%2FrestartTests%2FtestAddons_RestartlessExtensionWorksAfterRestart%2Ftest1.js&func=testInstallRestartlessExtension
Comment 12•9 years ago
|
||
Also failed in the following tests: /testAddons/testInstallUninstallSoftBlocklistedExtension.js Reports: http://mozmill-daily.blargon7.com/#/functional/failure?app=Firefox&branch=All&platform=All&from=2015-02-13&to=&test=%2FtestAddons%2FtestInstallUninstallSoftBlocklistedExtension.js&func=testInstallBlocklistedExtension And : /testAddons/testUninstallExtension.js | testInstallExtensions Reports: http://mozmill-daily.blargon7.com/#/functional/failure?app=Firefox&branch=All&platform=All&from=2015-02-13&to=2015-02-13&test=%2FtestAddons%2FtestUninstallExtension.js&func=testInstallExtensions
Assignee | ||
Comment 13•9 years ago
|
||
(In reply to Daniela Domnici from comment #12) > Also failed in the following tests: > /testAddons/testInstallUninstallSoftBlocklistedExtension.js > > And : /testAddons/testUninstallExtension.js | testInstallExtensions Those seem to be unrelated. They have my fix included and I do not see anything wrong locally. They work like they should. Maybe that is due to bug 1132916.
Assignee | ||
Comment 14•9 years ago
|
||
Attachment #8564153 -
Flags: review?(mihaela.velimiroviciu)
Comment 15•9 years ago
|
||
Comment on attachment 8564153 [details] [diff] [review] follow-up v1 Review of attachment 8564153 [details] [diff] [review]: ----------------------------------------------------------------- Looks fine to me.
Attachment #8564153 -
Flags: review?(mihaela.velimiroviciu) → review+
Assignee | ||
Comment 16•9 years ago
|
||
Landed follow-up patch: https://hg.mozilla.org/qa/mozmill-tests/rev/e6e9d6e6d546 (default) We need a backport here for aurora because the change will be backported soon.
Status: REOPENED → ASSIGNED
status-firefox37:
--- → affected
Assignee | ||
Comment 17•9 years ago
|
||
This is a combined patch for the backport of the patch to the Aurora branch. It has to land once the patch on bug 1128126 has been backported, which will happen soon.
Attachment #8564184 -
Flags: review?(cmanchester)
Comment 18•9 years ago
|
||
Comment on attachment 8564184 [details] [diff] [review] backport (aurora) v1 Review of attachment 8564184 [details] [diff] [review]: ----------------------------------------------------------------- ::: firefox/tests/remote/restartTests/testAddons_RestartlessExtensionWorksAfterRestart/test1.js @@ +49,5 @@ > /** > * Test installing a restartless addon > */ > function testInstallRestartlessExtension() { > persisted.addon = ADDON; This file is the only difference between this patch and the one in comment 6. Is it that this test was removed for more recent versions of Firefox?
Attachment #8564184 -
Flags: review?(cmanchester) → review+
Assignee | ||
Comment 19•9 years ago
|
||
Comment on attachment 8564184 [details] [diff] [review] backport (aurora) v1 Review of attachment 8564184 [details] [diff] [review]: ----------------------------------------------------------------- ::: firefox/tests/remote/restartTests/testAddons_RestartlessExtensionWorksAfterRestart/test1.js @@ +49,5 @@ > /** > * Test installing a restartless addon > */ > function testInstallRestartlessExtension() { > persisted.addon = ADDON; Please see the follow-up patch I had to do today. There was one test hiding under remote/restartTests which I wasn't aware of that it is using the local httpd server.
Assignee | ||
Comment 20•9 years ago
|
||
I decided to already push this fix to aurora, given that it doesn't make any harm to us. The preference is simply not in use yet. Otherwise we could have expected lots of test failures the next days, until I'm back on Wednesday. https://hg.mozilla.org/qa/mozmill-tests/rev/9e3ce6ec1f1e (aurora) I will keep the bug open until it's clear if this patch will land on beta or not.
Assignee | ||
Comment 21•9 years ago
|
||
The underlying patch for Firefox will not land for the 36.0 release. So all done here.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago → 9 years ago
Resolution: --- → FIXED
Updated•5 years ago
|
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•