Reject the permissionState promise with NotSupported Exception if userVisibleOnly is false (1/3)
This change plumbs onError with an error code. It also provides an
artifical empty onError() method for the purpose of the three sided patch and updates all layout tests to use the userVisibleOnly parameter.
1) This CL
2)
https://codereview.chromium.org/1133083002 where the new onError flow is used
3) Cleanup CL where the empty onError method is removed and two new Layout tests are added so the exception is actually tested
BUG=
479246
Committed:
https://src.chromium.org/viewvc/blink?view=rev&revision=195180