diff --git a/Userland/Libraries/LibWeb/HTML/CanvasGradient.cpp b/Userland/Libraries/LibWeb/HTML/CanvasGradient.cpp
index a95e807981..d8e23c34fd 100644
--- a/Userland/Libraries/LibWeb/HTML/CanvasGradient.cpp
+++ b/Userland/Libraries/LibWeb/HTML/CanvasGradient.cpp
@@ -54,7 +54,7 @@ void CanvasGradient::initialize(JS::Realm& realm)
}
// https://html.spec.whatwg.org/multipage/canvas.html#dom-canvasgradient-addcolorstop
-WebIDL::ExceptionOr CanvasGradient::add_color_stop(double offset, DeprecatedString const& color)
+WebIDL::ExceptionOr CanvasGradient::add_color_stop(double offset, StringView color)
{
// 1. If the offset is less than 0 or greater than 1, then throw an "IndexSizeError" DOMException.
if (offset < 0 || offset > 1)
diff --git a/Userland/Libraries/LibWeb/HTML/CanvasGradient.h b/Userland/Libraries/LibWeb/HTML/CanvasGradient.h
index f83d51f226..1329b19297 100644
--- a/Userland/Libraries/LibWeb/HTML/CanvasGradient.h
+++ b/Userland/Libraries/LibWeb/HTML/CanvasGradient.h
@@ -20,7 +20,7 @@ public:
static WebIDL::ExceptionOr> create_linear(JS::Realm&, double x0, double y0, double x1, double y1);
static WebIDL::ExceptionOr> create_conic(JS::Realm&, double start_angle, double x, double y);
- WebIDL::ExceptionOr add_color_stop(double offset, DeprecatedString const& color);
+ WebIDL::ExceptionOr add_color_stop(double offset, StringView color);
~CanvasGradient();
diff --git a/Userland/Libraries/LibWeb/HTML/CanvasGradient.idl b/Userland/Libraries/LibWeb/HTML/CanvasGradient.idl
index 3f02a84c26..c76ed30e01 100644
--- a/Userland/Libraries/LibWeb/HTML/CanvasGradient.idl
+++ b/Userland/Libraries/LibWeb/HTML/CanvasGradient.idl
@@ -1,4 +1,4 @@
-[Exposed=(Window,Worker), UseDeprecatedAKString]
+[Exposed=(Window,Worker)]
interface CanvasGradient {
// opaque object
undefined addColorStop(double offset, DOMString color);