Monday, December 11, 2017

#1 2017-01-26 02:20:25 pm

KCScott
Member
Registered: 2010-08-04
Posts: 5

Do you want to allow this page to open “(null)”?

I wrote an app bundle using AppleScriptObjC which uses an HTML form hosted on our local server as it's user interface. The app opens the HTML doc in Safari and populates the form using Javascript, responding to posts from the form using an "on open location" URL handler. This works perfectly but ever since the latest Safari and security updates each post is interrupted with this dialog (Do you want to allow this page to open “(null)”?), which must be dismissed before the URL is passed. This is a tremendous nuisance and impedes the work of my users. I have not been able to find a way around it. Any ideas? We are using Yosemite and I need to resolve this before we can upgrade the OS.

Last edited by KCScott (2017-01-26 03:38:02 pm)

Offline

 

#2 2017-01-26 05:55:28 pm

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 5197

Re: Do you want to allow this page to open “(null)”?

My suspicion is that if you do find a way around it, you can expect it to be blocked again in a following update. Security changes are rarely reversed.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/

Offline

 

#3 2017-01-27 01:31:53 pm

KCScott
Member
Registered: 2010-08-04
Posts: 5

Re: Do you want to allow this page to open “(null)”?

Thanks, Shane, not what I wanted to hear. Unfortunately, it's what I expected to hear.

Offline

 

#4 2017-02-01 04:07:10 pm

KCScott
Member
Registered: 2010-08-04
Posts: 5

Re: Do you want to allow this page to open “(null)”?

If I build this as a Cocoa AppleScript app and use webkit, I should be able to capture user input without cross-source conflict. Yes? I've been writing AppleScript for many years and AppleScriptObjC since Yosemite, but I'm a Cocoa newbie.

Offline

 

#5 2017-02-01 06:00:16 pm

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 5197

Re: Do you want to allow this page to open “(null)”?

KCScott wrote:

If I build this as a Cocoa AppleScript app and use webkit, I should be able to capture user input without cross-source conflict. Yes?


If you mean it will give you a way around it -- I very much doubt it.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/

Offline

 

#6 2017-02-02 01:52:54 pm

KCScott
Member
Registered: 2010-08-04
Posts: 5

Re: Do you want to allow this page to open “(null)”?

No, sorry, I guess I wasn't clear. What I meant was  to display the HTML within the Cocoa-AppleScript app using webkit and capture the user's actions so the post is not necessary. Hence no cross-source issue.

Offline

 

#7 2017-02-02 06:03:21 pm

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 5197

Re: Do you want to allow this page to open “(null)”?

You can certainly display the HTML.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)