Skip to content

Commit

Permalink
feat: roll Firefox to r1271 (microsoft#7067)
Browse files Browse the repository at this point in the history
References microsoft#7015
  • Loading branch information
aslushnikov committed Jun 11, 2021
1 parent c903b04 commit d6831df
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions browsers.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
},
{
"name": "firefox",
"revision": "1269",
"revision": "1271",
"installByDefault": true
},
{
"name": "firefox-beta",
"revision": "1261",
"revision": "1263",
"installByDefault": false
},
{
Expand Down
8 changes: 8 additions & 0 deletions src/server/firefox/protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,11 @@ export module Protocol {
reducedMotion: ("reduce"|"no-preference")|null;
};
export type setReducedMotionReturnValue = void;
export type setForcedColorsParameters = {
browserContextId?: string;
forcedColors: ("active"|"none")|null;
};
export type setForcedColorsReturnValue = void;
export type setVideoRecordingOptionsParameters = {
browserContextId?: string;
dir: string;
Expand Down Expand Up @@ -486,6 +491,7 @@ export module Protocol {
type?: ("screen"|"print"|"");
colorScheme?: ("dark"|"light"|"no-preference");
reducedMotion?: ("reduce"|"no-preference");
forcedColors?: ("active"|"none");
};
export type setEmulatedMediaReturnValue = void;
export type setCacheDisabledParameters = {
Expand Down Expand Up @@ -1066,6 +1072,7 @@ export module Protocol {
"Browser.setOnlineOverride": Browser.setOnlineOverrideParameters;
"Browser.setColorScheme": Browser.setColorSchemeParameters;
"Browser.setReducedMotion": Browser.setReducedMotionParameters;
"Browser.setForcedColors": Browser.setForcedColorsParameters;
"Browser.setVideoRecordingOptions": Browser.setVideoRecordingOptionsParameters;
"Page.close": Page.closeParameters;
"Page.setFileInputFiles": Page.setFileInputFilesParameters;
Expand Down Expand Up @@ -1141,6 +1148,7 @@ export module Protocol {
"Browser.setOnlineOverride": Browser.setOnlineOverrideReturnValue;
"Browser.setColorScheme": Browser.setColorSchemeReturnValue;
"Browser.setReducedMotion": Browser.setReducedMotionReturnValue;
"Browser.setForcedColors": Browser.setForcedColorsReturnValue;
"Browser.setVideoRecordingOptions": Browser.setVideoRecordingOptionsReturnValue;
"Page.close": Page.closeReturnValue;
"Page.setFileInputFiles": Page.setFileInputFilesReturnValue;
Expand Down
1 change: 0 additions & 1 deletion tests/page/page-evaluate.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,6 @@ it('should not use Array.prototype.toJSON when evaluating', async ({ page }) =>
});

it('should not add a toJSON property to newly created Arrays after evaluation', async ({ page, browserName }) => {
it.fixme(browserName === 'firefox')
await page.evaluate(() => []);
const hasToJSONProperty = await page.evaluate(() => "toJSON" in []);
expect(hasToJSONProperty).toEqual(false);
Expand Down

0 comments on commit d6831df

Please sign in to comment.