Safari 11.0
Safari 11.0 ships with iOS 11.0 and macOS 10.13. It is also available in macOS 10.12.6 and 10.11.6.
Highlights of Safari 11.0
Web conferencing. Implement peer to peer conferencing with the WebRTC standard.
Metrics. Test your code using new tools for measuring code and network performance.
WebAssembly. Writer smaller, faster web apps.
New WKWebView APIs. Capture snapshots, handle custom URL schemes, manage cookies more effectively, and implement web content filtering.
WebKit
New in Safari 11.0 - Handle custom schemes.
Added
WKURLSchemeHandler
, a protocol for handling custom schemes.
New in Safari 11.0 – More effective cookie management.
Added
WKHTTPCookieStore
, an object that manages the HTTP cookies associated with a particularWKWebsiteDataStore
.
New in Safari 11.0 – Support for snapshots.
Added
takeSnapshot(with:completionHandler:)
toWKWebView
, a method to capture a snapshot of the visible part of the webpage.
New in Safari 11.0 - Rule-based content handling.
Added
WKContentRuleList
, a compiled list of rules to apply to web content.
SafariServices
New in Safari 11.0 – Share authenticated login sessions.
Added
SFAuthenticationSession
, a new API for authenticating a user with a web service, and then to share that authentication with other apps.Use the
init
method to start the authentication session, providing the URL of the webpage in theurl
parameter. After completing the authentication, the completion handler is called either with an authentication token, or with an error.The authentication page presented by
SFAuthenticationSession
has access to Safari cookies and other website data.
Updated
SFSafariViewController
.Added functionality to change the title of the button used to dismiss the view controller, to exclude activity items from the share sheet, and to disable bar collapsing.
Media
New in Safari 11.0 – Support for real-time communication using WebRTC.
New in Safari 11.0 – Camera and microphone access.
Added support for the Media Capture API.
Added ability for websites to access camera and microphone streams from a user's device (user permission is required.)
Web APIs
New in Safari 11.0 – WebAssembly.
Added support for WebAssembly, a fast, efficient, portable, and safe code format.
Updated Safari to the latest version of the WebCrypto API.
Includes new cryptographic algorithms like: AES-CFB, AES-GCM, ECDH, and PBKDF2.
SubtleCrypto is no longer prefixed and is now asynchronous.
New in Safari 11.0 – Resource timing.
Added support for collecting detailed measurements of all network timing data for every resource on the page.
Added support for Resource Timing Level 2, Performance Timing Level 2, and for User Timing Level 2.
Added metrics for developers to identify client-side performance issues for web apps.
New in Safari 11.0 – Drag and drop in iOS.
Added DOM events on iOS for drag and drop:
dragstart
,dragenter
,dragover
,dragexit
,dragleave
,dragend
, anddrop
.
Web Apps
Updated WebKit support for home screen apps.
Web applications saved to the home screen now support all features of modern WebKit, such as Fast-Tap, scroll snapping and the new visual viewports behavior.
Security and Privacy
New in Safari 11.0 - Enhanced user privacy by preventing cross-site tracking.
Added Intelligent Tracking Prevention, which updates the default cookie and website data policy to isolate and remove cookies and website data for sites with the ability to track users across-site.
Updated file restrictions to block cross origin access by default.
CORS and cross origin access from
file://
are now blocked unless Disable Local File Restrictions is selected from the Develop menu.
Text Features
New in Safari 11.0 – Variable fonts.
Added support for font variations defined in the CSS Fonts Module 4 specification. For more detail, see Variable Fonts. Requires macOS 10.13 High Sierra or later, or iOS 11 or later.
New in Safari 11.0 – CSS stroke support.
Added stroke properties from the CSS Stroke specifications including
paint-order
,stroke-linejoin
,stroke-linecap
,stroke-color
,stroke-width
, andstroke-miterlimit
.
Web Inspector and Tools
New in Safari 11.0 – Inspect WebSocket connections.
Added debugging of WebSocket connections and messages.
New in Safari 11.0 – Right-to-left layouts.
Updated the Web Inspector UI to use a right-to-left (RTL) mode when the preferred language is an RTL language.
Added DOM breakpoints and XHR breakpoints.
Added breakpoints to pause script execution and display JavaScript that modifies elements in the DOM, or that makes an
XMLHttpRequest
to a resource.
Safari Extensions
New in Safari 11.0 – Content blocker rules.
Added
if-top-url
andunless-top-url
, new triggers that execute when a regular expression is matched against the entirety of the main document URL.
Copyright © 2018 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2018-02-22