detached 292d988

chore: apply safe coderabbit follow-ups

commit
292d98876ab064248a6b00c278ff96cbbafd0b6a
author
brice · · 2026-04-23 05:01 UTC
parent
0b00d6c
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
3 files · +276 -38
M .mockery.yaml +2 -1
@@ -42,7 +42,8 @@ packages:
4242 FilterApplier: {}
4343 FaviconDatabase: {}
4444 IdleInhibitor: {}
45- PopupCapable: {}
45+ PopupLifecycleCapable: {}
46+ PopupOpenerCapable: {}
4647 OAuthCallbackCapable: {}
4748 DevToolsOpener: {}
4849 Printer: {}
@@ -42,7 +42,8 @@ packages:
42 FilterApplier: {}42 FilterApplier: {}
43 FaviconDatabase: {}43 FaviconDatabase: {}
44 IdleInhibitor: {}44 IdleInhibitor: {}
45- PopupCapable: {}45+ PopupLifecycleCapable: {}
46+ PopupOpenerCapable: {}
46 OAuthCallbackCapable: {}47 OAuthCallbackCapable: {}
47 DevToolsOpener: {}48 DevToolsOpener: {}
48 Printer: {}49 Printer: {}
M internal/application/port/mocks/mocks.go +273 -36
@@ -14273,13 +14273,13 @@ func (_c *MockPrinter_PrintPage_Call) RunAndReturn(run func()) *MockPrinter_Prin
1427314273 return _c
1427414274 }
1427514275
14276-// NewMockPopupCapable creates a new instance of MockPopupCapable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
14276+// NewMockPopupLifecycleCapable creates a new instance of MockPopupLifecycleCapable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
1427714277 // The first argument is typically a *testing.T value.
14278-func NewMockPopupCapable(t interface {
14278+func NewMockPopupLifecycleCapable(t interface {
1427914279 mock.TestingT
1428014280 Cleanup(func())
14281-}) *MockPopupCapable {
14282- mock := &MockPopupCapable{}
14281+}) *MockPopupLifecycleCapable {
14282+ mock := &MockPopupLifecycleCapable{}
1428314283 mock.Mock.Test(t)
1428414284
1428514285 t.Cleanup(func() { mock.AssertExpectations(t) })
@@ -14287,37 +14287,77 @@ func NewMockPopupCapable(t interface {
1428714287 return mock
1428814288 }
1428914289
14290-// MockPopupCapable is an autogenerated mock type for the PopupCapable type
14291-type MockPopupCapable struct {
14290+// MockPopupLifecycleCapable is an autogenerated mock type for the PopupLifecycleCapable type
14291+type MockPopupLifecycleCapable struct {
1429214292 mock.Mock
1429314293 }
1429414294
14295-type MockPopupCapable_Expecter struct {
14295+type MockPopupLifecycleCapable_Expecter struct {
1429614296 mock *mock.Mock
1429714297 }
1429814298
14299-func (_m *MockPopupCapable) EXPECT() *MockPopupCapable_Expecter {
14300- return &MockPopupCapable_Expecter{mock: &_m.Mock}
14299+func (_m *MockPopupLifecycleCapable) EXPECT() *MockPopupLifecycleCapable_Expecter {
14300+ return &MockPopupLifecycleCapable_Expecter{mock: &_m.Mock}
1430114301 }
1430214302
14303-// SetOnClose provides a mock function for the type MockPopupCapable
14304-func (_mock *MockPopupCapable) SetOnClose(fn func()) {
14303+// PrimePopupNavigation provides a mock function for the type MockPopupLifecycleCapable
14304+func (_mock *MockPopupLifecycleCapable) PrimePopupNavigation(uri string) {
14305+ _mock.Called(uri)
14306+ return
14307+}
14308+
14309+// MockPopupLifecycleCapable_PrimePopupNavigation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PrimePopupNavigation'
14310+type MockPopupLifecycleCapable_PrimePopupNavigation_Call struct {
14311+ *mock.Call
14312+}
14313+
14314+// PrimePopupNavigation is a helper method to define mock.On call
14315+// - uri string
14316+func (_e *MockPopupLifecycleCapable_Expecter) PrimePopupNavigation(uri interface{}) *MockPopupLifecycleCapable_PrimePopupNavigation_Call {
14317+ return &MockPopupLifecycleCapable_PrimePopupNavigation_Call{Call: _e.mock.On("PrimePopupNavigation", uri)}
14318+}
14319+
14320+func (_c *MockPopupLifecycleCapable_PrimePopupNavigation_Call) Run(run func(uri string)) *MockPopupLifecycleCapable_PrimePopupNavigation_Call {
14321+ _c.Call.Run(func(args mock.Arguments) {
14322+ var arg0 string
14323+ if args[0] != nil {
14324+ arg0 = args[0].(string)
14325+ }
14326+ run(
14327+ arg0,
14328+ )
14329+ })
14330+ return _c
14331+}
14332+
14333+func (_c *MockPopupLifecycleCapable_PrimePopupNavigation_Call) Return() *MockPopupLifecycleCapable_PrimePopupNavigation_Call {
14334+ _c.Call.Return()
14335+ return _c
14336+}
14337+
14338+func (_c *MockPopupLifecycleCapable_PrimePopupNavigation_Call) RunAndReturn(run func(uri string)) *MockPopupLifecycleCapable_PrimePopupNavigation_Call {
14339+ _c.Run(run)
14340+ return _c
14341+}
14342+
14343+// SetOnClose provides a mock function for the type MockPopupLifecycleCapable
14344+func (_mock *MockPopupLifecycleCapable) SetOnClose(fn func()) {
1430514345 _mock.Called(fn)
1430614346 return
1430714347 }
1430814348
14309-// MockPopupCapable_SetOnClose_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetOnClose'
14310-type MockPopupCapable_SetOnClose_Call struct {
14349+// MockPopupLifecycleCapable_SetOnClose_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetOnClose'
14350+type MockPopupLifecycleCapable_SetOnClose_Call struct {
1431114351 *mock.Call
1431214352 }
1431314353
1431414354 // SetOnClose is a helper method to define mock.On call
1431514355 // - fn func()
14316-func (_e *MockPopupCapable_Expecter) SetOnClose(fn interface{}) *MockPopupCapable_SetOnClose_Call {
14317- return &MockPopupCapable_SetOnClose_Call{Call: _e.mock.On("SetOnClose", fn)}
14356+func (_e *MockPopupLifecycleCapable_Expecter) SetOnClose(fn interface{}) *MockPopupLifecycleCapable_SetOnClose_Call {
14357+ return &MockPopupLifecycleCapable_SetOnClose_Call{Call: _e.mock.On("SetOnClose", fn)}
1431814358 }
1431914359
14320-func (_c *MockPopupCapable_SetOnClose_Call) Run(run func(fn func())) *MockPopupCapable_SetOnClose_Call {
14360+func (_c *MockPopupLifecycleCapable_SetOnClose_Call) Run(run func(fn func())) *MockPopupLifecycleCapable_SetOnClose_Call {
1432114361 _c.Call.Run(func(args mock.Arguments) {
1432214362 var arg0 func()
1432314363 if args[0] != nil {
@@ -14330,34 +14370,34 @@ func (_c *MockPopupCapable_SetOnClose_Call) Run(run func(fn func())) *MockPopupC
1433014370 return _c
1433114371 }
1433214372
14333-func (_c *MockPopupCapable_SetOnClose_Call) Return() *MockPopupCapable_SetOnClose_Call {
14373+func (_c *MockPopupLifecycleCapable_SetOnClose_Call) Return() *MockPopupLifecycleCapable_SetOnClose_Call {
1433414374 _c.Call.Return()
1433514375 return _c
1433614376 }
1433714377
14338-func (_c *MockPopupCapable_SetOnClose_Call) RunAndReturn(run func(fn func())) *MockPopupCapable_SetOnClose_Call {
14378+func (_c *MockPopupLifecycleCapable_SetOnClose_Call) RunAndReturn(run func(fn func())) *MockPopupLifecycleCapable_SetOnClose_Call {
1433914379 _c.Run(run)
1434014380 return _c
1434114381 }
1434214382
14343-// SetOnReadyToShow provides a mock function for the type MockPopupCapable
14344-func (_mock *MockPopupCapable) SetOnReadyToShow(fn func()) {
14383+// SetOnReadyToShow provides a mock function for the type MockPopupLifecycleCapable
14384+func (_mock *MockPopupLifecycleCapable) SetOnReadyToShow(fn func()) {
1434514385 _mock.Called(fn)
1434614386 return
1434714387 }
1434814388
14349-// MockPopupCapable_SetOnReadyToShow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetOnReadyToShow'
14350-type MockPopupCapable_SetOnReadyToShow_Call struct {
14389+// MockPopupLifecycleCapable_SetOnReadyToShow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetOnReadyToShow'
14390+type MockPopupLifecycleCapable_SetOnReadyToShow_Call struct {
1435114391 *mock.Call
1435214392 }
1435314393
1435414394 // SetOnReadyToShow is a helper method to define mock.On call
1435514395 // - fn func()
14356-func (_e *MockPopupCapable_Expecter) SetOnReadyToShow(fn interface{}) *MockPopupCapable_SetOnReadyToShow_Call {
14357- return &MockPopupCapable_SetOnReadyToShow_Call{Call: _e.mock.On("SetOnReadyToShow", fn)}
14396+func (_e *MockPopupLifecycleCapable_Expecter) SetOnReadyToShow(fn interface{}) *MockPopupLifecycleCapable_SetOnReadyToShow_Call {
14397+ return &MockPopupLifecycleCapable_SetOnReadyToShow_Call{Call: _e.mock.On("SetOnReadyToShow", fn)}
1435814398 }
1435914399
14360-func (_c *MockPopupCapable_SetOnReadyToShow_Call) Run(run func(fn func())) *MockPopupCapable_SetOnReadyToShow_Call {
14400+func (_c *MockPopupLifecycleCapable_SetOnReadyToShow_Call) Run(run func(fn func())) *MockPopupLifecycleCapable_SetOnReadyToShow_Call {
1436114401 _c.Call.Run(func(args mock.Arguments) {
1436214402 var arg0 func()
1436314403 if args[0] != nil {
@@ -14370,49 +14410,246 @@ func (_c *MockPopupCapable_SetOnReadyToShow_Call) Run(run func(fn func())) *Mock
1437014410 return _c
1437114411 }
1437214412
14373-func (_c *MockPopupCapable_SetOnReadyToShow_Call) Return() *MockPopupCapable_SetOnReadyToShow_Call {
14413+func (_c *MockPopupLifecycleCapable_SetOnReadyToShow_Call) Return() *MockPopupLifecycleCapable_SetOnReadyToShow_Call {
1437414414 _c.Call.Return()
1437514415 return _c
1437614416 }
1437714417
14378-func (_c *MockPopupCapable_SetOnReadyToShow_Call) RunAndReturn(run func(fn func())) *MockPopupCapable_SetOnReadyToShow_Call {
14418+func (_c *MockPopupLifecycleCapable_SetOnReadyToShow_Call) RunAndReturn(run func(fn func())) *MockPopupLifecycleCapable_SetOnReadyToShow_Call {
1437914419 _c.Run(run)
1438014420 return _c
1438114421 }
1438214422
14383-// Show provides a mock function for the type MockPopupCapable
14384-func (_mock *MockPopupCapable) Show() {
14423+// Show provides a mock function for the type MockPopupLifecycleCapable
14424+func (_mock *MockPopupLifecycleCapable) Show() {
1438514425 _mock.Called()
1438614426 return
1438714427 }
1438814428
14389-// MockPopupCapable_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'
14390-type MockPopupCapable_Show_Call struct {
14429+// MockPopupLifecycleCapable_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'
14430+type MockPopupLifecycleCapable_Show_Call struct {
1439114431 *mock.Call
1439214432 }
1439314433
1439414434 // Show is a helper method to define mock.On call
14395-func (_e *MockPopupCapable_Expecter) Show() *MockPopupCapable_Show_Call {
14396- return &MockPopupCapable_Show_Call{Call: _e.mock.On("Show")}
14435+func (_e *MockPopupLifecycleCapable_Expecter) Show() *MockPopupLifecycleCapable_Show_Call {
14436+ return &MockPopupLifecycleCapable_Show_Call{Call: _e.mock.On("Show")}
1439714437 }
1439814438
14399-func (_c *MockPopupCapable_Show_Call) Run(run func()) *MockPopupCapable_Show_Call {
14439+func (_c *MockPopupLifecycleCapable_Show_Call) Run(run func()) *MockPopupLifecycleCapable_Show_Call {
1440014440 _c.Call.Run(func(args mock.Arguments) {
1440114441 run()
1440214442 })
1440314443 return _c
1440414444 }
1440514445
14406-func (_c *MockPopupCapable_Show_Call) Return() *MockPopupCapable_Show_Call {
14446+func (_c *MockPopupLifecycleCapable_Show_Call) Return() *MockPopupLifecycleCapable_Show_Call {
14447+ _c.Call.Return()
14448+ return _c
14449+}
14450+
14451+func (_c *MockPopupLifecycleCapable_Show_Call) RunAndReturn(run func()) *MockPopupLifecycleCapable_Show_Call {
14452+ _c.Run(run)
14453+ return _c
14454+}
14455+
14456+// NewMockPopupOpenerCapable creates a new instance of MockPopupOpenerCapable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
14457+// The first argument is typically a *testing.T value.
14458+func NewMockPopupOpenerCapable(t interface {
14459+ mock.TestingT
14460+ Cleanup(func())
14461+}) *MockPopupOpenerCapable {
14462+ mock := &MockPopupOpenerCapable{}
14463+ mock.Mock.Test(t)
14464+
14465+ t.Cleanup(func() { mock.AssertExpectations(t) })
14466+
14467+ return mock
14468+}
14469+
14470+// MockPopupOpenerCapable is an autogenerated mock type for the PopupOpenerCapable type
14471+type MockPopupOpenerCapable struct {
14472+ mock.Mock
14473+}
14474+
14475+type MockPopupOpenerCapable_Expecter struct {
14476+ mock *mock.Mock
14477+}
14478+
14479+func (_m *MockPopupOpenerCapable) EXPECT() *MockPopupOpenerCapable_Expecter {
14480+ return &MockPopupOpenerCapable_Expecter{mock: &_m.Mock}
14481+}
14482+
14483+// AddOpenerMessageCallback provides a mock function for the type MockPopupOpenerCapable
14484+func (_mock *MockPopupOpenerCapable) AddOpenerMessageCallback(fn func()) {
14485+ _mock.Called(fn)
14486+ return
14487+}
14488+
14489+// MockPopupOpenerCapable_AddOpenerMessageCallback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddOpenerMessageCallback'
14490+type MockPopupOpenerCapable_AddOpenerMessageCallback_Call struct {
14491+ *mock.Call
14492+}
14493+
14494+// AddOpenerMessageCallback is a helper method to define mock.On call
14495+// - fn func()
14496+func (_e *MockPopupOpenerCapable_Expecter) AddOpenerMessageCallback(fn interface{}) *MockPopupOpenerCapable_AddOpenerMessageCallback_Call {
14497+ return &MockPopupOpenerCapable_AddOpenerMessageCallback_Call{Call: _e.mock.On("AddOpenerMessageCallback", fn)}
14498+}
14499+
14500+func (_c *MockPopupOpenerCapable_AddOpenerMessageCallback_Call) Run(run func(fn func())) *MockPopupOpenerCapable_AddOpenerMessageCallback_Call {
14501+ _c.Call.Run(func(args mock.Arguments) {
14502+ var arg0 func()
14503+ if args[0] != nil {
14504+ arg0 = args[0].(func())
14505+ }
14506+ run(
14507+ arg0,
14508+ )
14509+ })
14510+ return _c
14511+}
14512+
14513+func (_c *MockPopupOpenerCapable_AddOpenerMessageCallback_Call) Return() *MockPopupOpenerCapable_AddOpenerMessageCallback_Call {
1440714514 _c.Call.Return()
1440814515 return _c
1440914516 }
1441014517
14411-func (_c *MockPopupCapable_Show_Call) RunAndReturn(run func()) *MockPopupCapable_Show_Call {
14518+func (_c *MockPopupOpenerCapable_AddOpenerMessageCallback_Call) RunAndReturn(run func(fn func())) *MockPopupOpenerCapable_AddOpenerMessageCallback_Call {
1441214519 _c.Run(run)
1441314520 return _c
1441414521 }
1441514522
14523+// AddOpenerNavigationCallback provides a mock function for the type MockPopupOpenerCapable
14524+func (_mock *MockPopupOpenerCapable) AddOpenerNavigationCallback(fn func(uri string)) {
14525+ _mock.Called(fn)
14526+ return
14527+}
14528+
14529+// MockPopupOpenerCapable_AddOpenerNavigationCallback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddOpenerNavigationCallback'
14530+type MockPopupOpenerCapable_AddOpenerNavigationCallback_Call struct {
14531+ *mock.Call
14532+}
14533+
14534+// AddOpenerNavigationCallback is a helper method to define mock.On call
14535+// - fn func(uri string)
14536+func (_e *MockPopupOpenerCapable_Expecter) AddOpenerNavigationCallback(fn interface{}) *MockPopupOpenerCapable_AddOpenerNavigationCallback_Call {
14537+ return &MockPopupOpenerCapable_AddOpenerNavigationCallback_Call{Call: _e.mock.On("AddOpenerNavigationCallback", fn)}
14538+}
14539+
14540+func (_c *MockPopupOpenerCapable_AddOpenerNavigationCallback_Call) Run(run func(fn func(uri string))) *MockPopupOpenerCapable_AddOpenerNavigationCallback_Call {
14541+ _c.Call.Run(func(args mock.Arguments) {
14542+ var arg0 func(uri string)
14543+ if args[0] != nil {
14544+ arg0 = args[0].(func(uri string))
14545+ }
14546+ run(
14547+ arg0,
14548+ )
14549+ })
14550+ return _c
14551+}
14552+
14553+func (_c *MockPopupOpenerCapable_AddOpenerNavigationCallback_Call) Return() *MockPopupOpenerCapable_AddOpenerNavigationCallback_Call {
14554+ _c.Call.Return()
14555+ return _c
14556+}
14557+
14558+func (_c *MockPopupOpenerCapable_AddOpenerNavigationCallback_Call) RunAndReturn(run func(fn func(uri string))) *MockPopupOpenerCapable_AddOpenerNavigationCallback_Call {
14559+ _c.Run(run)
14560+ return _c
14561+}
14562+
14563+// EnablePopupOpenerBridge provides a mock function for the type MockPopupOpenerCapable
14564+func (_mock *MockPopupOpenerCapable) EnablePopupOpenerBridge(parent port.WebView, noJavaScriptAccess bool) {
14565+ _mock.Called(parent, noJavaScriptAccess)
14566+ return
14567+}
14568+
14569+// MockPopupOpenerCapable_EnablePopupOpenerBridge_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnablePopupOpenerBridge'
14570+type MockPopupOpenerCapable_EnablePopupOpenerBridge_Call struct {
14571+ *mock.Call
14572+}
14573+
14574+// EnablePopupOpenerBridge is a helper method to define mock.On call
14575+// - parent port.WebView
14576+// - noJavaScriptAccess bool
14577+func (_e *MockPopupOpenerCapable_Expecter) EnablePopupOpenerBridge(parent interface{}, noJavaScriptAccess interface{}) *MockPopupOpenerCapable_EnablePopupOpenerBridge_Call {
14578+ return &MockPopupOpenerCapable_EnablePopupOpenerBridge_Call{Call: _e.mock.On("EnablePopupOpenerBridge", parent, noJavaScriptAccess)}
14579+}
14580+
14581+func (_c *MockPopupOpenerCapable_EnablePopupOpenerBridge_Call) Run(run func(parent port.WebView, noJavaScriptAccess bool)) *MockPopupOpenerCapable_EnablePopupOpenerBridge_Call {
14582+ _c.Call.Run(func(args mock.Arguments) {
14583+ var arg0 port.WebView
14584+ if args[0] != nil {
14585+ arg0 = args[0].(port.WebView)
14586+ }
14587+ var arg1 bool
14588+ if args[1] != nil {
14589+ arg1 = args[1].(bool)
14590+ }
14591+ run(
14592+ arg0,
14593+ arg1,
14594+ )
14595+ })
14596+ return _c
14597+}
14598+
14599+func (_c *MockPopupOpenerCapable_EnablePopupOpenerBridge_Call) Return() *MockPopupOpenerCapable_EnablePopupOpenerBridge_Call {
14600+ _c.Call.Return()
14601+ return _c
14602+}
14603+
14604+func (_c *MockPopupOpenerCapable_EnablePopupOpenerBridge_Call) RunAndReturn(run func(parent port.WebView, noJavaScriptAccess bool)) *MockPopupOpenerCapable_EnablePopupOpenerBridge_Call {
14605+ _c.Run(run)
14606+ return _c
14607+}
14608+
14609+// HasActivePopupOpenerBridge provides a mock function for the type MockPopupOpenerCapable
14610+func (_mock *MockPopupOpenerCapable) HasActivePopupOpenerBridge() bool {
14611+ ret := _mock.Called()
14612+
14613+ if len(ret) == 0 {
14614+ panic("no return value specified for HasActivePopupOpenerBridge")
14615+ }
14616+
14617+ var r0 bool
14618+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
14619+ r0 = returnFunc()
14620+ } else {
14621+ r0 = ret.Get(0).(bool)
14622+ }
14623+ return r0
14624+}
14625+
14626+// MockPopupOpenerCapable_HasActivePopupOpenerBridge_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasActivePopupOpenerBridge'
14627+type MockPopupOpenerCapable_HasActivePopupOpenerBridge_Call struct {
14628+ *mock.Call
14629+}
14630+
14631+// HasActivePopupOpenerBridge is a helper method to define mock.On call
14632+func (_e *MockPopupOpenerCapable_Expecter) HasActivePopupOpenerBridge() *MockPopupOpenerCapable_HasActivePopupOpenerBridge_Call {
14633+ return &MockPopupOpenerCapable_HasActivePopupOpenerBridge_Call{Call: _e.mock.On("HasActivePopupOpenerBridge")}
14634+}
14635+
14636+func (_c *MockPopupOpenerCapable_HasActivePopupOpenerBridge_Call) Run(run func()) *MockPopupOpenerCapable_HasActivePopupOpenerBridge_Call {
14637+ _c.Call.Run(func(args mock.Arguments) {
14638+ run()
14639+ })
14640+ return _c
14641+}
14642+
14643+func (_c *MockPopupOpenerCapable_HasActivePopupOpenerBridge_Call) Return(b bool) *MockPopupOpenerCapable_HasActivePopupOpenerBridge_Call {
14644+ _c.Call.Return(b)
14645+ return _c
14646+}
14647+
14648+func (_c *MockPopupOpenerCapable_HasActivePopupOpenerBridge_Call) RunAndReturn(run func() bool) *MockPopupOpenerCapable_HasActivePopupOpenerBridge_Call {
14649+ _c.Call.Return(run)
14650+ return _c
14651+}
14652+
1441614653 // NewMockOAuthCallbackCapable creates a new instance of MockOAuthCallbackCapable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
1441714654 // The first argument is typically a *testing.T value.
1441814655 func NewMockOAuthCallbackCapable(t interface {
@@ -14273,13 +14273,13 @@ func (_c *MockPrinter_PrintPage_Call) RunAndReturn(run func()) *MockPrinter_Prin
14273 return _c14273 return _c
14274 }14274 }
14275 14275
14276-// NewMockPopupCapable creates a new instance of MockPopupCapable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.14276+// NewMockPopupLifecycleCapable creates a new instance of MockPopupLifecycleCapable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
14277 // The first argument is typically a *testing.T value.14277 // The first argument is typically a *testing.T value.
14278-func NewMockPopupCapable(t interface {14278+func NewMockPopupLifecycleCapable(t interface {
14279 mock.TestingT14279 mock.TestingT
14280 Cleanup(func())14280 Cleanup(func())
14281-}) *MockPopupCapable {14281+}) *MockPopupLifecycleCapable {
14282- mock := &MockPopupCapable{}14282+ mock := &MockPopupLifecycleCapable{}
14283 mock.Mock.Test(t)14283 mock.Mock.Test(t)
14284 14284
14285 t.Cleanup(func() { mock.AssertExpectations(t) })14285 t.Cleanup(func() { mock.AssertExpectations(t) })
@@ -14287,37 +14287,77 @@ func NewMockPopupCapable(t interface {
14287 return mock14287 return mock
14288 }14288 }
14289 14289
14290-// MockPopupCapable is an autogenerated mock type for the PopupCapable type14290+// MockPopupLifecycleCapable is an autogenerated mock type for the PopupLifecycleCapable type
14291-type MockPopupCapable struct {14291+type MockPopupLifecycleCapable struct {
14292 mock.Mock14292 mock.Mock
14293 }14293 }
14294 14294
14295-type MockPopupCapable_Expecter struct {14295+type MockPopupLifecycleCapable_Expecter struct {
14296 mock *mock.Mock14296 mock *mock.Mock
14297 }14297 }
14298 14298
14299-func (_m *MockPopupCapable) EXPECT() *MockPopupCapable_Expecter {14299+func (_m *MockPopupLifecycleCapable) EXPECT() *MockPopupLifecycleCapable_Expecter {
14300- return &MockPopupCapable_Expecter{mock: &_m.Mock}14300+ return &MockPopupLifecycleCapable_Expecter{mock: &_m.Mock}
14301 }14301 }
14302 14302
14303-// SetOnClose provides a mock function for the type MockPopupCapable14303+// PrimePopupNavigation provides a mock function for the type MockPopupLifecycleCapable
14304-func (_mock *MockPopupCapable) SetOnClose(fn func()) {14304+func (_mock *MockPopupLifecycleCapable) PrimePopupNavigation(uri string) {
14305+ _mock.Called(uri)
14306+ return
14307+}
14308+
14309+// MockPopupLifecycleCapable_PrimePopupNavigation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PrimePopupNavigation'
14310+type MockPopupLifecycleCapable_PrimePopupNavigation_Call struct {
14311+ *mock.Call
14312+}
14313+
14314+// PrimePopupNavigation is a helper method to define mock.On call
14315+// - uri string
14316+func (_e *MockPopupLifecycleCapable_Expecter) PrimePopupNavigation(uri interface{}) *MockPopupLifecycleCapable_PrimePopupNavigation_Call {
14317+ return &MockPopupLifecycleCapable_PrimePopupNavigation_Call{Call: _e.mock.On("PrimePopupNavigation", uri)}
14318+}
14319+
14320+func (_c *MockPopupLifecycleCapable_PrimePopupNavigation_Call) Run(run func(uri string)) *MockPopupLifecycleCapable_PrimePopupNavigation_Call {
14321+ _c.Call.Run(func(args mock.Arguments) {
14322+ var arg0 string
14323+ if args[0] != nil {
14324+ arg0 = args[0].(string)
14325+ }
14326+ run(
14327+ arg0,
14328+ )
14329+ })
14330+ return _c
14331+}
14332+
14333+func (_c *MockPopupLifecycleCapable_PrimePopupNavigation_Call) Return() *MockPopupLifecycleCapable_PrimePopupNavigation_Call {
14334+ _c.Call.Return()
14335+ return _c
14336+}
14337+
14338+func (_c *MockPopupLifecycleCapable_PrimePopupNavigation_Call) RunAndReturn(run func(uri string)) *MockPopupLifecycleCapable_PrimePopupNavigation_Call {
14339+ _c.Run(run)
14340+ return _c
14341+}
14342+
14343+// SetOnClose provides a mock function for the type MockPopupLifecycleCapable
14344+func (_mock *MockPopupLifecycleCapable) SetOnClose(fn func()) {
14305 _mock.Called(fn)14345 _mock.Called(fn)
14306 return14346 return
14307 }14347 }
14308 14348
14309-// MockPopupCapable_SetOnClose_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetOnClose'14349+// MockPopupLifecycleCapable_SetOnClose_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetOnClose'
14310-type MockPopupCapable_SetOnClose_Call struct {14350+type MockPopupLifecycleCapable_SetOnClose_Call struct {
14311 *mock.Call14351 *mock.Call
14312 }14352 }
14313 14353
14314 // SetOnClose is a helper method to define mock.On call14354 // SetOnClose is a helper method to define mock.On call
14315 // - fn func()14355 // - fn func()
14316-func (_e *MockPopupCapable_Expecter) SetOnClose(fn interface{}) *MockPopupCapable_SetOnClose_Call {14356+func (_e *MockPopupLifecycleCapable_Expecter) SetOnClose(fn interface{}) *MockPopupLifecycleCapable_SetOnClose_Call {
14317- return &MockPopupCapable_SetOnClose_Call{Call: _e.mock.On("SetOnClose", fn)}14357+ return &MockPopupLifecycleCapable_SetOnClose_Call{Call: _e.mock.On("SetOnClose", fn)}
14318 }14358 }
14319 14359
14320-func (_c *MockPopupCapable_SetOnClose_Call) Run(run func(fn func())) *MockPopupCapable_SetOnClose_Call {14360+func (_c *MockPopupLifecycleCapable_SetOnClose_Call) Run(run func(fn func())) *MockPopupLifecycleCapable_SetOnClose_Call {
14321 _c.Call.Run(func(args mock.Arguments) {14361 _c.Call.Run(func(args mock.Arguments) {
14322 var arg0 func()14362 var arg0 func()
14323 if args[0] != nil {14363 if args[0] != nil {
@@ -14330,34 +14370,34 @@ func (_c *MockPopupCapable_SetOnClose_Call) Run(run func(fn func())) *MockPopupC
14330 return _c14370 return _c
14331 }14371 }
14332 14372
14333-func (_c *MockPopupCapable_SetOnClose_Call) Return() *MockPopupCapable_SetOnClose_Call {14373+func (_c *MockPopupLifecycleCapable_SetOnClose_Call) Return() *MockPopupLifecycleCapable_SetOnClose_Call {
14334 _c.Call.Return()14374 _c.Call.Return()
14335 return _c14375 return _c
14336 }14376 }
14337 14377
14338-func (_c *MockPopupCapable_SetOnClose_Call) RunAndReturn(run func(fn func())) *MockPopupCapable_SetOnClose_Call {14378+func (_c *MockPopupLifecycleCapable_SetOnClose_Call) RunAndReturn(run func(fn func())) *MockPopupLifecycleCapable_SetOnClose_Call {
14339 _c.Run(run)14379 _c.Run(run)
14340 return _c14380 return _c
14341 }14381 }
14342 14382
14343-// SetOnReadyToShow provides a mock function for the type MockPopupCapable14383+// SetOnReadyToShow provides a mock function for the type MockPopupLifecycleCapable
14344-func (_mock *MockPopupCapable) SetOnReadyToShow(fn func()) {14384+func (_mock *MockPopupLifecycleCapable) SetOnReadyToShow(fn func()) {
14345 _mock.Called(fn)14385 _mock.Called(fn)
14346 return14386 return
14347 }14387 }
14348 14388
14349-// MockPopupCapable_SetOnReadyToShow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetOnReadyToShow'14389+// MockPopupLifecycleCapable_SetOnReadyToShow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetOnReadyToShow'
14350-type MockPopupCapable_SetOnReadyToShow_Call struct {14390+type MockPopupLifecycleCapable_SetOnReadyToShow_Call struct {
14351 *mock.Call14391 *mock.Call
14352 }14392 }
14353 14393
14354 // SetOnReadyToShow is a helper method to define mock.On call14394 // SetOnReadyToShow is a helper method to define mock.On call
14355 // - fn func()14395 // - fn func()
14356-func (_e *MockPopupCapable_Expecter) SetOnReadyToShow(fn interface{}) *MockPopupCapable_SetOnReadyToShow_Call {14396+func (_e *MockPopupLifecycleCapable_Expecter) SetOnReadyToShow(fn interface{}) *MockPopupLifecycleCapable_SetOnReadyToShow_Call {
14357- return &MockPopupCapable_SetOnReadyToShow_Call{Call: _e.mock.On("SetOnReadyToShow", fn)}14397+ return &MockPopupLifecycleCapable_SetOnReadyToShow_Call{Call: _e.mock.On("SetOnReadyToShow", fn)}
14358 }14398 }
14359 14399
14360-func (_c *MockPopupCapable_SetOnReadyToShow_Call) Run(run func(fn func())) *MockPopupCapable_SetOnReadyToShow_Call {14400+func (_c *MockPopupLifecycleCapable_SetOnReadyToShow_Call) Run(run func(fn func())) *MockPopupLifecycleCapable_SetOnReadyToShow_Call {
14361 _c.Call.Run(func(args mock.Arguments) {14401 _c.Call.Run(func(args mock.Arguments) {
14362 var arg0 func()14402 var arg0 func()
14363 if args[0] != nil {14403 if args[0] != nil {
@@ -14370,49 +14410,246 @@ func (_c *MockPopupCapable_SetOnReadyToShow_Call) Run(run func(fn func())) *Mock
14370 return _c14410 return _c
14371 }14411 }
14372 14412
14373-func (_c *MockPopupCapable_SetOnReadyToShow_Call) Return() *MockPopupCapable_SetOnReadyToShow_Call {14413+func (_c *MockPopupLifecycleCapable_SetOnReadyToShow_Call) Return() *MockPopupLifecycleCapable_SetOnReadyToShow_Call {
14374 _c.Call.Return()14414 _c.Call.Return()
14375 return _c14415 return _c
14376 }14416 }
14377 14417
14378-func (_c *MockPopupCapable_SetOnReadyToShow_Call) RunAndReturn(run func(fn func())) *MockPopupCapable_SetOnReadyToShow_Call {14418+func (_c *MockPopupLifecycleCapable_SetOnReadyToShow_Call) RunAndReturn(run func(fn func())) *MockPopupLifecycleCapable_SetOnReadyToShow_Call {
14379 _c.Run(run)14419 _c.Run(run)
14380 return _c14420 return _c
14381 }14421 }
14382 14422
14383-// Show provides a mock function for the type MockPopupCapable14423+// Show provides a mock function for the type MockPopupLifecycleCapable
14384-func (_mock *MockPopupCapable) Show() {14424+func (_mock *MockPopupLifecycleCapable) Show() {
14385 _mock.Called()14425 _mock.Called()
14386 return14426 return
14387 }14427 }
14388 14428
14389-// MockPopupCapable_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'14429+// MockPopupLifecycleCapable_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'
14390-type MockPopupCapable_Show_Call struct {14430+type MockPopupLifecycleCapable_Show_Call struct {
14391 *mock.Call14431 *mock.Call
14392 }14432 }
14393 14433
14394 // Show is a helper method to define mock.On call14434 // Show is a helper method to define mock.On call
14395-func (_e *MockPopupCapable_Expecter) Show() *MockPopupCapable_Show_Call {14435+func (_e *MockPopupLifecycleCapable_Expecter) Show() *MockPopupLifecycleCapable_Show_Call {
14396- return &MockPopupCapable_Show_Call{Call: _e.mock.On("Show")}14436+ return &MockPopupLifecycleCapable_Show_Call{Call: _e.mock.On("Show")}
14397 }14437 }
14398 14438
14399-func (_c *MockPopupCapable_Show_Call) Run(run func()) *MockPopupCapable_Show_Call {14439+func (_c *MockPopupLifecycleCapable_Show_Call) Run(run func()) *MockPopupLifecycleCapable_Show_Call {
14400 _c.Call.Run(func(args mock.Arguments) {14440 _c.Call.Run(func(args mock.Arguments) {
14401 run()14441 run()
14402 })14442 })
14403 return _c14443 return _c
14404 }14444 }
14405 14445
14406-func (_c *MockPopupCapable_Show_Call) Return() *MockPopupCapable_Show_Call {14446+func (_c *MockPopupLifecycleCapable_Show_Call) Return() *MockPopupLifecycleCapable_Show_Call {
14447+ _c.Call.Return()
14448+ return _c
14449+}
14450+
14451+func (_c *MockPopupLifecycleCapable_Show_Call) RunAndReturn(run func()) *MockPopupLifecycleCapable_Show_Call {
14452+ _c.Run(run)
14453+ return _c
14454+}
14455+
14456+// NewMockPopupOpenerCapable creates a new instance of MockPopupOpenerCapable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
14457+// The first argument is typically a *testing.T value.
14458+func NewMockPopupOpenerCapable(t interface {
14459+ mock.TestingT
14460+ Cleanup(func())
14461+}) *MockPopupOpenerCapable {
14462+ mock := &MockPopupOpenerCapable{}
14463+ mock.Mock.Test(t)
14464+
14465+ t.Cleanup(func() { mock.AssertExpectations(t) })
14466+
14467+ return mock
14468+}
14469+
14470+// MockPopupOpenerCapable is an autogenerated mock type for the PopupOpenerCapable type
14471+type MockPopupOpenerCapable struct {
14472+ mock.Mock
14473+}
14474+
14475+type MockPopupOpenerCapable_Expecter struct {
14476+ mock *mock.Mock
14477+}
14478+
14479+func (_m *MockPopupOpenerCapable) EXPECT() *MockPopupOpenerCapable_Expecter {
14480+ return &MockPopupOpenerCapable_Expecter{mock: &_m.Mock}
14481+}
14482+
14483+// AddOpenerMessageCallback provides a mock function for the type MockPopupOpenerCapable
14484+func (_mock *MockPopupOpenerCapable) AddOpenerMessageCallback(fn func()) {
14485+ _mock.Called(fn)
14486+ return
14487+}
14488+
14489+// MockPopupOpenerCapable_AddOpenerMessageCallback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddOpenerMessageCallback'
14490+type MockPopupOpenerCapable_AddOpenerMessageCallback_Call struct {
14491+ *mock.Call
14492+}
14493+
14494+// AddOpenerMessageCallback is a helper method to define mock.On call
14495+// - fn func()
14496+func (_e *MockPopupOpenerCapable_Expecter) AddOpenerMessageCallback(fn interface{}) *MockPopupOpenerCapable_AddOpenerMessageCallback_Call {
14497+ return &MockPopupOpenerCapable_AddOpenerMessageCallback_Call{Call: _e.mock.On("AddOpenerMessageCallback", fn)}
14498+}
14499+
14500+func (_c *MockPopupOpenerCapable_AddOpenerMessageCallback_Call) Run(run func(fn func())) *MockPopupOpenerCapable_AddOpenerMessageCallback_Call {
14501+ _c.Call.Run(func(args mock.Arguments) {
14502+ var arg0 func()
14503+ if args[0] != nil {
14504+ arg0 = args[0].(func())
14505+ }
14506+ run(
14507+ arg0,
14508+ )
14509+ })
14510+ return _c
14511+}
14512+
14513+func (_c *MockPopupOpenerCapable_AddOpenerMessageCallback_Call) Return() *MockPopupOpenerCapable_AddOpenerMessageCallback_Call {
14407 _c.Call.Return()14514 _c.Call.Return()
14408 return _c14515 return _c
14409 }14516 }
14410 14517
14411-func (_c *MockPopupCapable_Show_Call) RunAndReturn(run func()) *MockPopupCapable_Show_Call {14518+func (_c *MockPopupOpenerCapable_AddOpenerMessageCallback_Call) RunAndReturn(run func(fn func())) *MockPopupOpenerCapable_AddOpenerMessageCallback_Call {
14412 _c.Run(run)14519 _c.Run(run)
14413 return _c14520 return _c
14414 }14521 }
14415 14522
14523+// AddOpenerNavigationCallback provides a mock function for the type MockPopupOpenerCapable
14524+func (_mock *MockPopupOpenerCapable) AddOpenerNavigationCallback(fn func(uri string)) {
14525+ _mock.Called(fn)
14526+ return
14527+}
14528+
14529+// MockPopupOpenerCapable_AddOpenerNavigationCallback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddOpenerNavigationCallback'
14530+type MockPopupOpenerCapable_AddOpenerNavigationCallback_Call struct {
14531+ *mock.Call
14532+}
14533+
14534+// AddOpenerNavigationCallback is a helper method to define mock.On call
14535+// - fn func(uri string)
14536+func (_e *MockPopupOpenerCapable_Expecter) AddOpenerNavigationCallback(fn interface{}) *MockPopupOpenerCapable_AddOpenerNavigationCallback_Call {
14537+ return &MockPopupOpenerCapable_AddOpenerNavigationCallback_Call{Call: _e.mock.On("AddOpenerNavigationCallback", fn)}
14538+}
14539+
14540+func (_c *MockPopupOpenerCapable_AddOpenerNavigationCallback_Call) Run(run func(fn func(uri string))) *MockPopupOpenerCapable_AddOpenerNavigationCallback_Call {
14541+ _c.Call.Run(func(args mock.Arguments) {
14542+ var arg0 func(uri string)
14543+ if args[0] != nil {
14544+ arg0 = args[0].(func(uri string))
14545+ }
14546+ run(
14547+ arg0,
14548+ )
14549+ })
14550+ return _c
14551+}
14552+
14553+func (_c *MockPopupOpenerCapable_AddOpenerNavigationCallback_Call) Return() *MockPopupOpenerCapable_AddOpenerNavigationCallback_Call {
14554+ _c.Call.Return()
14555+ return _c
14556+}
14557+
14558+func (_c *MockPopupOpenerCapable_AddOpenerNavigationCallback_Call) RunAndReturn(run func(fn func(uri string))) *MockPopupOpenerCapable_AddOpenerNavigationCallback_Call {
14559+ _c.Run(run)
14560+ return _c
14561+}
14562+
14563+// EnablePopupOpenerBridge provides a mock function for the type MockPopupOpenerCapable
14564+func (_mock *MockPopupOpenerCapable) EnablePopupOpenerBridge(parent port.WebView, noJavaScriptAccess bool) {
14565+ _mock.Called(parent, noJavaScriptAccess)
14566+ return
14567+}
14568+
14569+// MockPopupOpenerCapable_EnablePopupOpenerBridge_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnablePopupOpenerBridge'
14570+type MockPopupOpenerCapable_EnablePopupOpenerBridge_Call struct {
14571+ *mock.Call
14572+}
14573+
14574+// EnablePopupOpenerBridge is a helper method to define mock.On call
14575+// - parent port.WebView
14576+// - noJavaScriptAccess bool
14577+func (_e *MockPopupOpenerCapable_Expecter) EnablePopupOpenerBridge(parent interface{}, noJavaScriptAccess interface{}) *MockPopupOpenerCapable_EnablePopupOpenerBridge_Call {
14578+ return &MockPopupOpenerCapable_EnablePopupOpenerBridge_Call{Call: _e.mock.On("EnablePopupOpenerBridge", parent, noJavaScriptAccess)}
14579+}
14580+
14581+func (_c *MockPopupOpenerCapable_EnablePopupOpenerBridge_Call) Run(run func(parent port.WebView, noJavaScriptAccess bool)) *MockPopupOpenerCapable_EnablePopupOpenerBridge_Call {
14582+ _c.Call.Run(func(args mock.Arguments) {
14583+ var arg0 port.WebView
14584+ if args[0] != nil {
14585+ arg0 = args[0].(port.WebView)
14586+ }
14587+ var arg1 bool
14588+ if args[1] != nil {
14589+ arg1 = args[1].(bool)
14590+ }
14591+ run(
14592+ arg0,
14593+ arg1,
14594+ )
14595+ })
14596+ return _c
14597+}
14598+
14599+func (_c *MockPopupOpenerCapable_EnablePopupOpenerBridge_Call) Return() *MockPopupOpenerCapable_EnablePopupOpenerBridge_Call {
14600+ _c.Call.Return()
14601+ return _c
14602+}
14603+
14604+func (_c *MockPopupOpenerCapable_EnablePopupOpenerBridge_Call) RunAndReturn(run func(parent port.WebView, noJavaScriptAccess bool)) *MockPopupOpenerCapable_EnablePopupOpenerBridge_Call {
14605+ _c.Run(run)
14606+ return _c
14607+}
14608+
14609+// HasActivePopupOpenerBridge provides a mock function for the type MockPopupOpenerCapable
14610+func (_mock *MockPopupOpenerCapable) HasActivePopupOpenerBridge() bool {
14611+ ret := _mock.Called()
14612+
14613+ if len(ret) == 0 {
14614+ panic("no return value specified for HasActivePopupOpenerBridge")
14615+ }
14616+
14617+ var r0 bool
14618+ if returnFunc, ok := ret.Get(0).(func() bool); ok {
14619+ r0 = returnFunc()
14620+ } else {
14621+ r0 = ret.Get(0).(bool)
14622+ }
14623+ return r0
14624+}
14625+
14626+// MockPopupOpenerCapable_HasActivePopupOpenerBridge_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasActivePopupOpenerBridge'
14627+type MockPopupOpenerCapable_HasActivePopupOpenerBridge_Call struct {
14628+ *mock.Call
14629+}
14630+
14631+// HasActivePopupOpenerBridge is a helper method to define mock.On call
14632+func (_e *MockPopupOpenerCapable_Expecter) HasActivePopupOpenerBridge() *MockPopupOpenerCapable_HasActivePopupOpenerBridge_Call {
14633+ return &MockPopupOpenerCapable_HasActivePopupOpenerBridge_Call{Call: _e.mock.On("HasActivePopupOpenerBridge")}
14634+}
14635+
14636+func (_c *MockPopupOpenerCapable_HasActivePopupOpenerBridge_Call) Run(run func()) *MockPopupOpenerCapable_HasActivePopupOpenerBridge_Call {
14637+ _c.Call.Run(func(args mock.Arguments) {
14638+ run()
14639+ })
14640+ return _c
14641+}
14642+
14643+func (_c *MockPopupOpenerCapable_HasActivePopupOpenerBridge_Call) Return(b bool) *MockPopupOpenerCapable_HasActivePopupOpenerBridge_Call {
14644+ _c.Call.Return(b)
14645+ return _c
14646+}
14647+
14648+func (_c *MockPopupOpenerCapable_HasActivePopupOpenerBridge_Call) RunAndReturn(run func() bool) *MockPopupOpenerCapable_HasActivePopupOpenerBridge_Call {
14649+ _c.Call.Return(run)
14650+ return _c
14651+}
14652+
14416 // NewMockOAuthCallbackCapable creates a new instance of MockOAuthCallbackCapable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.14653 // NewMockOAuthCallbackCapable creates a new instance of MockOAuthCallbackCapable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
14417 // The first argument is typically a *testing.T value.14654 // The first argument is typically a *testing.T value.
14418 func NewMockOAuthCallbackCapable(t interface {14655 func NewMockOAuthCallbackCapable(t interface {
M internal/infrastructure/cef/engine.go +1 -1
@@ -171,7 +171,7 @@ func (e *Engine) bindBrowserWebView(browser purecef.Browser, wv *WebView) {
171171 }
172172
173173 func (e *Engine) unbindBrowserWebView(browserID int32, wv *WebView) {
174- if e == nil || browserID == 0 {
174+ if e == nil || browserID <= 0 {
175175 return
176176 }
177177 if current, ok := e.browserWebViews.Load(browserID); ok {
@@ -171,7 +171,7 @@ func (e *Engine) bindBrowserWebView(browser purecef.Browser, wv *WebView) {
171 }171 }
172 172
173 func (e *Engine) unbindBrowserWebView(browserID int32, wv *WebView) {173 func (e *Engine) unbindBrowserWebView(browserID int32, wv *WebView) {
174- if e == nil || browserID == 0 {174+ if e == nil || browserID <= 0 {
175 return175 return
176 }176 }
177 if current, ok := e.browserWebViews.Load(browserID); ok {177 if current, ok := e.browserWebViews.Load(browserID); ok {

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 8

Tags 42

↑↓ moveenter openesc close