[Bug 27283] InvalidAccessError usage is questionable; use TypeError instead?

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27283

--- Comment #5 from Domenic Denicola <d@domenic.me> ---
> We also use InvalidAccessError for invalid formats and invalid operations for the session type.

I did a review of all the places InvalidAccessError appears.

All of them seem related to invalid or unsanitizable objects appearing, and
TypeError would fit, except

> If this object's session type is not "persistent", return a promise rejected with a new DOMException whose name is InvalidAccessError.

and

> Otherwise
>    Reject promise with a new DOMException whose name is InvalidAccessError.

(below 'If sessionType is "persistent"')

which seems like they should be RangeError.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 8 December 2014 18:04:04 UTC