Fix browser extension failing e2e tests
Created by: erzhtor
Currently browser extension e2e are failin in bext/release branch.
This PR:
- Reverts https://github.com/sourcegraph/sourcegraph/pull/27144, because it didn't fix
- Fixes failing e2e tests
How to test
yarn run download-puppeteer-browser
EXTENSION_PERMISSIONS_ALL_URLS=true yarn --cwd client/browser build
SOURCEGRAPH_BASE_URL=https://sourcegraph.com PERCY_BROWSER_EXECUTABLE=node_modules/puppeteer/.local-chromium/linux-901812/chrome-linux/chrome yarn -s mocha ./src/end-to-end/(gitlab|github).test.ts