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
6
votes
2 answers

How does Safari's reader feature work?

I want to add a similar feature to a tool I'm making. I'm interested in how it works code-wise. I want to be able get an html page and exclude all but the article.
n_x_l
  • 1,552
  • 3
  • 17
  • 34
6
votes
2 answers

Disable Mac OS X Lion Safari's autocorrect on contentEditable div?

We have a web application that has a large number of contentEditable
's. With the aggressive autocorrect in Safari on Mac OS X Lion, we have had a number of problems with Safari attempting to autocorrect for our users. I have been able to stop…
erlloyd
  • 485
  • 6
  • 20
6
votes
4 answers

Can I pop up a confirmation dialog when the user is closing the window in Safari/Chrome?

In IE and FF, i can attach an event handler to onBeforeUnload, and by passing a string to a property of the event, the user will see a dialog asking him whether he wants to continue with the "unloading" (either closing the window or navigating…
Daniel Magliola
  • 30,898
  • 61
  • 164
  • 243
6
votes
1 answer

Can I query the no-URL-bar mobile Safari window height in a platform-neutral way?

I'm writing a little side-scrolling text reader widget similar to what you get in the iPhone app store where the panel of screenshots for an app is this different, horizontally-scrolling panel embedded within the main vertically-scrolling panel. In…
bsharp
  • 151
  • 1
  • 6
6
votes
6 answers

JavaScript execution exceeded timeout

I am not doing a large chunk of computation in JS. Everything works fine on iPad iOS 5 in Safari until I added this code: var watchID = navigator.geolocation.watchPosition(updatePos,locationError,{maximumAge: 10000, frequency: 60000,…
YoYoMyo
  • 894
  • 12
  • 20
6
votes
2 answers

window.opener.location.href works in IE but not Chrome or Safari

I have been researching this problem and while there's lots of posts on various forums about similar problems, none of the problems or solutions exactly match mine. I have an application that has been successfully using the function below to…
Barbs
  • 1,115
  • 2
  • 16
  • 30
6
votes
2 answers

Desktop Safari browser and HTTP Live streaming

I suppose the Safari browser is supporting the HLS. I quickly tried it but streaming was not started - Is anything wrong with mycode? HTTP Live Streaming
6
votes
5 answers

Save the source of an open webpage from Safari with AppleScript

How could I write a script that saves a webpage open in Safari to some path? (The code will be used for a more complicated script later, so a kludgy solution using System Events won't do.) A lot of googling to find a script that uses the save source…
user912475
6
votes
3 answers

Console.log not displaying on iPad Pro Safari 16.4 when using dev tools on my mac

I've tried 3 different websites to make sure the console is logging out as well as on my laptop and a different iPad. On the IPad Pro with the latest safari version - no console logging. Anyone experience this or know how to fix it?
Spencer Bigum
  • 1,811
  • 3
  • 17
  • 28
6
votes
1 answer

popstate does not work since safari 16? It was working until safari 15

I would like to display an image when the user clicks the back button of the browser. The code below worked fine in safari 15.5, but when I upgraded to safari 16.1, it did not work. Popstate not working in safari 16.1? …
nowa
  • 61
  • 2
6
votes
0 answers

Is there a way to hide the native Safari and Firefox datepicker

There doesn't seem to be any way to hide the native datepicker from Safari and Firefox. Any ideas? Or should I just scrap the and use a normal for my datepicker for Safari and Firefox? I only saw ways to…
Dimitar Nizamov
  • 145
  • 1
  • 8
6
votes
2 answers

How to prevent Safari from dropping the Authorization header when following a same-origin redirect?

Safari seems to drop the Authorization header when following a same-origin 301 redirect. For example, this JS code: fetch("/api/endpoint-that-redirects", { headers: new Headers({ "Authorization": "sometoken" })}) will trigger one GET to…
you786
  • 3,659
  • 5
  • 48
  • 74
6
votes
1 answer

Safari problems accessing Windows Integrated Authentication (aka NTLM) protected web site

Our web application uses Windows Integrated Authentication (aka NTLM Auth) for security. It's working fine for both IE and Firefox users, but Safari users are seeing intermittent problems. Browsing the site will work fine, but every once in a while…
Darren
  • 231
  • 1
  • 5
  • 9
6
votes
2 answers

Detect if Safari Extension is Installed

Is there a way through JavaScript to detect if a Safari Extension is already installed? https://extensions.apple.com has some way of doing it because they update the install link to "installed" if the extension is already installed. However, I can't…
JayRu
  • 319
  • 3
  • 11
6
votes
1 answer

IOS native controls invisible/hidden in PWA

We have a PWA (web app) that the user can add to the homescreen to make it look more like an app. Some users have reported a strange issue that only seems to appear on IOS sometimes when the following step has been made. Open the app from the…
Abris
  • 1,451
  • 3
  • 18
  • 38
1 2 3
99
100