Frequent local failures in API > Reporting > Diagnostics > "logs all items" test
Environment
- Browser and full version: firefox 96.0.3
- Extension using this toolkit: test-mv2
- Commit hash: ae053e12
Steps to reproduce
- Run
npm run test v2 firefox -- --grep "logs all items
Actual behavior
Expected length: 3
Received length: 4
Received array: [{"filter": null, "matchInfo": {"docDomain": "localhost", "method": "unmatched", "specificOnly": false}, "request": {"cookieStoreId": "firefox-default", "documentUrl": undefined, "frameAncestors": [], "frameId": 0, "fromCache": false, "incognito": false, "ip": "127.0.0.1", "method": "GET", "originUrl": "moz-extension://b0fb1ab5-2f53-42f0-ae67-9c5b5c2134c4/", "parentFrameId": -1, "proxyInfo": null, "requestId": "49", "requestSize": 436, "responseSize": 1048, "statusCode": 200, "statusLine": "HTTP/1.1 200 OK", "tabId": 4, "thirdParty": false, "timeStamp": 1643894313101, "type": "main_frame", "url": "http://localhost:3000/element-hiding.html", "urlClassification": {"firstParty": [], "thirdParty": []}}}, {"filter": {"csp": null, "enabled": true, "selector": null, "slow": false, "text": "|http://localhost:3000$image", "thirdParty": null, "type": "blocking"}, "matchInfo": {"docDomain": "localhost", "method": "request", "specificOnly": false}, "request": {"cookieStoreId": "firefox-default", "documentUrl": "http://localhost:3000/element-hiding.html", "frameAncestors": [], "frameId": 0, "incognito": false, "ip": null, "method": "GET", "originUrl": "http://localhost:3000/element-hiding.html", "parentFrameId": -1, "proxyInfo": null, "requestId": "50", "requestSize": 0, "responseSize": 0, "tabId": 4, "thirdParty": false, "timeStamp": 1643894313114, "type": "image", "url": "http://localhost:3000/image.png", "urlClassification": {"firstParty": [], "thirdParty": []}}}, {"filter": {"csp": null, "enabled": true, "selector": null, "slow": false, "text": "|http://localhost:3000$image", "thirdParty": null, "type": "blocking"}, "matchInfo": {"docDomain": "localhost", "method": "request", "specificOnly": false}, "request": {"cookieStoreId": "firefox-default", "documentUrl": "http://localhost:3000/element-hiding.html", "frameAncestors": [], "frameId": 0, "incognito": false, "ip": null, "method": "GET", "originUrl": "http://localhost:3000/element-hiding.html", "parentFrameId": -1, "proxyInfo": null, "requestId": "51", "requestSize": 0, "responseSize": 0, "tabId": 4, "thirdParty": false, "timeStamp": 1643894313130, "type": "image", "url": "http://localhost:3000/image.png", "urlClassification": {"firstParty": [], "thirdParty": []}}}, {"filter": {"csp": null, "enabled": true, "selector": "#elem-hide", "slow": false, "text": "###elem-hide", "thirdParty": null, "type": "elemhide"}, "matchInfo": {"docDomain": "localhost", "method": "elemhide"}, "request": {"frameId": 0, "tabId": 4, "url": "http://localhost:3000/element-hiding.html"}}]
To me it looks like the request for "http://localhost:3000/image.png" happens twice.
Expected behavior
No failure