Closed Bug 1855731 Opened 2 years ago Closed 2 years ago

widget/gtk/nsAppShell.cpp:300: error: use of undeclared identifier 'WakeLockListener'

Categories

(Core :: Widget: Gtk, defect, P3)

Firefox 118
defect

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: sergeev917, Assigned: sergeev917)

Details

Attachments

(2 files)

Steps to reproduce:

Attempt to compile firefox-118 from sources with DBUS support being disabled.

Actual results:

Compile error: widget/gtk/nsAppShell.cpp:300:11: error: use of undeclared identifier 'WakeLockListener'.

The problem is caused by WakeLockListener being unconditionally used [1] while the corresponding header inclusion is covered by MOZ_ENABLE_DBUS check [2].

[1] https://hg.mozilla.org/mozilla-central/file/tip/widget/gtk/nsAppShell.cpp#l300
[2] https://hg.mozilla.org/mozilla-central/file/tip/widget/gtk/nsAppShell.cpp#l27

Expected results:

The build should have succeed.

One way to fix the compile error

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

Thanks for the patch Alexander. Do you mind to submit the patch to Phabricator so it can be reviewed and checked in?
https://moz-conduit.readthedocs.io/en/latest/phabricator-user.html
Use me as reviewer (r?stransky)
Thanks.

Flags: needinfo?(sergeev917)
Priority: -- → P3

(In reply to Martin Stránský [:stransky] (ni? me) from comment #3)

Do you mind to submit the patch to Phabricator so it can be reviewed and checked in?

Tracked at: https://phabricator.services.mozilla.com/D191034

Flags: needinfo?(sergeev917)

Clean up usage of WakeLockListener when building without dbus support
enabled.

Assignee: nobody → sergeev917
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #9358526 - Attachment description: Bug 1855731 - Avoid WakeLockListener when dbus is disabled r?stransky → Bug 1855731 - Include WakeLockListener regardless of dbus support r?stransky
Pushed by stransky@redhat.com: https://hg.mozilla.org/integration/autoland/rev/ec795d99e12a Include WakeLockListener regardless of dbus support r=stransky
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: