MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / fromString

Method fromString

front_end/core/common/ParsedURL.ts:123–129  ·  view source on GitHub ↗
(string: string)

Source from the content-addressed store, hash-verified

121 }
122
123 static fromString(string: string): ParsedURL|null {
124 const parsedURL = new ParsedURL(string.toString());
125 if (parsedURL.isValid) {
126 return parsedURL;
127 }
128 return null;
129 }
130
131 static preEncodeSpecialCharactersInPath(path: string): string {
132 // Based on net::FilePathToFileURL. Ideally we would handle

Callers 15

extractPathMethod · 0.95
extractOriginMethod · 0.95
completeURLMethod · 0.95
#setLabelMethod · 0.45
updateContextLabelMethod · 0.45
setInspectedURLMethod · 0.45
populateResourceURLsMethod · 0.45
#refreshMethod · 0.45
attachedToTargetMethod · 0.45

Calls 1

toStringMethod · 0.45

Tested by 1