Skip to content

build: update GutenbergKit to v0.20.0 - #23541

Merged
dcalhoun merged 3 commits into
trunkfrom
build/update-gutenbergkit-v0.20.0
Nov 18, 2026
Merged

dcalhoun merged 3 commits into
trunkfrom
build/update-gutenbergkit-v0.20.0

Conversation

@dcalhoun

@dcalhoun dcalhoun commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

TL;DR

Upgrade to the latest GutenbergKit release, which primarily ensures the authorization header is only sent to the site's host.

Description

Updates GutenbergKit from v0.20.0-alpha.3 to the stable v0.20.0 release.

The only Android-facing breaking change since alpha.3 is wordpress-mobile/GutenbergKit#757: the editor now sends the site's Authorization header only to the site and its API root, plus any hosts the app names with setAuthHeaderDomains. The app names none. GutenbergKit's docs suggest naming *.wp.com and *.files.wordpress.com for WordPress.com sites, but testing found nothing that needs the token on those hosts, so WordPress.com sites send it only to the site and public-api.wordpress.com.

Also removes the private Atomic exemption from the block editor's application password requirement. It dates from when the app couldn't create passwords for private sites (CMM-771, CMM-591); site provisioning now creates one headlessly when the site is selected. Without the exemption, the editor never sends the WordPress.com token to a private Atomic site's own host.

Additional AI-generated details

Why no auth header domains

On private WordPress.com sites, the editor loaded the same with and without *.wp.com and *.files.wordpress.com named: plugin blocks, theme styles and images all appeared. That held with GutenbergKit's asset bundle re-downloaded from scratch, which is the native download those domains would govern. All 44 assets downloaded without the token.

Naming *.wp.com has a cost. An apiFetch( { url } ) to s0.wp.com then carries the token, which triggers a CORS preflight that s0.wp.com answers with 405, so the request fails. Without the token, the same request returns 200.

Private Atomic exemption

Tested on a private Atomic site with headless password creation forced to fail:

  • Before: the editor opened with the WordPress.com token (wpcomRest=true).
  • After: "Application Password Required" appears. Create fails, because the site has no wp-admin username and anonymous discovery returns 403 private_site. It shows a generic error and closes.
  • Recovery: selecting the site in My Site creates the password, and the editor then opens with Basic auth.

Follow-ups, not in this PR: create the password headlessly from that dialog, and fix its "self-hosted" copy and generic error.

Not covered: media served from *.files.wordpress.com (the private test site serves media from its own host).

Other changes since alpha.3: iOS-only fixes, a fix to relayed XMLHttpRequest loadstart timing, and build and dependency updates. The app already uses the okhttp (5.5.1) and jsoup (1.24.1) versions GutenbergKit expects.

Testing instructions

Use a debug build of the Jetpack app. Enable Me → App Settings → Experimental Features → Experimental block editor, and turn on Site Settings → Use Block Editor for each test site. Enable My Site → Site Settings → Enable third-party blocks (beta), which may require performing a pull-to-refresh on My Site.

Tip

If newly marking a site as private, one must switch away from and back to the site in My Site to pick up the new status.

WordPress.com site (Simple, private):

  1. Open an existing post with images and a Jetpack block.
  • Verify the editor loads with the theme's styles.
  • Verify the images display.
  1. Open the block inserter.
  • Verify Jetpack blocks are listed.

Self-hosted site with an application password:

  1. Open an existing post.
  • Verify the editor loads and the post's content appears.

Atomic site (private, application password):

  1. Open an existing post.
  • Verify the editor loads with the theme's styles.
  1. Open the block inserter.
  • Verify Jetpack blocks are listed.

Atomic site (private, no application password yet):

  1. Sign out of WordPress.com in the app, sign back in, and select the private Atomic site in My Site.
  • Verify My Site doesn't show "This site is private, so we can't reconnect to it."
  1. Open an existing post.
  • Verify the editor opens without an "Application Password Required" prompt.

🤖 Generated with Claude Code

Moves from the v0.20.0-alpha.3 prerelease to the stable release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wpmobilebot

Copy link
Copy Markdown
Contributor

Project dependencies changes

list
! Upgraded Dependencies
org.wordpress.gutenbergkit:android:v0.20.0, (changed from v0.20.0-alpha.3)
tree
 +--- project :libs:editor
-|    \--- org.wordpress.gutenbergkit:android:v0.20.0-alpha.3
-|         +--- org.jetbrains.kotlin:kotlin-parcelize-runtime:2.4.21 (*)
-|         +--- androidx.core:core-ktx:1.16.0 (*)
-|         +--- androidx.appcompat:appcompat:1.8.0 (*)
-|         +--- com.google.android.material:material:1.14.0 (*)
-|         +--- androidx.webkit:webkit:1.16.0 (*)
-|         +--- com.google.code.gson:gson:2.15.0
-|         |    \--- com.google.errorprone:error_prone_annotations:2.50.0
-|         +--- org.jetbrains.kotlinx:kotlinx-coroutines-android:1.11.0 (*)
-|         +--- org.jetbrains.kotlinx:kotlinx-serialization-json:1.12.0
-|         |    \--- org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:1.12.0
-|         |         +--- org.jetbrains.kotlinx:kotlinx-serialization-bom:1.12.0 (*)
-|         |         +--- org.jetbrains.kotlin:kotlin-stdlib:2.4.10 -> 2.4.21 (*)
-|         |         \--- org.jetbrains.kotlinx:kotlinx-serialization-core:1.12.0 (*)
-|         +--- org.jsoup:jsoup:1.23.2 -> 1.24.1
-|         +--- com.squareup.okhttp3:okhttp:5.5.1 (*)
-|         +--- com.caverock:androidsvg-aar:1.4
-|         +--- androidx.compose:compose-bom:2026.06.01
-|         |    +--- androidx.compose.animation:animation:1.11.4 (c)
-|         |    +--- androidx.compose.foundation:foundation:1.11.4 (c)
-|         |    +--- androidx.compose.foundation:foundation-layout:1.11.4 (c)
-|         |    +--- androidx.compose.material:material:1.11.4 (c)
-|         |    +--- androidx.compose.material:material-icons-extended:1.7.8 (c)
-|         |    +--- androidx.compose.material3:material3:1.4.0 (c)
-|         |    +--- androidx.compose.material3:material3-android:1.4.0 (c)
-|         |    +--- androidx.compose.material3.adaptive:adaptive:1.2.0 (c)
-|         |    +--- androidx.compose.runtime:runtime:1.11.4 (c)
-|         |    +--- androidx.compose.runtime:runtime-livedata:1.11.4 (c)
-|         |    +--- androidx.compose.runtime:runtime-saveable:1.11.4 (c)
-|         |    +--- androidx.compose.ui:ui:1.11.4 (c)
-|         |    +--- androidx.compose.ui:ui-graphics:1.11.4 (c)
-|         |    +--- androidx.compose.ui:ui-text:1.11.4 (c)
-|         |    +--- androidx.compose.ui:ui-tooling:1.11.4 (c)
-|         |    +--- androidx.compose.ui:ui-tooling-preview:1.11.4 (c)
-|         |    +--- androidx.compose.ui:ui-unit:1.11.4 (c)
-|         |    +--- androidx.compose.animation:animation-core:1.11.4 (c)
-|         |    +--- androidx.compose.animation:animation-android:1.11.4 (c)
-|         |    +--- androidx.compose.foundation:foundation-android:1.11.4 (c)
-|         |    +--- androidx.compose.foundation:foundation-layout-android:1.11.4 (c)
-|         |    +--- androidx.compose.material:material-android:1.11.4 (c)
-|         |    +--- androidx.compose.material:material-icons-extended-android:1.7.8 (c)
-|         |    +--- androidx.compose.material:material-ripple:1.11.4 (c)
-|         |    +--- androidx.compose.ui:ui-util:1.11.4 (c)
-|         |    +--- androidx.compose.material3.adaptive:adaptive-android:1.2.0 (c)
-|         |    +--- androidx.compose.runtime:runtime-android:1.11.4 (c)
-|         |    +--- androidx.compose.runtime:runtime-saveable-android:1.11.4 (c)
-|         |    +--- androidx.compose.ui:ui-android:1.11.4 (c)
-|         |    +--- androidx.compose.ui:ui-graphics-android:1.11.4 (c)
-|         |    +--- androidx.compose.ui:ui-text-android:1.11.4 (c)
-|         |    +--- androidx.compose.ui:ui-tooling-android:1.11.4 (c)
-|         |    +--- androidx.compose.ui:ui-tooling-preview-android:1.11.4 (c)
-|         |    +--- androidx.compose.ui:ui-unit-android:1.11.4 (c)
-|         |    +--- androidx.compose.animation:animation-core-android:1.11.4 (c)
-|         |    +--- androidx.compose.ui:ui-util-android:1.11.4 (c)
-|         |    +--- androidx.compose.ui:ui-geometry:1.11.4 (c)
-|         |    +--- androidx.compose.material:material-icons-core:1.7.8 (c)
-|         |    +--- androidx.compose.material:material-ripple-android:1.11.4 (c)
-|         |    +--- androidx.compose.runtime:runtime-annotation:1.11.4 (c)
-|         |    +--- androidx.compose.runtime:runtime-retain:1.11.4 (c)
-|         |    +--- androidx.compose.ui:ui-tooling-data:1.11.4 (c)
-|         |    +--- androidx.compose.ui:ui-geometry-android:1.11.4 (c)
-|         |    +--- androidx.compose.material:material-icons-core-android:1.7.8 (c)
-|         |    +--- androidx.compose.runtime:runtime-annotation-android:1.11.4 (c)
-|         |    +--- androidx.compose.runtime:runtime-retain-android:1.11.4 (c)
-|         |    \--- androidx.compose.ui:ui-tooling-data-android:1.11.4 (c)
-|         +--- androidx.compose.ui:ui -> 1.11.4 (*)
-|         +--- androidx.compose.material3:material3 -> 1.4.0
-|         |    \--- androidx.compose.material3:material3-android:1.4.0
-|         |         +--- androidx.activity:activity-compose:1.8.2 -> 1.10.1 (*)
-|         |         +--- androidx.annotation:annotation:1.8.1 -> 1.11.0 (*)
-|         |         +--- androidx.annotation:annotation-experimental:1.4.1 -> 1.5.1 (*)
-|         |         +--- androidx.collection:collection:1.4.5 -> 1.6.0 (*)
-|         |         +--- androidx.compose.animation:animation-core:1.8.1 -> 1.11.4 (*)
-|         |         +--- androidx.compose.foundation:foundation:1.8.1 -> 1.11.4
-|         |         |    \--- androidx.compose.foundation:foundation-android:1.11.4
-|         |         |         +--- androidx.annotation:annotation:1.8.1 -> 1.11.0 (*)
-|         |         |         +--- androidx.annotation:annotation-experimental:1.4.1 -> 1.5.1 (*)
-|         |         |         +--- androidx.collection:collection:1.5.0 -> 1.6.0 (*)
-|         |         |         +--- androidx.compose.animation:animation:1.11.4 (*)
-|         |         |         +--- androidx.compose.foundation:foundation-layout:1.11.4 (*)
-|         |         |         +--- androidx.compose.runtime:runtime:1.11.4 (*)
-|         |         |         +--- androidx.compose.ui:ui:1.10.0 -> 1.11.4 (*)
-|         |         |         +--- androidx.compose.ui:ui-text:1.10.0 -> 1.11.4 (*)
-|         |         |         +--- androidx.compose.ui:ui-util:1.10.0 -> 1.11.4 (*)
-|         |         |         +--- androidx.core:core:1.13.1 -> 1.16.0 (*)
-|         |         |         +--- androidx.emoji2:emoji2:1.3.0 -> 1.4.0 (*)
-|         |         |         +--- org.jetbrains.kotlin:kotlin-stdlib:2.1.20 -> 2.4.21 (*)
-|         |         |         \--- androidx.compose.foundation:foundation-layout:1.11.4 (c)
-|         |         +--- androidx.compose.foundation:foundation-layout:1.8.1 -> 1.11.4 (*)
-|         |         +--- androidx.compose.material:material-ripple:1.8.1 -> 1.11.4
-|         |         |    \--- androidx.compose.material:material-ripple-android:1.11.4
-|         |         |         +--- androidx.collection:collection:1.5.0 -> 1.6.0 (*)
-|         |         |         +--- androidx.compose.animation:animation:1.7.1 -> 1.11.4 (*)
-|         |         |         +--- androidx.compose.foundation:foundation:1.7.1 -> 1.11.4 (*)
-|         |         |         +--- androidx.compose.runtime:runtime:1.11.4 (*)
-|         |         |         +--- androidx.compose.ui:ui-util:1.7.1 -> 1.11.4 (*)
-|         |         |         \--- org.jetbrains.kotlin:kotlin-stdlib:2.1.20 -> 2.4.21 (*)
-|         |         +--- androidx.compose.runtime:runtime:1.9.0 -> 1.11.4 (*)
-|         |         +--- androidx.compose.ui:ui:1.8.2 -> 1.11.4 (*)
-|         |         +--- androidx.compose.ui:ui-text:1.8.1 -> 1.11.4 (*)
-|         |         +--- androidx.compose.ui:ui-util:1.8.1 -> 1.11.4 (*)
-|         |         +--- androidx.lifecycle:lifecycle-common-java8:2.6.1 -> 2.11.0
-|         |         |    +--- androidx.annotation:annotation:1.8.1 -> 1.11.0 (*)
-|         |         |    +--- androidx.lifecycle:lifecycle-common:2.11.0 (*)
-|         |         |    +--- androidx.lifecycle:lifecycle-common:2.11.0 (c)
-|         |         |    +--- androidx.lifecycle:lifecycle-livedata:2.11.0 (c)
-|         |         |    +--- androidx.lifecycle:lifecycle-livedata-core:2.11.0 (c)
-|         |         |    +--- androidx.lifecycle:lifecycle-livedata-core-ktx:2.11.0 (c)
-|         |         |    +--- androidx.lifecycle:lifecycle-livedata-ktx:2.11.0 (c)
-|         |         |    +--- androidx.lifecycle:lifecycle-process:2.11.0 (c)
-|         |         |    +--- androidx.lifecycle:lifecycle-runtime:2.11.0 (c)
-|         |         |    +--- androidx.lifecycle:lifecycle-runtime-compose:2.11.0 (c)
-|         |         |    +--- androidx.lifecycle:lifecycle-runtime-ktx:2.11.0 (c)
-|         |         |    +--- androidx.lifecycle:lifecycle-service:2.11.0 (c)
-|         |         |    +--- androidx.lifecycle:lifecycle-viewmodel:2.11.0 (c)
-|         |         |    +--- androidx.lifecycle:lifecycle-viewmodel-compose:2.11.0 (c)
-|         |         |    +--- androidx.lifecycle:lifecycle-viewmodel-ktx:2.11.0 (c)
-|         |         |    \--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.11.0 (c)
-|         |         +--- org.jetbrains.kotlin:kotlin-stdlib -> 2.4.21 (*)
-|         |         \--- org.jetbrains.kotlin:kotlin-stdlib:2.0.21 -> 2.4.21 (c)
-|         +--- androidx.compose.material:material-icons-extended -> 1.7.8
-|         |    \--- androidx.compose.material:material-icons-extended-android:1.7.8
-|         |         +--- androidx.compose.material:material-icons-core:1.7.8
-|         |         |    \--- androidx.compose.material:material-icons-core-android:1.7.8
-|         |         |         +--- androidx.compose.ui:ui:1.6.0 -> 1.11.4 (*)
-|         |         |         +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.22 -> 2.4.21 (*)
-|         |         |         \--- org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 -> 2.4.21
-|         |         |              \--- org.jetbrains.kotlin:kotlin-stdlib:2.4.21 (*)
-|         |         \--- org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 -> 2.4.21 (*)
-|         +--- androidx.activity:activity-compose:1.10.1 (*)
-|         \--- org.jetbrains.kotlin:kotlin-stdlib:2.4.21 (*)
+|    \--- org.wordpress.gutenbergkit:android:v0.20.0
+|         +--- org.jetbrains.kotlin:kotlin-parcelize-runtime:2.4.21 (*)
+|         +--- androidx.core:core-ktx:1.16.0 (*)
+|         +--- androidx.appcompat:appcompat:1.8.0 (*)
+|         +--- com.google.android.material:material:1.14.0 (*)
+|         +--- androidx.webkit:webkit:1.16.0 (*)
+|         +--- com.google.code.gson:gson:2.15.0
+|         |    \--- com.google.errorprone:error_prone_annotations:2.50.0
+|         +--- org.jetbrains.kotlinx:kotlinx-coroutines-android:1.11.0 (*)
+|         +--- org.jetbrains.kotlinx:kotlinx-serialization-json:1.12.0
+|         |    \--- org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:1.12.0
+|         |         +--- org.jetbrains.kotlinx:kotlinx-serialization-bom:1.12.0 (*)
+|         |         +--- org.jetbrains.kotlin:kotlin-stdlib:2.4.10 -> 2.4.21 (*)
+|         |         \--- org.jetbrains.kotlinx:kotlinx-serialization-core:1.12.0 (*)
+|         +--- org.jsoup:jsoup:1.24.1
+|         +--- com.squareup.okhttp3:okhttp:5.5.1 (*)
+|         +--- com.caverock:androidsvg-aar:1.4
+|         +--- androidx.compose:compose-bom:2026.06.01
+|         |    +--- androidx.compose.animation:animation:1.11.4 (c)
+|         |    +--- androidx.compose.foundation:foundation:1.11.4 (c)
+|         |    +--- androidx.compose.foundation:foundation-layout:1.11.4 (c)
+|         |    +--- androidx.compose.material:material:1.11.4 (c)
+|         |    +--- androidx.compose.material:material-icons-extended:1.7.8 (c)
+|         |    +--- androidx.compose.material3:material3:1.4.0 (c)
+|         |    +--- androidx.compose.material3:material3-android:1.4.0 (c)
+|         |    +--- androidx.compose.material3.adaptive:adaptive:1.2.0 (c)
+|         |    +--- androidx.compose.runtime:runtime:1.11.4 (c)
+|         |    +--- androidx.compose.runtime:runtime-livedata:1.11.4 (c)
+|         |    +--- androidx.compose.runtime:runtime-saveable:1.11.4 (c)
+|         |    +--- androidx.compose.ui:ui:1.11.4 (c)
+|         |    +--- androidx.compose.ui:ui-graphics:1.11.4 (c)
+|         |    +--- androidx.compose.ui:ui-text:1.11.4 (c)
+|         |    +--- androidx.compose.ui:ui-tooling:1.11.4 (c)
+|         |    +--- androidx.compose.ui:ui-tooling-preview:1.11.4 (c)
+|         |    +--- androidx.compose.ui:ui-unit:1.11.4 (c)
+|         |    +--- androidx.compose.animation:animation-core:1.11.4 (c)
+|         |    +--- androidx.compose.animation:animation-android:1.11.4 (c)
+|         |    +--- androidx.compose.foundation:foundation-android:1.11.4 (c)
+|         |    +--- androidx.compose.foundation:foundation-layout-android:1.11.4 (c)
+|         |    +--- androidx.compose.material:material-android:1.11.4 (c)
+|         |    +--- androidx.compose.material:material-icons-extended-android:1.7.8 (c)
+|         |    +--- androidx.compose.material:material-ripple:1.11.4 (c)
+|         |    +--- androidx.compose.ui:ui-util:1.11.4 (c)
+|         |    +--- androidx.compose.material3.adaptive:adaptive-android:1.2.0 (c)
+|         |    +--- androidx.compose.runtime:runtime-android:1.11.4 (c)
+|         |    +--- androidx.compose.runtime:runtime-saveable-android:1.11.4 (c)
+|         |    +--- androidx.compose.ui:ui-android:1.11.4 (c)
+|         |    +--- androidx.compose.ui:ui-graphics-android:1.11.4 (c)
+|         |    +--- androidx.compose.ui:ui-text-android:1.11.4 (c)
+|         |    +--- androidx.compose.ui:ui-tooling-android:1.11.4 (c)
+|         |    +--- androidx.compose.ui:ui-tooling-preview-android:1.11.4 (c)
+|         |    +--- androidx.compose.ui:ui-unit-android:1.11.4 (c)
+|         |    +--- androidx.compose.animation:animation-core-android:1.11.4 (c)
+|         |    +--- androidx.compose.ui:ui-util-android:1.11.4 (c)
+|         |    +--- androidx.compose.ui:ui-geometry:1.11.4 (c)
+|         |    +--- androidx.compose.material:material-icons-core:1.7.8 (c)
+|         |    +--- androidx.compose.material:material-ripple-android:1.11.4 (c)
+|         |    +--- androidx.compose.runtime:runtime-annotation:1.11.4 (c)
+|         |    +--- androidx.compose.runtime:runtime-retain:1.11.4 (c)
+|         |    +--- androidx.compose.ui:ui-tooling-data:1.11.4 (c)
+|         |    +--- androidx.compose.ui:ui-geometry-android:1.11.4 (c)
+|         |    +--- androidx.compose.material:material-icons-core-android:1.7.8 (c)
+|         |    +--- androidx.compose.runtime:runtime-annotation-android:1.11.4 (c)
+|         |    +--- androidx.compose.runtime:runtime-retain-android:1.11.4 (c)
+|         |    \--- androidx.compose.ui:ui-tooling-data-android:1.11.4 (c)
+|         +--- androidx.compose.ui:ui -> 1.11.4 (*)
+|         +--- androidx.compose.material3:material3 -> 1.4.0
+|         |    \--- androidx.compose.material3:material3-android:1.4.0
+|         |         +--- androidx.activity:activity-compose:1.8.2 -> 1.10.1 (*)
+|         |         +--- androidx.annotation:annotation:1.8.1 -> 1.11.0 (*)
+|         |         +--- androidx.annotation:annotation-experimental:1.4.1 -> 1.5.1 (*)
+|         |         +--- androidx.collection:collection:1.4.5 -> 1.6.0 (*)
+|         |         +--- androidx.compose.animation:animation-core:1.8.1 -> 1.11.4 (*)
+|         |         +--- androidx.compose.foundation:foundation:1.8.1 -> 1.11.4
+|         |         |    \--- androidx.compose.foundation:foundation-android:1.11.4
+|         |         |         +--- androidx.annotation:annotation:1.8.1 -> 1.11.0 (*)
+|         |         |         +--- androidx.annotation:annotation-experimental:1.4.1 -> 1.5.1 (*)
+|         |         |         +--- androidx.collection:collection:1.5.0 -> 1.6.0 (*)
+|         |         |         +--- androidx.compose.animation:animation:1.11.4 (*)
+|         |         |         +--- androidx.compose.foundation:foundation-layout:1.11.4 (*)
+|         |         |         +--- androidx.compose.runtime:runtime:1.11.4 (*)
+|         |         |         +--- androidx.compose.ui:ui:1.10.0 -> 1.11.4 (*)
+|         |         |         +--- androidx.compose.ui:ui-text:1.10.0 -> 1.11.4 (*)
+|         |         |         +--- androidx.compose.ui:ui-util:1.10.0 -> 1.11.4 (*)
+|         |         |         +--- androidx.core:core:1.13.1 -> 1.16.0 (*)
+|         |         |         +--- androidx.emoji2:emoji2:1.3.0 -> 1.4.0 (*)
+|         |         |         +--- org.jetbrains.kotlin:kotlin-stdlib:2.1.20 -> 2.4.21 (*)
+|         |         |         \--- androidx.compose.foundation:foundation-layout:1.11.4 (c)
+|         |         +--- androidx.compose.foundation:foundation-layout:1.8.1 -> 1.11.4 (*)
+|         |         +--- androidx.compose.material:material-ripple:1.8.1 -> 1.11.4
+|         |         |    \--- androidx.compose.material:material-ripple-android:1.11.4
+|         |         |         +--- androidx.collection:collection:1.5.0 -> 1.6.0 (*)
+|         |         |         +--- androidx.compose.animation:animation:1.7.1 -> 1.11.4 (*)
+|         |         |         +--- androidx.compose.foundation:foundation:1.7.1 -> 1.11.4 (*)
+|         |         |         +--- androidx.compose.runtime:runtime:1.11.4 (*)
+|         |         |         +--- androidx.compose.ui:ui-util:1.7.1 -> 1.11.4 (*)
+|         |         |         \--- org.jetbrains.kotlin:kotlin-stdlib:2.1.20 -> 2.4.21 (*)
+|         |         +--- androidx.compose.runtime:runtime:1.9.0 -> 1.11.4 (*)
+|         |         +--- androidx.compose.ui:ui:1.8.2 -> 1.11.4 (*)
+|         |         +--- androidx.compose.ui:ui-text:1.8.1 -> 1.11.4 (*)
+|         |         +--- androidx.compose.ui:ui-util:1.8.1 -> 1.11.4 (*)
+|         |         +--- androidx.lifecycle:lifecycle-common-java8:2.6.1 -> 2.11.0
+|         |         |    +--- androidx.annotation:annotation:1.8.1 -> 1.11.0 (*)
+|         |         |    +--- androidx.lifecycle:lifecycle-common:2.11.0 (*)
+|         |         |    +--- androidx.lifecycle:lifecycle-common:2.11.0 (c)
+|         |         |    +--- androidx.lifecycle:lifecycle-livedata:2.11.0 (c)
+|         |         |    +--- androidx.lifecycle:lifecycle-livedata-core:2.11.0 (c)
+|         |         |    +--- androidx.lifecycle:lifecycle-livedata-core-ktx:2.11.0 (c)
+|         |         |    +--- androidx.lifecycle:lifecycle-livedata-ktx:2.11.0 (c)
+|         |         |    +--- androidx.lifecycle:lifecycle-process:2.11.0 (c)
+|         |         |    +--- androidx.lifecycle:lifecycle-runtime:2.11.0 (c)
+|         |         |    +--- androidx.lifecycle:lifecycle-runtime-compose:2.11.0 (c)
+|         |         |    +--- androidx.lifecycle:lifecycle-runtime-ktx:2.11.0 (c)
+|         |         |    +--- androidx.lifecycle:lifecycle-service:2.11.0 (c)
+|         |         |    +--- androidx.lifecycle:lifecycle-viewmodel:2.11.0 (c)
+|         |         |    +--- androidx.lifecycle:lifecycle-viewmodel-compose:2.11.0 (c)
+|         |         |    +--- androidx.lifecycle:lifecycle-viewmodel-ktx:2.11.0 (c)
+|         |         |    \--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.11.0 (c)
+|         |         +--- org.jetbrains.kotlin:kotlin-stdlib -> 2.4.21 (*)
+|         |         \--- org.jetbrains.kotlin:kotlin-stdlib:2.0.21 -> 2.4.21 (c)
+|         +--- androidx.compose.material:material-icons-extended -> 1.7.8
+|         |    \--- androidx.compose.material:material-icons-extended-android:1.7.8
+|         |         +--- androidx.compose.material:material-icons-core:1.7.8
+|         |         |    \--- androidx.compose.material:material-icons-core-android:1.7.8
+|         |         |         +--- androidx.compose.ui:ui:1.6.0 -> 1.11.4 (*)
+|         |         |         +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.22 -> 2.4.21 (*)
+|         |         |         \--- org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 -> 2.4.21
+|         |         |              \--- org.jetbrains.kotlin:kotlin-stdlib:2.4.21 (*)
+|         |         \--- org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 -> 2.4.21 (*)
+|         +--- androidx.activity:activity-compose:1.10.1 (*)
+|         \--- org.jetbrains.kotlin:kotlin-stdlib:2.4.21 (*)
-\--- org.wordpress.gutenbergkit:android:v0.20.0-alpha.3 (*)
+\--- org.wordpress.gutenbergkit:android:v0.20.0 (*)

@wpmobilebot

wpmobilebot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

App Icon📲 You can test the changes from this Pull Request in Jetpack Android by scanning the QR code below to install the corresponding build.

App NameJetpack Android
Build TypeDebug
Versionpr23541-8d614a6
Build Number1498
Application IDcom.jetpack.android.prealpha
Commit8d614a6
Installation URL2fgjhremdf7d8
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot

wpmobilebot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

App Icon📲 You can test the changes from this Pull Request in WordPress Android by scanning the QR code below to install the corresponding build.

App NameWordPress Android
Build TypeDebug
Versionpr23541-8d614a6
Build Number1498
Application IDorg.wordpress.android.prealpha
Commit8d614a6
Installation URL72gllkd1t19ig
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@dcalhoun
dcalhoun marked this pull request as ready for review November 17, 2026 14:26
@dcalhoun
dcalhoun requested a review from a team as a code owner November 17, 2026 14:26
@dcalhoun
dcalhoun requested review from jkmassel and removed request for a team November 17, 2026 14:26
@dcalhoun dcalhoun added Gutenberg Editing and display of Gutenberg blocks. Bug labels Nov 17, 2026
@dcalhoun
dcalhoun requested review from nbradbury and removed request for jkmassel November 18, 2026 14:55
@nbradbury

Copy link
Copy Markdown
Contributor

Claude found two "High" findings, the second of which is pre-existing:

Severity Merge Location Issue Impact
High Must fix GutenbergKitSettingsBuilder.kt:51 GutenbergKit v0.20.0 (PR #757, marked breaking) sends authHeader only to the siteURL/siteApiRoot origins plus authHeaderDomains, and buildPostConfiguration never calls setAuthHeaderDomains. On a WP.com-routed site (siteApiRoot=public-api.wordpress.com), requests to *.wp.com and *.files.wordpress.com (cached assets on s0.wp.com, block data on widgets.wp.com) no longer carry the Bearer token, so anything that needs it gets 401/403; upstream's fix is setOf("*.wp.com", "*.files.wordpress.com") when shouldUseWPComRestApi, otherwise an empty set.
High Could fix GutenbergKitSettingsBuilder.kt:236 The new EditorAuthorizationScope always includes the siteURL origin, so a Jetpack site reached over WP.com REST still gets the account-wide WP.com token on native asset downloads from its own host, which buildCachedHosts puts in cachedAssetHosts. An author on someone else's Jetpack site opens the editor with third-party blocks enabled, and EditorHTTPClient.download fetches that site's plugin JS with Authorization: Bearer <WP.com token>, which the site operator can log; the problem predates this PR and the bump narrows it, hence Could fix.

dcalhoun and others added 2 commits November 18, 2026 15:36
…bergKit

The exemption predates headless password creation for Atomic sites. Without
it, a private Atomic site with no password opened the editor using the
WordPress.com token, which GutenbergKit also sends to the site's own host.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rgkit-v0.20.0

# Conflicts:
#	docs/USER-FACING-CHANGES.md
@dcalhoun

dcalhoun commented Nov 18, 2026 •

Copy link
Copy Markdown
Member Author

@nbradbury I believe both are invalid the first is invalid, the second is nuanced.

1. Missing setAuthHeaderDomains. This one is intentional, and referenced in the PR description. WordPress-iOS takes this same approach.

GBK's demo app's practice of allowing *.wp.com and *.files.wordpress.com was originally done for private site resource loading. We've since realized that doesn't work and isn't necessary (cookies are already present for this specific use case). There is no known use case for adding these domains. Both are public. Adding the domains results in 405 responses due to CORS preflight requests.

I tested private sites without these domains and the editor functions as expected.

2. The site's own host receiving the WP.com token.

The app editor logic requires an application password for non-WP.com Simple sites (shouldRequireApplicationPassword()). So, "a Jetpack site reached over WP.com REST" is not a reachable state today.

A note from researching item 2: private Atomic sites are currently exempt from the password requirement, but it's latent and incorrect logic. Site provisioning now creates an application password headlessly when the site is selected; I confirmed that on a private Atomic site. I've removed that exemption in this PR.

  • Jetpack sites: GutenbergKitActivity.onCreate requires an application password before the editor opens (shouldRequireApplicationPassword()), so a Jetpack site never reaches the editor with the WP.com token. The credential it sends to its own host is that site's application password.
  • Simple sites: these do use the WP.com token, but their host is run by WordPress.com.
  • Private Atomic sites: these are exempt from the password requirement, a leftover from when the app couldn't create passwords for them (CMM-771, CMM-591). Site provisioning now creates one headlessly when the site is selected, and I confirmed that on a private Atomic site: the editor loaded with Basic auth. So the token only reaches a private Atomic host if password creation fails. This PR now removes that exemption, which closes that path too.

@nbradbury nbradbury left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good :shipit:

@dcalhoun
dcalhoun added this pull request to the merge queue Nov 18, 2026
Merged via the queue into trunk with commit 75cedea Nov 18, 2026
23 checks passed
@dcalhoun
dcalhoun deleted the build/update-gutenbergkit-v0.20.0 branch November 18, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Gutenberg Editing and display of Gutenberg blocks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants