Throw an exception when subscribing to "browsingContext.downloadWillBegin" and "browsingContext.downloadEnd" on Android
Categories
(Remote Protocol :: WebDriver BiDi, task, P3)
Tracking
(Not tracked)
People
(Reporter: jdescottes, Unassigned)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [webdriver:backlog])
Attachments
(1 file)
As explained on Bug 1985252, the browsingContext.downloadWillBegin event doesn't work on Android at the moment.
One option in the meantime is to explicitly throw if a client tries to subscribe to this event on Android.
| Reporter | ||
Updated•1 year ago
|
Updated•11 months ago
|
Comment 1•8 months ago
|
||
The same is actually the case when clients want to subscribe to browsingContext.downloadEnd events. So we should raise an unsupported operation error in both cases.
Comment 2•8 months ago
|
||
Comment 3•8 months ago
|
||
So there are actually two problems which we would need to solve if we really want to get this bug fixed. Here the try build as reference:
https://treeherder.mozilla.org/jobs?repo=try&revision=777048e6c34895b2a4206c7800e9100aac5ec8fe
-
For the wdspec tests related to
downloadWillBeginanddownloadEndwe need different expectations (FAIL vs ERROR) in the meta data and I don't know why this is happening. Maybe something related to thesubscribe_eventsfixture and when the inner method is raising an error? -
Tests that are subscribing the events on a module level are failing as well. At the moment most of them make use of the
browsingContextmodule. We could use another module here but it would as well require quite some changes to existing tests. So I'm not sure if that is what we really want.
I'm going to put this bug back into our triage queue so that we can decide if the time spent on these additional changes is worth or if we should better reach out to the GeckoView team and hopefully get them to add events that we can make use of.
Updated•8 months ago
|
Comment 4•8 months ago
|
||
We agreed on that this is not required and that we should focus on getting Android support added.
Updated•7 months ago
|
Updated•7 months ago
|
Description
•