// 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; | |
}; |