Consistently rename storage to webstorage to prevent confusion (#39550)

Add the prefix of "WebStorage" instead of "Storage" for all webstorage
spec related things. For example, a `struct` called `StorageManager`:
this could refer to either webstorage's thread manager or to the backend
for [the storage manager
interface](https://storage.spec.whatwg.org/#storagemanager). webstorage
is the full name of the spec, so I chose to keep that in the names of
files/structs to prevent confusion when storage manager is implemented.

Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
This commit is contained in:
Ashwin Naren 2025-09-29 10:13:34 -07:00 committed by GitHub
parent 5b1fe60277
commit fef56fcc47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 62 additions and 52 deletions

View file

@ -167,7 +167,7 @@ use servo_config::{opts, pref};
use servo_rand::{Rng, ServoRng, SliceRandom, random};
use servo_url::{Host, ImmutableOrigin, ServoUrl};
use storage_traits::StorageThreads;
use storage_traits::storage_thread::{StorageThreadMsg, StorageType};
use storage_traits::webstorage_thread::{StorageType, WebStorageThreadMsg};
use style::global_style_data::StyleThreadPool;
#[cfg(feature = "webgpu")]
use webgpu::canvas_context::WGPUImageMap;
@ -2703,7 +2703,7 @@ where
debug!("Exiting storage resource threads.");
if let Err(e) = generic_channel::GenericSend::send(
&self.public_storage_threads,
StorageThreadMsg::Exit(storage_ipc_sender),
WebStorageThreadMsg::Exit(storage_ipc_sender),
) {
warn!("Exit storage thread failed ({})", e);
}