Closed Bug 1900880 Opened 1 month ago Closed 28 days ago

Intermittent Wd network Network Events should support redirects (network.spec.js) | expected PASS

Categories

(Remote Protocol :: Agent, defect, P5)

defect
Points:
2

Tracking

(firefox-esr115 unaffected, firefox126 unaffected, firefox127 unaffected, firefox128 fixed)

RESOLVED FIXED
128 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox126 --- unaffected
firefox127 --- unaffected
firefox128 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: Sasha)

References

(Regression)

Details

(Keywords: intermittent-failure, regression, Whiteboard: [webdriver:m11])

Attachments

(1 file)

Filed by: nfay [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=461202903&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/G5PvlOphS6G6rSHhDJsvTQ/runs/0/artifacts/public/logs/live_backing.log


[task 2024-06-05T19:06:30.286Z] TEST-START | network Network Events should support redirects (network.spec.js)
[task 2024-06-05T19:06:30.286Z] PID 740 | ["test-start",{"title":"should support redirects","fullTitle":"network Network Events should support redirects","file":"/builds/worker/checkouts/gecko/remote/test/puppeteer/test/build/network.spec.js","currentRetry":0}]
[task 2024-06-05T19:06:30.288Z] PID 740 | 1717614390287	RemoteAgent	DEBUG	WebDriverBiDiConnection e7af35f1-8445-48e6-8255-363ab05c9864 -> {"id":8596,"method":"browser.createUserContext","params":{}}
[task 2024-06-05T19:06:30.288Z] PID 740 | 1717614390287	RemoteAgent	TRACE	Module root/browser.sys.mjs found for ROOT
[task 2024-06-05T19:06:30.288Z] PID 740 | 1717614390287	RemoteAgent	TRACE	Received command browser.createUserContext for destination ROOT
[task 2024-06-05T19:06:30.288Z] PID 740 | 1717614390287	RemoteAgent	TRACE	Module root/browser.sys.mjs found for ROOT
[task 2024-06-05T19:06:30.288Z] PID 740 | 1717614390288	RemoteAgent	DEBUG	WebDriverBiDiConnection e7af35f1-8445-48e6-8255-363ab05c9864 <- {"type":"success","id":8596,"result":{"userContext":"cc2dd079-0806-4c79-b0c0-b1c838ca31d0"}}
[task 2024-06-05T19:06:30.291Z] PID 740 | 1717614390290	RemoteAgent	DEBUG	WebDriverBiDiConnection e7af35f1-8445-48e6-8255-363ab05c9864 -> {"id":8597,"method":"browsingContext.create","params":{"type":"tab","userContext":"cc2dd079-0806-4c79-b0c0-b1c838ca31d0"}}
[task 2024-06-05T19:06:30.291Z] PID 740 | 1717614390290	RemoteAgent	TRACE	Module root/browsingContext.sys.mjs found for ROOT
[task 2024-06-05T19:06:30.291Z] PID 740 | 1717614390290	RemoteAgent	TRACE	Received command browsingContext.create for destination ROOT
[task 2024-06-05T19:06:30.291Z] PID 740 | 1717614390290	RemoteAgent	TRACE	Module root/browsingContext.sys.mjs found for ROOT
[task 2024-06-05T19:06:30.292Z] PID 740 | 1717614390291	RemoteAgent	TRACE	Received command browsingContext._awaitVisibilityState for destination WINDOW_GLOBAL
[task 2024-06-05T19:06:30.292Z] PID 740 | 1717614390291	RemoteAgent	TRACE	Module windowglobal/browsingContext.sys.mjs found for WINDOW_GLOBAL
[task 2024-06-05T19:06:30.422Z] PID 740 | 1717614390421	RemoteAgent	DEBUG	WebDriverBiDiConnection e7af35f1-8445-48e6-8255-363ab05c9864 <- {"type":"event","method":"browsingContext.contextCreated","params":{"children":null,"context":"9dce59c4-1deb-4b13-a2ad-182f1ecd427f","url":"about:blank","userContext":"cc2dd079-0806-4c79-b0c0-b1c838ca31d0","parent":null}}
[task 2024-06-05T19:06:30.434Z] PID 740 | 1717614390433	RemoteAgent	TRACE	Received DOM event TabSelect for [object XULElement]
[task 2024-06-05T19:06:30.444Z] PID 740 | 1717614390442	RemoteAgent	TRACE	[740] ProgressListener Start: expectNavigation=false resolveWhenStarted=false unloadTimeout=5000 waitForExplicitStart=false
<...>
[task 2024-06-05T19:06:30.606Z] PID 740 | 1717614390605	RemoteAgent	TRACE	[741] NavigationListener onStateChange, stateFlags: 196612, status: 0, isStart: false, isStop: false, isNetwork: false, isBindingAborted: false, targetURI: http://localhost:36779/foo.html
[task 2024-06-05T19:06:30.612Z] PID 740 | 1717614390612	RemoteAgent	TRACE	[741] NavigationListener onStateChange, stateFlags: 131088, status: 0, isStart: false, isStop: true, isNetwork: false, isBindingAborted: false, targetURI: http://localhost:36779/foo.html
[task 2024-06-05T19:06:30.613Z] PID 740 | 1717614390612	RemoteAgent	DEBUG	WebDriverBiDiConnection e7af35f1-8445-48e6-8255-363ab05c9864 <- {"type":"event","method":"network.beforeRequestSent","params":{"context":"9dce59c4-1deb-4b13-a2ad-182f1ecd427f","isBlocked":false,"navigation":null,"redirectCount":0,"request":{"request":"906","url":"http://localhost:36779/favicon.ico","method":"GET","bodySize":0,"headersSize":0,"headers":[{"name":"Host","value":{"type":"string","value":"localhost:36779"}},{"name":"User-Agent","value":{"type":"string","value":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"}},{"name":"Accept","value":{"type":"string","value":"image/avif,image/webp,image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5"}},{"name":"Accept-Language","value":{"type":"string","value":"en-US,en;q=0.5"}},{"name":"Accept-Encoding","value":{"type":"string","value":"gzip, deflate, br, zstd"}},{"name":"Connection","value":{"type":"string","value":"keep-alive"}},{"name":"Referer","value":{"type":"string","value":"http://localhost:36779/empty.html"}},{"name":"Sec-Fetch-Dest","value":{"type":"string","value":"image"}},{"name":"Sec-Fetch-Mode","value":{"type":"string","value":"no-cors"}},{"name":"Sec-Fetch-Site","value":{"type":"string","value":"same-origin"}}],"cookies":[],"timings":{"timeOrigin":0,"requestTime":1717614390610864,"redirectStart":0,"redirectEnd":0,"fetchStart":0,"dnsStart":0,"dnsEnd":0,"connectStart":0,"connectEnd":0,"tlsStart":0,"tlsEnd":0,"requestStart":0,"responseStart":0,"responseEnd":0}},"timestamp":1717614390612,"initiator":{"type":"other"}}}
[task 2024-06-05T19:06:30.615Z] PID 740 | 1717614390613	RemoteAgent	TRACE	[741] ProgressListener Stop if started: seenStartFlag=true
[task 2024-06-05T19:06:30.615Z] PID 740 | 1717614390613	RemoteAgent	TRACE	[741] ProgressListener Stop: has error=false url=http://localhost:36779/empty.html
[task 2024-06-05T19:06:30.617Z] PID 740 | 1717614390617	RemoteAgent	TRACE	Module windowglobal-in-root/browsingContext.sys.mjs found for WINDOW_GLOBAL
[task 2024-06-05T19:06:30.617Z] PID 740 | 1717614390617	RemoteAgent	TRACE	Module windowglobal/browsingContext.sys.mjs found for WINDOW_GLOBAL
[task 2024-06-05T19:06:30.617Z] PID 740 | 1717614390617	RemoteAgent	TRACE	Received command browsingContext._applySessionData for destination WINDOW_GLOBAL
[task 2024-06-05T19:06:30.617Z] PID 740 | 1717614390617	RemoteAgent	TRACE	Module windowglobal-in-root/browsingContext.sys.mjs found for WINDOW_GLOBAL
[task 2024-06-05T19:06:30.617Z] PID 740 | 1717614390617	RemoteAgent	TRACE	Module windowglobal/browsingContext.sys.mjs found for WINDOW_GLOBAL
[task 2024-06-05T19:06:30.618Z] PID 740 | 1717614390617	RemoteAgent	TRACE	Module root/browsingContext.sys.mjs found for ROOT
[task 2024-06-05T19:06:30.618Z] PID 740 | 1717614390617	RemoteAgent	TRACE	Received command browsingContext._applySessionData for destination ROOT
[task 2024-06-05T19:06:30.618Z] PID 740 | 1717614390617	RemoteAgent	TRACE	Module root/browsingContext.sys.mjs found for ROOT
[task 2024-06-05T19:06:30.618Z] PID 740 | 1717614390618	RemoteAgent	TRACE	Received command browsingContext._applySessionData for destination WINDOW_GLOBAL
[task 2024-06-05T19:06:30.618Z] PID 740 | 1717614390618	RemoteAgent	TRACE	Module windowglobal/browsingContext.sys.mjs found for WINDOW_GLOBAL
[task 2024-06-05T19:06:30.621Z] PID 740 | 1717614390621	RemoteAgent	DEBUG	WebDriverBiDiConnection e7af35f1-8445-48e6-8255-363ab05c9864 <- {"type":"event","method":"browsingContext.domContentLoaded","params":{"context":"9dce59c4-1deb-4b13-a2ad-182f1ecd427f","timestamp":1717614390611,"url":"http://localhost:36779/empty.html","navigation":"65ee3c16-c4e0-4cee-aa91-b2892af256bd"}}
[task 2024-06-05T19:06:30.622Z] PID 740 | 1717614390621	RemoteAgent	TRACE	[9dce59c4-1deb-4b13-a2ad-182f1ecd427f] Navigation finished for url: http://localhost:36779/foo.html (65ee3c16-c4e0-4cee-aa91-b2892af256bd)
[task 2024-06-05T19:06:30.622Z] PID 740 | 1717614390621	RemoteAgent	DEBUG	WebDriverBiDiConnection e7af35f1-8445-48e6-8255-363ab05c9864 <- {"type":"event","method":"browsingContext.load","params":{"context":"9dce59c4-1deb-4b13-a2ad-182f1ecd427f","timestamp":1717614390612,"url":"http://localhost:36779/empty.html","navigation":"65ee3c16-c4e0-4cee-aa91-b2892af256bd"}}
[task 2024-06-05T19:06:30.625Z] PID 740 | 1717614390624	RemoteAgent	DEBUG	WebDriverBiDiConnection e7af35f1-8445-48e6-8255-363ab05c9864 <- {"type":"event","method":"network.responseStarted","params":{"context":"9dce59c4-1deb-4b13-a2ad-182f1ecd427f","isBlocked":false,"navigation":null,"redirectCount":0,"request":{"request":"906","url":"http://localhost:36779/favicon.ico","method":"GET","bodySize":0,"headersSize":450,"headers":[{"name":"Host","value":{"type":"string","value":"localhost:36779"}},{"name":"User-Agent","value":{"type":"string","value":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"}},{"name":"Accept","value":{"type":"string","value":"image/avif,image/webp,image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5"}},{"name":"Accept-Language","value":{"type":"string","value":"en-US,en;q=0.5"}},{"name":"Accept-Encoding","value":{"type":"string","value":"gzip, deflate, br, zstd"}},{"name":"Connection","value":{"type":"string","value":"keep-alive"}},{"name":"Referer","value":{"type":"string","value":"http://localhost:36779/empty.html"}},{"name":"Sec-Fetch-Dest","value":{"type":"string","value":"image"}},{"name":"Sec-Fetch-Mode","value":{"type":"string","value":"no-cors"}},{"name":"Sec-Fetch-Site","value":{"type":"string","value":"same-origin"}},{"name":"Priority","value":{"type":"string","value":"u=6"}}],"cookies":[],"timings":{"timeOrigin":0,"requestTime":1717614390610864,"redirectStart":0,"redirectEnd":0,"fetchStart":0,"dnsStart":0,"dnsEnd":0,"connectStart":0,"connectEnd":0,"tlsStart":0,"tlsEnd":0,"requestStart":1717614390612835,"responseStart":1717614390616321,"responseEnd":1717614390616370}},"timestamp":1717614390624,"response":{"url":"http://localhost:36779/favicon.ico","protocol":"http/1.1","status":200,"statusText":"OK","fromCache":false,"headers":[{"name":"Cache-Control","value":{"type":"string","value":"no-cache, no-store"}},{"name":"Content-Type","value":{"type":"string","value":"image/vnd.microsoft.icon"}},{"name":"Date","value":{"type":"string","value":"Wed, 05 Jun 2024 19:06:30 GMT"}},{"name":"Connection","value":{"type":"string","value":"keep-alive"}},{"name":"Content-Length","value":{"type":"string","value":"70"}}],"mimeType":"image/vnd.microsoft.icon","bytesReceived":175,"headersSize":175,"bodySize":0,"content":{"size":0}}}}
[task 2024-06-05T19:06:30.625Z] PID 740 | 1717614390625	RemoteAgent	DEBUG	WebDriverBiDiConnection e7af35f1-8445-48e6-8255-363ab05c9864 <- {"type":"success","id":8599,"result":{"navigation":"65ee3c16-c4e0-4cee-aa91-b2892af256bd","url":"http://localhost:36779/empty.html"}}
[task 2024-06-05T19:06:30.627Z] TEST-UNEXPECTED-FAIL | network Network Events should support redirects (network.spec.js) | expected PASS
[task 2024-06-05T19:06:30.627Z] TEST-INFO took 341ms
[task 2024-06-05T19:06:30.627Z] PID 740 | ["fail",{"title":"should support redirects","fullTitle":"network Network Events should support redirects","file":"/builds/worker/checkouts/gecko/remote/test/puppeteer/test/build/network.spec.js","duration":340,"currentRetry":0,"err":"expect(received).toEqual(expected) // deep equality\n\n- Expected  - 0\n+ Received  + 1\n\n  Array [\n    \"GET http://localhost:36779/foo.html\",\n    \"302 http://localhost:36779/foo.html\",\n    \"DONE http://localhost:36779/foo.html\",\n    \"GET http://localhost:36779/empty.html\",\n    \"200 http://localhost:36779/empty.html\",\n    \"DONE http://localhost:36779/empty.html\",\n+   \"GET http://localhost:36779/favicon.ico\",\n  ]","stack":"Error: expect(received).toEqual(expected) // deep equality\n\n- Expected  - 0\n+ Received  + 1\n\n  Array [\n    \"GET http://localhost:36779/foo.html\",\n    \"302 http://localhost:36779/foo.html\",\n    \"DONE http://localhost:36779/foo.html\",\n    \"GET http://localhost:36779/empty.html\",\n    \"200 http://localhost:36779/empty.html\",\n    \"DONE http://localhost:36779/empty.html\",\n+   \"GET http://localhost:36779/favicon.ico\",\n  ]\n    at Context.<anonymous> (/builds/worker/checkouts/gecko/remote/test/puppeteer/test/src/network.spec.ts:616:22)"}]
[task 2024-06-05T19:06:30.628Z] PID 740 | 1717614390626	RemoteAgent	DEBUG	WebDriverBiDiConnection e7af35f1-8445-48e6-8255-363ab05c9864 <- {"type":"event","method":"network.responseCompleted","params":{"context":"9dce59c4-1deb-4b13-a2ad-182f1ecd427f","isBlocked":false,"navigation":null,"redirectCount":0,"request":{"request":"906","url":"http://localhost:36779/favicon.ico","method":"GET","bodySize":0,"headersSize":450,"headers":[{"name":"Host","value":{"type":"string","value":"localhost:36779"}},{"name":"User-Agent","value":{"type":"string","value":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"}},{"name":"Accept","value":{"type":"string","value":"image/avif,image/webp,image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5"}},{"name":"Accept-Language","value":{"type":"string","value":"en-US,en;q=0.5"}},{"name":"Accept-Encoding","value":{"type":"string","value":"gzip, deflate, br, zstd"}},{"name":"Connection","value":{"type":"string","value":"keep-alive"}},{"name":"Referer","value":{"type":"string","value":"http://localhost:36779/empty.html"}},{"name":"Sec-Fetch-Dest","value":{"type":"string","value":"image"}},{"name":"Sec-Fetch-Mode","value":{"type":"string","value":"no-cors"}},{"name":"Sec-Fetch-Site","value":{"type":"string","value":"same-origin"}},{"name":"Priority","value":{"type":"string","value":"u=6"}}],"cookies":[],"timings":{"timeOrigin":0,"requestTime":1717614390610864,"redirectStart":0,"redirectEnd":0,"fetchStart":0,"dnsStart":0,"dnsEnd":0,"connectStart":0,"connectEnd":0,"tlsStart":0,"tlsEnd":0,"requestStart":1717614390612835,"responseStart":1717614390616321,"responseEnd":1717614390616370}},"timestamp":1717614390626,"response":{"url":"http://localhost:36779/favicon.ico","protocol":"http/1.1","status":200,"statusText":"OK","fromCache":false,"headers":[{"name":"Cache-Control","value":{"type":"string","value":"no-cache, no-store"}},{"name":"Content-Type","value":{"type":"string","value":"image/vnd.microsoft.icon"}},{"name":"Date","value":{"type":"string","value":"Wed, 05 Jun 2024 19:06:30 GMT"}},{"name":"Connection","value":{"type":"string","value":"keep-alive"}},{"name":"Content-Length","value":{"type":"string","value":"70"}}],"mimeType":"image/vnd.microsoft.icon","bytesReceived":245,"headersSize":175,"bodySize":70,"content":{"size":70}}}}
[task 2024-06-05T19:06:30.630Z] PID 740 | 1717614390630	RemoteAgent	DEBUG	WebDriverBiDiConnection e7af35f1-8445-48e6-8255-363ab05c9864 -> {"id":8600,"method":"browser.removeUserContext","params":{"userContext":"cc2dd079-0806-4c79-b0c0-b1c838ca31d0"}}
[task 2024-06-05T19:06:30.631Z] PID 740 | 1717614390630	RemoteAgent	TRACE	Module root/browser.sys.mjs found for ROOT
[task 2024-06-05T19:06:30.631Z] PID 740 | 1717614390630	RemoteAgent	TRACE	Received command browser.removeUserContext for destination ROOT
[task 2024-06-05T19:06:30.631Z] PID 740 | 1717614390630	RemoteAgent	TRACE	Module root/browser.sys.mjs found for ROOT
[task 2024-06-05T19:06:30.642Z] PID 740 | 1717614390640	RemoteAgent	DEBUG	WebDriverBiDiConnection e7af35f1-8445-48e6-8255-363ab05c9864 <- {"type":"event","method":"browsingContext.contextDestroyed","params":{"children":null,"context":"9dce59c4-1deb-4b13-a2ad-182f1ecd427f","url":"http://localhost:36779/empty.html","userContext":"cc2dd079-0806-4c79-b0c0-b1c838ca31d0","parent":null}}
[task 2024-06-05T19:06:30.644Z] PID 740 | 1717614390643	RemoteAgent	DEBUG	WebDriverBiDiConnection e7af35f1-8445-48e6-8255-363ab05c9864 <- {"type":"success","id":8600,"result":{}}
[task 2024-06-05T19:06:30.644Z] PID 740 | 1717614390643	RemoteAgent	TRACE	MessageHandler WINDOW_GLOBAL for session 9969f683-f2a8-4304-af57-73edc3227a72 is being destroyed
[task 2024-06-05T19:06:30.644Z] PID 740 | 1717614390643	RemoteAgent	TRACE	Unregistered MessageHandler WINDOW_GLOBAL for session 9969f683-f2a8-4304-af57-73edc3227a72
[task 2024-06-05T19:06:30.647Z] PID 740 | 1717614390646	RemoteAgent	DEBUG	WebDriverBiDiConnection e7af35f1-8445-48e6-8255-363ab05c9864 <- {"type":"event","method":"script.realmDestroyed","params":{"realm":"5ece7abc-63b9-42eb-a572-b5607523fda1"}}
[task 2024-06-05T19:06:30.682Z] TEST-START | network Request.isNavigationRequest should work (network.spec.js)

Maybe a regression from landing bug 1879580? Sasha can you please take a look? Thanks.

Flags: needinfo?(aborovova)

Looking at this part of log:

[task 2024-06-05T19:20:54.175Z] PID 741 | 1717615254174	RemoteAgent	DEBUG	WebDriverBiDiConnection 891400c6-8304-4e60-b229-d5d5d68002af <- {"type":"event","method":"network.beforeRequestSent","params":{"context":"e9248800-0832-497f-a27e-e2c93594b80a","isBlocked":false,"navigation":null,"redirectCount":0,"request":{"request":"906","url":"http://localhost:39828/favicon.ico","method":"GET","bodySize":0,"headersSize":0,"headers":[{"name":"Host","value":{"type":"string","value":"localhost:39828"}},{"name":"User-Agent","value":{"type":"string","value":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"}},{"name":"Accept","value":{"type":"string","value":"image/avif,image/webp,image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5"}},{"name":"Accept-Language","value":{"type":"string","value":"en-US,en;q=0.5"}},{"name":"Accept-Encoding","value":{"type":"string","value":"gzip, deflate, br, zstd"}},{"name":"Connection","value":{"type":"string","value":"keep-alive"}},{"name":"Referer","value":{"type":"string","value":"http://localhost:39828/empty.html"}},{"name":"Sec-Fetch-Dest","value":{"type":"string","value":"image"}},{"name":"Sec-Fetch-Mode","value":{"type":"string","value":"no-cors"}},{"name":"Sec-Fetch-Site","value":{"type":"string","value":"same-origin"}}],"cookies":[],"timings":{"timeOrigin":0,"requestTime":1717615254168509,"redirectStart":0,"redirectEnd":0,"fetchStart":0,"dnsStart":0,"dnsEnd":0,"connectStart":0,"connectEnd":0,"tlsStart":0,"tlsEnd":0,"requestStart":0,"responseStart":0,"responseEnd":0}},"timestamp":1717615254174,"initiator":{"type":"other"}}}
[task 2024-06-05T19:20:54.183Z] PID 741 | 1717615254175	RemoteAgent	DEBUG	WebDriverBiDiConnection 891400c6-8304-4e60-b229-d5d5d68002af <- {"type":"success","id":8599,"result":{"navigation":"d8685932-7254-40d3-a453-5fbcdbc2e513","url":"http://localhost:39828/empty.html"}}
[task 2024-06-05T19:20:54.183Z] TEST-UNEXPECTED-FAIL | network Network Events should support redirects (network.spec.js) | expected PASS
[task 2024-06-05T19:20:54.183Z] TEST-INFO took 319ms
[task 2024-06-05T19:20:54.183Z] PID 741 | ["fail",{"title":"should support redirects","fullTitle":"network Network Events should support redirects","file":"/builds/worker/checkouts/gecko/remote/test/puppeteer/test/build/network.spec.js","duration":318,"currentRetry":0,"err":"expect(received).toEqual(expected) // deep equality\n\n- Expected  - 0\n+ Received  + 1\n\n  Array [\n    \"GET http://localhost:39828/foo.html\",\n    \"302 http://localhost:39828/foo.html\",\n    \"DONE http://localhost:39828/foo.html\",\n    \"GET http://localhost:39828/empty.html\",\n    \"200 http://localhost:39828/empty.html\",\n    \"DONE http://localhost:39828/empty.html\",\n+   \"GET http://localhost:39828/favicon.ico\",\n  ]","stack":"Error: expect(received).toEqual(expected) // deep equality\n\n- Expected  - 0\n+ Received  + 1\n\n  Array [\n    \"GET http://localhost:39828/foo.html\",\n    \"302 http://localhost:39828/foo.html\",\n    \"DONE http://localhost:39828/foo.html\",\n    \"GET http://localhost:39828/empty.html\",\n    \"200 http://localhost:39828/empty.html\",\n    \"DONE http://localhost:39828/empty.html\",\n+   \"GET http://localhost:39828/favicon.ico\",\n  ]\n    at Context.<anonymous> (/builds/worker/checkouts/gecko/remote/test/puppeteer/test/src/network.spec.ts:616:22)"}]

We can see that the order of the events is correct, but there is an unexpected event for favicon, which is tracked in this case because the network.beforeRequestSent happens before navigation. In order to avoid in other puppeteer network related tests, we just ignore the favicon requests.
I've created a PR in puppeteer repo to fix it there, and will create a bug to downstream this change to gecko, once it's merged.

Flags: needinfo?(aborovova)

Thanks Sasha! Feel free to just take this bug to attach the patch on. I don't think that we need another one, given that this one is not explicitly a single tracking bug.

Assignee: nobody → aborovova
Status: NEW → ASSIGNED
Pushed by aborovova@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/161921d6cf66
[puppeteer] Ignore favicon requests in the unit test for redirects. r=webdriver-reviewers,jdescottes
Status: ASSIGNED → RESOLVED
Closed: 28 days ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
Points: --- → 2
Whiteboard: [webdriver:m11]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: