mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-17 00:38:59 +00:00
Add a "pre" polyfill
This is always run, but only the full webcomponents polyfill, it's very small and isn't intrusive. This introduces a layer of indirection so that, if the full polyfill is loaded, its monkeypatched constructor will be called
This commit is contained in:
@@ -126,6 +126,8 @@ fn run(
|
||||
});
|
||||
defer runner.deinit();
|
||||
|
||||
try polyfill.preload(arena, runner.page.main_context);
|
||||
|
||||
// loop over the scripts.
|
||||
const doc = parser.documentHTMLToDocument(runner.page.window.document);
|
||||
const scripts = try parser.documentGetElementsByTagName(doc, "script");
|
||||
|
||||
Reference in New Issue
Block a user