Skip to content
This repository was archived by the owner on Jun 5, 2023. It is now read-only.

Conversation

@malscent
Copy link

@malscent malscent commented Jan 6, 2020

Re-opening after fixing all of Steve's suggestions. I re-based and force pushed, which would not allow me to push to the previous PR.

For Reference.
#44

Justin Ashworth added 7 commits January 2, 2020 14:37
Update testassets/HelloWorldApp/wwwroot/index.html

Co-Authored-By: Steve Sanderson <[email protected]>

Update src/WebWindow.Native/WebWindow.Mac.mm

Co-Authored-By: Steve Sanderson <[email protected]>

Update src/WebWindow.Native/WebWindow.Mac.mm

Co-Authored-By: Steve Sanderson <[email protected]>

Update src/WebWindow.Native/WebWindow.Mac.NavigationDelegate.mm

Co-Authored-By: Steve Sanderson <[email protected]>

Fixes for formatting

typo in mac nav delegate

mac callback changes

More changes to mac

Learning Objective-C as we go!

More string manip issues

syntax

More mac fun

UTF not Utf

mac stuff

Mac

More mac

mac

more mac

Added EventHandler for UriChanging

Deleted .idea
PWSTR uri;
args->get_Uri(&uri);
_uriChangeCallback(uri);
CoTaskMemFree(uri);
Copy link
Author

Choose a reason for hiding this comment

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

This CoTaskMemFree comes from https://docs.microsoft.com/en-us/microsoft-edge/hosting/webview2/gettingstarted#step-4---navigation-events

Direction needed on whether it should be removed or not.

Copy link
Contributor

Choose a reason for hiding this comment

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

How about using wil::unique_cotaskmem_string? It is just like unique_ptr and CoTaskMemFree will be called automatically.

Copy link
Author

Choose a reason for hiding this comment

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

Updated!

@malscent
Copy link
Author

Any update on this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants