Moves BrowserContext.grantPermissions Sobek-option parsing into the mapping layer.
Why?
Turns GrantPermissionsOptions to a value type from a pointer, as this type does not need to be used to be mutated. Using value types is likely to be less racy and more performant.
Moves Sobek transformation to the mapping layer.
Also, see the reasons in #1064.
Checklist
[x] I have performed a self-review of my code
[x] I have added tests for my changes
[x] I have commented on my code, particularly in hard-to-understand areas
What?
Moves
BrowserContext.grantPermissions
Sobek-option parsing into the mapping layer.Why?
Also, see the reasons in #1064.
Checklist
Related PR(s)/Issue(s)
1270
1510