MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / is_incomplete_or_transient_page

Function is_incomplete_or_transient_page

packages/server/src/webkit.rs:401–413  ·  view source on GitHub ↗
(page: &WebKitPage)

Source from the content-addressed store, hash-verified

399}
400
401fn is_incomplete_or_transient_page(page: &WebKitPage) -> bool {
402 let url = page.url.as_deref().map(str::trim).unwrap_or_default();
403 if url.is_empty() {
404 return true;
405 }
406 url == "about:blank"
407 && page
408 .title
409 .as_deref()
410 .map(str::trim)
411 .unwrap_or_default()
412 .is_empty()
413}
414
415fn is_inspectable_webkit_target(target: &WebKitTarget) -> bool {
416 let url = target.url.as_deref().map(str::trim).unwrap_or_default();

Callers 1

discovery_from_stateMethod · 0.85

Calls 1

is_emptyMethod · 0.80

Tested by

no test coverage detected