Closed Bug 999518 Opened 10 years ago Closed 10 years ago

browser/base/content/test/general/browser_aboutAccounts.js attempts to connect to api.accounts.firefox.com

Categories

(Firefox :: Firefox Accounts, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 32
Tracking Status
firefox30 --- fixed
firefox31 --- fixed
firefox32 --- fixed
firefox-esr24 --- unaffected
b2g-v1.2 --- unaffected
b2g-v1.3 --- unaffected
b2g-v1.3T --- unaffected

People

(Reporter: froydnj, Assigned: markh)

References

Details

Attachments

(1 file)

With the patches from bug 995417:

09:47:44     INFO -  TEST-PASS | chrome://mochitests/content/browser/browser/base/content/test/general/browser_aboutAccounts.js | Check account log in
09:47:44     INFO -  TEST-PASS | chrome://mochitests/content/browser/browser/base/content/test/general/browser_aboutAccounts.js | Checking number of results received matches the number of tests that should have run
09:47:44     INFO -  1398185264767	Sync.BrowserIDManager	ERROR	Non-authentication error in _fetchTokenForUser: A different user signed in
09:47:44     INFO -  1398185264770	Sync.BrowserIDManager	ERROR	Background fetch for key bundle failed: Error: A different user signed in
09:47:44     INFO -  1398185264770	Sync.BrowserIDManager	ERROR	Could not authenticate: Error: A different user signed in
09:47:44     INFO -  TEST-INFO | chrome://mochitests/content/browser/browser/base/content/test/general/browser_aboutAccounts.js | Console message: 1398185264767	Sync.BrowserIDManager	ERROR	Non-authentication error in _fetchTokenForUser: A different user signed in
09:47:44     INFO -  TEST-INFO | chrome://mochitests/content/browser/browser/base/content/test/general/browser_aboutAccounts.js | Console message: 1398185264770	Sync.BrowserIDManager	ERROR	Background fetch for key bundle failed: Error: A different user signed in
09:47:44     INFO -  TEST-INFO | chrome://mochitests/content/browser/browser/base/content/test/general/browser_aboutAccounts.js | Console message: 1398185264770	Sync.BrowserIDManager	ERROR	Could not authenticate: Error: A different user signed in
09:47:44     INFO -  TEST-INFO | chrome://mochitests/content/browser/browser/base/content/test/general/browser_aboutAccounts.js | Test action=signin - no user logged in
09:47:44     INFO -  1398185264896	Sync.BrowserIDManager	ERROR	Could not authenticate: no user is logged in
09:47:44     INFO -  TEST-INFO | chrome://mochitests/content/browser/browser/base/content/test/general/browser_aboutAccounts.js | Console message: 1398185264896	Sync.BrowserIDManager	ERROR	Could not authenticate: no user is logged in
09:47:44     INFO -  BAD CONNECT: connecting to api.accounts.firefox.com 0
09:47:47     INFO -  TEST-INFO | Main app process: killed by SIGHUP
09:47:47  WARNING -  TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/browser/base/content/test/general/browser_aboutAccounts.js | application terminated with exit code 1

Our tests should not be connecting to external resources.
Mark, are you able to look at this bug and/or redirect it to someone who can?  This is one of the last bugs blocking bug 995417 and it'd be good to not disable our way to victory here.
Flags: needinfo?(mhammond)
We don't rely on the production FxA server, it's just that the code tries to hit it anyway :)  The easiest solution and one that should prevent it coming up in the future is to override the pref pointing at the server.

The test passes locally for me with this patch and best I can tell, that server is never hit.  A try is at https://tbpl.mozilla.org/?tree=Try&rev=377b8de8416e

Natahan if you are able to review this, please steal of from Ted - I've only nominated him as I'm too lazy to look and see who else qualifies :)
Assignee: nobody → mhammond
Status: NEW → ASSIGNED
Attachment #8419907 - Flags: review?(ted)
Flags: needinfo?(mhammond)
Comment on attachment 8419907 [details] [diff] [review]
0001-Bug-999518-don-t-hit-the-production-FxA-server-durin.patch

Review of attachment 8419907 [details] [diff] [review]:
-----------------------------------------------------------------

Works for me with external network access disabled locally.  Maybe this fixes bug 958026, too?
Attachment #8419907 - Flags: review?(ted) → review+
(In reply to Nathan Froyd (:froydnj) from comment #3)

> Works for me with external network access disabled locally.  Maybe this
> fixes bug 958026, too?

That would certainly be a bonus :)

https://hg.mozilla.org/integration/fx-team/rev/fc69e8ac0db2
https://hg.mozilla.org/mozilla-central/rev/fc69e8ac0db2
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
Product: Core → Firefox
Target Milestone: mozilla32 → Firefox 32
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: