Files
cypress/packages/extension
Zach Bloomquist b86f1eac19 Add SameSite cookie support in network layer (#6778)
* add experimental feature for sameSite

* allow experimental descriptions to render markdown

* sameSite support mostly working

* also strip sameSite from setCookie yielded value

* don't use `unspecified` - let browser set default

* add tests

* decaffeinate: Rename cdp_automation_spec.coffee from .coffee to .js

* decaffeinate: Convert cdp_automation_spec.coffee to JS

* decaffeinate: Run post-processing cleanups on cdp_automation_spec.coffee

* cleanup cdp_automation_spec.ts

* update unit tests

* update settings_spec to not render as markdown

* user-friendly error for insecure SameSite=None

* fix styling

* fix markdown renderer

* wip: reproduce samesite conditions in e2e test

* use tough-cookie@4.0.0 from git

not on NPM yet, see issue: https://github.com/salesforce/tough-cookie/issues/182

* add more samesite proxy tests

* update types + schema

* run 2_cookies_spec also with forced samesite

* use undefined not no_restriction

* properly detect unspecified SameSite attribute

* update snapshot

* don't send sameSite on getAll calls

* don't omit null/undefined props in automation

* update comment

* clean up SetCookieRequest logic

* fix tests

* fix unit test

* update yarn.lock

* rebalance e2e tests
2020-03-30 11:59:33 -04:00
..
2020-02-06 10:52:13 -05:00
2020-02-06 10:52:13 -05:00
2017-04-21 10:34:19 -04:00
2020-02-11 12:40:07 +06:30

Extension

This is the WebExtension responsible for automating the browser

Developing

Watching

yarn lerna run watch --scope @packages/extension --stream

Building

yarn lerna run build --scope @packages/extension --stream

Testing

yarn lerna run test --scope @packages/extension --stream
yarn lerna run test-watch --scope @packages/extension --stream
yarn lerna run test-debug --scope @packages/extension --stream

Debugging

In Chrome

  1. Open Chrome
  2. Go into Extensions
  3. Check Developer Mode
  4. Click Load unpacked extension...
  5. Choose packages/extension/dist directory
  6. Click background page to debug background.js
  7. Click Reload (⌘R) to pull in changes to manifest.json

In Firefox

To be written...