Closed Bug 1123847 Opened 9 years ago Closed 8 years ago

Throw error when deleteCookie doesn't find cookie

Categories

(Remote Protocol :: Marionette, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: ato, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: pi-marionette-server)

Whiteboard: [marionette=1.0]
Blocks: webdriver
This appears to do the exact same thing as WebDriver OSS[1]

[1] https://code.google.com/p/selenium/source/browse/javascript/firefox-driver/js/firefoxDriver.js#790

What error do you propose we throw?
Priority: -- → P3
Whiteboard: [marionette=1.0]
(In reply to David Burns :automatedtester from comment #1)
> This appears to do the exact same thing as WebDriver OSS[1]
> 
> [1]
> https://code.google.com/p/selenium/source/browse/javascript/firefox-driver/
> js/firefoxDriver.js#790
> 
> What error do you propose we throw?

I don't think any of the existing error codes in Selenium are useful, and it isn't described in spec yet.  We should probably introduce a new status "cookie not found" or similar.
I’ve submitted https://github.com/w3c/webdriver/pull/303 to the specification.
I have a feeling that the count of deleted cookies is not something we can reliably track.  Implementations may also not even follow the exact steps in this context. (Marionette for example uses the Gecko cookie service in chrome space.)
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.