You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Javascript bugs in Safari 6 on Mountain Lion

Since I've upgraded to Safari 6 on Mountain Lion I'm having several problems that seem to be javascript-related. On many sites, for no apparent reason, interface elements will stop receiving click events. For example, checkboxes and buttons don't respond when clicked. Links don't respond if they have a "click" handler but they will work if they are plain links with an href. If I try to reload the page it stalls, as if the server is not responding. I have to relaunch safari in order for the site to load and it will inevitably happen again... just not sure when.


Other points:


1. I've seen this problem on several different sites across many domains, it's not limited to a particular site.


2. There are no javascript errors (that I can attribute to this problem) and javascript is enabled (of course).


3. For all the sites that I've experienced this problem I've loaded the same site in chrome with no problems.


4. Safari was my default browser before the upgrade and I've never experienced this problem before.


5. The only extension I have is 1Password. I tried disabling it but it hasn't improved the problem.


I'm hoping that someone else is esperiencing this problem and either has a fix or can help me get Apple's attention so they will issue a fix.


Thanks!

MacBook Pro (Retina, Mid 2012), OS X Mountain Lion, Safari 6

Posted on Jul 27, 2012 8:39 AM

Reply
135 replies

Aug 6, 2012 8:37 AM in response to fireflyer

I would imagine that it would, for the same reasons SunSpider slows to a crawl. With AdBlock I encountered horrible memory leaks, and this would quickly eat up my memory under 8GBs. Now that I've installed 16GBs of memory I've enabled AdBlock again -- but only because it does block ads better than the alternative (Glimmer Blocker). Glimmer has bugs itself, but none that cause serious system performance degradation.

Aug 7, 2012 2:37 PM in response to TheAnimaster

I'm having the same issues here (white "blocks" covering certain areas, typing/backspacing looking funny, etc). I notice it most often in Gmail. It's really getting irritating!!! Please fix... someone! After having read everything to this point... it appears that there is not yet an easy fix for this right?


- getting slightly frustrated... Dave

Aug 12, 2012 6:20 AM in response to chrisbrantley

I am also experiencing some weird rendering issues in Safari. Never happened before on Lion... I've made a complete clean install of Mountain Lion approx 1 week ago. Deleting text from input fields can many times reproduce the issue... then simple scolling or selecting the messed up text renders it correctly once again.


It's definitely a software issue and not hardware.

Aug 13, 2012 6:39 AM in response to Matt Hardy

I have found my specific error - although I am unsure why this is not supported:


I have an array in my form 'editform'.


["USD", "0.1650", ".", ","]


and then I do this onchange:


document.editform.currency.value=currency_arr[0];


Where 'currency' is the name of a select.


Then the option label disappears.


however, I've found that the operation is not a required feature, and should not be in the code.

But I am confused as to how it messes with the dom render in this way, and has worked in the past without the effect.


So, well, it's not Safari, but Webkit I think.


Unfortunately I spoke too soon. It's a possible bug in Webkit, I have to add a 3rd dom element to counter the 'disappearing' select option.


Hm, in fact, I found that my db solution removes the need for fixing the data, a 3char field saves the html-concatenated js array as just the currency code, so a storage solution solved this js behaviour / code design issue.


OK, but still webkit weirdness 😉

Aug 13, 2012 7:51 PM in response to chrisbrantley

Hi,

I having one particular problem with Safari 6, 10.8 and WebKit.


At my work place we have a number of security camera's(IP network type) record to a Window's server. On occation we directly access an individual camera to see whats happening in an area at work from Mac desktop computers. This is not an issue with 10.6.8, Safari, Chrome, FireFox or Opera it is a real problem with Mac OS 10.8, Safari 6, Chrome and Opera although FireFox displays the live IP camera feeds without issue.


We also use FileMaker Pro 12 is to display some of our camera feeds (custom WebViewer frames) for a receptionist, which works great under 10.6.8 and it's underlying WebKit engine. Up six live camera feeds into the FileMaker database, without issue as well as ODBC data from a MySQL server.


Mac OS 10.8, Safari 6 and the WebKit that comes with Mountain Lion fails on tasks listed above. Safari, Chrome or Opera will only load a few frames of live content, with the stream stopping mid flight. The same applies to FileMaker Pro 12 and the Web Viewer frames within the database, a few frames of streamed footage which then stop. The functional part of the FileMaker database is not affected just the camera streams to the Web Viewer frames.


It seems to me that there is compatibility issue between 10.8, Safari and the WebKit. I've installed the latest Java 7 builds and Java 6, current WebKit build as of the 10/08/12. Safari and Google Chrome not working seems to support this as well as FileMaker Pro 12 and its Web Viewer frames.


Any input would be appriciated.


Mark

Aug 13, 2012 9:31 PM in response to tacmark

As was mentioned elsewhere in this topic, Java and Javascript only share a similar name. Otherwise, they are utterly separate. And of late, Java is used as a vector for malware infection so unless you need it, I would leave it off.


Meanwhile, this is sounding like a bug that only Apple can fix. For that reason, anyone experiencing this problem should report what they're seeing via one of the two bug reporting systems available. For non-developers, it's Apple's OS X Feedback (first feedback type option) and include as much info as possible on what to do to recreate it.

Aug 24, 2012 2:23 PM in response to chrisbrantley

I'm having a similar javascript issue. If you open up the error console you will see that any site that uses Jquery breaks. Actually it's more like any site that uses Jquery that is hosted at

Failed to load resource http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js




I can however load up a VM that has windows on it and use the browser in the VM just fine which is how I have been working around this.


I believe this has gotten worse in the last few weeks. There is also another error you can find Unsafe JavaScript attempt to access frame with URL - Domains, protocols and ports must match.


I am really lead to believe this may be a keychain / certificate issue since it is effecting all my browsers. It's definitely not adBlock and it's definitely not a browser extension as neither of them are on my system and the one browser extension I have for Chrome is disabled and I have Safari's extensions turned off.


Whatever this is, it is on a system level. I just dumped my keychain but it had no effect. The reason I think it has to do with the keychain is because if you try to navigate the URL for the hosted jquery that I mention above, you can't get there. Safari Can't Connect to Server. So it's either something with my keychain or something with my hosts file and my hosts file looks ok to me. It's not a software firewall issue, my firewall is not turned on. It's not a hardware firewall issue because I can get to it from my Mac if I am on a VM...


I'm a web / app developer and it's not effecting what I do for work... I think it may also be tied to Safari because when I have the error console opened up, I can't navigate to a page without the debugger running and stopping the page from loading. This should not be happening either. So I think there may be something going on with Keychain / Security Preferences that is triggering issues with the browsers.


Just my uneducated guess...

Aug 31, 2012 8:34 PM in response to chrisbrantley

I've been struggling with Safari freezing fairly often on different sites as well as occasionally links stop working in a page (seen this fairly often in searching for images in Google) ... it just stops over time.


Of course quiting and restarting Safari fixes the problem but I thought that each tab would be it's own process be able to continue on other tabs but it seems to take the whole app down.


Not good. Installed Firefox 16 and will use that in the meantime but it's amazing how I'm so used to gesture support (zoom and two finger page turns) on my magic pad.


Hopefully the planets will align and a fix for this and my apple TV issues will be along shortly. I've never had this much problem since I bought my iMac in 2007.

Javascript bugs in Safari 6 on Mountain Lion

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.