You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updates: postpone API removal to M75. Since web sites including YouTube got broken due to the API removed canary, the patch was reverted. I heard that YouTube was migrating and effect was small. Because no any short-term solution from Blink side, I decided to postpone API removal to M75.
Status
Prototype fix (not committed yet, just stashed) is working well with Chrome Canary 76.0.3807.0 and HTML Imports polyfill
Still designing interfaces
Compatibility with 0.3.1 is in consideration
Possible Fix
Avoid multiple hooking of inline scripts by the polyfill
Mark each inline script by prepending the following comment
Note: service-worker-ready=false parameters is converted to true in the entry page to mutate the script itself to include hook.parameters.scriptHashes object
Add <script context-generator src="script-hashes.js?no-hook=true&service-worker-ready=false"></script> to the entry page
Add importScripts(..., 'script-hashes.js?no-hook=true&service-worker-ready=true') to hook-worker.js
Disable HTML Imports polyfill support
Do not import script-hashes.js script
Possible Fix 2
Support the HTML Imports polyfill as a no-hook script
Notes
The HTML Imports support is not very important in the current trends but the current thin-hook demo is heavily using the feature and should run on Chrome 73+.
Hopefully, the hooked polyfill will run on Firefox (and possibly Safari).
Polymer 2.x legacy users can use it.
CLI option to disable HTML Imports and other webcomponents v0 features on Chrome 73-
As of Chrome Beta 74.0.3729.40, HTML Imports feature is active again
As of Chrome Canary 75.0.3747.0, HTML Imports feature is active
As of Chrome Canary 76.0.3807.0, HTML Imports feature is disabled
As of Chrome Canary 77.0.3833.0, HTML Imports feature is active again
As of Chrome 76.0.3809.87, HTML Imports feature is still active and show the following warning message.
As of Chrome Canary 80.0.3966.0, HTML Imports feature is disabled [Deprecation] HTML Imports is deprecated and will be removed in M80, around February 2020. Please use ES modules instead. See https://www.chromestatus.com/features/5144752345317376 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
The text was updated successfully, but these errors were encountered:
t2ym
changed the title
[Chrome 73+] Support HTML Imports polyfill after the native support is removed
[Chrome 74+] Support HTML Imports polyfill after the native support is removed
Mar 5, 2019
t2ym
changed the title
[Chrome 74+] Support HTML Imports polyfill after the native support is removed
[Chrome 75+] Support HTML Imports polyfill after the native support is removed
Mar 29, 2019
t2ym
changed the title
[Chrome 75+] Support HTML Imports polyfill after the native support is removed
[Chrome 76+] Support HTML Imports polyfill after the native support is removed
Apr 22, 2019
[Chrome 76+] Support HTML Imports polyfill after the native support is removed
Root Cause
The native support for HTML Imports will soon be removed since Chrome
7576Chrome feature status: https://www.chromestatus.com/feature/5144752345317376
Chromium Bugs labeled for M-76 as of Apr 22, 2019
label:M-76 component:Blink>HTML>Modules
Quoted from Google Group
blink-dev
Status
76.0.3807.0
and HTML Imports polyfillPossible Fix
/* ctx:"btoa(encodeURIComponent(initialContext))" raw:"btoa(encodeURIComponent(script))" */
setAttribute('src', 'data:text/javascript;charset=utf-8,...'
and.innerHTML = content
cache-bundle.json
script-hashes
, add JSON with the key"https://thin-hook.localhost.localdomain/script-hashes.json"
incache-bundle.json
script-hashes.js?no-hook=true&service-worker-ready=true
service-worker-ready=false
parameters is converted totrue
in the entry page to mutate the script itself to includehook.parameters.scriptHashes
objecthook.parameters.scriptHashes = { "Hex(SHA256(inlineScript))": "initialContext", ... }
<script context-generator src="script-hashes.js?no-hook=true&service-worker-ready=false"></script>
to the entry pageimportScripts(..., 'script-hashes.js?no-hook=true&service-worker-ready=true')
tohook-worker.js
script-hashes.js
scriptPossible Fix 2
Notes
Hopefully, the hooked polyfill will run on Firefox (and possibly Safari).
--disable-blink-features=ShadowDOMV0,CustomElementsV0,HTMLImports
74.0.3729.40
, HTML Imports feature is active again75.0.3747.0
, HTML Imports feature is active76.0.3807.0
, HTML Imports feature is disabled77.0.3833.0
, HTML Imports feature is active again76.0.3809.87
, HTML Imports feature is still active and show the following warning message.80.0.3966.0
, HTML Imports feature is disabled[Deprecation] HTML Imports is deprecated and will be removed in M80, around February 2020. Please use ES modules instead. See https://www.chromestatus.com/features/5144752345317376 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
The text was updated successfully, but these errors were encountered: