Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: @W-13107837 add missing 'webkit' property for WKWebView #428

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

jdalton
Copy link
Contributor

@jdalton jdalton commented Apr 26, 2023

fix: @W-13107837 add missing 'webkit' property for WKWebView

// object from `Object.keys()` and `Reflect.ownKeys()` results, so add it.
// istanbul ignore if: currently unreachable via tests
if (ObjectHasOwn(source, 'webkit') && !ReflectApply(ArrayProtoIncludes, ownKeys, ['webkit'])) {
ownKeys[ownKeys.length] = 'webkit';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If order doesn't matter, could just use ownKeys.push('webkit')

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ownKeys[ownKeys.length] = 'webkit' is equiv to push without the prototypal access.

@jdalton jdalton merged commit 2e6c3a3 into main Apr 27, 2023
4 of 5 checks passed
@jdalton jdalton deleted the jdalton/fix-webkit branch April 27, 2023 18:53
@manuel-jasso
Copy link
Contributor

@jdalton Is there a unit test for this? I know it would require a real iOS browser, I looked in locker repo but I didn't find one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants