The scripting media feature is used to query whether scripting languages, such as JavaScript, are supported on the current document. Valid options are 'enabled', 'initial-only', 'none'. However, 'initial-only' never matches inside a browser.
Already implemented in Firefox and WebKit so only interoperability risk would be differing implementions. As of the other day WebKit now matches Chromium and Firefoxs implementation.
This feature will not be used in tandem with other platform APIs. The default usage of this API will not make it hard for chrome to maintain good performance.
It will not be challenging for developers to use this feature immediately. There is already an MDN article for this feature, so I don't think that we need additional outreach.
There are no security risks for this feature.
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
This media query can be tested using the 'Disable JavaScript' setting inside of DevTools Preferences.
Does the feature depend on any code or APIs outside the Chromium open source repository and its open-source dependencies to function?
NoShipping on desktop | 118 |
DevTrial on desktop | 118 |
Shipping on Android | 118 |
DevTrial on Android | 118 |
Shipping on WebView | 118 |
Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).
There are no anticipated spec changes.To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/737b6fb0-c4e9-585e-d77d-3c06142a429f%40gmail.com.