mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
feat(chromium): roll Chromium to r662092 (#4462)
This roll includes: - [inspector_protocol:8ec18cf](8ec18cf088) Support STRING16 in the template when converting CBOR map keys to protocol::Value. - [inspector_protocol:37518ac](37518ac421) fix parsing of the last ASCII character This fixes protocol handling of UTF8 in both V8 and Chromium. Fixes #4443.
This commit is contained in:
@@ -132,11 +132,11 @@ class DOMWorld {
|
||||
* @param {string} html
|
||||
*/
|
||||
async setContent(html) {
|
||||
await this.evaluate(base64html => {
|
||||
await this.evaluate(html => {
|
||||
document.open();
|
||||
document.write(decodeURIComponent(atob(base64html).split('').map(c => '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2)).join('')));
|
||||
document.write(html);
|
||||
document.close();
|
||||
}, Buffer.from(html).toString('base64'));
|
||||
}, html);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user