Skip to content

Chromium browsers kill the python server when refreshing the page; Firefox doesn't. #82

@fazzaan

Description

@fazzaan

When I reload the page, it crashes immediately.

This seems to be a new situation, possibly as a result of a recent update in Chromium?
It happens in both Brave and Chrome, and in both's Incognito modes.
It doesn't happen in Firefox.

According to the Inspector Network logs, the terminate request is initiated by.. actually I don't understand what I'm looking at so here's a screenshot.

Image

It seems like chromium is initiating an "onUnload" event, while Firefox isn't.

And I see in the actions-for-nautilus-configurator.html, at line 63, onUnload is set to modify the url to point to /terminate, which I presume somehow triggers the self.server.shutdown process in actions at line 202 of actions-for-nautilus-configurator.py.

From what I've read online, this is just how chromium works (now?), can you check it on your machine?

I tested it initially by commenting out the self.server.shutdown() at line 152 in actions-for-nautilus-configurator.py.

Let me know if you'd like to see the terminal logs!


As a short-term fix, I've changed the xdg-open command, at line 51 in start-configurator.sh to:
zenity --text-info --title 'Copy the address and paste it into Firefox (not chromium!):' <<< "http://localhost:$PORT"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions