Commit Graph

315 Commits

Author SHA1 Message Date
Oscar Hinton ce2e6c3cb4
Remove empty catch blocks and remove allow-empty-catch tslint rule (#2136) 2021-10-21 11:10:46 +02:00
Daniel James Smith 6a02487778
Merge pull request #2134 from jesseliu612/master
solved a casing issue that may lead to build fail
2021-10-20 15:47:05 +02:00
Liu Junqi 75c0680968 solved a casing issue that may lead to build fail 2021-10-20 21:11:46 +08:00
Daniel James Smith d96b19b9fc
Merge branch 'master' of https://github.com/bitwarden/browser into reduce-binking-of-notificationBar 2021-10-19 18:55:47 +02:00
Daniel James Smith 3bb58baf45
Add types for addLogin and changePassword runtime messages 2021-10-19 12:10:31 +02:00
Daniel James Smith d4e91a81f9
Capitalize class name: LockedVaultPendingNotificationsItem 2021-10-19 11:20:55 +02:00
Daniel James Smith bed17673a8
Reduce blinking of notificationBar when other tabs update 2021-10-18 18:03:46 +02:00
Daniel James Smith 06e47dea17
Added types: Use chrome.tabs instead of any 2021-10-18 18:02:19 +02:00
Daniel James Smith 2299abe7a6
Make linter happy 2021-10-18 16:47:14 +02:00
Daniel James Smith 95e9387314
Remove logic out of notification content scripts 2021-10-18 16:42:32 +02:00
Daniel James Smith fd8de4ca0c
Use messages/events instead of main.unlockCompleted 2021-10-18 16:41:42 +02:00
Daniel James Smith 2699e0f5a0
Add types for common browser functions 2021-10-18 16:34:14 +02:00
Daniel James Smith 1bf7a7cad6
Perform null check on chrome.runtime 2021-10-18 16:31:59 +02:00
Daniel James Smith 4b49b1fcc0
Add type CipherView for AutoFill functionality 2021-10-18 16:10:13 +02:00
Daniel James Smith 92459c6098
Declare and use types for notificationQueue 2021-10-15 19:51:24 +02:00
Daniel James Smith d1977f1f08
Added type declarations where chrome.tabs.Tab applies 2021-10-15 19:42:05 +02:00
Daniel James Smith f951c860ea
Shorten variable name 2021-10-15 15:35:31 +02:00
Daniel James Smith 79f849fd92
Make linter happy 2021-10-15 15:32:56 +02:00
Daniel James Smith ca0fe76172
Move routing of actions after unlock into main.background
As we are unable to send a message from one background script to another, I moved the routing of the retryAction into main.background and call processMessages on the notificationBackground in unlockCompleted
2021-10-15 15:28:10 +02:00
Daniel James Smith 9c0bfd28db
Close login tab before executing existing unlock flow 2021-10-15 15:20:00 +02:00
Daniel James Smith 7388cd174e
Move notificationQueue from main into notification.background 2021-10-15 15:09:13 +02:00
Daniel James Smith 0eb7fe1407
Extract logic for notificationBar into new NotificationBackground class 2021-10-15 15:03:25 +02:00
Daniel James Smith 40ba8a5cde
Removed devepency on popupUtilsService as not needed for login via Tab 2021-10-14 19:05:02 +02:00
Daniel James Smith e9f46f2ac1
Capitalize class names 2021-10-13 22:08:02 +02:00
Daniel James Smith 7f98ce347d
Re-focus to last open tab before user was prompted for log in 2021-10-11 17:46:43 +02:00
Daniel James Smith b74efc1dbf
Set the expiry for credential notification to 5 instead of 30 minutes 2021-10-08 15:43:54 +02:00
Daniel James Smith 89344a7c36
Close loginTab after login was done by user 2021-10-08 15:28:44 +02:00
Daniel James Smith f56a9146be
Open prompt for login in tab instead of popout 2021-10-08 15:26:39 +02:00
Daniel James Smith 4fc968f682
Renamed command openPopout to promptForLogin 2021-10-08 15:23:37 +02:00
Daniel James Smith 79f097b3cd
Renamed command addToRetryQueue to addToLockedVaultPendingNotifications 2021-10-08 15:22:21 +02:00
Daniel James Smith 75c8c4205f
Move retryQueue from main to runtime and rename it to lockedVaultPendingNotifications 2021-10-08 13:23:05 +02:00
Daniel James Smith 2613a8cfea
Merge branch 'master' of https://github.com/bitwarden/browser into add-login-with-locked-vault 2021-10-08 12:45:35 +02:00
Thomas Rittson cffd4b3515
Fix Copy Custom Field Name on pages with iframes (#2091)
* Improve error messages

* Send getClickedElement msg to specific frameId

* Add support for finding input element from label

* Use i18n for error messages

* Fix unrelated linting
2021-10-07 09:52:33 +10:00
Thomas Rittson 6dfb06c5b0
Use theme enum and platformUtilsService helpers (#2089)
* Use theme enum and platformUtilsService helpers

* Update jslib
2021-10-05 06:30:31 +10:00
Daniel James Smith 418f37de8c
Remove console.log 2021-09-30 16:58:48 +02:00
Daniel James Smith 23517272fd
saveOrUpdateCredentials: If more than one matching fallback cipher is found, update atleast the first one of them, to ensure saving PW change 2021-09-30 16:56:04 +02:00
Daniel James Smith 83ef310400
Removed dead code from getDataForTab 2021-09-30 16:51:53 +02:00
Daniel James Smith 705c287e1a
Removed unneeded alert/info functionality from notificationBar 2021-09-30 16:50:17 +02:00
Daniel James Smith de0e9a4d94
Combined saving credentials and added fallback to update only password if only that changed 2021-09-30 16:48:06 +02:00
Daniel James Smith 838bfe9454
Wait for user to log in before trying to save credentials 2021-09-30 16:43:10 +02:00
Daniel James Smith 5c175e2201
Open login prompt as popout when vault is locked 2021-09-30 16:33:33 +02:00
Daniel James Smith 686c7fbfff
Pass vault state (locked/unlocked) to notificationBar 2021-09-30 16:09:42 +02:00
Daniel James Smith 210e0801ff
Open notificationBar (new and existing login) even though vault is locked 2021-09-30 16:03:14 +02:00
Daniel James Smith 889bbf8e2f
Removed checks for locked vault from collectPageDetails 2021-09-30 15:47:33 +02:00
Oscar Hinton a848406ce0
Use explicit import paths (#2074) 2021-09-17 15:44:27 +02:00
Oscar Hinton 2e6f0f4166
Vault Timeout Policy (#2048) 2021-09-14 13:36:34 +02:00
Dmitry Chepurovskiy cd2f174923
Select folder at save bar (#1409)
* Markup changes

* Render in notification bar folders list that is provided form TS code

* Implemented getting of folders list

* Refactor addPlatformEventListener and added default selection of "No Folder"

* Pass folder id info to saveAddLogin

* Modify saveAddLogin to use folder id

* Try to fix default folder selection

* Fix styling issues found during review

* Fix review issues found by kspearrin

* Fix default selection and null handling

* Fix import order

* Applied review suggestions

* Implement checking if folderExist during saving

* Fix compile issues

* Added select folder... option

* Add internalization for select folder message

* Hide select folder element on narrow screens

* Fix lint issues

* Review fixes in notification bar

* Adjust semi-responsive layout for folder selector

* Revert style change

Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
2021-09-03 11:54:52 +10:00
Thomas Rittson 0bd22dcddc
Add new context menu item: Copy Custom Field Name (#2045)
* Add "Copy custom field name" context menu item

* Title case context menu string

* Improve Copy Custom Field Name logic

* Move CopyClickedElement to runtime.background

* Update dependencies

* Add comments, refactor logic, add failure messages

* Fix typo and linting

* Fix typos

* Move null check inside function
2021-09-02 07:51:43 +10:00
Thomas Rittson 515c72abb0
Move policy checks within policyService (#2036)
* Refactor: use policyService.policyAppliesToUser

* Fix inverted condition

* Update jslib
2021-09-01 07:11:28 +10:00
Oscar Hinton 7cf4cfe3d1
Add support for helpers in environment service (#1967) 2021-07-23 22:32:42 +02:00