Documentation
¶
Overview ¶
Package platform says which profiles share a browser's network stack, so that a profile may inherit captures from the other's: Safari on iOS from Safari on macOS (decision 0051), Chrome and Firefox on iOS from Safari of their WebKit (decision 0053). cmd/profilegen enforces it on the built-in profiles and cmd/refresh plans by it; it stays out of the public profile package, whose Validate checks only that an inherited capture is the same browser's, or Safari's for Chrome or Firefox on iOS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Engine ¶ added in v0.3.0
Engine is the browser whose engine and network stack browser uses on platform, from whose profiles a profile of browser on platform may also inherit captures, "" for none: Safari for Chrome and Firefox on iOS, which load pages through WebKit and Apple's network stack. Such a profile inherits only from the engine's profiles of its WebKit generation (WebKitVersion, or for a frozen user agent the iOS version it was captured on), on its own platform or the one the engine's network stack is shared with (Stack).
func Stack ¶
Stack is the platform whose network stack browser shares on platform, from whose profiles a profile of browser on platform may also inherit captures (profile.Profile.CapturesFrom), "" for none: macOS for Safari on iOS.
func WebKitVersion ¶ added in v0.3.0
WebKitVersion is the Safari version whose WebKit a browser with Engine "safari" runs, from its user agent: the iOS major version, which the system's WebKit and Safari share ("27" for "iPhone OS 27_2_0"). "" when the user agent names no iOS version, or only the frozen 18_7 (Firefox on iOS sends Safari's), which says nothing of the WebKit.
Types ¶
This section is empty.