Skip to main content
asdasda40448646
Participating Frequently
May 13, 2019
Question

StageWebView and Google Maps JS API: Object.freeze error

  • May 13, 2019
  • 2 replies
  • 1389 views

I am getting this error when I try to load a page containing the Google Maps JS API through StageWebView:

TypeError: Result of expression 'Object.freeze' [undefined] is not a function.

It used to work several months ago, but now it seems to be broken. Apparently because StageWebView does not support some of the latest webkit stuff or whatever.

One solution I found was to use webView = new StageWebView(true); to use the native browser. But this time the map doesn't load at all (although I don't get an Object.freeze error this time).

Has anyone here encountered a similar problem and found a solution?

This topic has been closed for replies.

2 replies

Inspiring
May 13, 2019
KramSurfer2
Inspiring
May 13, 2019

Thanks I'll give this a look...

KramSurfer2
Inspiring
May 14, 2019

The shims don't stop Google Maps API from flagging it as an obsolete browser. 
There are other rendering issues, like the icons on the controls and so much more.

Thanks for the shim pack though.  I'm sure I'll find a use for it.

asdasda40448646
Participating Frequently
May 13, 2019

Further information:

It seems that the problem stems from the fact that the in-built StageWebView browser uses an old version of WebKit (533.19.4 at the moment, while the latest is 537.36). Presumably the google maps API uses something that is not supported by the old version.

Of course when it is told to use the native browser, it uses IE6 which has no WebKit support whatsoever.

On mobiles, the system browser it uses is thankfully up to date, so no problems there. But on windows machines, the fact it uses an outdated WebKit, and uses IE6 as a fallback, makes it incompatible.

It needs to be updated to work with the *actual* default browser.

asdasda40448646
Participating Frequently
May 13, 2019

My GOD, I just read that the WebKit Adobe uses has not been updated since 2010!

There is even a ticket in the tracker dating back to 2013, asking for it to be updated.

KramSurfer2
Inspiring
May 13, 2019

You can vote for my ticket from 2013 if ya want.

if they did this, they could skip the 'video improvements' and we could just play video the browser.


Google maps API 3.34 is the last version that will work in Desktop AIR.    3.35 is releasing tomorrow.

I've rewritten all my maps utilizing BING static maps and then 'sniffing' for the AIR browser.  Tomorrow, my AIR desktop users will get a different map than iOS ( Thev've updated that browser due to an Apple requirement )