Done via ff156593d675093c29017a6eb6b8bee1b697747c. Detailed compatibility notes are included in the commit message for future reference (e.g. if one wonders when the global "URL" object is defined or not).