Skip to content

Commit

Permalink
feat(firefox): support "referer" option in Page.goto (#4000)
Browse files Browse the repository at this point in the history
  • Loading branch information
aslushnikov committed Feb 13, 2019
1 parent fbf3643 commit 670d758
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions experimental/puppeteer-firefox/lib/FrameManager.js
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion experimental/puppeteer-firefox/package.json
Expand Up @@ -9,7 +9,7 @@
"node": ">=8.9.4"
},
"puppeteer": {
"firefox_revision": "32fc518d9228fd0115c0a4fd4bd341780bdba2fc"
"firefox_revision": "6186c850885f1fa486e9987b5119d2b4bcb53499"
},
"scripts": {
"install": "node install.js",
Expand Down
2 changes: 1 addition & 1 deletion test/navigation.spec.js
Expand Up @@ -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'),
Expand Down

0 comments on commit 670d758

Please sign in to comment.