Skip to content

鸿蒙 Phase A1:编辑器 H5 通道——iframe + MessageChannel 替代 Electron webview #139

Description

@zeweihan

见 docs/HARMONYOS_PLAN.md(PR #138)。

LibreOfficeEditor.vue 目前是 Electron 专属(依赖 window.checkbaDesktop.zetaoffice)。纯浏览器/Web 服务器版需要:

  1. 非 Electron 环境下用 iframe 加载 dist/zetaoffice 编辑器页(同源,由 nginx 提供 COOP/COEP,配置已在 deploy/web/)
  2. host ↔ iframe 用 postMessage/MessageChannel 走现有 editor bridge/executor 协议(zetaOfficeBoot 的可行性由 experiments/zetaoffice-spike 证明)
  3. puppeteer 无头端到端验证(沿用 v0.6.3 的无头 LOWA 测试配方)

这是鸿蒙浏览器版(Phase A)和鸿蒙 Electron 壳(Phase B)共同的前提。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions