Bug 163664

Summary: REGRESSION (STP 14): Unable to query tab url using AppleScript/JXA
Product: WebKit Reporter: Jack Wellborn <w0nka>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Minor CC: bburg, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Mac   
OS: OS X 10.11   
Attachments:
Description Flags
Screenshot form Script Editor. none

Jack Wellborn
Reported 2016-10-19 09:10:49 PDT
Created attachment 292070 [details] Screenshot form Script Editor. Starting with Release 14, the following statement in JavaScript for Automation (haven't tested in plain Applescript yet) returns "Error -1700: Can't convert types." var stp = Application("Safari Technology Preview"); (stp.windows[0].currentTab().url()); Switching to either Safari or WebKit nightly works. The issue has persisted with Release 15.
Attachments
Screenshot form Script Editor. (58.08 KB, image/png)
2016-10-19 09:10 PDT, Jack Wellborn
no flags
Radar WebKit Bug Importer
Comment 1 2016-10-19 15:05:14 PDT
Blaze Burg
Comment 2 2018-04-13 13:51:09 PDT
This has been fixed in Safari 10.1 or later.
Note You need to log in before you can comment on or make changes to this bug.