feat: Implement LatestContentProvider for WebView recovery#22493
feat: Implement LatestContentProvider for WebView recovery#22493
Conversation
Generated by 🚫 Danger |
Project dependencies changeslist! Upgraded Dependencies
org.wordpress.gutenbergkit:android:283-3110b008df0edceac04a1c6f18724476ce67b3ce, (changed from v0.11.1)tree +--- project :libs:editor
-| \--- org.wordpress.gutenbergkit:android:v0.11.1
+| \--- org.wordpress.gutenbergkit:android:283-3110b008df0edceac04a1c6f18724476ce67b3ce
-\--- org.wordpress.gutenbergkit:android:v0.11.1 (*)
+\--- org.wordpress.gutenbergkit:android:283-3110b008df0edceac04a1c6f18724476ce67b3ce (*) |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
@dcalhoun I've enabled Chrome Dev Tools, but the three dot menu doesn't show a "Crash the renderer" item. Can you provide steps?
|
|
@nbradbury sorry, this was generated by Claude and the repository's |
|
To answer your question, the reference to "Crash the renderer" is a hallucination. It does not exist. |
71b0c66 to
3a38e04
Compare
|
@nbradbury this PR and its sibling wordpress-mobile/GutenbergKit#283 are formally ready for review. I updated the PR descriptions with appropriate testing instructions. Thanks in advance for the help! 🙇🏻♂️ |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## trunk #22493 +/- ##
=======================================
Coverage 38.73% 38.73%
=======================================
Files 2211 2211
Lines 108268 108273 +5
Branches 15228 15229 +1
=======================================
+ Hits 41937 41939 +2
- Misses 62842 62845 +3
Partials 3489 3489 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Converting to draft. With the merge of wordpress-mobile/GutenbergKit#260, we need to integrate those changes into WordPress-Android before we can merge this PR. |
Allow GutenbergKit to retrieve the latest content persisted in the host app as needed. This is important for allowing GutenbergKit to display the latest content after the WebView reloads or re-initializes from memory pressure or backgrounding.
5b4967c to
41768bd
Compare
|
|
|
|
|






Important
DO NOT MERGE. With the merge of wordpress-mobile/GutenbergKit#260, we need to integrate those changes before we can merge this PR.
Description
Ref CMM-1123.
Implements GutenbergKit's
LatestContentProviderinterface for pull-based content recovery.When the WebView reinitializes (due to OS memory pressure or page refresh), the editor now requests the latest content from the app rather than using stale content from the initial WebView load. This ensures users don't lose their work during WebView recovery.
Changes:
getPersistedTitle()andgetPersistedContent()methods toEditorFragmentListenerinterfaceLatestContentProvideronGutenbergViewinGutenbergKitEditorFragmentGutenbergKitActivityreturning content fromEditPostRepositoryRelated PRs:
Testing instructions
chrome://inspect🤖 Generated with Claude Code