Bug report
All other browsers do this:
| sys.audit("webbrowser.open", url) |
| sys.audit("webbrowser.open", url) |
| sys.audit("webbrowser.open", url) |
| sys.audit("webbrowser.open", url) |
| sys.audit("webbrowser.open", url) |
But, not MacOSXOSAScript:
| defopen(self, url, new=0, autoraise=True): |
| ifself.name=='default': |
| script='open location "%s"'%url.replace('"', '%22') # opens in default browser |
| else: |
| script=f''' |
| tell application "%s" |
| activate |
| open location "%s" |
| end |
| '''%(self.name, url.replace('"', '%22')) |
| |
| osapipe=os.popen("osascript", "w") |
| ifosapipeisNone: |
| returnFalse |
| |
| osapipe.write(script) |
| rc=osapipe.close() |
| returnnotrc |
I think that this needs to be fixed.
Found this while looking at #113539
Linked PRs
Bug report
All other browsers do this:
cpython/Lib/webbrowser.py
Line 173 in f108468
cpython/Lib/webbrowser.py
Line 193 in f108468
cpython/Lib/webbrowser.py
Line 258 in f108468
cpython/Lib/webbrowser.py
Line 348 in f108468
cpython/Lib/webbrowser.py
Line 557 in f108468
But, not
MacOSXOSAScript:cpython/Lib/webbrowser.py
Lines 576 to 593 in f108468
I think that this needs to be fixed.
Found this while looking at #113539
Linked PRs
MacOSXOSAScriptsendswebbrowser.openaudit event #113544MacOSXOSAScriptsendswebbrowser.openaudit event (GH-113544) #113549MacOSXOSAScriptsendswebbrowser.openaudit event (GH-113544) #113550