Request flag to disable Javascript modules
Reported by
thomas.t...@gmail.com,
Feb 22 2018
|
|||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36 Steps to reproduce the problem: For testing purpose, I'd like to have a flag to disable Javascript modules (import/export). That way, Chrome would read <script nomodule> over <script type="module">. What is the expected behavior? What went wrong? No flag. Did this work before? N/A Does this work in other browsers? N/A Chrome version: 64.0.3282.167 Channel: stable OS Version: Flash Version:
,
Feb 23 2018
As per comment #0, this seems to be a feature request. Hence, marking it as untriaged for further inputs from dev team. Thanks...!!
,
Mar 5 2018
ATM there already is one: chrome://flags/#enable-module-scripts-dynamic-import I don't know how long it is planned to exist though. Adamk@ might know.
,
Mar 5 2018
Seems like the linked flag only is about dynamic imports. Reopening.
,
Mar 5 2018
Thanks, it's indeed not related to dynamic imports. Firefox has got it under about:config > dom.moduleScripts.enabled.
,
Mar 5 2018
I don't think this is something we would want to do, but assigning to kouhei for further triage, as it's a request for handling of an HTML feature (executing <script nomodule>), not a JS one. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by krajshree@chromium.org
, Feb 22 2018