Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Adding node modules for extension installation. #3156

Merged
merged 46 commits into from
Mar 19, 2013
Merged

Conversation

njx
Copy link
Contributor

@njx njx commented Mar 18, 2013

(Doing this separately from the other extension installation changes so we don't
overwhelm the diff view on github.)

njx and others added 30 commits March 18, 2013 16:36
(Doing this separately from the other extension installation changes so we don't
overwhelm the diff view on github.)
…ate, but if you can access the class show() should be public). Also, remove the installer param to _showDialog() since it's never used.
installed (installing into disabled in those cases)
legally, and the test that follows the deleted one catches validation
issues in general)
the installation and mocks the extension loading to verify
that the extension *would* load.

disabled the test because it can only run once and will
fail on the second run because there's no way to delete the
target directory
dangoor and others added 15 commits March 18, 2013 16:44
…ng Ok

in dialog triggers download, but we don't yet do the validation afterward.
No cancelation yet, and errors aren't exposed in UI anywhere.

Includes a few cleanups to improve Node connection error cases.
…kage

'backend' layer with state tracked more rigorously. Centralize wrap-up
code that runs when a download is over (for whatever reason).
- if you're fast enough to click cancel when it's doing something other
  than downloading, it won't work right
- there's a race condition where sometimes we try to start install/validate
  before the downloaded file is fully saved to disk
- downloaded ZIP file isn't deleted after installation

Also fixes a few glitches in the validate/install code and a few formatting
issues that fell out of my last rebase.
…ix bug

where canceling download switched to error UI state instead of cancelation
state.
readStream, changing to synchronous exists to avoid possible
race, handling edge case where there might appear to be a commonPrefix
in a zip package but there actually isn't.
…h to

disk fully before beginning to process it.
* Delete temp downloaded file once it's done being processed.
* Small improvements to error result handlng.
* Use periods consistently in error message strings & group them with other
extension UI strings.
just a string, since that is an exceptional condition
…cts,

unlike our simple usage of the default Node APIs. Eliminate download-size
limit since it seems unimportant & makes the code a bunch more verbose.
* Fix bug where we didn't actually clean up downloaded ZIP when done with it.
@dangoor
Copy link
Contributor

dangoor commented Mar 19, 2013

cc'ing myself

Validate and install extensions (final)
njx added a commit that referenced this pull request Mar 19, 2013
Adding node modules for extension installation.
@njx njx merged commit a4bacd3 into master Mar 19, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants