Closed Bug 1923166 Opened 18 days ago Closed 10 days ago

Intermittent Wd waittask specs Frame.waitForSelector should throw when frame is detached (waittask.spec.js) | expected PASS

Categories

(Remote Protocol :: WebDriver BiDi, defect, P5)

defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: intermittent-failure)

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


1728319976291	RemoteAgent	TRACE	Unregistered MessageHandler WINDOW_GLOBAL for session 94d2f99b-f04f-4aa1-a58c-c02949ef7c6c
[task 2024-10-07T16:52:56.324Z] TEST-UNEXPECTED-FAIL | waittask specs Frame.waitForSelector should throw when frame is detached (waittask.spec.js) | expected PASS
[task 2024-10-07T16:52:56.324Z] TEST-INFO took 229ms
[task 2024-10-07T16:52:56.325Z] PID 750 | ["fail",{"title":"should throw when frame is detached","fullTitle":"waittask specs Frame.waitForSelector should throw when frame is detached","file":"/builds/worker/checkouts/gecko/remote/test/puppeteer/test/build/waittask.spec.js","duration":228,"currentRetry":0,"err":"\"Waiting for selector `.box` failed: Protocol error (script.evaluate): unknown error TypeError: can't access property \"getActor\", webProgress.browsingContext.currentWindowGlobal is null _sendCommandToBrowsingContext@chrome://remote/content/shared/messagehandler/transports/RootTransport.sys.mjs:127:9\n\" didn't contain any of the strings [\"waitForFunction failed: frame got detached.\",\"Browsing context already closed.\"]","stack":"Error: \"Waiting for selector `.box` failed: Protocol error (script.evaluate): unknown error TypeError: can't access property \"getActor\", webProgress.browsingContext.currentWindowGlobal is null _sendCommandToBrowsingContext@chrome://remote/content/shared/messagehandler/transports/RootTransport.sys.mjs:127:9\n\" didn't contain any of the strings [\"waitForFunction failed: frame got detached.\",\"Browsing context already closed.\"]\n    at Context.<anonymous> (/builds/worker/checkouts/gecko/remote/test/puppeteer/test/src/waittask.spec.ts:462:34)"}]
[task 2024-10-07T16:52:56.325Z] PID 750 | 1728319976324	RemoteAgent	DEBUG	WebDriverBiDiConnection ae05ba5d-6998-4d56-a017-965d5becccab -> {"id":16586,"method":"browser.removeUserContext","params":{"userContext":"b29e877d-31be-4b7a-b078-8662019198b0"}}
[task 2024-10-07T16:52:56.325Z] PID 750 | 1728319976324	RemoteAgent	TRACE	Received command browser.removeUserContext for destination ROOT
[task 2024-10-07T16:52:56.331Z] PID 750 | 1728319976331	RemoteAgent	DEBUG	WebDriverBiDiConnection ae05ba5d-6998-4d56-a017-965d5becccab <- {"type":"event","method":"browsingContext.contextDestroyed","params":{"children":null,"context":"1856195c-b617-4c81-8162-e4e90d31f24b","originalOpener":null,"url":"about:blank","userContext":"b29e877d-31be-4b7a-b078-8662019198b0","parent":null}}
[task 2024-10-07T16:52:56.332Z] PID 750 | 1728319976331	RemoteAgent	TRACE	[1856195c-b617-4c81-8162-e4e90d31f24b] Navigation already marked as finished, navigationId: 46af3d59-3bb7-4b05-bed0-873c626c8665
[task 2024-10-07T16:52:56.333Z] PID 750 | 1728319976333	RemoteAgent	TRACE	MessageHandler WINDOW_GLOBAL for session 94d2f99b-f04f-4aa1-a58c-c02949ef7c6c is being destroyed
[task 2024-10-07T16:52:56.333Z] PID 750 | 1728319976333	RemoteAgent	TRACE	Unregistered MessageHandler WINDOW_GLOBAL for session 94d2f99b-f04f-4aa1-a58c-c02949ef7c6c
[task 2024-10-07T16:52:56.336Z] PID 750 | 1728319976336	RemoteAgent	DEBUG	WebDriverBiDiConnection ae05ba5d-6998-4d56-a017-965d5becccab <- {"type":"success","id":16586,"result":{}}
[task 2024-10-07T16:52:56.339Z] PID 750 | 1728319976339	RemoteAgent	DEBUG	WebDriverBiDiConnection ae05ba5d-6998-4d56-a017-965d5becccab <- {"type":"event","method":"script.realmDestroyed","params":{"realm":"1e537ddf-603b-41f9-9ce4-5ffab8dfb558"}}
[task 2024-10-07T16:52:56.339Z] PID 750 | 1728319976339	RemoteAgent	DEBUG	WebDriverBiDiConnection ae05ba5d-6998-4d56-a017-965d5becccab <- {"type":"event","method":"script.realmDestroyed","params":{"realm":"f04e1c33-5f7f-4b5f-96fa-6e71c24313c4"}}
[task 2024-10-07T16:52:56.372Z] TEST-START | waittask specs Frame.waitForSelector should survive cross-process navigation (waittask.spec.js)
[task 2024-10-07T16:52:56.372Z] PID 750 | ["test-start",{"title":"should survive cross-process navigation","fullTitle":"waittask specs Frame.waitForSelector should survive cross-process navigation","file":"/builds/worker/checkouts/gecko/remote/test/puppeteer/test/build/waittask.spec.js","currentRetry":0}]
[task 2024-10-07T16:52:56.372Z] PID 750 | 1728319976372	RemoteAgent	DEBUG	WebDriverBiDiConnection ae05ba5d-6998-4d56-a017-965d5becccab -> {"id":16587,"method":"browser.createUserContext","params":{}}
[task 2024-10-07T16:52:56.372Z] PID 750 | 1728319976372	RemoteAgent	TRACE	Received command browser.createUserContext for destination ROOT
[task 2024-10-07T16:52:56.373Z] PID 750 | 1728319976373	RemoteAgent	DEBUG	WebDriverBiDiConnection ae05ba5d-6998-4d56-a017-965d5becccab <- {"type":"success","id":16587,"result":{"userContext":"2bac371f-9d1d-494a-89ee-e429dc93941c"}}
[task 2024-10-07T16:52:56.374Z] PID 750 | 1728319976374	RemoteAgent	DEBUG	WebDriverBiDiConnection ae05ba5d-6998-4d56-a017-965d5becccab -> {"id":16588,"method":"browsingContext.create","params":{"type":"tab","userContext":"2bac371f-9d1d-494a-89ee-e429dc93941c"}}
[task 2024-10-07T16:52:56.376Z] PID 750 | 1728319976374	RemoteAgent	TRACE	Received command browsingContext.create for destination ROOT
[task 2024-10-07T16:52:56.376Z] PID 750 | 1728319976375	RemoteAgent	TRACE	Received command browsingContext._awaitVisibilityState for destination WINDOW_GLOBAL
[task 2024-10-07T16:52:56.380Z] PID 750 | 1728319976379	RemoteAgent	DEBUG	WebDriverBiDiConnection ae05ba5d-6998-4d56-a017-965d5becccab <- {"type":"event","method":"browsingContext.contextCreated","params":{"children":null,"context":"b717114e-0a5f-4cd9-90ff-55db4bc53952","originalOpener":null,"url":"about:blank","userContext":"2bac371f-9d1d-494a-89ee-e429dc93941c","parent":null}}
[task 2024-10-07T16:52:56.391Z] PID 750 | 1728319976390	RemoteAgent	TRACE	Received DOM event TabSelect for [object XULElement]
[task 2024-10-07T16:52:56.397Z] PID 750 | 1728319976396	RemoteAgent	TRACE	Received command browsingContext._applySessionData for destination WINDOW_GLOBAL
[task 2024-10-07T16:52:56.397Z] PID 750 | 1728319976397	RemoteAgent	TRACE	[688] ProgressListener Start: expectNavigation=false resolveWhenStarted=false unloadTimeout=5000 waitForExplicitStart=false
[task 2024-10-07T16:52:56.398Z] PID 750 | 1728319976397	RemoteAgent	TRACE	[688] ProgressListener Setting unload timer (5000ms)

The underlying reason here is:

[task 2024-10-11T00:54:20.709Z] PID 743 | ["fail",{"title":"should throw when frame is detached","fullTitle":"waittask specs Frame.waitForSelector should throw when frame is detached","file":"/builds/worker/checkouts/gecko/remote/test/puppeteer/test/build/waittask.spec.js","duration":206,"currentRetry":0,"err":"\"Waiting for selector `.box` failed: Protocol error (script.evaluate): unknown error TypeError: can't access property \"getActor\", webProgress.browsingContext.currentWindowGlobal is null _sendCommandToBrowsingContext@chrome://remote/content/shared/messagehandler/transports/RootTransport.sys.mjs:127:9\n\" didn't contain any of the strings [\"waitForFunction failed: frame got detached.\",\"Browsing context already closed.\"]","stack":"Error: \"Waiting for selector `.box` failed: Protocol error (script.evaluate): unknown error TypeError: can't access property \"getActor\", webProgress.browsingContext.currentWindowGlobal is null _sendCommandToBrowsingContext@chrome://remote/content/shared/messagehandler/transports/RootTransport.sys.mjs:127:9\n\" didn't contain any of the strings [\"waitForFunction failed: frame got detached.\",\"Browsing context already closed.\"]\n    at Context.<anonymous> (/builds/worker/checkouts/gecko/remote/test/puppeteer/test/src/waittask.spec.ts:462:34)"}]

So Julian's patch from bug 1923899 should hopefully fix it.

Depends on: 1923899
Summary: Intermittent waittask specs Frame.waitForSelector should throw when frame is detached (waittask.spec.js) | expected PASS → Intermittent Wd waittask specs Frame.waitForSelector should throw when frame is detached (waittask.spec.js) | expected PASS

Based on the fix lets mark as WFM. It can be reopened if the failure will still happen.

Status: NEW → RESOLVED
Closed: 10 days ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.