Core - Add AddPreferenceObserver support. - #5279
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe PR adds ChangesPreference Observer Registration
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant RequestContext
participant RuntimeRequestContext
participant PreferenceObserverAdapter
participant CefRequestContext
RequestContext->>RuntimeRequestContext: AddPreferenceObserver(name, observer)
RuntimeRequestContext->>PreferenceObserverAdapter: Create adapter
RuntimeRequestContext->>CefRequestContext: Register observer
CefRequestContext-->>PreferenceObserverAdapter: Notify preference change
PreferenceObserverAdapter-->>RequestContext: OnPreferenceChanged(name)
RuntimeRequestContext-->>RequestContext: Return IRegistration
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
❌ Build CefSharp 151.3.140-CI5579 failed (commit 11c80442a2 by @SLT-World) |
|
❌ Build CefSharp 151.3.140-CI5580 failed (commit cd4fc073c3 by @SLT-World) |
b1236dd to
9ac6b42
Compare
|
✅ Build CefSharp 151.3.140-CI5581 completed (commit 1b974755d8 by @SLT-World) |
Fixes: -
Summary:
AddPreferenceObserverto RequestContext.Changes:
IRequestContext.cs,RequestContext.cpp,RequestContext.h,CefSharp.Core.Runtime.netcore.cs, createdIPreferenceObserver.csandPreferenceObserverAdapter.h.AddPreferenceObserverto RequestContext.IPreferenceObserver.How Has This Been Tested?
Operating System: Windows 11
Environment: Visual Studio 2022
Setup:
Alternated the autofill preference with a button:
The
Changing autofill...message box is displayed first, followed byAutofill preference change detectedshortly, confirming the functionality.I'm not clear on why the first line of
CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.csis once more labeled as a change by GitHub.Screenshots (if appropriate):
Types of changes
Checklist:
Summary by CodeRabbit
IRequestContext.