Hey developers, I’m having an odd issue… My plugin downloads SketchUp models fro the we using the “webdialog” feature in the API (yes I know it’s deprecated)
It’s been working fine for years and all of the sudden it won’t work on MacOs Catalina. When users try to access content the page reloads over and over again.
We use a javascript based member signin/subscription system that seems to be mucking things up.
To boil this down to the most basic problem I tested by running this sample code in the Ruby console on Catalina and SketchUp 2017-2019:
Clearly your own HTML also invokes some other processes - probably javascript etc - which causes the reloading issue ?
Perhaps Catalina’s Safari handles things differently ??
Without seeing your HTML, JS and CSS it’s pretty much impossible to tell…
Hmm I thought it could be an issue with using http instead of https. It might be that http will in the future be blocked.
But you also showed that http://www.sketchup.com worked. So that makes me wonder if its your server doing some kind of redirection.
I would inspect the http traffic from your machine and see what requests and responses are being sent. On Windows I would recommend Fiddle, but not sure what one can use on mac.
I don’t have Catalina myself. Holding back because I keep hearing about so many issues.
Maybe @nickgully can help? We should have some Catalina machines in the office.
You might have to inspect your server config. But at first, check the HTTP traffic.
I’m not sure, since I don’t have Catalina, but maybe webkit under Catalina tries to force redirect to HTTPS. If your server tehn redirects HTTPS to HTTP you got yourself a loop. This would be done at server config, not HTML/JS.
The webdialog method uses Safari (or some stripped down version of it) because that’s the standard, non-removable browser that comes with MacOs (if I was using HTML dialog I’d be using Chromium right?)
What I’m not clear on here is what the error you’re showing means… Maybe you can bring it down to a 5th grade level so I can understand?
Almost, CEF used by SU is a stripped down version of Chromium…
It’s failing to create the iFrame needed for gopaywall and possibly due to it using a Safari ‘workaround’ that something else broke… 'https://sketchthisplu.gopaywall.com/safari-workaround.php'
I think the issue is with SquareSpace and you would need them to chase it down…
or switch to HtmlDialog as that eliminates any Safari workarounds…
Yeah, that “safari workaround.php” is a little suspicious… I think I now know who to bug… There’s not a way to view the contents of that PHP file is there?
Ok, so the folks that I use for the payment portal have fixed the issue from their side. I’m still waiting for them on exactly what they did, but they did fix it. I feel like the issue was in their javascript that I have to run to make the paywall work…
Google recently [October] lost a High Court class action in the UK and can now be sued for their ‘safari-workaround’ which can be used to steal user data…
in the lower courts, the infringement was ‘upheld’, but the rights to class action denied on technical grounds, and Google were let off the hook…
I suspect they have now either withdrawn or revised it [ for the European market, at least ] and all third party usage is affected by those changes…
I run Catalina all the time on my own machine (Mojave on my work machine). Several in QA have external Catalina drives, or other ways to test Catalina issues.
I wonder though if the issue is to do with SketchUp 2019.3. If you do the same tests and only change to 2019.1, does it work?
A significant change in 2019.3 is that signing in opens your default web browser, and you manually return to SketchUp. SketchUp does pick up on the fact that you’re now signed in, but I wonder if a webview would also detect that.
With SU2019.3 and the macOS signing compliance we have to explicitly allow HTTP connections as Apple’s default really wanted to block them. But I don’t know how older SU versions would behave under Catalina… SU2019.3 was in large part a Cataline release.
If this isn’t a problem with HtmlDialogs i would recommend switching to it. Using old deprecated stuff is messy. Also i think very, very few people still use 2016.
I wonder if there’s any data out there that shows the popular releases of SketchUp. I have a guess that there are a lot of older copies still in active use out there…