Skip to content

Commit 8902a1d

Browse files
pablogsalkbumsik
andauthored
[2.7] bpo-34019: Fix wrong arguments for Opera Browser (GH-8047) (#8126)
The Opera Browser was using a outdated command line invocation that resulted in an incorrect URL being opened in the browser when requested using the webbrowser module. * Correct the arguments passed to the Opera Browser when opening a new URL.. (cherry picked from commit 3cf1f15) Co-authored-by: Bumsik Kim <[email protected]>
1 parent 7829bba commit 8902a1d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Lib/webbrowser.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,11 +319,10 @@ class Chrome(UnixBrowser):
319319
class Opera(UnixBrowser):
320320
"Launcher class for Opera browser."
321321

322-
raise_opts = ["-noraise", ""]
323-
remote_args = ['-remote', 'openURL(%s%action)']
322+
remote_args = ['%action', '%s']
324323
remote_action = ""
325-
remote_action_newwin = ",new-window"
326-
remote_action_newtab = ",new-page"
324+
remote_action_newwin = "--new-window"
325+
remote_action_newtab = ""
327326
background = True
328327

329328

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
webbrowser: Correct the arguments passed to Opera Browser when opening a new URL
2+
using the ``webbrowser`` module. Patch by Bumsik Kim.

0 commit comments

Comments
 (0)