Safari Services

RSS for tag

Enable web views and services in your app using Safari Services.

Posts under Safari Services tag

147 Posts

Post

Replies

Boosts

Views

Activity

Migrating CSS Content Blocker to Web Extension
Hi, In the WWDC23 session “What’s new in Safari extensions,” the presenter says: There are four ways to build Safari extensions: content blockers, share extensions, app extensions, and web extensions. Safari 17 continues to support all of these types, but the future of browser customization lies in web extensions. I take that to mean that content blocker extensions won’t be supported indefinitely, so I would like to get ahead of this by migrating my CSS content blocker to a web extension. However, I don’t see an API which allows for declarative CSS blocking in the same privacy-preserving way. I like the current way of building CSS content blockers because I can block page content without requesting any additional permissions. This provides a very smooth user experience, but I don’t see any way to do this using Safari web extensions. This method of blocking content is even referenced in the video, but only as a way to draw parallels to Declarative Net Request. Did I miss a change that allows me to build a privacy-preserving CSS content blocker in a web extension?
1
1
1.3k
Jun ’23
Safari browser have issue on iphone while keyboard opens
I have created a chat application in React js, the input field is at the bottom of the screen. screen size has been fixed and all the CSS properties applied to it but there is an issue. when the input field got focused and the keyboard opens, we can drag the input to the upward and a blank area comes at the bottom. This makes very bad behavior also I have tested this thing on many other sites the same thing occurs, on sites are ChatGPT, OLX, daraz.pk, and many others. It appeals to the Safari team please fix this issue all browsers do not have this issue only Safari has and it makes very bad behavior. when the keyboard opens please don't extends the bottom height Thank you in advance
0
0
850
May ’23
iOS 16.6 public beta SafariServices location problem
Hello there! I open a URL with SFSafariViewController inside my app. The URL that opens should ask for permission for the location information as the first step. It works seamlessly through the normal safari application. But when it is opened with SafariServices in the app, I cannot get the location information. When I press the aA icon in the upper right corner of SafariServices UI and open the website settings, although the location part is selected as "Ask", it does not ask for permission for location information and does not see the location.
0
0
767
May ’23
HEVC On Web Codecs
I'm trying to use Web Codecs API to Decode HEVC stream(safari 16.4). However, when I configured the the Decoder like follow, it raise an rejection 'Config is not valid': VideoDecoder.isConfigSupported({ codec: 'hvc1.1.6.L120.B0', codedWidth: 1920, codedHeight: 1080, }).then(res=>{ console.log(res) }).catch(err=>{ console.log(err) }) I wander whether Web Codecs is supported HEVC decode in safari version 16.4 or I select a wrong codec string?
1
0
5.5k
May ’23
How to Use SFSafariViewController NavigationItems in SwiftUI?
Hey everyone, I've come across a hurdle where I want to use the SFSafariViewController because it contains a navigation bar that fits the needs of my app with the ReaderView, Reload icon, share, and more. My issue though is that I'm displaying this SFSafariViewController through a SwiftUI NavigationLink, and the ViewController's navigation "done" bar button item won't pop my NavigationView. How do I go about programming that done button action to control a SwiftUI NavigationView? Would the Coordinator still be able to do this even if it's a navigation Bar item?
3
0
2.3k
Apr ’23
Ad blocker - how to remove ad space?
I'm currently building an ad blocker. How do I configure it to remove the spaces where ads appear. I saw example { "action": { "type": "css-display-none", "selector": "#someCssElement" }, "trigger": { "if-domain": ["blahblah.com"], "url-filter": ".*" } } This rule will hide div But i can't understand how can i build filter for examples like this: <div class="placeholder h250" data-stat-type="media" data-stat-value="61015dfbf96595540436fb21"> How do I configure it to remove the spaces where ads appear?
0
0
670
Apr ’23
The default Safari App Extension created by Xcode does nothing.
I just installed the default safari app extension (the one created by Xcode) on my mac. Its icon is visible in Safari, but when I run the extension, nothing happens. Then when using the Safari/Developer/Web Inspector/ and choosing Sources, an Extension Script folder does not appear at the lower left. Do you have any suggestions to resolve this problem?
2
1
1.4k
Mar ’23
Safari developer console “computed panel” next to the CSS
Hello, does somebody how to get rid off this “conputed panel” next to the basic CSS tab? If I am trying to hide it, I can’t, even I disable the CSS tab, I can’t. I don’t see any solution here on forum even on the internet or in setting the console or on official WebKit page, where this part is mentioned. Here is the mention of the “computed panel” - https://webkit.org/web-inspector/elements-tab/
1
3
2.5k
Mar ’23
Receiver class org.openqa.selenium.safari.SafariDriverService$Builder does not define or inherit an implementation of the resolved method 'abstract com.google.common.collect.ImmutableList createArgs()' of abstract class org.openqa.selenium.remote.ser
Hello, I am new to safari, and the safari web driver and I am trying to write a java program using selenium to open a web page.... import org.openqa.selenium.WebDriver; import org.openqa.selenium.safari.SafariDriver; // import org.openqa.selenium.Saf // I have not imported the following // import org.openqa.selenium.safari.SafariDriver; // because this does not provide me with the SafariDriver. public class Test_SafariDemo { // the purpose of this class is to test the Safari driver // Written by Michael John Little // Based on a Java program from... // https://www.browserstack.com/guide/run-selenium-tests-on-safari-using-safaridriver public static void main(String[] args) { // lets Instantiate a Safari driver class WebDriver drvr =null; try { drvr = new SafariDriver(); } catch (Exception e) { System.out.print(e); } // lets Launch the Google website drvr.navigate().to("http://www.google.com/"); // lets click on the search box and send a value drvr.findElement(By.id("lst-ib")).sendKeys("BrowserStack"); // click the search button drvr.findElement(By.name("btnK")).click(); //close the browser //drvr.close(); }// close public static void main(String[] args) } // public class Test_SafariDemo But I am getting the following [exception] message when I execute my code... Exception in thread "main" java.lang.AbstractMethodError: Receiver class org.openqa.selenium.safari.SafariDriverService$Builder does not define or inherit an implementation of the resolved method 'abstract com.google.common.collect.ImmutableList createArgs()' of abstract class org.openqa.selenium.remote.service.DriverService$Builder. at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:358) at org.openqa.selenium.safari.SafariDriverService.createDefaultService(SafariDriverService.java:75) at org.openqa.selenium.safari.SafariDriver.<init>(SafariDriver.java:60) at org.openqa.selenium.safari.SafariDriver.<init>(SafariDriver.java:49) at Test_SafariDemo.main(Test_SafariDemo.java:25) Process finished with exit code 1 Any suggestions? Are there configuration options that I need to set when I instantiate the safariDriver class with?
1
0
1.4k
Feb ’23
SFSafariViewController's `Save This Password?` prompt
In iOS 11, if `Settings &amp;gt; Safari &amp;gt; AutoFill &amp;gt; Names and Passwords` is set to `True`, then SFSafariViewController prompts `Save This Password?` alert/actionSheet. However, dismissing the `SFSafariViewController`, dismissing the alert before user has a chance to respond to the alert. How shall I take control of the alert and dismiss the SFSafariViewController only when user has responded to an alert?Thank you!Regards,Nimesh
3
0
3.2k
Feb ’23
Safariのタブ画面が前面に出てこない事象について
<事象> iPad端末のSafariにおいて、Safariを使用したWEBシステムAのWeb画面からWebシステムBのボタンをクリックし、 WebシステムBのタブ画面を呼び出す際に、WebシステムBの既存タブ画面が前面に出てこない事象が発生。 ※詳細は添付資料の項番2~4をご参照 <端末情報> ・iPad Air ・iOSのバージョン:16.1 ・Safariのバージョン:605.1.15 <質問事項> 呼出されるWebシステムBのタブ画面が前面に出てこない事象について、お手数ですが Safariの仕様・設定面から考えられる理由及び、タブを前面に出す方法を1/17(火)迄にご教示頂きたい。
0
0
1.1k
Jan ’23
How Can I Synchronize Safari Tap group between devices?
I used to synchronize it well between my Ipad and Iphone but when I update to IOS16 developer beta, my safari begun to occur bugs in Safari so I turn off Safari in Icloud but when I turn on the Safari toggle in Icloud, they didnt sync between devices. I did toggle off the Safari toggl in cloud, in all devices, and turn off the device and turn on, erase backups, update new IOS with desktop and so many method to solve this problem. Does anyone have same issue with me and solve the problem? Plz save me from this suffer.
0
0
872
Dec ’22
IndexDB AbortError on ASWebAuthenticationSession
When opening a session to log into my website, there is, if exists, information stored in IndexDB we are trying to access from a previous session. Ideally, information from living in Safari, but would settle for information in the parent app or instance. My understanding was information 'like cookies' was available, but documentation is seemlingly vague around this topic. I have struggled to find anything explaining the availability of IndexDB specifically, although it does work in one case (I'm about to experiment with it, so I just know of one now). Upon first loading of the page, a get call: const ids: string[]; const results = await this.db.entities.bulkGet(ids); In the logs, I see there is this error: _e: Error: Error name: AbortError message: The operation was aborted. AbortError: The operation was aborted. inner: DOMException: The operation was aborted. Immediately after, because there is supposed to be some result from the database, the site creates a new entity, and stores it with no issue. This information does not persist however, as opening a second session, the same operation happens due to the same error. We're using XState, which typically is able to catch this error and continue, sometimes does not catch the error, and the state stands still. So far, this behavior has only been experience on iOS with ASWebAuthenticationSession (not ephemeral). Any insight would be appreciated, even if it means abandoning this webview class for something more for this purpose.
0
0
909
Oct ’22
BUG Report: 15.5 Video object-fit:fill Does not work anymore on load
With the iOS version 15.5 the CCS object-fit attribute does not work initially on Safari with videos anymore. When we inspect the DOM and uncheck the attribute, to recheck it, it works. But, of course that's not a proper workaround. Adding "important" does not work as well. If you reset the height: The result is flickering. On 15.4 everything works as expected.
6
4
4.7k
Oct ’22
Migrating CSS Content Blocker to Web Extension
Hi, In the WWDC23 session “What’s new in Safari extensions,” the presenter says: There are four ways to build Safari extensions: content blockers, share extensions, app extensions, and web extensions. Safari 17 continues to support all of these types, but the future of browser customization lies in web extensions. I take that to mean that content blocker extensions won’t be supported indefinitely, so I would like to get ahead of this by migrating my CSS content blocker to a web extension. However, I don’t see an API which allows for declarative CSS blocking in the same privacy-preserving way. I like the current way of building CSS content blockers because I can block page content without requesting any additional permissions. This provides a very smooth user experience, but I don’t see any way to do this using Safari web extensions. This method of blocking content is even referenced in the video, but only as a way to draw parallels to Declarative Net Request. Did I miss a change that allows me to build a privacy-preserving CSS content blocker in a web extension?
Replies
1
Boosts
1
Views
1.3k
Activity
Jun ’23
Safari 17 Release Notes
In the Release Notes of Safari 17 Beta it is mentioned that it is already available for certain macOS versions. Where do I find the link to macOS Ventura? https://developer.apple.com/documentation/safari-release-notes/safari-17-release-notes
Replies
0
Boosts
0
Views
1.2k
Activity
Jun ’23
iOS 16 public beta
I posted in the other but they removed it and told me to Post here but anyone know what might have changed or what new experimental feature was added to the list for safari the last two updates? I have been having massive slow or lagging and glitches with my games and safari after this last update. So trying to see which was was newly added.
Replies
2
Boosts
0
Views
2.3k
Activity
Jun ’23
Safari browser have issue on iphone while keyboard opens
I have created a chat application in React js, the input field is at the bottom of the screen. screen size has been fixed and all the CSS properties applied to it but there is an issue. when the input field got focused and the keyboard opens, we can drag the input to the upward and a blank area comes at the bottom. This makes very bad behavior also I have tested this thing on many other sites the same thing occurs, on sites are ChatGPT, OLX, daraz.pk, and many others. It appeals to the Safari team please fix this issue all browsers do not have this issue only Safari has and it makes very bad behavior. when the keyboard opens please don't extends the bottom height Thank you in advance
Replies
0
Boosts
0
Views
850
Activity
May ’23
Speech recognition API in Safari is slow on iPhone 14
Hi, We have recently noticed that the speech recognition API in Safari is extremely slow and inaccurate, specifically on iPhone 14 with iOS 16.1.1 … but works fine on iPhone 12 with the same iOS 16.1.1. Does anybody else run into the same issue or have any suggestions?
Replies
1
Boosts
0
Views
2.5k
Activity
May ’23
iOS 16.6 public beta SafariServices location problem
Hello there! I open a URL with SFSafariViewController inside my app. The URL that opens should ask for permission for the location information as the first step. It works seamlessly through the normal safari application. But when it is opened with SafariServices in the app, I cannot get the location information. When I press the aA icon in the upper right corner of SafariServices UI and open the website settings, although the location part is selected as "Ask", it does not ask for permission for location information and does not see the location.
Replies
0
Boosts
0
Views
767
Activity
May ’23
HEVC On Web Codecs
I'm trying to use Web Codecs API to Decode HEVC stream(safari 16.4). However, when I configured the the Decoder like follow, it raise an rejection 'Config is not valid': VideoDecoder.isConfigSupported({ codec: 'hvc1.1.6.L120.B0', codedWidth: 1920, codedHeight: 1080, }).then(res=>{ console.log(res) }).catch(err=>{ console.log(err) }) I wander whether Web Codecs is supported HEVC decode in safari version 16.4 or I select a wrong codec string?
Replies
1
Boosts
0
Views
5.5k
Activity
May ’23
safari error on voice recognition
I'm creating web application which uses browser microphone, there is no problem in other devices like android or PC but, on IOS there is alert, when I'm trying get microphone, "Error occurred in recognition: service-not-allowed", any idea how to fix, Thanks.
Replies
1
Boosts
0
Views
1.3k
Activity
Apr ’23
How to Use SFSafariViewController NavigationItems in SwiftUI?
Hey everyone, I've come across a hurdle where I want to use the SFSafariViewController because it contains a navigation bar that fits the needs of my app with the ReaderView, Reload icon, share, and more. My issue though is that I'm displaying this SFSafariViewController through a SwiftUI NavigationLink, and the ViewController's navigation "done" bar button item won't pop my NavigationView. How do I go about programming that done button action to control a SwiftUI NavigationView? Would the Coordinator still be able to do this even if it's a navigation Bar item?
Replies
3
Boosts
0
Views
2.3k
Activity
Apr ’23
Ad blocker - how to remove ad space?
I'm currently building an ad blocker. How do I configure it to remove the spaces where ads appear. I saw example { "action": { "type": "css-display-none", "selector": "#someCssElement" }, "trigger": { "if-domain": ["blahblah.com"], "url-filter": ".*" } } This rule will hide div But i can't understand how can i build filter for examples like this: <div class="placeholder h250" data-stat-type="media" data-stat-value="61015dfbf96595540436fb21"> How do I configure it to remove the spaces where ads appear?
Replies
0
Boosts
0
Views
670
Activity
Apr ’23
The default Safari App Extension created by Xcode does nothing.
I just installed the default safari app extension (the one created by Xcode) on my mac. Its icon is visible in Safari, but when I run the extension, nothing happens. Then when using the Safari/Developer/Web Inspector/ and choosing Sources, an Extension Script folder does not appear at the lower left. Do you have any suggestions to resolve this problem?
Replies
2
Boosts
1
Views
1.4k
Activity
Mar ’23
Safari developer console “computed panel” next to the CSS
Hello, does somebody how to get rid off this “conputed panel” next to the basic CSS tab? If I am trying to hide it, I can’t, even I disable the CSS tab, I can’t. I don’t see any solution here on forum even on the internet or in setting the console or on official WebKit page, where this part is mentioned. Here is the mention of the “computed panel” - https://webkit.org/web-inspector/elements-tab/
Replies
1
Boosts
3
Views
2.5k
Activity
Mar ’23
Receiver class org.openqa.selenium.safari.SafariDriverService$Builder does not define or inherit an implementation of the resolved method 'abstract com.google.common.collect.ImmutableList createArgs()' of abstract class org.openqa.selenium.remote.ser
Hello, I am new to safari, and the safari web driver and I am trying to write a java program using selenium to open a web page.... import org.openqa.selenium.WebDriver; import org.openqa.selenium.safari.SafariDriver; // import org.openqa.selenium.Saf // I have not imported the following // import org.openqa.selenium.safari.SafariDriver; // because this does not provide me with the SafariDriver. public class Test_SafariDemo { // the purpose of this class is to test the Safari driver // Written by Michael John Little // Based on a Java program from... // https://www.browserstack.com/guide/run-selenium-tests-on-safari-using-safaridriver public static void main(String[] args) { // lets Instantiate a Safari driver class WebDriver drvr =null; try { drvr = new SafariDriver(); } catch (Exception e) { System.out.print(e); } // lets Launch the Google website drvr.navigate().to("http://www.google.com/"); // lets click on the search box and send a value drvr.findElement(By.id("lst-ib")).sendKeys("BrowserStack"); // click the search button drvr.findElement(By.name("btnK")).click(); //close the browser //drvr.close(); }// close public static void main(String[] args) } // public class Test_SafariDemo But I am getting the following [exception] message when I execute my code... Exception in thread "main" java.lang.AbstractMethodError: Receiver class org.openqa.selenium.safari.SafariDriverService$Builder does not define or inherit an implementation of the resolved method 'abstract com.google.common.collect.ImmutableList createArgs()' of abstract class org.openqa.selenium.remote.service.DriverService$Builder. at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:358) at org.openqa.selenium.safari.SafariDriverService.createDefaultService(SafariDriverService.java:75) at org.openqa.selenium.safari.SafariDriver.<init>(SafariDriver.java:60) at org.openqa.selenium.safari.SafariDriver.<init>(SafariDriver.java:49) at Test_SafariDemo.main(Test_SafariDemo.java:25) Process finished with exit code 1 Any suggestions? Are there configuration options that I need to set when I instantiate the safariDriver class with?
Replies
1
Boosts
0
Views
1.4k
Activity
Feb ’23
SFSafariViewController's `Save This Password?` prompt
In iOS 11, if `Settings &amp;gt; Safari &amp;gt; AutoFill &amp;gt; Names and Passwords` is set to `True`, then SFSafariViewController prompts `Save This Password?` alert/actionSheet. However, dismissing the `SFSafariViewController`, dismissing the alert before user has a chance to respond to the alert. How shall I take control of the alert and dismiss the SFSafariViewController only when user has responded to an alert?Thank you!Regards,Nimesh
Replies
3
Boosts
0
Views
3.2k
Activity
Feb ’23
Safariのタブ画面が前面に出てこない事象について
<事象> iPad端末のSafariにおいて、Safariを使用したWEBシステムAのWeb画面からWebシステムBのボタンをクリックし、 WebシステムBのタブ画面を呼び出す際に、WebシステムBの既存タブ画面が前面に出てこない事象が発生。 ※詳細は添付資料の項番2~4をご参照 <端末情報> ・iPad Air ・iOSのバージョン:16.1 ・Safariのバージョン:605.1.15 <質問事項> 呼出されるWebシステムBのタブ画面が前面に出てこない事象について、お手数ですが Safariの仕様・設定面から考えられる理由及び、タブを前面に出す方法を1/17(火)迄にご教示頂きたい。
Replies
0
Boosts
0
Views
1.1k
Activity
Jan ’23
How Can I Synchronize Safari Tap group between devices?
I used to synchronize it well between my Ipad and Iphone but when I update to IOS16 developer beta, my safari begun to occur bugs in Safari so I turn off Safari in Icloud but when I turn on the Safari toggle in Icloud, they didnt sync between devices. I did toggle off the Safari toggl in cloud, in all devices, and turn off the device and turn on, erase backups, update new IOS with desktop and so many method to solve this problem. Does anyone have same issue with me and solve the problem? Plz save me from this suffer.
Replies
0
Boosts
0
Views
872
Activity
Dec ’22
Unable to access web view & text fields in SFSafariViewController UI test with Xcode 11.3
We used to be able to enter usernames / passwords in SFSafariViewController by running the query app.webViews but we're no longer able to do so.Does anyone know how to do this with Xcode 11.3 ?thanks,David
Replies
21
Boosts
0
Views
8.0k
Activity
Nov ’22
Websocket connection dropping in Safari when page not in focus in iOS 15
Our website use web-socket and the web-socket connection drop randomly when the page not in focus for a while. but the web socket state is till show "OPEN". this is occurred in safari in iOS15. this issue is occurred very randomly.
Replies
0
Boosts
0
Views
1.3k
Activity
Nov ’22
IndexDB AbortError on ASWebAuthenticationSession
When opening a session to log into my website, there is, if exists, information stored in IndexDB we are trying to access from a previous session. Ideally, information from living in Safari, but would settle for information in the parent app or instance. My understanding was information 'like cookies' was available, but documentation is seemlingly vague around this topic. I have struggled to find anything explaining the availability of IndexDB specifically, although it does work in one case (I'm about to experiment with it, so I just know of one now). Upon first loading of the page, a get call: const ids: string[]; const results = await this.db.entities.bulkGet(ids); In the logs, I see there is this error: _e: Error: Error name: AbortError message: The operation was aborted. AbortError: The operation was aborted. inner: DOMException: The operation was aborted. Immediately after, because there is supposed to be some result from the database, the site creates a new entity, and stores it with no issue. This information does not persist however, as opening a second session, the same operation happens due to the same error. We're using XState, which typically is able to catch this error and continue, sometimes does not catch the error, and the state stands still. So far, this behavior has only been experience on iOS with ASWebAuthenticationSession (not ephemeral). Any insight would be appreciated, even if it means abandoning this webview class for something more for this purpose.
Replies
0
Boosts
0
Views
909
Activity
Oct ’22
BUG Report: 15.5 Video object-fit:fill Does not work anymore on load
With the iOS version 15.5 the CCS object-fit attribute does not work initially on Safari with videos anymore. When we inspect the DOM and uncheck the attribute, to recheck it, it works. But, of course that's not a proper workaround. Adding "important" does not work as well. If you reset the height: The result is flickering. On 15.4 everything works as expected.
Replies
6
Boosts
4
Views
4.7k
Activity
Oct ’22