blob: c83585aafc2474814a43905fb6fac88f8de1c463 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
typedef (DOMString or TrustedURL) URLString;
[
Exposed=(Window,Worker),
RuntimeEnabled=TrustedDOMTypes
] interface TrustedURL {
[CallWith=ScriptState] static TrustedURL create(DOMString url);
[CallWith=ScriptState] static TrustedURL unsafelyCreate(DOMString url);
stringifier;
};