Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d798812e
Commit
d798812e
authored
Dec 21, 2011
by
Senthil Kumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue 13620 - Support chrome browser in webbrowser.py module.
parent
9e50d3cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
Lib/webbrowser.py
Lib/webbrowser.py
+17
-0
No files found.
Lib/webbrowser.py
View file @
d798812e
...
...
@@ -299,6 +299,18 @@ class Galeon(UnixBrowser):
background
=
True
class
Chrome
(
UnixBrowser
):
"Launcher class for Google Chrome browser."
remote_args
=
[
'%action'
,
'%s'
]
remote_action
=
""
remote_action_newwin
=
"--new-window"
remote_action_newtab
=
""
background
=
True
Chromium
=
Chrome
class
Opera
(
UnixBrowser
):
"Launcher class for Opera browser."
...
...
@@ -466,6 +478,11 @@ def register_X_browsers():
if
_iscommand
(
"skipstone"
):
register
(
"skipstone"
,
None
,
BackgroundBrowser
(
"skipstone"
))
# Google Chrome/Chromium browsers
for
browser
in
(
"google-chrome"
,
"chrome"
,
"chromium"
,
"chromium-browser"
):
if
_iscommand
(
browser
):
register
(
browser
,
None
,
Chrome
(
browser
))
# Opera, quite popular
if
_iscommand
(
"opera"
):
register
(
"opera"
,
None
,
Opera
(
"opera"
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment