bug #25552 [WebProfilerBundle] Let fetch() cast URL to string (ro0NL)

This PR was merged into the 3.3 branch.

Discussion
----------

[WebProfilerBundle] Let fetch() cast URL to string

| Q             | A
| ------------- | ---
| Branch?       | 3.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #25538
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!--highly recommended for new features-->

Taken from the fetch polyfill at https://github.com/github/fetch/blob/master/fetch.js#L325

Commits
-------

1a75e8568f [WebProfilerBundle] Let fetch() cast URL to string
This commit is contained in:
Fabien Potencier 2017-12-19 19:10:42 -08:00
commit da5326a958

View File

@ -250,6 +250,8 @@
mode: arguments[0].mode,
redirect: arguments[0].redirect
};
} else {
url = String(url);
}
if (!url.match(new RegExp({{ excluded_ajax_paths|json_encode|raw }}))) {
var method = 'GET';