chore(sonoma): Revert fix for sonoma

This commit is contained in:
Vijay Budhram 2023-09-28 12:11:38 -04:00
Родитель 07460611e8
Коммит 79f775e28a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: EBAEC5D86596C9EE
3 изменённых файлов: 6 добавлений и 11 удалений

Просмотреть файл

@ -30,14 +30,7 @@ class AuthorizationView extends BaseView {
} else {
// if no action is specified, let oauth-index decide based on
// current user signed in state.
// this.replaceCurrentPage('/oauth/');
// This is an attempt to fix an issue in OSX Sonoma & Safari private mode with `Advanced Fringerprinting Protection` enabled.
// Previously oauth query params were lost after redirecting to `/oauth/` page.
const searchParams = new URLSearchParams(this.window.location.search);
this.navigateAway(
this.window.origin + '/oauth/?' + searchParams.toString()
);
this.replaceCurrentPage('/oauth/');
}
}

Просмотреть файл

@ -85,7 +85,10 @@ describe('views/authorization', function () {
it('handles default action', () => {
return view.render().then(() => {
assert.ok(view.navigateAway.calledOnce, 'called with proper action');
assert.ok(
view.replaceCurrentPage.calledOnce,
'called with proper action'
);
});
});

Просмотреть файл

@ -9,9 +9,8 @@ const config = require('./server/lib/configuration').getProperties();
const CopyPlugin = require('copy-webpack-plugin');
const ENV = config.env;
const WEBPACK_MODE_OVERRIDE = config.webpackModeOverride;
const webpackConfig = {
mode: WEBPACK_MODE_OVERRIDE || ENV,
mode: 'development', // TODO: Revert once debugging is done
context: path.resolve(__dirname, 'app/scripts'),
entry: {
app: './app.js',