mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibURL+LibWeb+LibIPC: Represent blob URL entry's object using structs
Instead of just putting in members directly, wrap them up in structs which represent what a URL blob entry is meant to hold per the spec. This makes more obvious what this is meant to represent, such as the ByteBuffer being used to represent the bytes behind a Blob. This also allows us to use a stronger type for a function that needs to return a Blob URL entry's object.
This commit is contained in:
parent
a0b0e91d4f
commit
ca3d9d9ee0
Notes:
github-actions[bot]
2025-01-21 19:23:20 +00:00
Author: https://github.com/shannonbooth
Commit: ca3d9d9ee0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3303
Reviewed-by: https://github.com/tcl3 ✅
7 changed files with 29 additions and 16 deletions
|
@ -161,7 +161,7 @@ static TokenizedFeature::NoOpener get_noopener_for_window_open(DOM::Document con
|
|||
// 1. If url is not null and url's blob URL entry is not null:
|
||||
if (url.has_value() && url->blob_url_entry().has_value()) {
|
||||
// 1. Let blobOrigin be url's blob URL entry's environment's origin.
|
||||
auto blob_origin = url->blob_url_entry()->environment_origin;
|
||||
auto blob_origin = url->blob_url_entry()->environment.origin;
|
||||
|
||||
// 2. Let topLevelOrigin be sourceDocument's relevant settings object's top-level origin.
|
||||
auto top_level_origin = source_document.relevant_settings_object().top_level_origin;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue