This currently uses NetworkPanel.resourceById(), which is a layering violation. The only client is NetworkManager and the usage should be gone once bug 61205 is fixed.
Closing as invalid, as this bug pertains to the old inspector UI and/or its tests. Please file a new bug (https://www.webkit.org/new-inspector-bug) if the bug/feature/issue is still relevant to WebKit trunk.