1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-26 18:04:07 +01:00
L'estensione per Browser di Bitwarden funziona con Chrome, Firefox, Edge, Opera, Safari, Vivaldi, brave, Tor Browser. L'istanza bitwarden dei devol comprende tutte le funzioni premium di bitwarden https://vaultwarden.devol.it
Go to file
Patrick H. Lauke 7b12868c70
[PS-497] Change <content> to <main>, make it explicitly non-focusable (#2245)
* Make <content> element explicitly non-focusable

Some browsers (Firefox, upcoming versions of Chrome https://bugs.chromium.org/p/chromium/issues/detail?id=585413) make containers with `overflow: auto` / `overflow: scroll` (and the `-x` / `-y` variants) keyboard-focusable. This leads to a very awkward experience for assistive technology users navigating through the extension window, as for every view, the entire `<content>` container receives focus (and screen readers try to announce all its content in one go) before you reach the actual first control. To counteract this behaviour, this adds an explicit `tabindex="-1"` to these elements.

* Change `<content>` to `<main>`

More semantically accurate. See https://github.com/bitwarden/browser/pull/2245#issuecomment-1104553312

* Update scss to target `main` instead of `content`

* Change the previously existing `<main>` to generic `<div>`, tweak styles accordingly

Can't have two separate `<main>` elements, especially not nested ones. The original `<main>` was really just a handy wrapper for the component, but semantically should be neutral
2022-04-29 10:06:33 +10:00
.github Bumping pinned commit of the download-artifact action to bypass the broken GitHub api 2022-04-15 07:41:46 -07:00
.husky Make husky pre-commit script executable (#2316) 2022-02-08 08:35:49 +10:00
jslib@e40e7de808 [EC-157] [BEEEP] Remove factory providers in Angular DI (#2516) 2022-04-27 09:11:39 +10:00
src [PS-497] Change <content> to <main>, make it explicitly non-focusable (#2245) 2022-04-29 10:06:33 +10:00
store Update icons to match desktop (#2488) 2022-04-05 18:18:25 +02:00
.editorconfig Add Prettier configuration (#2237) 2021-12-21 15:15:19 +01:00
.eslintignore Add eslint (#2405) 2022-02-24 18:14:04 +01:00
.eslintrc.json Add eslint (#2405) 2022-02-24 18:14:04 +01:00
.git-blame-ignore-revs Add .git-blame-ignore-revs (#2240) 2021-12-21 16:44:00 +01:00
.gitattributes Apply Prettier (#2238) 2021-12-21 15:43:35 +01:00
.gitignore ignore dist-safari 2020-09-28 10:40:51 -04:00
.gitmodules convert to jslib submodule 2018-02-19 17:01:00 -05:00
.prettierignore Apply prettier for previously ignored file 2022-01-04 16:41:07 +01:00
.prettierrc.json Add Prettier configuration (#2237) 2021-12-21 15:15:19 +01:00
CONTRIBUTING.md Contribution Documentation edits 2022-04-15 06:20:05 -04:00
crowdin.yml Updating the Crowdin update process 2021-11-04 13:02:06 -07:00
gulpfile.js Revert "Update signing certificate" (#2495) 2022-04-07 22:12:41 +02:00
karma.conf.js Apply Prettier (#2238) 2021-12-21 15:43:35 +01:00
LICENSE.txt license 2016-10-10 18:36:38 -04:00
package-lock.json [PS-102] BEEEP: Tab-change performance improvements (#2447) 2022-04-11 12:00:07 +02:00
package.json Add eslint (#2405) 2022-02-24 18:14:04 +01:00
README.md Add reorganization notice (#2517) 2022-04-22 14:25:11 +02:00
SECURITY.md Revise language on SECURITY.md 2022-03-15 15:39:14 -04:00
tsconfig.json Apply Prettier (#2238) 2021-12-21 15:43:35 +01:00
webpack.config.js Define Angular CLI globals to support tree shaking (#2450) 2022-03-22 09:58:17 +01:00

Github Workflow build on master Crowdin Join the chat at https://gitter.im/bitwarden/Lobby

Repository Reorganization in Progress

We are currently migrating some projects over to a mono repository. For existing PR's we will be providing documentation on how to move/migrate them. To minimize the overhead we are actively reviewing open PRs. If possible please ensure any pending comments are resolved as soon as possible.

New pull requests created during this transition period may not get addressed —if needed, please create a new PR after the reorganization is complete.

Bitwarden Browser Extension

The Bitwarden browser extension is written using the Web Extension API and Angular.

Build/Run

Requirements

  • Node.js v16.13.1 or greater
  • NPM v8
  • Gulp (npm install --global gulp-cli)
  • Chrome (preferred), Opera, or Firefox browser

Run the app

npm install
npm run build:watch

You can now load the extension into your browser through the browser's extension tools page:

  • Chrome/Opera:
    1. Type chrome://extensions in your address bar to bring up the extensions page.
    2. Enable developer mode (toggle switch)
    3. Click the "Load unpacked extension" button, navigate to the build folder of your local extension instance, and click "Ok".
  • Firefox
    1. Type about:debugging in your address bar to bring up the add-ons page.
    2. Click the Load Temporary Add-on button, navigate to the build/manifest.json file, and "Open".

Desktop communication

Native Messaging (communication between the desktop application and browser extension) works by having the browser start a lightweight proxy baked into our desktop application.

Out of the box, the desktop application can only communicate with the production browser extension. When you enable browser integration in the desktop application, the application generates manifests which contain the production IDs of the browser extensions. To enable communication between the desktop application and development versions of browser extensions, add the development IDs to the allowed_extensions section of the corresponding manifests.

Manifests are located in the browser subdirectory of the Bitwarden configuration directory. For instance, on Windows the manifests are located at C:\Users\<user>\AppData\Roaming\Bitwarden\browsers and on macOS these are in Application Support for various browsers (for example). Note that disabling the desktop integration will delete the manifests, and the files will need to be updated again.

We're Hiring!

Interested in contributing in a big way? Consider joining our team! We're hiring for many positions. Please take a look at our Careers page to see what opportunities are currently open as well as what it's like to work at Bitwarden.

Contribute

Code contributions are welcome! Please commit any pull requests against the master branch. Learn more about how to contribute by reading the CONTRIBUTING.md file.

Security audits and feedback are welcome. Please open an issue or email us privately if the report is sensitive in nature. You can read our security policy in the SECURITY.md file.

Prettier

We recently migrated to using Prettier as code formatter. All previous branches will need to updated to avoid large merge conflicts using the following steps:

  1. Check out your local Branch
  2. Run git merge cebee8aa81b87cc26157e5bd0f879db254db9319
  3. Resolve any merge conflicts, commit.
  4. Run npm run prettier
  5. Commit
  6. Run git merge -Xours 8fe821b9a3f9728bcb02d607ca75add468d380c1
  7. Push

Git blame

We also recommend that you configure git to ignore the prettier revision using:

git config blame.ignoreRevsFile .git-blame-ignore-revs