mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
LibWeb: Use full source URL as script filename
Just the basename is not enough in most cases, as it's usually not immediately obvious where scripts are loaded from.
This commit is contained in:
parent
71d27abb97
commit
c2f936b14c
Notes:
sideshowbarker
2024-07-18 19:05:36 +09:00
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ void HTMLScriptElement::prepare_script()
|
|||
auto request = LoadRequest::create_for_url_on_page(url, document().page());
|
||||
|
||||
// FIXME: This load should be made asynchronous and the parser should spin an event loop etc.
|
||||
m_script_filename = url.basename();
|
||||
m_script_filename = url.to_string();
|
||||
ResourceLoader::the().load_sync(
|
||||
request,
|
||||
[this, url](auto data, auto&, auto) {
|
||||
|
|
Loading…
Reference in a new issue