Repository navigation
Mac async popup - #161
Mac async popup#161
Conversation
2cae00c to
20f6b43
Compare
|
Right clicking anywhere inside a tab's webcontents causes this: |
This might be because you need this native mate change: electron/native-mate#10 |
20f6b43 to
594b268
Compare
|
Thanks for the update @kevinsawicki, that definitely got me past that 😄 Seems now though that the menu is closing itself quickly after it opens. Will look at this later tonite |
Haven't seen this before, this could happen if the native menu object gets destroyed too early, that is why they are kept around in a map of |
|
what is the status of this? Still trying to resolve the closing quickly issue? |
|
@bridiver yes- I haven't tried it recently though. I'm not sure I'll have time to look in this upcoming week |
3517a7f to
faa2b45
Compare
Additional updates (per electron/electron#8702) Fixes brave/browser-laptop#5470 - Default `async` to true for popup menus - fix lint errors - menus do not destroy themselves
1151052 to
2436b71
Compare
|
Ready for review! 😄 There are two ways we can attempt to use this:
|
| deps = { | ||
| "vendor/node": "https://github.com/brave/node.git@f51b9ab8ff446ca7b13be0de1bc12b854b23938d", | ||
| "vendor/native_mate": "https://github.com/zcbenz/native-mate.git@b5e5de626c6a57e44c7e6448d8bbaaac475d493c", | ||
| "vendor/native_mate": "https://github.com/zcbenz/native-mate.git@ad0fd825663932ee3fa29ff935dfec99933bdd8c", |
There was a problem hiding this comment.
Yes- it's needed per the comment here:
#161 (comment)
|
|
|
cc: @darkdh |
|
would there be any benefit to not destroying them automatically? |
There was a problem hiding this comment.
I wonder why not destroying them in OnMenuClosed?
Just like #205 without window id.
If you intentionally make MenuController::Cancel return at first line, you can see the context menu is not window specific but a desktop global on Aura.
|
|
||
| int flags = MenuRunner::CONTEXT_MENU | | ||
| MenuRunner::HAS_MNEMONICS | | ||
| MenuRunner::ASYNC; |
There was a problem hiding this comment.
| gin::Dictionary dict = gin::Dictionary::CreateEmpty(isolate); | ||
| if (gurl.has_username()) | ||
| dict.Set("auth", gurl.username() + (gurl.has_password() ? ":" + gurl.password() : "")); | ||
| dict.Set("auth", gurl.username() + (gurl.has_password() |
There was a problem hiding this comment.
just saw this now- this just moves part of it onto the next line (since it went over 80 chars length, lint failed)
…n Muon with brave/muon#161 Auditors: @bridiver, @bbondy
…n Muon with brave/muon#161 Auditors: @bridiver, @bbondy
…n Muon with brave/muon#161 Auditors: @bridiver, @bbondy

Manual application of electron patch electron/electron#8702
Additional updates (per electron/electron#8702)
Fixes brave/browser-laptop#5470
asyncto true for popup menus