Closed
Bug 563134
Opened 16 years ago
Closed 16 years ago
Can't set up Weave account with new Extension Manager
Categories
(Cloud Services :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
1.3b4
People
(Reporter: KWierso, Assigned: Mardak)
Details
Attachments
(1 file, 3 obsolete files)
|
1.44 KB,
patch
|
mconnor
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a5pre) Gecko/20100430 Minefield/3.7a5pre RTSE/1.2.0.20100406
Build Identifier:
When I try to log in to Weave with my Weave account, you can go through the entire wizard, and everything works fine until you get to the last screen.
The "Finish" button doesn't do anything when clicked. (The wizard stays open.)
You can close the wizard with the window's 'X' button in the titlebar. If you do this, you can manually start a sync, and it will look like it worked, but the next time you start Firefox, it will ask you to set up your Weave account again.
Looking in the error console, it was throwing some error about "Application.extensions" not being defined in chrome/content/preferences/fx-setup.js every time I clicked on that "Finish" button.
From what I saw, Weave uses the extension service to see if NoScript is installed/running, and does some stuff if it is.
But with the extension manager rewrite, it must have broken some stuff.
Reproducible: Always
Steps to Reproduce:
1. Update to a trunk build with the newly landed extension manager rewrite.
2. Install Weave
3. (Install NoScript?)
4. Click the "Set up Weave" button down in the statusbar.
5. In the wizard, fill out the information (I used a previous account. I don't know if it does the same problem if you create a new account.)
6. Get to the end of the wizard. Try to click the "Finish" button.
7. See that the "Finish" button doesn't work.
8. Restart Firefox. See that Weave wants you to set up your account again.
Actual Results:
Finish button doesn't work, and Weave doesn't seem to remember your account on restart. (Checking Weave's activity log, it also looks like some things don't get synced.)
Expected Results:
Wizard should exit successfully. Weave should remember your account details.
| Reporter | ||
Comment 1•16 years ago
|
||
These are the changes I made to get it working. Whether I got it working correctly (I'm not really sure what it does to NoScript, so I don't know if it does it), I don't know, but it does let me finish the set up wizard.
| Reporter | ||
Comment 2•16 years ago
|
||
This is what my changed version of fx-setup.js looks like.
| Assignee | ||
Updated•16 years ago
|
Flags: blocking-weave1.3+
Target Milestone: --- → 1.3b3
| Assignee | ||
Comment 3•16 years ago
|
||
Thanks for the patch. We'll need to still support Firefox 3.5 users, so we can't take the patch directly.
mconnor, maybe we should just check for the contract id instead of seeing if it's enabled by the add-on manager. It shouldn't be registering if the whole add-on is disabled.
Comment 4•16 years ago
|
||
Did FUEL break compat here? Using FUEL should prevent this from being an issue... what am I missing?
| Reporter | ||
Comment 5•16 years ago
|
||
(In reply to comment #4)
> Did FUEL break compat here? Using FUEL should prevent this from being an
> issue... what am I missing?
FUEL is changing a bit as well. http://www.oxymoronical.com/blog/2010/03/How-were-breaking-some-extensions-in-the-near-future
"Previously to get an add-ons version you might have done:
alert(Application.extensions.get("my-addon@foo.com").version);
Now you will have to do:
Application.getExtensions(function(extensions) {
alert(extensions.get("my-addon@foo.com").version);
});
"
Comment 6•16 years ago
|
||
(In reply to comment #4)
> Did FUEL break compat here? Using FUEL should prevent this from being an
> issue... what am I missing?
We ended up having to make an API breaking change to FUEL since we couldn't find any way to wrap the new add-on manager's asynchronous API with FUELs synchronous API without spinning an event loop, which people smarter than me say is a bad thing to do.
Updated•16 years ago
|
Target Milestone: 1.3b3 → 1.3b4
| Reporter | ||
Comment 7•16 years ago
|
||
This patch uses the FUEL API, instead of the AddonManager.
I haven't tested this patch, because I don't have time to start up a new profile to run the Weave setup.
Is "if(Application.extensions)" the correct way to check to see which version to use?
Attachment #442894 -
Attachment is obsolete: true
| Assignee | ||
Comment 8•16 years ago
|
||
This isn't quite an issue right now as the new extension manager has been backed out. But this should make things more robust without having to explicitly check for old or new extension managers.
Assignee: nobody → edilee
Attachment #442895 -
Attachment is obsolete: true
Attachment #443146 -
Attachment is obsolete: true
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #443170 -
Flags: review?(mconnor)
Updated•16 years ago
|
Attachment #443170 -
Flags: review?(mconnor) → review+
| Assignee | ||
Comment 9•16 years ago
|
||
http://hg.mozilla.org/labs/weave/rev/9b4f6ed25edf
Check for the NoScript contract id to determine if it's active instead of asking the extension manager.
Thanks for digging into this Wes!
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•