summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-05-06 19:49:26 (GMT)
committerGitHub <noreply@github.com>2021-05-06 19:49:26 (GMT)
commitfbefdaf92e40134c43142c182f7c5bfe406e4c2b (patch)
treeeacd7db736503f7f394638299454d67c0d36ce33
parent058f9b27d3838f04bbb313074941e9f9946a33bc (diff)
downloadcpython-fbefdaf92e40134c43142c182f7c5bfe406e4c2b.zip
cpython-fbefdaf92e40134c43142c182f7c5bfe406e4c2b.tar.gz
cpython-fbefdaf92e40134c43142c182f7c5bfe406e4c2b.tar.bz2
bpo-44059: Register the SerenityOS Browser in the webbrowser module (GH-25947) (GH-25950)
(cherry picked from commit 329a47f0524e9d3f43f1e28c4f9e7c088662c030) Co-authored-by: Linus Groh <mail@linusgroh.de>
-rwxr-xr-xLib/webbrowser.py4
-rw-r--r--Misc/ACKS1
-rw-r--r--Misc/NEWS.d/next/Library/2021-05-06-16-01-55.bpo-44059.GF5r6O.rst1
3 files changed, 6 insertions, 0 deletions
diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py
index 6023c1e..e980497 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 9f861b3..480a486 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 0000000..f734bdb
--- /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.