Safari Developer Tools

RSS for tag

Inspect, edit, debug, and check the performance of your web content using Safari developer tools.

Posts under Safari Developer Tools tag

200 Posts

Post

Replies

Boosts

Views

Activity

How to reset Safari Extensions and their permissions
Hi, I have an extension on which I have allowed "foo.com", but then from permissions in manifest.json I removed "foo.com" then re-built the extension but still see "foo.com" in the extension's permissions list in preferences. Then I uninstalled the extension and re-built, still I can see "foo.com" in the list and allowed, it should not have been there, as I have removed now. How do I reset an extension in Safari? If even uninstalling and reinstalling is not working? Thanks
3
1
2k
May ’22
Smart App Banner and apple-app-site-association file relation
Hi,I have been struggling to understand how the smart app banners are displayed in safari even though no meta tag is present on any of our website page. My assumption is that, apple-app-site-association file is being used automatically to display the banners on our website, is this true?I have read through all the documentation and WWDC videos from 2015(Session 509) to make sure this assumtion is valid but unfortunately there is no link between the smart app banners and apple-app-site-association file.My requirement is: We still want to support the universal links but remove the smart app banners on our website.Thanks,Sumit
3
1
8.9k
Apr ’22
im trying to get debug off the safari menu bar
looking for help to remove debug of the safari menu bar, i added it over a year ago and wanted to remove it. i will be migrating from back my 2012 MacBook Pro to my new 2021 MacBook Pro M1 Max. I did not want the debug on safari migrated over. i have a MID 2012 MacBook Pro that is up to date, mac OS Catalina 10.15.7, Safari is 15.4, Terminal is 2.10 (433) i have run this command in terminal, defaults write com.apple.Safari IncludeInternalDebugMenu 0 all that shows after the command is my name with the % Im using the correct default shell in terminal bin/zsh I tried to remove debug in both bash and zsh i am not getting any error, i ran the terminal command without safari running and i have restarted my MacBook Pro after running the command. when i open safari Debug is still in the menu bar. i ran this command defaults read com.apple.Safari this is what shows, { IncludeInternalDebugMenu = 0; }
0
0
544
Apr ’22
Analogous WebExtension API that is available in AppExtensions (Safari)
In Safari AppExtensions we have this API made available https://developer.apple.com/documentation/safariservices/sfsafariextensionhandling/3238030-contentblocker?changes=_8__2 optional func contentBlocker(withIdentifier contentBlockerIdentifier: String, blockedResourcesWith urls: [URL], on page: SFSafariPage) Is there something made available to WebExtension given WebRequest blocking isn't available in Safari.
2
0
1.3k
Apr ’22
Safaridriver launch Safari browser can not select physical audio/ video device
Requirement : Safaridriver provide option to disable Use Mock Capture Devices when use webdriver. Problem : In Mac OS, when use Safaridriver open a Safari browser for WebRTC samples, the audio input source only display Mock device (audio: Mock audio device 1/ Mock audio device 2 , video: Mock video device 1/ Mock video device 2) but not display Mac OS physical audio/video device . From safaridriver readMe, seems no configure can set Use Mock Capture Devices , because WebDrier test not support live media capture "For security reasons, Safari does not permit live media capture during a WebDriver test session. Instead, mock capture devices and streams with well-known contents are provided for testing purposes. " (In Mac OS, cd/Library/Apple/System/Library/CoreServices/SafariSupport.bundle/Contents/MacOS , man safaridriver)  From safaridriver debug log, safaridriver not provide any configure for disable Mock device. Reference : WebRTC samples link: https://webrtc.github.io/samples/src/content/devices/input-output/ safaridriver debug logs: [safaridriver.82081.txt] (https://developer.apple.com/forums/content/attachment/3806528b-d972-4459-8647-d4e6a4aae20a) Reproduce demo: SafariDriverDebug.java pom.xml dependency:
0
0
1.4k
Apr ’22
Safari Crashing whilst using Selenium WebDriver
I´ve been creating a automatic Instagram Login for the past few days now but now I have encountered my probably biggest problem. Whenever I try to click on the "Not now" Button automatically for Remembering my Password on Instagram, which it does , Safari Crashes completely, not only the automatically processed tabs even the ones no Program is using. This is the code I use to press the "Not now" Button: new WebDriverWait(driver, Duration.ofSeconds(10)); WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10)); WebElement Nichtjetzt = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//button[text()='Not Now']"))); WebElement Notnow = driver.findElement(By.xpath("//button[text()='Not Now']")); ((JavascriptExecutor)driver).executeScript("arguments[0].click();",Notnow); When I now try to execute the Method it will press only essential cookies fill out my username and password and press the login button , but then when it gets to the Press Not now button it will press it and immediately crash. This will then be the Error Code: Safari Error Code Question Ending
0
0
1.1k
Apr ’22
Safari handling the pause event
Hi, I'm working on screen recording in Safari. After permission prompted and recording started I see red icon with "screens" next to search bar and the same icon but with white color in tray. After clicking on such icon I can see "pause" option. Is it possible to catch event from that action or disable such option at all? Screenshot:
0
0
532
Mar ’22
Resource Caching and Web Inspector Network Tab
While testing resource caching over Safari it's been observed that some of the information related to resource caching in the Network Tab of Web Inspector is wrong/misleading, or Safari may be having some random behaviour regarding resource caching.All our resources are using a "Cache-Control" response header with value "max-age=0, must-revalidate", so we're expecting that Safari will always revalidate with the server. Our resources are Javascript, CSS, and HTML static files.For these requests, where a 304 (Not Modified) response status is expected, Web Inspector is *sometimes* displaying a 200 (OK) response status, along with that a Transferred value of 0. Other responses properly display the 304 status along with 204 B size (the expected result). All requests display the Cached file as Yes.- Do you have any idea why some resources seem to have a 200 status + 0 bytes transferred, whilst others have the expected 304 status + 204 B transferred?- Could the 200 status + 0 transferred bytes mean that Safari isn't actually attempting to revalidate the resource with the web server? (all resources in the app are served with the same "Cache-Control" response header so we would expect Safari to behave in the same way for all.- Is there any place where information about the meaning of the different columns in Web Inspector tab can be found? (The Web Inspector guide seems updated only up to Safari 6.1).We're testing on Safari 9.1.3. I've reviewed release notes for all WebKit 10 releases but I couldn't find reports of any fix in this area of the browser.Thanks in advance for any inputs you may provide.
1
0
2.5k
Mar ’22
What is the configurations of macOS for manifest v3 on safari?
Safari version : 15.3 Os version : 12.2.1 This is after latest updates and manifest v3 is not supported. So i need to downgrade manifest version to 2. What can be the solution to run manifest v3 with current mac and safari version? Also, My safari is not getting updated after updating os, Im using intel processor. What can be done to update safari version to 15.4?
1
0
1.3k
Mar ’22
Oracle Custom Application content is not loading within Iframe in Iphone after Upgrade to IOS15
Hi Developers, I created a custom oracle application which is working fine in Windows browser and android browsers, but not working within iframe in IOS15. Previously, it was working fine but after upgradation in IOS15 My application is not working any more within Iframe although it is working without iframe in same IOS testing Device which is useless for me. i am trying to fix this issue from last 6 months but unable to resolve. Any pointers to solve this issue will be greatly appreciated. Thanks in Advance
0
0
863
Mar ’22
Simulator not showing in Safari develop tool
I have updated my mac OS from Big Sur(11) to Monterey(12.3.1) and I downloaded the latest Xcode version(13.3.1) but after this update, I can't able to see the simulator on the Develop menu under Safari. Can anyone help me with this?
Replies
1
Boosts
0
Views
1.2k
Activity
Jun ’22
Can Safari Browser still be added to Apple TV via Xcode in 2022?
There was a procedure from 2016 on how to add the Safari Browser to Apple TV in 2016. Can that still be done in 2022? I tried a build but continued to get errors; even after pasting the appropriate codes in Availability.h file. Any fix? Thanks
Replies
0
Boosts
0
Views
665
Activity
Jun ’22
Chrome Workspaces Style Functionality in Safari
How can we achieve Chrome Workspaces type functionality in Safari, where inside Web Inspector you can edit the source files in the Sources Panel and then save the changes to disk.
Replies
0
Boosts
0
Views
490
Activity
May ’22
"Plan B" SDP format support question.
Google plan to remove "Plan B" SDP format in M102, is Safari also remove it in a near version?
Replies
0
Boosts
0
Views
492
Activity
May ’22
How to reset Safari Extensions and their permissions
Hi, I have an extension on which I have allowed "foo.com", but then from permissions in manifest.json I removed "foo.com" then re-built the extension but still see "foo.com" in the extension's permissions list in preferences. Then I uninstalled the extension and re-built, still I can see "foo.com" in the list and allowed, it should not have been there, as I have removed now. How do I reset an extension in Safari? If even uninstalling and reinstalling is not working? Thanks
Replies
3
Boosts
1
Views
2k
Activity
May ’22
How to hide home screen indicator in web app html tag
Is it possible to hide the home screen indicator present on iOS devices with no home button on webpages that have been added to home screen? I know it is possible on iOS apps, but I cannot find anything related to safari webpages added to home screen.
Replies
0
Boosts
0
Views
1.2k
Activity
Apr ’22
Smart App Banner and apple-app-site-association file relation
Hi,I have been struggling to understand how the smart app banners are displayed in safari even though no meta tag is present on any of our website page. My assumption is that, apple-app-site-association file is being used automatically to display the banners on our website, is this true?I have read through all the documentation and WWDC videos from 2015(Session 509) to make sure this assumtion is valid but unfortunately there is no link between the smart app banners and apple-app-site-association file.My requirement is: We still want to support the universal links but remove the smart app banners on our website.Thanks,Sumit
Replies
3
Boosts
1
Views
8.9k
Activity
Apr ’22
Why does iPhone's Safari don't have full screen
I've been doing a web page recently.I want to be more cool.so want to Full screen. But why not
Replies
1
Boosts
0
Views
658
Activity
Apr ’22
im trying to get debug off the safari menu bar
looking for help to remove debug of the safari menu bar, i added it over a year ago and wanted to remove it. i will be migrating from back my 2012 MacBook Pro to my new 2021 MacBook Pro M1 Max. I did not want the debug on safari migrated over. i have a MID 2012 MacBook Pro that is up to date, mac OS Catalina 10.15.7, Safari is 15.4, Terminal is 2.10 (433) i have run this command in terminal, defaults write com.apple.Safari IncludeInternalDebugMenu 0 all that shows after the command is my name with the % Im using the correct default shell in terminal bin/zsh I tried to remove debug in both bash and zsh i am not getting any error, i ran the terminal command without safari running and i have restarted my MacBook Pro after running the command. when i open safari Debug is still in the menu bar. i ran this command defaults read com.apple.Safari this is what shows, { IncludeInternalDebugMenu = 0; }
Replies
0
Boosts
0
Views
544
Activity
Apr ’22
Analogous WebExtension API that is available in AppExtensions (Safari)
In Safari AppExtensions we have this API made available https://developer.apple.com/documentation/safariservices/sfsafariextensionhandling/3238030-contentblocker?changes=_8__2 optional func contentBlocker(withIdentifier contentBlockerIdentifier: String, blockedResourcesWith urls: [URL], on page: SFSafariPage) Is there something made available to WebExtension given WebRequest blocking isn't available in Safari.
Replies
2
Boosts
0
Views
1.3k
Activity
Apr ’22
Safaridriver launch Safari browser can not select physical audio/ video device
Requirement : Safaridriver provide option to disable Use Mock Capture Devices when use webdriver. Problem : In Mac OS, when use Safaridriver open a Safari browser for WebRTC samples, the audio input source only display Mock device (audio: Mock audio device 1/ Mock audio device 2 , video: Mock video device 1/ Mock video device 2) but not display Mac OS physical audio/video device . From safaridriver readMe, seems no configure can set Use Mock Capture Devices , because WebDrier test not support live media capture "For security reasons, Safari does not permit live media capture during a WebDriver test session. Instead, mock capture devices and streams with well-known contents are provided for testing purposes. " (In Mac OS, cd/Library/Apple/System/Library/CoreServices/SafariSupport.bundle/Contents/MacOS , man safaridriver)  From safaridriver debug log, safaridriver not provide any configure for disable Mock device. Reference : WebRTC samples link: https://webrtc.github.io/samples/src/content/devices/input-output/ safaridriver debug logs: [safaridriver.82081.txt] (https://developer.apple.com/forums/content/attachment/3806528b-d972-4459-8647-d4e6a4aae20a) Reproduce demo: SafariDriverDebug.java pom.xml dependency:
Replies
0
Boosts
0
Views
1.4k
Activity
Apr ’22
Safari Crashing whilst using Selenium WebDriver
I´ve been creating a automatic Instagram Login for the past few days now but now I have encountered my probably biggest problem. Whenever I try to click on the "Not now" Button automatically for Remembering my Password on Instagram, which it does , Safari Crashes completely, not only the automatically processed tabs even the ones no Program is using. This is the code I use to press the "Not now" Button: new WebDriverWait(driver, Duration.ofSeconds(10)); WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10)); WebElement Nichtjetzt = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//button[text()='Not Now']"))); WebElement Notnow = driver.findElement(By.xpath("//button[text()='Not Now']")); ((JavascriptExecutor)driver).executeScript("arguments[0].click();",Notnow); When I now try to execute the Method it will press only essential cookies fill out my username and password and press the login button , but then when it gets to the Press Not now button it will press it and immediately crash. This will then be the Error Code: Safari Error Code Question Ending
Replies
0
Boosts
0
Views
1.1k
Activity
Apr ’22
Dosen't work correctly Safari Web Debugger in iOS 12.2 devices
Hello.I tried connect Safari Web Inspector to Safari on iOS devices(iOS 12.2.). But Nothng display any data.However It's works correctly iOS Devices on iOS 12.1.x or below.
Replies
13
Boosts
0
Views
41k
Activity
Mar ’22
Web development environment
I want to change web development environment. do you have good ones? I want to know what Myles used. Please check out 9:30 of this video. https://developer.apple.com/videos/play/wwdc2021/10029/
Replies
4
Boosts
0
Views
2.7k
Activity
Mar ’22
Safari handling the pause event
Hi, I'm working on screen recording in Safari. After permission prompted and recording started I see red icon with "screens" next to search bar and the same icon but with white color in tray. After clicking on such icon I can see "pause" option. Is it possible to catch event from that action or disable such option at all? Screenshot:
Replies
0
Boosts
0
Views
532
Activity
Mar ’22
Resource Caching and Web Inspector Network Tab
While testing resource caching over Safari it's been observed that some of the information related to resource caching in the Network Tab of Web Inspector is wrong/misleading, or Safari may be having some random behaviour regarding resource caching.All our resources are using a "Cache-Control" response header with value "max-age=0, must-revalidate", so we're expecting that Safari will always revalidate with the server. Our resources are Javascript, CSS, and HTML static files.For these requests, where a 304 (Not Modified) response status is expected, Web Inspector is *sometimes* displaying a 200 (OK) response status, along with that a Transferred value of 0. Other responses properly display the 304 status along with 204 B size (the expected result). All requests display the Cached file as Yes.- Do you have any idea why some resources seem to have a 200 status + 0 bytes transferred, whilst others have the expected 304 status + 204 B transferred?- Could the 200 status + 0 transferred bytes mean that Safari isn't actually attempting to revalidate the resource with the web server? (all resources in the app are served with the same "Cache-Control" response header so we would expect Safari to behave in the same way for all.- Is there any place where information about the meaning of the different columns in Web Inspector tab can be found? (The Web Inspector guide seems updated only up to Safari 6.1).We're testing on Safari 9.1.3. I've reviewed release notes for all WebKit 10 releases but I couldn't find reports of any fix in this area of the browser.Thanks in advance for any inputs you may provide.
Replies
1
Boosts
0
Views
2.5k
Activity
Mar ’22
Mobile Web Inspector doesn't work with Safari 13
Problem :1 - Device is not shown in Safari when iOS device is connected and opened on a Safari Page.2 - I can see in Xcode that device is well detected by OSX.3 - it Stopped to work since Safari 13 release.Expected behavior :- See my connected device in OSX Safari to inspect itHow can i make it work ?
Replies
16
Boosts
0
Views
33k
Activity
Mar ’22
What is the configurations of macOS for manifest v3 on safari?
Safari version : 15.3 Os version : 12.2.1 This is after latest updates and manifest v3 is not supported. So i need to downgrade manifest version to 2. What can be the solution to run manifest v3 with current mac and safari version? Also, My safari is not getting updated after updating os, Im using intel processor. What can be done to update safari version to 15.4?
Replies
1
Boosts
0
Views
1.3k
Activity
Mar ’22
Safari Network tab not showing Time, and Disable Cache not working.
I'm using Safari 14.0.2. In the network tab, the Time column is just showing -- and not the time it takes to load the file requested. If I click on the disable cache button, safari is still loading files from memory instead of requesting from origin.
Replies
2
Boosts
0
Views
2.9k
Activity
Mar ’22
Oracle Custom Application content is not loading within Iframe in Iphone after Upgrade to IOS15
Hi Developers, I created a custom oracle application which is working fine in Windows browser and android browsers, but not working within iframe in IOS15. Previously, it was working fine but after upgradation in IOS15 My application is not working any more within Iframe although it is working without iframe in same IOS testing Device which is useless for me. i am trying to fix this issue from last 6 months but unable to resolve. Any pointers to solve this issue will be greatly appreciated. Thanks in Advance
Replies
0
Boosts
0
Views
863
Activity
Mar ’22