Open Bug 1817819 Opened 2 years ago Updated 5 months ago

Missing XULFrameLoaderCreated event when synthesizing a click on a link from marionette on Desktop

Categories

(Remote Protocol :: Marionette, defect, P3)

Default
defect

Tracking

(Not tracked)

People

(Reporter: jdescottes, Unassigned)

References

(Depends on 1 open bug)

Details

While investigating Bug 1816061, we noticed that Marionette will not trigger a XULFrameLoaderCreated event when clicking on a link with target=top nested in an iframe.

This can normally be reproduced on the following test page https://bug1816061-testcase.glitch.me/

Clicking on the link manually should generate a XULFrameLoaderCreated event. Simulating a click with Marionette on Desktop will not.

However, simulating a click with Marionette on Mobile, with Fission enabled, will still trigger this event.

We should investigate why we are missing this event and how we could have a more accurate event simulation here.

Component: geckodriver → Marionette
Product: Testing → Remote Protocol

My first suspicion is that this could be related to dispatching the events in the child process rather than the parent, but I'm not sure.

See Also: → parent-actions

Julian, could you have a look what James suggested?

Flags: needinfo?(jdescottes)
Severity: -- → S3
Priority: -- → P3

I assume we need the ability to dispatch events from the parent process to do that. Isn't this blocked on what we should implement on m12? If not, how can I test it?

Flags: needinfo?(jdescottes) → needinfo?(hskupin)

Julian I assume you are referring to the event listener in driver.sys.mjs? I added a dump statement there but whether emitting the event in the content nor parent process makes actually a difference. There is no output, and so I think that the problem is related to something else. But you could try yourself as well. Here is the testing patch: https://pastebin.mozilla.org/rAHCzghN.

Flags: needinfo?(hskupin) → needinfo?(jdescottes)

Given that this bug is lower priority lets wait at least for actions being able to emit async mouse events which is done on bug 1848958. We can then check if that will fix it and mark it being blocked on bug 1490268 if that's the case.

Depends on: 1848958
Flags: needinfo?(jdescottes)
You need to log in before you can comment on or make changes to this bug.