|
@@ -264,6 +264,16 @@ ifdescribe(process.electronBinding('features').isExtensionsEnabled())('chrome ex
|
|
|
});
|
|
|
});
|
|
|
|
|
|
+ it('has session in background page', async () => {
|
|
|
+ const customSession = session.fromPartition(`persist:${require('uuid').v4()}`);
|
|
|
+ await customSession.loadExtension(path.join(fixtures, 'extensions', 'persistent-background-page'));
|
|
|
+ const w = new BrowserWindow({ show: false, webPreferences: { session: customSession } });
|
|
|
+ const promise = emittedOnce(app, 'web-contents-created');
|
|
|
+ await w.loadURL(`about:blank`);
|
|
|
+ const [, bgPageContents] = await promise;
|
|
|
+ expect(bgPageContents.session).to.not.equal(undefined);
|
|
|
+ });
|
|
|
+
|
|
|
describe('devtools extensions', () => {
|
|
|
let showPanelTimeoutId: any = null;
|
|
|
afterEach(() => {
|