Spotted during discussion on [this PR
https://github.com/django/django/pull/15475] for a similar fix on CSS
source map references.
(Also as discussed, I tested the inital space being a tab, or more than
one space, and those options are not supported by Firefox.)
--
Ticket URL: <https://code.djangoproject.com/ticket/33765>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Old description:
> #32383 added support for JS source map references, but the regex is
> incomplete. Browsers ignore trailing whitespace in source map references,
> but the regex we added did not allow for that. Whilst trailing whitespace
> is unlikely to be used, since source maps are normally generated by
> automated tools that shouldn't add it, we should ignore it to match
> browser behaviour.
>
> Spotted during discussion on [this PR
> https://github.com/django/django/pull/15475] for a similar fix on CSS
> source map references.
>
> (Also as discussed, I tested the inital space being a tab, or more than
> one space, and those options are not supported by Firefox.)
New description:
#32383 added support for JS source map references, but the regex is
incomplete. Browsers ignore trailing whitespace in source map references,
but the regex we added did not allow for that. Whilst trailing whitespace
is unlikely to be used, since source maps are normally generated by
automated tools that shouldn't add it, we should ignore it to match
browser behaviour.
Spotted during discussion on [https://github.com/django/django/pull/15475
this PR] for a similar fix on CSS source map references.
(Also as discussed, I tested the inital space being a tab, or more than
one space, and those options are not supported by Firefox.)
--
--
Ticket URL: <https://code.djangoproject.com/ticket/33765#comment:1>
* owner: nobody => Adam Johnson
* status: new => assigned
* has_patch: 0 => 1
* severity: Normal => Release blocker
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/33765#comment:2>
* status: assigned => closed
* resolution: => invalid
* severity: Release blocker => Normal
* stage: Accepted => Unreviewed
Comment:
It works without any changes.
--
Ticket URL: <https://code.djangoproject.com/ticket/33765#comment:3>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"00639dbd6d023aaba20efa5497988cd730923633" 00639db]:
{{{
#!CommitTicketReference repository=""
revision="00639dbd6d023aaba20efa5497988cd730923633"
Refs #33765 -- Added tests for trailing whitespace in JavaScript source
map references.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33765#comment:4>