Experimental block editor: media on private sites doesn't load on iOS 27
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- ios, swift
- 領域
- authentication, mobile
調査の方向性
Start by reading the experimental block editor’s web view setup and GutenbergKit integration, then reproduce the cookie behavior with the provided WKWebView snippet on iOS 27 and iOS 26. The issue identifies two possible directions: serve the editor from a same-site HTTPS origin or route authenticated media through a native URL scheme. Done means private-site images and audio load in the editor on iOS 27; the issue says the fix likely needs GutenbergKit.
索引モデルが issue の本文から書いたものです。
説明
Description
On iOS 27, images and audio in posts on private WordPress.com sites (Simple and Atomic) don't load in the experimental block editor. Images show a "?" placeholder, and the audio player shows "Error". On iOS 26 the same posts load correctly.
The app writes the site's login cookies to the web view's cookie store before the editor loads, and they are stored on both iOS versions. On iOS 27, WebKit no longer sends them with the editor's media requests, so the site answers with a 403.
The editor page loads from a file:// URL. A minimal WKWebView repro, outside the app, shows that iOS 27 stopped sending cookies on requests from file:// pages:
| Page that loads the image | iOS 26.5 | iOS 27.2 |
|---|---|---|
file:// (how the editor loads) |
Cookies sent, except SameSite=Lax | No cookies sent |
https:// on the same site |
All cookies sent | All cookies sent |
https:// on an unrelated site |
No cookies sent | No cookies sent |
On iOS 27, a file:// page gets the same cookie treatment as a cross-site page.
Additional AI-generated details
What was ruled out
- Timing. Loading the cookies before adding the editor doesn't help.
- Cookie writes. Logging every write shows the same cookies stored on iOS 26.5 and 27.2, and each one matches the site's URL.
- Cookie blocking mode. Both versions log
ThirdPartyCookieBlockingMode::AllExceptPartitioned, so the setting itself didn't change. - The
Authorizationheader. Media requests from the web view never carry it, so the hosts GutenbergKit sends it to make no difference. - Lockdown Mode. iOS 26 devices load the media with or without it.
Minimal repro
- Run an HTTPS server that returns an image only when a cookie arrives, and 403 otherwise.
- Write that cookie to
WKWebsiteDataStore.default().httpCookieStore. - Load a local HTML file with
loadFileURL(_:allowingReadAccessTo:). The file contains<img src="https://<server>/image.png">. - Compare with
loadHTMLString(_:baseURL:), using a base URL on the server's site and one on an unrelated site.
let store = WKWebsiteDataStore.default().httpCookieStore
await store.setCookie(HTTPCookie(properties: [
.name: "auth", .value: "1", .domain: "example.test", .path: "/",
.secure: "TRUE", .expires: Date().addingTimeInterval(3600),
])!)
let webView = WKWebView(frame: .zero, configuration: WKWebViewConfiguration())
// iOS 26: the cookie is sent. iOS 27: it isn't.
webView.loadFileURL(localHTML, allowingReadAccessTo: localHTML.deletingLastPathComponent())
// Both versions send the cookie.
webView.loadHTMLString(html, baseURL: URL(string: "https://example.test/")!)
The server's Sec-Fetch-Site header reads cross-site for the file:// page on both versions. Only iOS 26 attached the cookies.
WebKit Features for Safari 27.0 doesn't mention this change.
Possible fixes
- Load the editor page from an
httpsorigin on the site, so its media requests are same-site. GutenbergKit would need to load its own scripts and styles from that origin. The Reader already uses anhttpsbase URL (https://wordpress.com/reader) for its content, which is why it isn't affected. - Load authenticated media through a native URL scheme. This would cover image
srcandsrcset, video and audio sources, file blocks and CSS backgrounds, and would mean rewriting URLs on load and save. WKAppBoundDomainsdoesn't fit. It allows only 10 domains, fixed at build time, and limits script injection in every web view in the app.
The fix likely needs a GutenbergKit change.
Step-by-step reproduction instructions
- On an iOS 27 device or simulator, sign in to the Jetpack app with a WordPress.com account that has a private site.
- Enable Me → App Settings → Experimental Features → Experimental block editor.
- On the private site, open an existing post that contains images.
- Images show a "?" placeholder instead of the image.
- Repeat on iOS 26. The images display.
Screenshots, screen recording, code snippet
See the repro snippet above.
Environment info
- Jetpack for iOS: current TestFlight build, and the GutenbergKit 0.20.0 update (#26365).
- iOS 27.2 simulator and iPhone 17 on iOS 27: affected.
- iOS 26.5 simulator and iPhone SE on iOS 26.7.1: not affected.
- Private WordPress.com Simple and Atomic sites.
Please confirm that you have searched existing issues in the repo.
- Yes
- 主要言語
- Swift
- スター
- 3.9k
- フォーク
- 1.2k
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 136
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
wordpress-mobile/WordPress-iOS のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
wordpress-mobile/WordPress-iOS#26423 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Pri] Low [Status] Ready for Dev [Type] Bug /Me
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
wordpress-mobile/WordPress-iOS#26279 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Pri] Low [Status] Ready for Dev [Type] Bug Share Extension
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
wordpress-mobile/WordPress-iOS#26276 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Pri] Low [Status] Ready for Dev [Type] Bug Blogging Prompts Notifications
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
wordpress-mobile/WordPress-iOS#26256 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Status] Ready for Dev [Type] Bug Reader
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
wordpress-mobile/WordPress-iOS#26254 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
wordpress-mobile/WordPress-iOS の issue をすべて見る
似ている issue
-
Optional callbacks log "Unable to create JSCallback" when passed null対応中かも @cmsj が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
cmsj/Hammerspoon2#464 ·
-
android bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
VocaHQ/vocaphone#470 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
new-compilers request
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
compiler-explorer/compiler-explorer#9640 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100