summaryrefslogtreecommitdiffstats
path: root/dom/fetch/Response.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:50 +0000
commitdef92d1b8e9d373e2f6f27c366d578d97d8960c6 (patch)
tree2ef34b9ad8bb9a9220e05d60352558b15f513894 /dom/fetch/Response.h
parentAdding debian version 125.0.3-1. (diff)
downloadfirefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.tar.xz
firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.zip
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/fetch/Response.h')
-rw-r--r--dom/fetch/Response.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/dom/fetch/Response.h b/dom/fetch/Response.h
index 1aa0e56c31..14c0e63bb2 100644
--- a/dom/fetch/Response.h
+++ b/dom/fetch/Response.h
@@ -43,9 +43,7 @@ class Response final : public FetchBody<Response>, public nsWrapperCache {
}
ResponseType Type() const { return mInternalResponse->Type(); }
- void GetUrl(nsAString& aUrl) const {
- CopyUTF8toUTF16(mInternalResponse->GetURL(), aUrl);
- }
+ void GetUrl(nsACString& aUrl) const { aUrl = mInternalResponse->GetURL(); }
bool Redirected() const { return mInternalResponse->IsRedirected(); }
uint16_t Status() const { return mInternalResponse->GetStatus(); }
@@ -101,7 +99,7 @@ class Response final : public FetchBody<Response>, public nsWrapperCache {
static already_AddRefed<Response> Error(const GlobalObject& aGlobal);
static already_AddRefed<Response> Redirect(const GlobalObject& aGlobal,
- const nsAString& aUrl,
+ const nsACString& aUrl,
uint16_t aStatus,
ErrorResult& aRv);