Open Bug 1821754 Opened 2 years ago Updated 3 months ago

BUG: color picker crashes in headless on Ubuntu

Categories

(Firefox :: Headless, defect)

Firefox 110
x86_64
Linux
defect

Tracking

()

People

(Reporter: aslushnikov, Unassigned)

References

Details

(Keywords: crash)

Attachments

(1 obsolete file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36

Steps to reproduce:

OS: Ubuntu 20.04
Firefox: 110 stable
Downstream bug: https://github.com/microsoft/playwright/issues/19929

Consider running the following puppeteer snippet:

// a.mjs
import puppeteer from 'puppeteer-core';

const browser = await puppeteer.launch({
  product: 'firefox',
  executablePath: '/usr/bin/firefox',
  dumpio: true,
});
const page = await browser.newPage();

await page.goto(
  'https://storage.googleapis.com/public-dev-test-lab/input/inputtypes.html'
);
const inputColorElement = await page.$('#input-color');
await inputColorElement?.click();

await browser.close();

Actual results:

Firefox crashes with the following output:

(firefox:3295229): Gtk-CRITICAL **: 11:03:34.737: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
[Parent 3295229, Main Thread] WARNING: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed: 'glib warning', file /build/firefox-jjwe4i/firefox-110.0.1+build2/toolkit/xre/nsSigHandlers.cpp:167

Expected results:

The browser should not crash.

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Component: Widget: Gtk → Headless
Product: Core → Firefox
Severity: -- → S3
QA Whiteboard: [qa-not-actionable]
Duplicate of this bug: 1827551
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: crash
OS: Unspecified → Linux
Hardware: Unspecified → x86_64

Just to make sure: this also happens with File Picker opening in Headless with Firefox 111:

Repro on Linux + Headless + Puppeteer:

// a.mjs
import puppeteer from 'puppeteer-core';

const browser = await puppeteer.launch({
  product: 'firefox',
  executablePath: '/usr/bin/firefox',
  dumpio: true,
});
const page = await browser.newPage();

await page.setContent(`
  <input type=file>
`);
const inputElement = await page.$('input');
await inputElement.click();

await browser.close();
No longer duplicate of this bug: 1827551
Attachment #9383143 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: