mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
36516a10a8
Changes to browser.search.search API: - Change the positional parameters to an object parameter. - Rename "engineName" to "engine", and make this an optional parameter. - Rename "searchTerms" to "query". Changes to browser.search.search implementation: - Simplify gBrowser getter. None of the "!gBrowser" conditionals are necessary, as demonstrated by the new options page+sidebar tests (which passed even after removing the `if (!gBrowser ...)` blocks). Use windowTracker.topWindow for consistency with our other code. Test changes: - Remove unneeded name / "TEST_ID" in tests - Use SEARCH_TERM constant in more places. - New test: Using API from options page. - New test: Using API from sidebar. - New test: Using API without explicit "engine" parameter. Differential Revision: https://phabricator.services.mozilla.com/D3417 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
child | ||
parent | ||
schemas | ||
test | ||
.eslintrc.js | ||
ext-browser.json | ||
extension-mac-panel.css | ||
extension-mac.css | ||
extension-win-panel.css | ||
extension.css | ||
extension.svg | ||
ExtensionControlledPopup.jsm | ||
ExtensionPopups.jsm | ||
extensions-browser.manifest | ||
jar.mn | ||
moz.build | ||
ParseBreakpadSymbols-worker.js | ||
ParseCppFiltSymbols-worker.js | ||
ParseNMSymbols-worker.js | ||
ParseSymbols.jsm |