Bug 220709 - Android WebView javascript import/export support
Summary: Android WebView javascript import/export support
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Local Build
Hardware: Other Other
: P2 Enhancement
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-18 04:41 PST by BartG
Modified: 2021-01-18 17:51 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BartG 2021-01-18 04:41:04 PST
I'm trying to run JavaScript modules in my Android WebView and while the script type="module" element is recognized in the html file, the keywords import/export in js files are not ("Unexpected token: export" error). This seems weird, is there a way to enable it? JavaScript works fine other than that. I'm using Android WebView 87.0.4280.141 on Samsung Galaxy A10, but had the same issue on Android emulator. Any ideas?
Comment 1 Alexey Proskuryakov 2021-01-18 17:51:47 PST
Android support has been removed from WebKit many years ago. Please report this issue to whoever maintains the branch now (perhaps Google?)