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
Incorrect support data (example: BrowserX says "86" but support was added in "40")
What information was incorrect, unhelpful, or incomplete?
The MDN article on the import statement claims that the import statement is "Available in service workers"[sic] as of Firefox version 114.
What browsers does this problem apply to, if applicable?
Firefox
What did you expect to see?
I expected to see a service worker that used the import statement in its body not fail to evaluate on Firefox version 115.
Did you test this? If so, how?
I tested this on Firefox 115.12.0esr (64-bit) on Windows.
I also tested this on Microsoft Edge version 126.0.2592.68 (Official build) (64-bit) on Windows; but the documentation isn't unambiguously wrong in that case, since Edge — unlike Firefox — supports "module" service workers, which do support the import statement.
Can you link to any release notes, bugs, pull requests, or MDN pages related to this?
To be clear, the problem is with the importstatement, not the import()function, which is described on a different page and about which I have no complaints today.
Do you have anything more you want to share?
Miminal Reproducible Example: stick these 3 files in a folder and call python -m http.server on it; open localhost:8000 in Firefox, press F12, and check the console for complaints. (Edge has the same error, but puts more informative and relevant details directly into the page's error console.)
…upport
This PR updates and corrects version values for Firefox and Firefox Android for the `import.service_worker_support` member of the `statements` JavaScript feature. This fixesmdn#23554, which contains the supporting evidence for this change.
Additional Notes: It is worth noting that this feature, and a subfeature of `ServiceWorker` indicating ECMAScript module support, were both added in mdn#19835. It has been confirmed that ECMAScript modules aren't supported in Service Workers in Firefox yet.
What type of issue is this?
Incorrect support data (example: BrowserX says "86" but support was added in "40")
What information was incorrect, unhelpful, or incomplete?
The MDN article on the
import
statement claims that theimport
statement is "Available in service workers"[sic] as of Firefox version 114.What browsers does this problem apply to, if applicable?
Firefox
What did you expect to see?
I expected to see a service worker that used the
import
statement in its body not fail to evaluate on Firefox version 115.Did you test this? If so, how?
I tested this on Firefox 115.12.0esr (64-bit) on Windows.
I also tested this on Microsoft Edge version 126.0.2592.68 (Official build) (64-bit) on Windows; but the documentation isn't unambiguously wrong in that case, since Edge — unlike Firefox — supports "module" service workers, which do support the
import
statement.Can you link to any release notes, bugs, pull requests, or MDN pages related to this?
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#browser_compatibility
To be clear, the problem is with the
import
statement, not theimport()
function, which is described on a different page and about which I have no complaints today.Do you have anything more you want to share?
Miminal Reproducible Example: stick these 3 files in a folder and call
python -m http.server
on it; openlocalhost:8000
in Firefox, press F12, and check the console for complaints. (Edge has the same error, but puts more informative and relevant details directly into the page's error console.)MDN URL
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import
MDN metadata
MDN page report details
javascript.statements.import
The text was updated successfully, but these errors were encountered: