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:
parent
6641c99c80
commit
3db92885cd
7 changed files with 40 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue