Commit Graph

173 Commits

Author SHA1 Message Date
renovate[bot] 52231dea6d
chore(deps): update dependency chromedriver to v89 (#288)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-09 21:41:44 +01:00
renovate[bot] df8f06d9e1
chore(deps): update dependency chai to v4.3.1 (#285)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-03 16:25:27 +01:00
renovate[bot] a03a7950f0
chore(deps): update dependency tape to v5.2.1 (#284)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-03 16:25:08 +01:00
renovate[bot] 6a073cec9e
chore(deps): update dependency eslint to v7.21.0 (#283)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-03 16:24:24 +01:00
renovate[bot] 3f48baf550
chore(deps): update dependency grunt-replace to v2 (#282)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-03 16:23:54 +01:00
renovate[bot] ed32155c32
chore(deps): update babel monorepo (#281)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-03 16:22:59 +01:00
renovate[bot] 29a674a8eb
chore(deps): update dependency tape to v5.2.0 (#280)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-22 14:12:07 +01:00
renovate[bot] f59e78abb7
chore(deps): update babel monorepo to v7.12.17 (#279)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-22 14:11:10 +01:00
Luca Greco 62f6848bee
chore: Removed unused async-wait-until dev dependency (#278) 2021-02-16 15:54:20 +01:00
renovate[bot] c47e4e8330
chore(deps): update dependency eslint to v7.20.0 (#275)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-15 15:12:16 +01:00
renovate[bot] 413622f275
chore(deps): update babel monorepo to v7.12.16 (#274)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-12 12:59:21 +01:00
renovate[bot] 4758095e29
chore(deps): update dependency mocha to v8.3.0 (#273)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-12 12:58:57 +01:00
renovate[bot] 19a753c01c
chore(deps): update dependency tape to v5 (#272)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-05 11:46:43 +01:00
renovate[bot] f4c7c831db
chore(deps): update dependency nyc to v15 (#270)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-05 11:45:50 +01:00
renovate[bot] c7a431ad39
chore(deps): update dependency sinon to v9 (#271)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-05 11:41:44 +01:00
renovate[bot] 390d7c8d51
chore(deps): update dependency mocha to v8 (#269)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-04 21:06:46 +01:00
renovate[bot] 8caec99e2e
chore(deps): update dependency istanbul-lib-instrument to v4 (#267)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-04 21:05:45 +01:00
renovate[bot] 0ae61e6b45
chore(deps): update dependency chai to v4.3.0 (#266)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-04 21:04:37 +01:00
renovate[bot] f80bed949f
chore(deps): update dependency eslint to v7 (#265)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-04 21:04:16 +01:00
renovate[bot] d0b0a5c999
chore(deps): update dependency cross-env to v7 (#264)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-04 20:59:46 +01:00
renovate[bot] 8f33cd0b01
chore(deps): update dependency chromedriver to v88 (#263)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-04 20:58:42 +01:00
renovate[bot] 78bc8e1bbd
chore(deps): update dependency browserify to v17 (#262)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-04 20:56:39 +01:00
renovate[bot] a79e31dc40
chore(deps): update dependency tmp to v0.2.1 (#261)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-03 20:07:33 +01:00
renovate[bot] 85ec16a437
chore(deps): pin dependencies (#260)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-03 18:57:40 +01:00
renovate[bot] 24bab250d2
chore: Add renovate.json (#259)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-03 18:33:31 +01:00
Luca Greco 614a1f3f36
chore(ci): Migrate CI jobs to circleci (#256) 2021-01-21 13:20:11 +01:00
Doug Parker 716c90bca4 fix: wrap `onRequestFinished` to use promises
Fixes #249.

This updates `browser.devtools.network.onRequestFinished` to emit an
object with a promisified `getContent()` property. This brings the
polyfill implementation in line with Firefox's implementation, although
MDN documentation is still inaccurate at the moment.

Also updates some out of date documentation with `makeCallback()` and
`wrapAsyncFunction()`.
2020-12-10 23:08:57 +01:00
Rob Wu 3ba72c96a9 fix(test): fix expectation of tabs-sendmessage in Firefox (#251)
Upstream regression got fixed @ https://bugzilla.mozilla.org/show_bug.cgi?id=1665568
2020-12-10 15:35:29 +01:00
Rob Wu 85c5dfb84a chore(deps): Updated chromedriver to version 87.0.2 2020-12-08 15:34:43 +01:00
Luca Greco 93203c6995 chore: bump version for release 0.7.0 2020-11-10 21:14:55 +01:00
Akhil Panchal a0cd3fde15
feat: Added devtools.panels.elements.createSidebarPane to metadata (#247) 2020-10-29 15:19:10 +01:00
infokiller 55503f4c93
feat: Add chrome.goBack and chrome.goForward (#244)
Fixes #243

APIs added in Chrome 72:
- https://developer.chrome.com/extensions/tabs#method-goBack
- https://developer.chrome.com/extensions/tabs#method-goForward
2020-10-29 15:18:33 +01:00
Rob Wu 8c7be46873 fix: replace --output option of webpack
Currently the build/test fails with the following output:

```
Test webextension-polyfill bundled with webpack
===============================================
[webpack-cli] Unknown argument: --output
[webpack-cli] Unknown argument: /tmp/webpack-bundle.js
? Which flags do you want to use? …
✔ --entry: The entry point(s) of your application e.g. ./src/main.js
✔ --config: Provide path to a webpack configuration file e.g. ./webpack.config.js
✔ --color: Enable/Disable colors on console
✔ --merge: Merge two or more configurations using webpack-merge e.g. -c ./webpack.config.js -c ./webpack.test.config.js --merge
✔ --progress: Print compilation progress during build
✔ --help: Outputs list of supported flags
✔ --output-path: Output location of the file generated by webpack e.g. ./dist/
```

Regressed by:
https://github.com/webpack/webpack-cli/pull/1855
2f36b9d858

`--output` has been renamed to `--output-path` (`-o` in both cases), but
stopped supporting file names.  To output to a specific absolute path,
`--output-path` and `--output-filename` must both be specified, with the
directory in the former and the filename in the latter.
2020-10-15 15:19:16 +02:00
Timofey Kuznetsov 01fb67f047
docs(README): Updated code in "Usage with webpack without bundling" section (#240) 2020-10-05 12:19:29 +02:00
Lusito b0596ad616 docs: Add TypeScript Usage Hints 2020-09-17 14:24:45 +02:00
Rob Wu d6a789bf54 fix(test): fix expectation of tabs-sendmessage-expectation in Firefox
Work-around for upstream regression @ https://bugzilla.mozilla.org/show_bug.cgi?id=1665568
2020-09-17 13:19:55 +02:00
Rob Wu 5f13763d5e chore(deps): Updated chromedriver to version 85.0.1 2020-09-17 13:19:55 +02:00
Rob Wu 3f4f0b9ef5 fix(travis): Run tests with Node 10 instead of 8 (#238)
CI is currently failing because package.json refers chromedriver
^80.0.1, which also matches 80.0.2.

In 80.0.2, chromedriver updated the `extract-zip` dependency:
16151de4c7

extract-zip 2.0.0 has dropped support for Node <10, e.g. by using APIs
that were introduced in Node 10:
https://github.com/maxogden/extract-zip/blob/v2.0.0/index.js#L11

which triggers the following error when run on earlier versions of Node:

```
> chromedriver@80.0.2 install /home/travis/build/mozilla/webextension-polyfill/node_modules/chromedriver
> node install.js

internal/util.js:214
    throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'original', 'function');
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "original" argument must be of type function
    at promisify (internal/util.js:214:11)
    at Object.<anonymous> (/home/travis/build/mozilla/webextension-polyfill/node_modules/extract-zip/index.js:11:18)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/travis/build/mozilla/webextension-polyfill/node_modules/chromedriver/install.js:14:20)
```

This commit fixes the issue by running tests with Node 10.
Node 8 had become end-of-life on 2019-12-31 anyway.
2020-09-17 13:19:35 +02:00
Luca Greco faa22a4df1
doc: Updated README.md notes related to MSEdge (#222) 2020-03-03 15:12:39 +01:00
Rob Wu 2a4c9a8c79
chore: Remove IRC notification from Travis (#220)
We moved from IRC to Matrix.

... but the project is stable with little new development so we can as
well remove the notifications.
2020-02-19 23:49:46 +01:00
Rob Wu b22e05870d
chore(deps): Updated chromedriver to version 80.0.1 (#221) 2020-02-19 23:48:46 +01:00
Luca Greco c77e9fb89d chore: bump version for release 0.6.0 2019-12-23 13:26:35 +01:00
Luca Greco 5c8a743cb2
doc: Add section related to basic setup with ES6 module loader (#216) 2019-12-23 13:09:26 +01:00
Luca Greco f85b5d8e5b
fix: Update babel deps to babel 7 (#214)
* fix: Update babel deps to babel 7
* chore: Replaced @babel/transfor-umd-modules with a small custom babel transformer script
* test: Added minimal integration test as smoke test for importing polyfill as es6 module
2019-12-12 19:00:46 +01:00
Luca Greco 2005a2ca22 chore: Updated sinon to version 7.5.0 2019-11-27 13:38:52 +01:00
Luca Greco 5f1fbcc72c chore: Updated grunt-coveralls to version 2.0.0 2019-11-27 13:38:52 +01:00
Luca Greco 94a4f73371 chore: Updated gruntify-eslint to version 5.0.0 2019-11-27 13:38:52 +01:00
Luca Greco 99dc57cda0 chore: Updated mocha to version 4.2.0 2019-11-27 13:38:52 +01:00
Luca Greco d44187c2e9 chore: Updated chai to version 4.2.0 2019-11-27 13:38:52 +01:00
Luca Greco 57af39d0c5 chore: Updated babel-eslint to version 10.0.3 2019-11-27 13:38:52 +01:00