您是否一直遇到“ Safari无法打开网页;尝试在Safari浏览器中加载网页时, (Safari)WebKit遇到内部错误”或“ WebKit ErrorDomain:300”错误代码?我们将向您展示如何在 iPhone、iPad 和Mac上解决此问题。
Apple设备使用WebKit引擎在Safari中呈现网页。然而,各种原因,例如损坏的Safari缓存、冲突的实验功能以及损坏的浏览器配置,都可能导致渲染引擎停止工作,从而导致“ WebKit遇到内部错误”。执行(Run)以下修复以使Safari再次正常工作。
退出并重新打开 Safari
修复 Safari 的“ WebKit遇到内部错误”的最快方法是强制退出并重新打开 Web 浏览器。这几乎总能消除WebKit的意外故障和其他问题。
iPhone 和 iPad
- (Swipe)从屏幕底部向上滑动(或按两次Home 键(Home button))打开App Switcher。
- (Swipe)从屏幕上
滑开Safari卡。(Safari)
- 退出到主屏幕(Home Screen)并重新打开Safari。
苹果电脑
- Press Command + Option + Escape打开强制退出(Force-Quit)对话框。
- 选择 Safari(Choose Safari)并选择强制退出(Force-Quit)按钮。
- 等待几秒钟,然后通过Launchpad(Launchpad)或Dock重新打开 Web 浏览器。
重新启动您的设备
如果强制退出Safari没有修复“WebKit Encountered an Internal Error ”,您必须通过重新启动 iPhone(restarting your iPhone)或Mac设备来继续。这应该可以解决系统端阻止浏览器工作的随机问题。
在重新启动Mac时,请确保通过取消选中重新登录时重新打开(Reopen)窗口选项
来阻止 macOS 保存有错误的Safari应用程序状态。
更新操作系统
以下修复涉及更新Safari。由于它是本机应用程序,因此唯一的方法是将Apple设备上的系统软件更新到最新版本。
iPhone 和 iPad
- 打开设置应用程序。
- 点击常规 > 软件更新。
- 点击下载并安装。
苹果电脑
- 打开Apple菜单并选择系统设置(System Settings)。
- 选择(Select General)侧边栏上的常规。然后,选择窗口右侧的
软件更新。(Software Update)
- 选择立即更新(Update)(如果您只需要完成更新,则选择立即重新启动)。
注意:如果您的Mac运行 macOS 12 Monterey或更早版本,请打开“系统(System) 偏好设置”(Preferences)应用并选择“Software Update > Update立即更新”以更新其系统软件。
清除 Safari Web 缓存
如果“WebKit 遇到内部错误”仍然存在,是时候清除 Safari 缓存了(clear the Safari cache)。
iPhone 和 iPad
- 打开设置应用程序。
- 向下滚动并点击 Safari。
- 点击清除历史记录(History)和网站数据(Website Data)。
苹果电脑
- 打开Safari并在菜单栏上
选择Safari >清除历史记录。(Clear History)
- 将清除所有历史记录。
- 选择清除历史记录。
禁用所有 Safari 扩展
Safari显示“ WebKit遇到内部错误”的另一个原因是浏览器扩展未优化或冲突。尝试禁用它们。
iPhone 和 iPad
- 打开设置(Settings)应用程序并点击Safari。
- 点击扩展。
- 禁用所有内容阻止程序和扩展程序。
苹果电脑
- 打开Safari并在菜单栏上
选择Safari > Settings/Preferences
- 切换到扩展选项卡。
- 取消选中所有附加组件旁边的框并退出“首选项”(Preferences)窗格。
如果“WebKit 遇到内部错误”消息不再出现在Safari中,请打开App Store并为您的扩展安装任何待处理的更新。然后,一个一个地重新激活每个浏览器插件。如果特定扩展导致错误消息重新出现,请禁用或卸载它并寻找替代扩展。
进入和退出安全模式(Safe Mode)(仅限
Mac )
如果“WebKit 遇到内部错误”继续出现在Mac版本的Safari中,请尝试将您的 Mac 引导到和退出安全模式(booting your Mac into and out of Safe Mode)。这清除了各种形式的冗余数据,阻止了Safari等应用程序的工作。
苹果硅 Mac
- 关闭MacBook、i Mac或Mac mini。
- 再次打开Mac,但不要松开电源(Power)按钮;您很快就会看到“启动(Startup) 选项(Options)”屏幕。
- 按住Shift键并选择Macintosh HD > Safe Mode。
英特尔 Mac
- 关闭你的 Mac。
- (Boot)按住(Mac)Shift键
启动Mac 。
- 看到Apple标志
后松开Shift键。(Shift)
在安全模式下(Safe Mode),短暂打开Safari并检查是否出现WebKit错误。如果是,请继续清除 Mac 上其他形式的缓存数据(clearing additional forms of cached data on your Mac)。如果没有,请正常启动您的 Mac。
禁用专用中继功能
如果您订阅了 iCloud+,您的 iPhone、iPad 或Mac可能会启用名为Private Relay的功能,通过保护未加密的网站流量来改善隐私。但是,它仍处于测试阶段,并在Safari中产生问题。所以禁用私人中继(Private Relay)并检查是否有区别。
iPhone 和 iPad
- 打开设置应用程序。
- 前往Apple ID > iCloud > Privacy Relay。
- 关闭Private Relay旁边的开关。
苹果电脑
- 打开系统设置应用程序。
- 在边栏中选择您的Apple ID。然后,选择 iCloud。
- 禁用Private Relay(Private Relay)旁边的开关。
注意:要在 macOS Monterey或更早版本中禁用 Private Relay,请转到“System Preferences > Apple ID > iCloud”。
禁用私人 Wi-Fi 地址(Private Wi-Fi Addresses)(仅限 iPhone 和 iPad)
在 iPhone 和 iPad 上, Safari(Safari)中“WebKit 遇到内部错误”的另一个原因是使用了私有 Mac (Wi-Fi) 地址(private Mac (Wi-Fi) addresses)。要阻止它:
- 打开iPhone 上
的设置应用程序,然后选择 Wi-Fi 选项。(Settings)
- 点击活动 Wi-Fi 连接旁边
的信息按钮。(Info)
- 禁用 Private Wi-Fi Address(Wi-Fi Address)旁边的开关。
禁用HTTP/3 Experimental Feature
HTTP/3是一种改进延迟和加载时间的协议。但是,它仅作为一个实验性的Safari功能提供,并且很容易破坏。检查它是否处于活动状态并禁用它。
iPhone 和 iPad
- 打开设置应用程序。
- Tap Safari > Advanced > Experimental Features。
- 关闭HTTP/3旁边的开关。
苹果电脑
- 打开Safari Settings/Preferences窗格。
- 切换到“开发(Develop)”选项卡并选中菜单栏中的“
显示开发(Show Develop)”菜单旁边的框。
- 选择(Select Develop)菜单栏上的开发,打印到Experimental Features,然后取消选中HTTP/3选项。
(Reset Experimental) 将实验首选项(Preferences)重置为默认值
如果上述修复均无济于事,请尝试将所有实验性Safari功能重置为其默认设置。
iPhone 和 iPad
- 打开设置应用程序。
- Tap Safari > Advanced > Experimental Features。
- 向下滚动(Scroll)并点击全部重置(Reset All)为默认值(Defaults)。
苹果电脑
在Safari(Safari)中打开Develop菜单(如果必须取消隐藏),指向Experimental Features,然后向下滚动到底部。然后,选择全部重置(Reset)为默认值(Defaults)。
Safari 再次照常工作
上面的故障排除提示应该可以帮助您解决Safari(Safari)中的“WebKit 遇到内部错误”问题。如果再次遇到问题,请务必执行上述快速修复。
假设WebKit错误没有消失。如果是这样,请切换到其他浏览器,例如Google Chrome、Firefox或Microsoft Edge,并等待未来的 iOS 或 macOS 更新永久解决该问题。在Mac上,您还可以将 Safari 恢复出厂设置为默认设置(factory reset Safari to its default settings)。
How to Fix Webkit Encountered an Internal Error in Safari
Do you keep running into a “Sаfari cannot open webpage; WebKit encountered an internal errоr” or a “WebKitErrorDomain:300” error code while attempting to load webpages in your Sаfari browser? We’ll show you how to fix that on the iPhone, iPad, аnd Mac.
Apple devices use the WebKit engine to render webpages in Safari. However, various reasons, such as a corrupt Safari cache, conflicting experimental features, and a broken browser configuration, can stop the rendering engine from working, resulting in the “WebKit encountered an internal error.” Run through the fixes below to get Safari working as usual again.
Quit and Re-open Safari
The quickest way to fix Safari’s “WebKit encountered an internal error” is to force-quit and re-open the web browser. That almost always eliminates unexpected glitches and other problems with WebKit.
iPhone and iPad
- Swipe up from the bottom of the screen (or press the Home button twice) to open the App Switcher.
- Swipe away the Safari card from the screen.
- Exit to the Home Screen and re-open Safari.
Mac
- Press Command + Option + Escape to open the Force-Quit dialog.
- Choose Safari and select the Force-Quit button.
- Wait a few seconds and re-open the web browser via Launchpad or Dock.
Restart Your Devices
If force-quitting Safari didn’t fix the “WebKit Encountered an Internal Error,” you must continue by restarting your iPhone or Mac device. That should resolve random issues on the system side preventing the browser from working.
While restarting a Mac, make sure to stop macOS from saving a buggy Safari application state by unchecking the Reopen windows when logging back in option.
Update the Operating System
The following fix involves updating Safari. Since it’s a native app, the only way to do that is to update the system software on your Apple device to its latest version.
iPhone and iPad
- Open the Settings app.
- Tap General > Software Update.
- Tap Download & Install.
Mac
- Open the Apple menu and select System Settings.
- Select General on the sidebar. Then, select Software Update on the right of the window.
- Select Update Now (or Restart Now if you only need to finalize the update).
Note: If your Mac runs macOS 12 Monterey or older, open the System Preferences app and select Software Update > Update Now to update its system software.
Clear the Safari Web Cache
If the “WebKit encountered an internal error” persists, it’s time to clear the Safari cache.
iPhone & iPad
- Open the Settings app.
- Scroll down and tap Safari.
- Tap Clear History and Website Data.
Mac
- Open Safari and select Safari > Clear History on the menu bar.
- Set Clear to all history.
- Select Clear History.
Disable All Safari Extensions
Another reason why Safari displays the “WebKit encountered an internal error” is because of unoptimized or conflicting browser extensions. Try disabling them.
iPhone and iPad
- Open the Settings app and tap Safari.
- Tap Extensions.
- Disable all content blockers and extensions.
Mac
- Open Safari and select Safari > Settings/Preferences on the menu bar.
- Switch to the Extensions tab.
- Uncheck the boxes next to all add-ons and exit the Preferences pane.
If the “WebKit encountered an internal error” message no longer appears in Safari, open the App Store and install any pending updates to your extensions. Then, re-activate each browser add-on one by one. If a particular extension causes the error message to re-appear, disable or uninstall it and look for an alternative extension.
Enter and Exit Safe Mode (Mac Only)
If the “WebKit encountered an internal error” continues to show up in the Mac version of Safari, try booting your Mac into and out of Safe Mode. That clears various forms of redundant data preventing apps like Safari from working.
Apple Silicon Mac
- Turn off your MacBook, iMac, or Mac mini.
- Turn your Mac on again but do not release the Power button; you’ll see the Startup Options screen soon.
- Hold the Shift key and select Macintosh HD > Safe Mode.
Intel Mac
- Turn off your Mac.
- Boot your Mac while holding down the Shift key.
- Release the Shift key once you see the Apple logo.
In Safe Mode, briefly open Safari and check if the WebKit error occurs. If it does, continue clearing additional forms of cached data on your Mac. If not, boot your Mac normally.
Disable the Private Relay Feature
If you subscribe to iCloud+, your iPhone, iPad, or Mac may have a feature called Private Relay active to improve privacy by protecting unencrypted site traffic. However, it’s still in beta and creates problems in Safari. So disable Private Relay and check if that makes a difference.
iPhone and iPad
- Open the Settings app.
- Go to Apple ID > iCloud > Privacy Relay.
- Turn off the switch next to Private Relay.
Mac
- Open the System Settings app.
- Select your Apple ID on the sidebar. Then, select iCloud.
- Disable the switch next to Private Relay.
Note: To disable Private Relay in macOS Monterey or older, go to System Preferences > Apple ID > iCloud.
Disable Private Wi-Fi Addresses (iPhone & iPad Only)
On the iPhone and iPad, another reason for the “WebKit encountered an internal error” in Safari is the use of private Mac (Wi-Fi) addresses. To stop that:
- Open the Settings app on your iPhone and select the Wi-Fi option.
- Tap the Info button next to the active Wi-Fi connection.
- Disable the switch next to Private Wi-Fi Address.
Disable the HTTP/3 Experimental Feature
HTTP/3 is a protocol that improves latency and load times. However, it’s only available as an experimental Safari feature and is prone to breaking things. Check if it’s active and disable it.
iPhone and iPad
- Open the Settings app.
- Tap Safari > Advanced > Experimental Features.
- Turn off the switch next to HTTP/3.
Mac
- Open the Safari Settings/Preferences pane.
- Switch to the Develop tab and check the box next to Show Develop menu in the menu bar.
- Select Develop on the menu bar, print to Experimental Features, and uncheck the HTTP/3 option.
Reset Experimental Preferences to Defaults
If none of the fixes above help, try resetting all experimental Safari features to their default settings.
iPhone and iPad
- Open the Settings app.
- Tap Safari > Advanced > Experimental Features.
- Scroll down and tap Reset All to Defaults.
Mac
Open the Develop menu in Safari (unhide it if you have to), point to Experimental Features, and scroll down to the bottom. Then, select Reset all to Defaults.
Safari Is Working As Usual Again
The troubleshooting tips above should help you resolve the “WebKit encountered an internal error” issue in Safari. Be sure to run through the quick fixes above if you run into the problem again.
Suppose the WebKit error doesn’t go away. If so, switch to a different browser like Google Chrome, Firefox, or Microsoft Edge and wait until a future iOS or macOS update permanently resolves the issue. On the Mac, you can also factory reset Safari to its default settings.