Closed Bug 1656014 Opened 4 years ago Closed 4 years ago

can not use WebDriverExtensionCommand as a dyn type because of PartialEq - webdriver crate

Categories

(Testing :: geckodriver, enhancement, P1)

Default
enhancement

Tracking

(firefox82 fixed)

RESOLVED FIXED
82 Branch
Tracking Status
firefox82 --- fixed

People

(Reporter: whizsid, Assigned: jgraham)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Steps to reproduce:

I am from this PR. This crate is using the webdriver crate. As per the discussion of this PR I want to use the WebDriverExtensionCommand as a Box<dyn WebDriverExtensionCommand>.

Actual results:

pub trait WebDriverExtensionCommand : Send + Clone + PartialEq{}
| --- --------- ...because it uses Self as a type parameter in this
| |
| this trait cannot be made into an object...

Expected results:

Using the WebDriverExtensionCommand as a dyn type.

Did you mean to mark this as a security bug? That keeps the Marionette folks from seeing it, and the security team isn't really sure what to do with this.

Flags: needinfo?(whizsid)

(In reply to Daniel Veditz [:dveditz] from comment #1)

Did you mean to mark this as a security bug? That keeps the Marionette folks from seeing it, and the security team isn't really sure what to do with this.

Sorry! It is not a security bug. I accidentally ticked it. But I can not edit it again.

Flags: needinfo?(whizsid)
Group: core-security-release

James, could you please have a look what's wrong here? Is that a limitation on our side?

Component: Marionette → geckodriver
Flags: needinfo?(james)
Assignee: nobody → james
Flags: needinfo?(james)
Severity: -- → S3
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: -- → P1
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/autoland/rev/d7f08d3e2848
Remove PartialEq bound on WebDriverExtensionCommand, r=webdriver-reviewers,whimboo
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: