Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

MacOSXOSAScript does not sendwebbrowser.open audit event #113543

Closed
Assignees
sobolevn
Labels
OS-macstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error
@sobolevn

Description

@sobolevn

Bug report

All other browsers do this:

But, notMacOSXOSAScript:

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

Metadata

Metadata

Assignees

Labels

OS-macstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp