Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

A malformed theme script address stops a widget's live preview

オープン 初心者向け
#172 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
84/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript
領域
frontend, testing

調査の方向性

packages/core/src/runtime/previewRuntime.jsで、morphWidgetの周辺と、それを囲むtryブロック内のURL解決を読んでください。次に、packages/core/src/runtime/__tests__/previewRuntimeMedia.test.jsのruntimeテストを実行し、構文的に無効なアドレスのケースを追加してください。無効なアドレスがスキップされるかブラウザーに委ねられ、残りのmorphが引き続き適用され、runtimeテストが通れば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug

A badly written theme script address stops a widget's live preview.


morphWidget in previewRuntime.js (~1042) resolves each enqueued stylesheet/script address with new URL(url, document.baseURI) to de-duplicate it. A syntactically invalid address (e.g. http://[cdn.example/x.js, not merely a 404) throws there, the surrounding try (~1012-1069) returns false, and the widget's new markup is never applied: the editor posts WIDGET_MORPH_FAILED, which nothing handles, so that widget stops updating until the preview reloads. A full page load only loses the one script. Not reproduced; only a broken theme triggers it.

Done when: An address that can't be resolved is skipped (or left to the browser) and the rest of the morph still applies, with a runtime test.

Start: previewRuntime.js, previewRuntimeMedia.test.js. Source: 2026-10-07 review of b9c9fc13.

主要言語
JavaScript
スター
162
フォーク
6
平均マージ
12時間 55分
マージ済み PR(30日)
2

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tsiger/widgetizer のほかの issue

tsiger/widgetizer の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。