1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:57:35 +00:00

WebContent+Friends: Add get_element_property IPC and plumbing

This commit is contained in:
Tobias Christiansen 2022-10-19 20:45:25 +02:00 committed by Linus Groh
parent 6641c99c80
commit 3db92885cd
7 changed files with 40 additions and 0 deletions

View file

@ -594,6 +594,10 @@ void BrowserWindow::create_new_tab(URL url, bool activate)
return active_tab().view().get_element_attribute(element_id, name);
};
new_tab.on_get_element_property = [this](i32 element_id, String const& name) {
return active_tab().view().get_element_property(element_id, name);
};
new_tab.load(url);
dbgln_if(SPAM_DEBUG, "Added new tab {:p}, loading {}", &new_tab, url);