feat(firefox): support "referer" option in Page.goto (#4000)
This commit is contained in:
parent
fbf36438e8
commit
670d758dfe
@ -193,10 +193,12 @@ class Frame {
|
||||
const {
|
||||
timeout = this._timeoutSettings.navigationTimeout(),
|
||||
waitUntil = ['load'],
|
||||
referer,
|
||||
} = options;
|
||||
const normalizedWaitUntil = normalizeWaitUntil(waitUntil);
|
||||
const {navigationId} = await this._session.send('Page.navigate', {
|
||||
frameId: this._frameId,
|
||||
referer,
|
||||
url,
|
||||
});
|
||||
if (!navigationId)
|
||||
|
@ -9,7 +9,7 @@
|
||||
"node": ">=8.9.4"
|
||||
},
|
||||
"puppeteer": {
|
||||
"firefox_revision": "32fc518d9228fd0115c0a4fd4bd341780bdba2fc"
|
||||
"firefox_revision": "6186c850885f1fa486e9987b5119d2b4bcb53499"
|
||||
},
|
||||
"scripts": {
|
||||
"install": "node install.js",
|
||||
|
@ -310,7 +310,7 @@ module.exports.addTests = function({testRunner, expect, Errors, CHROME}) {
|
||||
}
|
||||
expect(error.message).toContain(url);
|
||||
});
|
||||
it_fails_ffox('should send referer', async({page, server}) => {
|
||||
it('should send referer', async({page, server}) => {
|
||||
const [request1, request2] = await Promise.all([
|
||||
server.waitForRequest('/grid.html'),
|
||||
server.waitForRequest('/digits/1.png'),
|
||||
|
Loading…
Reference in New Issue
Block a user