Questions tagged [safari]

Safari is Apple's web browser, the default browser on macOS and iOS.

Safari is the web browser bundled with iOS and macOS, operating systems from Apple. Previously, Windows was a supported platform but was discontinued after version 5.

Safari uses the WebKit rendering engine and the JavaScript Core JavaScript engine.

For Safari for iOS devices, there is the tag.

Documentation

17726 questions
85
votes
7 answers

Disabling same-origin policy in Safari

For development purposes, I need to disable the same-origin policy in Safari (on Windows) on my machine. In Chrome, this can be done by launching with the flag --disable-web-security. Is there an equivalent flag or hidden setting in Safari?
kpozin
  • 25,691
  • 19
  • 57
  • 76
85
votes
9 answers

Selecting text on focus using jQuery not working in Safari and Chrome

I have the following jQuery code (similar to this question) that works in Firefox and IE, but fails (no errors, just doesn't work) in Chrome and Safari. Any ideas for a workaround? $("#souper_fancy").focus(function() { $(this).select() });
user140550
  • 919
  • 2
  • 11
  • 21
84
votes
4 answers

iOS 7 - is there a way to disable the swipe back and forward functionality in Safari?

For some web pages we use the swipe left and right functionality of iPhone to pull up the menus. Now with iOS7, they have introduced the ability to go back and forward to previous and next pages of browser history on swipe left and right…
MeghaK
  • 851
  • 1
  • 6
  • 5
83
votes
15 answers

Why Safari shows "No Inspectable Applications" during remote debugging with iOS 6 device?

When I connect my iOS 6 device for remote debugging for testing my mobile web application, The safari develop menu with my device name shows "No Inspectable Applications". I have enabled web inspector ON in my device safari device settings. Why…
Easwaramoorthy Kanagaraj
  • 3,925
  • 8
  • 36
  • 62
82
votes
8 answers

Impossible to hide navigation bars in Safari iOS 7 for iPhone/iPod touch

I don't believe there is any solution to hide bars programmatically using javascript/css/html, but let me try to describe a problem. We are the team of mobile game developers and we have been developing a game for one year. After iOS 7 announcement…
Anton Sinelnyk
  • 921
  • 1
  • 7
  • 6
80
votes
11 answers

Date parsing in javascript is different between safari and chrome

I have the following code var c = new Date(Date.parse("2011-06-21T14:27:28.593Z")); console.log(c); On Chrome it correctly prints out the date on the console. In Safari it fails. Who is correct and more importantly what is the best way to handle…
bradgonesurfing
  • 30,949
  • 17
  • 114
  • 217
78
votes
1 answer

Why is a Safari page breaking iOS rendering?

I know the title is not that explanatory but here is the story: I am developing a browser game, mostly using JavaScript and the Mapbox library. Everything works well on desktop, Android and iOS but one problem appears on iOS: after letting the game…
XCS
  • 27,244
  • 26
  • 101
  • 151
78
votes
2 answers

Debug iOS 6+7 Mobile Safari using the Chrome DevTools

iOS 6 comes with built-in support for remote debugging (1 minute screencast). It plays nice with the new Safari Web Inspector which seems to be a 1 year old fork of WebKit Inspector. It misses some features such JS editing and WebSocket frames…
NVI
  • 14,907
  • 16
  • 65
  • 104
77
votes
6 answers

Image stretching in flexbox in Safari

This is only an issue in Safari and looks like a Safari bug to me. Here is a fiddle with a simplified version of the issue. When an image is in a nested flexbox element with a width set and height: auto it is being stretched... the auto height is…
Brian
  • 795
  • 1
  • 5
  • 7
77
votes
11 answers

How to enable iOS 5 Safari Reader on my website?

How does the Reader function of Mobile Safari in iOS 5 work? How do I enable it on my site. How do I tell it what content on my page is an article to trigger this function?
bshack
  • 1,891
  • 1
  • 21
  • 27
77
votes
2 answers

Safari ignores mp4 files

I am using an HTML file input like this: to allow my users to upload videos to my site. This works as expected in all modern browsers (only permitting the user to select video files) except Safari. From what I…
cdanzig
  • 887
  • 1
  • 7
  • 8
76
votes
8 answers

Chrome, Safari ignoring max-width in table

I've got HTML code like this:
GaGar1n
  • 1,040
  • 2
  • 10
  • 17
76
votes
5 answers

Safari Developer Tools: How to Preserve Console Log Upon Navigation?

When using Safari Web Inspector to read the JavaScript console output, the log is reset upon navigation i.e. going from page index.html to mail.html clears the console output. In the Chrome Developer Tools, I can easily preserve the log by right…
Zorayr
  • 23,770
  • 8
  • 136
  • 129
74
votes
12 answers

IFRAMEs and the Safari on the iPad, how can the user scroll the content?

According to the Apple iOS mantra it should be possible to scroll the contents of an IFRAME by dragging it with two fingers. Unfortunately running the latest version of iOS on the iPad I have yet to find a single website with an IFRAME that scrolls…
Karlth
  • 3,267
  • 2
  • 27
  • 28
74
votes
7 answers

WKWebView open links from certain domain in safari

Within my app I am want to open links from within my domain (e.g.: communionchapelefca.org) in WKWebView but then have links from other domains open in Safari. I would prefer to do this programmatically. I have found a few solutions on Stack…
Greg Williams
  • 1,109
  • 3
  • 10
  • 13