Comment 6 for bug 1314673

Revision history for this message
Olivier Tilloy (osomon) wrote :

It seems that using encodeURIComponent() instead of the custom function currently in use yields much better results.
Interestingly, it breaks the existing unit tests, likely because AddressBar.requestedUrl is of type URL, which when it is built converts back some encoded characters to their decoded form (such as "'" or "é").