]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44059: Register the SerenityOS Browser in the webbrowser module (GH-25947) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 6 May 2021 19:49:26 +0000 (12:49 -0700)
committerGitHub <noreply@github.com>
Thu, 6 May 2021 19:49:26 +0000 (12:49 -0700)
(cherry picked from commit 329a47f0524e9d3f43f1e28c4f9e7c088662c030)

Co-authored-by: Linus Groh <mail@linusgroh.de>
Lib/webbrowser.py
Misc/ACKS
Misc/NEWS.d/next/Library/2021-05-06-16-01-55.bpo-44059.GF5r6O.rst [new file with mode: 0644]

index 6023c1e13841d2b21937bb285127df69ab2bd4c2..e980497450d66cf6c68f096f221a0fb3d2ab25ae 100755 (executable)
@@ -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)
index 9f861b374221dc5dfa20105548b6a50bd7bca608..480a486a24c0b04646c1a391b91e7fee76092e01 100644 (file)
--- 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 (file)
index 0000000..f734bdb
--- /dev/null
@@ -0,0 +1 @@
+Register the SerenityOS Browser in the :mod:`webbrowser` module.