1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:37:44 +00:00

WebContent+Friends: Add get_element_tag_name IPC and plumbing

This commit is contained in:
Tobias Christiansen 2022-10-20 22:39:41 +02:00 committed by Linus Groh
parent f1f6c4c0b6
commit be6bbdaa3b
7 changed files with 27 additions and 0 deletions

View file

@ -606,6 +606,10 @@ void BrowserWindow::create_new_tab(URL url, bool activate)
return active_tab().view().get_computed_value_for_element(element_id, property_name);
};
new_tab.webdriver_endpoints().on_get_element_tag_name = [this](i32 element_id) {
return active_tab().view().get_element_tag_name(element_id);
};
new_tab.load(url);
dbgln_if(SPAM_DEBUG, "Added new tab {:p}, loading {}", &new_tab, url);