(page: &WebKitPage)
| 399 | } |
| 400 | |
| 401 | fn 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 | |
| 415 | fn is_inspectable_webkit_target(target: &WebKitTarget) -> bool { |
| 416 | let url = target.url.as_deref().map(str::trim).unwrap_or_default(); |
no test coverage detected