зеркало из https://github.com/mozilla/fxa.git
chore(sonoma): Revert fix for sonoma
This commit is contained in:
Родитель
07460611e8
Коммит
79f775e28a
|
@ -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',
|
||||
|
|
Загрузка…
Ссылка в новой задаче