Error message when closing firefox on Linux

I am using this code to display my html documentation:

function docu(build=true)
    @eval using LiveServer
    if build
        include("docs/make.jl")
    end
    Base.invokelatest(LiveServer.open_in_default_browser, "docs/build/index.html")
    nothing
end

When I call this function and close firefox, I get the message:

[Parent 8343, Main Thread] WARNING: Error releasing name org.mozilla.firefox.ZGVmYXVsdC1yZWxlYXNl: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.150" (uid=1000 pid=8343 comm="/usr/lib/firefox/firefox " label="firefox (enforce)") interface="org.freedesktop.DBus" member="ReleaseName" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (bus): 'glib warning', file /build/firefox-3GB2FH/firefox-120.0+build2/toolkit/xre/nsSigHandlers.cpp:187

(firefox:8343): GLib-GIO-WARNING **: 19:12:45.152: Error releasing name org.mozilla.firefox.ZGVmYXVsdC1yZWxlYXNl: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.150" (uid=1000 pid=8343 comm="/usr/lib/firefox/firefox " label="firefox (enforce)") interface="org.freedesktop.DBus" member="ReleaseName" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (bus)

in the REPL, which is annoying.

I guess I could get rid of it by adding some lines to the file usr.bin.firefox. But which
lines?

I am using now this function:

function docu(build=true)
    @eval using LiveServer
    if build
        include("docs/make.jl")
    end
    if Sys.islinux()
        Base.run(`xdg-open "docs/build/index.html"`; wait=false)
    else
        Base.invokelatest(LiveServer.open_in_default_browser, "docs/build/index.html")
    end
    nothing
end

which redirects any error message on Linux to /dev/null and thus solves the issue for me…