npm install
npm run build
- Desktop with cloud storage provider client such as Dropbox
about:debugging > [load temporary addon] > choose
dist/cloud-storage-addon.xpi`tools > Web Developer > Browser Console
- Open about:config and create boolean pref cloud.services.api.enabled with value true
- Open link e.g. https://www.mozilla.org/en-US/firefox/all/
- Click on any download link. If you see the prompt 'You have chosen to open' asking to choose between open and save file - select save file.
- If Cloud Storage API has never been initialized before first download initializes API and subsequent downloads shows door hangar prompt.
- Click on Download link shows door hangar prompt asking user to opt-in to cloud storage
- Result expected with different options selected in door hangar prompt
- Save to provider download folder - Save downloaded file to provider local download folder e.g. ~/Dropbox/Downloads
- Cancel - Save file to user default download folder e.g. ~/Downloads or user selected custom folder
- Save with always remember checked - Sets provider download folder as default download by updating pref browser.download.folderlist as 3 and any subsequent download will be saved to provider download folder. In about:preferences, under 'Downloads' user is shown an option 'Save to Provider Name'
- Cancel with always remember checked - Set provider as rejected in cloud.services.rejected.key pref and user will never be prompted again to use the provider. If a user has multiple provider on desktop , other providers will be used in door hangar prompt.
-
cloud.services.prompt.interval pref is set to 0 days by default, changing this pref sets the interval at which user should be prompted again.
-
Downloaded item will be marked with provider icon in Download history