From f38cc0d115107eb24dcbda20f598a4b907a0599e Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Thu, 6 May 2021 16:03:09 +0100 Subject: [PATCH 1/2] bpo-44059: Register the SerenityOS Browser in the webbrowser module --- Lib/webbrowser.py | 4 ++++ Misc/ACKS | 1 + .../next/Library/2021-05-06-16-01-55.bpo-44059.GF5r6O.rst | 1 + 3 files changed, 6 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2021-05-06-16-01-55.bpo-44059.GF5r6O.rst diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py index 6023c1e13841d2b..e980497450d66cf 100755 --- a/Lib/webbrowser.py +++ b/Lib/webbrowser.py @@ -532,6 +532,10 @@ def register_standard_browsers(): # OS X can use below Unix support (but we prefer using the OS X # specific stuff) + if sys.platform == "serenityos": + # SerenityOS webbrowser, simply called "Browser". + register("Browser", None, BackgroundBrowser("Browser")) + if sys.platform[:3] == "win": # First try to use the default Windows browser register("windows-default", WindowsDefault) diff --git a/Misc/ACKS b/Misc/ACKS index 9f861b374221dc5..480a486a24c0b04 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -641,6 +641,7 @@ Andrea Griffini Duncan Grisby Olivier Grisel Fabian Groffen +Linus Groh Eric Groo Daniel Andrade Groppe Dag Gruneau diff --git a/Misc/NEWS.d/next/Library/2021-05-06-16-01-55.bpo-44059.GF5r6O.rst b/Misc/NEWS.d/next/Library/2021-05-06-16-01-55.bpo-44059.GF5r6O.rst new file mode 100644 index 000000000000000..f734bdb0bce09f3 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2021-05-06-16-01-55.bpo-44059.GF5r6O.rst @@ -0,0 +1 @@ +Register the SerenityOS Browser in the :mod:`webbrowser` module. From 4f134fbc03607d5376f4a631fd15518dc5ca9ce1 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Thu, 6 May 2021 17:17:55 +0100 Subject: [PATCH 2/2] Empty commit to run CI following a GitHub Actions incident