-
Notifications
You must be signed in to change notification settings - Fork 375
Comparing changes
Open a pull request
base repository: mozilla/web-ext
base: 8.7.1
head repository: mozilla/web-ext
compare: 8.8.0
- 18 commits
- 11 files changed
- 3 contributors
Commits on May 26, 2025
-
chore(deps-dev): bump mocha from 11.4.0 to 11.5.0 (#3427)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 45e6953 - Browse repository at this point
Copy the full SHA 45e6953View commit details
Commits on May 28, 2025
-
chore(deps): bump @babel/runtime from 7.27.1 to 7.27.3 (#3432)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for fee5b60 - Browse repository at this point
Copy the full SHA fee5b60View commit details -
chore(deps-dev): bump @babel/core from 7.27.1 to 7.27.3 (#3431)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for f3a7fc3 - Browse repository at this point
Copy the full SHA f3a7fc3View commit details
Commits on Jun 3, 2025
-
chore(deps-dev): bump pretty-quick from 4.1.1 to 4.2.2 (#3440)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 43b35b4 - Browse repository at this point
Copy the full SHA 43b35b4View commit details -
chore(deps-dev): bump @babel/core from 7.27.3 to 7.27.4 (#3438)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 53caa23 - Browse repository at this point
Copy the full SHA 53caa23View commit details -
chore(deps): bump @babel/runtime from 7.27.3 to 7.27.4 (#3437)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for fd55567 - Browse repository at this point
Copy the full SHA fd55567View commit details
Commits on Jun 19, 2025
-
chore: remove unsupported enableExtensions flag to chrome-launcher
enableExtensions was dropped in [email protected] GoogleChrome/chrome-launcher@a860504
Configuration menu - View commit details
-
Copy full SHA for 88dbb43 - Browse repository at this point
Copy the full SHA 88dbb43View commit details -
test(functional): Add real test for 'web-ext run -t chromium'
The existing unit tests for web-ext run -t chromium are at tests/unit/test-extension-runners/test.chromium.js but are testing implementation details without verifying that Chrome is actually going to launch the extension. Before refactoring the implementation as needed to support Chrome 137+ and later, this introduces a unit test that verifies the behavior against the real Chrome (skipped by default), and a fake Chrome binary that behaves like the real Chrome binary where relevant. This will help us with catching regressions in the implementation and/or downstream dependencies (chrome-launcher). These Chrome behavior has been verified across Chrome 69, 70, 75, 77, 88, 100, 122, 125, 126, 134, 139. The auto-reload case of the "real Chrome" test in Chrome 134 requires manual intervention in the form of visiting chrome://extensions/, enabling 'Developer Mode' and then manually reloading the extension, for the following reasons: - The bundled "web-ext Reload Manager Extension" uses Manifest Version 2, which is disabled by default in recent Chrome. - When 'Developer Mode' is off (by default), an attempt to reload extensions that were loaded with --load-extension causes the extension to be disabled. These two issues will be resolved once we switch to the new CDP-based method of loading Chrome extensions.
Configuration menu - View commit details
-
Copy full SHA for dbe56dc - Browse repository at this point
Copy the full SHA dbe56dcView commit details -
chore: Remove WebSocket-based reloading from chromium runner
The new CDP-based chrome extension loader does not need WebSockets to manage extension reloading logic. This patch removes all traces of WebSocket based extension reloading from web-ext, including unit tests that tested WebSocket-specific logic. The following commits will restore this functionality using CDP.
Configuration menu - View commit details
-
Copy full SHA for 085481f - Browse repository at this point
Copy the full SHA 085481fView commit details -
feat: auto-reload support for Chrome using CDP
This is a re-implementation of auto-reload support in Chrome, by opening chrome://extensions/ and using a private API. It has been confirmed to work with Chrome 69 until 139. The functional unit tests only work in Chrome 75 until 133: - Chrome 74 and earlier do not support MV3 background service_worker, and the test extension uses it. Rewriting the extension to the MV2 variant causes it to pass in Chrome 69. - Chrome 134 disables unpacked extensions upon reload when Developer Mode is disabled: https://issues.chromium.org/issues/362756477 The next commit will introduce a more reliable mechanism of reloading extensions, using the same mechanism as loading the extension, which works in Chrome 126+. Tested as follows for various relevant versions of Chromium: CHROME_PATH=/path/to/chrome75/chromium TEST_LOG_VERBOSE=1 TEST_WEBEXT_USE_REAL_CHROME=1 ./node_modules/.bin/mocha tests/functional/test.cli.run-target-chromium.js --grep='with auto-reload run real' Unit tests with fake Chrome binary that simulates the real binary: ./node_modules/.bin/mocha tests/functional/test.cli.run-target-chromium.js --grep=auto-reload Pre-existing unit test that tested web-ext internals: ./node_modules/.bin/mocha tests/unit/test-extension-runners/test.chromium.js
Configuration menu - View commit details
-
Copy full SHA for ba0537f - Browse repository at this point
Copy the full SHA ba0537fView commit details -
feat: Support loading extensions in Chrome 137+
This finalizes the work needed to get `web-ext run -t chromium` working again in Chrome 137+, following the deprecation of the previously used `--load-extension` flag as announced at https://groups.google.com/a/chromium.org/g/chromium-extensions/c/aEHdhDZ-V0E/m/UWP4-k32AgAJ This patch uses the `Extensions.loadUnpacked` CDP command to achieve this, and falls back to `--load-extension` when it detects the lack of support for the `Extensions.loadUnpacked` CDP command. This has been verified with Chrome 69+ (released 7 years ago). The function unit tests work with Chrome 75+ due to MV3, as explained in an earlier commit message. Functional verification (tested Chrome 69, 125, 126, 131, 138, 139): CHROME_PATH=/path/to/chrome69/chromium TEST_WEBEXT_USE_REAL_CHROME=1 ./node_modules/.bin/mocha tests/functional/test.cli.run-target-chromium.js Unit tests (internals): ./node_modules/.bin/mocha tests/unit/test-extension-runners/test.chromium.js
Configuration menu - View commit details
-
Copy full SHA for 478115f - Browse repository at this point
Copy the full SHA 478115fView commit details -
test(functional): Add test for auto-reload after failed load
When auto-reload is enabled, and the developer accidentally breaks the extension, then web-ext will try to reload the extension, which causes it to be disabled in the browser. In the case of Chrome, the new CDP-based method can successfully reload the extension (Chrome 126+). The fallback for older Chrome does not work. This patch adds test coverage for that scenario, and updates the fake-chrome-binary to accurately simulate that scenario. Tested with real Chrome 75, 131, 138, 139. CHROME_PATH=/path/to/chrome75/chromium TEST_WEBEXT_USE_REAL_CHROME=1 ./node_modules/.bin/mocha tests/functional/test.cli.run-target-chromium.js
Configuration menu - View commit details
-
Copy full SHA for b5e0e25 - Browse repository at this point
Copy the full SHA b5e0e25View commit details -
chore(deps): bump @babel/runtime from 7.27.4 to 7.27.6 (#3444)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for e39bb4e - Browse repository at this point
Copy the full SHA e39bb4eView commit details -
chore(deps-dev): bump @babel/eslint-parser from 7.27.1 to 7.27.5 (#3442)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for fa87e95 - Browse repository at this point
Copy the full SHA fa87e95View commit details -
Configuration menu - View commit details
-
Copy full SHA for add869f - Browse repository at this point
Copy the full SHA add869fView commit details -
chore(deps): bump addons-linter from 7.13.0 to 7.15.0 (#3448)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for da267d7 - Browse repository at this point
Copy the full SHA da267d7View commit details -
chore(deps-dev): bump mocha from 11.5.0 to 11.7.0 (#3449)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 7f18c86 - Browse repository at this point
Copy the full SHA 7f18c86View commit details -
Configuration menu - View commit details
-
Copy full SHA for 20bfd9d - Browse repository at this point
Copy the full SHA 20bfd9dView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 8.7.1...8.8.0