feat(firefox): roll Firefox to 1417 (#24069)

Fixes https://github.com/microsoft/playwright/issues/23280
This commit is contained in:
Andrey Lushnikov 2023-07-06 12:18:02 -07:00 committed by GitHub
parent 0409bfca56
commit 11dce8d127
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 2 deletions

View File

@ -21,13 +21,13 @@
}, },
{ {
"name": "firefox", "name": "firefox",
"revision": "1415", "revision": "1417",
"installByDefault": true, "installByDefault": true,
"browserVersion": "114.0.2" "browserVersion": "114.0.2"
}, },
{ {
"name": "firefox-beta", "name": "firefox-beta",
"revision": "1416", "revision": "1418",
"installByDefault": false, "installByDefault": false,
"browserVersion": "115.0b8" "browserVersion": "115.0b8"
}, },

View File

@ -976,6 +976,36 @@ it('should click in a transformed iframe', async ({ page }) => {
expect(await page.evaluate('window._clicked')).toBe(true); expect(await page.evaluate('window._clicked')).toBe(true);
}); });
it('should click a button that is overlayed by a permission popup', async ({ page, server }) => {
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23280' });
await page.setViewportSize({ width: 500, height: 500 });
await page.goto(server.EMPTY_PAGE);
await page.setContent(`
<style>body, html { padding: 0; margin: 0; }</style>
<script type='text/javascript'>
window.addEventListener('DOMContentLoaded', () => {
// Viewport filled with buttons.
for (let i = 0; i < 100; ++i) {
const button = document.createElement('button');
button.textContent = i;
button.style.setProperty('width', '50px');
button.style.setProperty('height', '50px');
document.body.append(button);
}
}, false);
</script>
`);
// Issue a geolocation request. This should show a browser popup.
// NOTE: this is a bit racy since we can't wait for the geolocation
// popup to be shown.
await page.evaluate(() => {
navigator.geolocation.getCurrentPosition(position => { });
});
// If popup blocks the click, then some of the `page.click` calls below will hang.
for (let i = 0; i < 100; ++i)
await page.click(`text=${i}`);
});
it('should click in a transformed iframe with force', async ({ page }) => { it('should click in a transformed iframe with force', async ({ page }) => {
await page.setContent(` await page.setContent(`
<style> <style>