Resource Timing API not showing correct resources in Selenium




9 months ago
3 months ago


(Reporter: shubham, Unassigned)


(Depends on: 1 bug, Blocks: 1 bug)

56 Branch
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)


(Whiteboard: [necko-next])



9 months ago
I have geckodriver latest version installed and I am running latest Firefox version. I wrote a selenium script to just open a URL in firefox and keep the browser open (I am not calling driver.close() or driver.quit())

Here is what the script looks like

    from selenium import webdriver
    driver = webdriver.Firefox()

The number of resources reported by Resource Timing API is > 100 for this website. Now, the website is just reloaded again, so that the resources are fetched from cache. NOTE: I refreshed by just pressing enter in the address bar

The number of resources reported by Resource Timing API is < 40. Same is the discrepancy with the number of resources in Developer Tools in Networks tab. This is happening for every website.

This is not happening if I just run plain Firefox and refresh the page in the same way. The resources number match always, irrespective of the number of times I refresh the web page.
This sounds like a resource timing API bug, I'm not sure how/if DevTools is involved here.
Component: Developer Tools → DOM
Product: Firefox → Core


8 months ago
Blocks: 1138232
Component: DOM → Networking

Comment 2

8 months ago
It's not even happening for Selenium. Here is the related issue with screenshots which I created after more testing
I'm fairly sure this is the same as bug 1113676. That stalled because I wasn't able to figure out what was causing some intermittent oranges. Maybe I can find the cycles to pick it up again.
Depends on: 1113676
You need to log in before you can comment on or make changes to this bug.