mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Revert "feat: SDA-2315: add chrome flag for network in process"
This commit is contained in:
parent
10dc7d8fd3
commit
9c4adee1cf
@ -98,8 +98,8 @@ describe('chrome flags', () => {
|
|||||||
});
|
});
|
||||||
const spy = jest.spyOn(app.commandLine, 'appendSwitch');
|
const spy = jest.spyOn(app.commandLine, 'appendSwitch');
|
||||||
setChromeFlags();
|
setChromeFlags();
|
||||||
expect(spy).nthCalledWith(6, 'disable-renderer-backgrounding', 'true');
|
expect(spy).nthCalledWith(5, 'disable-renderer-backgrounding', 'true');
|
||||||
expect(spy).not.nthCalledWith(7);
|
expect(spy).not.nthCalledWith(6);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should set `disable-renderer-backgrounding` chrome flag correctly when cloud config PMP setting is ENABLED', () => {
|
it('should set `disable-renderer-backgrounding` chrome flag correctly when cloud config PMP setting is ENABLED', () => {
|
||||||
@ -110,8 +110,8 @@ describe('chrome flags', () => {
|
|||||||
});
|
});
|
||||||
const spy = jest.spyOn(app.commandLine, 'appendSwitch');
|
const spy = jest.spyOn(app.commandLine, 'appendSwitch');
|
||||||
setChromeFlags();
|
setChromeFlags();
|
||||||
expect(spy).nthCalledWith(9, 'disable-renderer-backgrounding', 'true');
|
expect(spy).nthCalledWith(8, 'disable-renderer-backgrounding', 'true');
|
||||||
expect(spy).not.nthCalledWith(10);
|
expect(spy).not.nthCalledWith(9);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should set `disable-renderer-backgrounding` chrome flag when any one is ENABLED ', () => {
|
it('should set `disable-renderer-backgrounding` chrome flag when any one is ENABLED ', () => {
|
||||||
@ -132,8 +132,8 @@ describe('chrome flags', () => {
|
|||||||
});
|
});
|
||||||
const spy = jest.spyOn(app.commandLine, 'appendSwitch');
|
const spy = jest.spyOn(app.commandLine, 'appendSwitch');
|
||||||
setChromeFlags();
|
setChromeFlags();
|
||||||
expect(spy).nthCalledWith(6, 'disable-renderer-backgrounding', 'true');
|
expect(spy).nthCalledWith(5, 'disable-renderer-backgrounding', 'true');
|
||||||
expect(spy).not.nthCalledWith(7);
|
expect(spy).not.nthCalledWith(6);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should set `disable-renderer-backgrounding` chrome flag when PMP is ENABLED', () => {
|
it('should set `disable-renderer-backgrounding` chrome flag when PMP is ENABLED', () => {
|
||||||
@ -154,8 +154,8 @@ describe('chrome flags', () => {
|
|||||||
});
|
});
|
||||||
const spy = jest.spyOn(app.commandLine, 'appendSwitch');
|
const spy = jest.spyOn(app.commandLine, 'appendSwitch');
|
||||||
setChromeFlags();
|
setChromeFlags();
|
||||||
expect(spy).nthCalledWith(6, 'disable-renderer-backgrounding', 'true');
|
expect(spy).nthCalledWith(5, 'disable-renderer-backgrounding', 'true');
|
||||||
expect(spy).not.nthCalledWith(7);
|
expect(spy).not.nthCalledWith(6);
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('`isDevEnv`', () => {
|
describe('`isDevEnv`', () => {
|
||||||
|
@ -26,7 +26,6 @@ export const setChromeFlags = () => {
|
|||||||
'disable-gpu': flagsConfig.disableGpu || null,
|
'disable-gpu': flagsConfig.disableGpu || null,
|
||||||
'disable-gpu-compositing': flagsConfig.disableGpu || null,
|
'disable-gpu-compositing': flagsConfig.disableGpu || null,
|
||||||
'enable-experimental-web-platform-features': 'true',
|
'enable-experimental-web-platform-features': 'true',
|
||||||
'enable-features': 'NetworkService,NetworkServiceInProcess',
|
|
||||||
};
|
};
|
||||||
if (flagsConfig.customFlags.disableThrottling === CloudConfigDataTypes.ENABLED || disableThrottling === CloudConfigDataTypes.ENABLED) {
|
if (flagsConfig.customFlags.disableThrottling === CloudConfigDataTypes.ENABLED || disableThrottling === CloudConfigDataTypes.ENABLED) {
|
||||||
configFlags['disable-renderer-backgrounding'] = 'true';
|
configFlags['disable-renderer-backgrounding'] = 'true';
|
||||||
|
Loading…
Reference in New Issue
Block a user