Closed solomonkinard closed 1 week ago
I'm not necessarily advocating for using the same error code across different browsers. But if someone wants to champion that, please share pros and cons.
I mainly see advantages if it is possible for browsers to share a common set of error codes. Otherwise it would be browser-specific and extension authors may as well just check the error message strings themselves.
Very much in favour of at least addressing some of the inconsistencies when it comes to error messages as even an error message of a missing property in a specific API call can differ across browsers. However in the given example an error / warning code would still need to be accompanied by some additional data like in this case the missing property.
Thanks. Those sound like reasonable ideas. I don't personally plan on championing this right now for cross-browsers. But anyone can run with this at any time if they're interested. In order to move forward, someone else would need to do at least the following:
Adding error / warning
codes
for extensions would make it possible for extension developers to find their code into the distant future even if themessage
itself has changed.This could be enabled for manifest declaration and API usage.
A con is that it could be a lot of work for maybe little benefit.
What are your ideas, and any pros and cons to share?