-
Notifications
You must be signed in to change notification settings - Fork 109
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:
|
@@ -4,7 +4,7 @@ use_relative_paths = True | |||
|
|||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
@@ -38,21 +43,32 @@ void MenuViews::PopupAt(Window* window, int x, int y, int positioning_item) { | |||
location = gfx::Point(origin.x() + x, origin.y() + y); | |||
} | |||
|
|||
int flags = MenuRunner::CONTEXT_MENU | | |||
MenuRunner::HAS_MNEMONICS | | |||
MenuRunner::ASYNC; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ASYNC flag is redundant since 59
see https://chromium.googlesource.com/chromium/src.git/+/5ab7c2d09320aa6f4fc6ba0118908ac7e378e77b
@@ -330,7 +330,8 @@ void URLBindings::Parse( | |||
GURL gurl(url_string); | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
async
to true for popup menus