Task #338: Firefox AMO 검증 경고 정리#339
Merged
edwardkim merged 4 commits intoApr 26, 2026
Merged
Conversation
- 수행계획서와 구현계획서 작성 - manifest 버전 경고, document.write, innerHTML, Function 후보 분류 - stale dist artifact와 테스트 파일 잔존 여부 조사
- Firefox strict_min_version을 142.0으로 상향 - Firefox 빌드 시작 전 dist 정리 추가 - 인쇄 팝업 document.write를 DOM API 기반 생성으로 교체 - 외부 커맨드 메뉴와 canvas 초기화의 innerHTML 사용 제거
- content script와 viewer bundle의 잔여 innerHTML 문자열 제거 - 표/그림 선택 overlay와 도형 배치 프리뷰를 DOM/SVG API로 전환 - UI 다이얼로그와 드롭다운의 HTML 삽입 경로를 DOM API로 교체 - Firefox 확장 빌드 및 dist 패턴 검색 결과 기록
ae32667 to
f503df8
Compare
f503df8 to
810931b
Compare
810931b to
00e1ca7
Compare
- AMO 검토자 설명 문서를 한국어 본문과 영문 제출 초안으로 작성 - 최종 보고서에 빌드, grep 검증, 로컬 Firefox 수동 비교 결과 정리 - 오늘 할일 문서에 Task edwardkim#338 완료 상태 반영
00e1ca7 to
b8e0058
Compare
Owner
|
@postmelee 님 — Task #338 작업 감사합니다. 이슈 등록 직후 빠른 시간 내에 4 stage 모두 처리 + reviewer note 한/영 작성 + 5 영역 시각 검증까지 완료해 주셔서 메인테이너가 별도로 진행하던 task338 작업을 폐기하고 본 PR 로 마무리했습니다. 메인테이너 추가 검증
워닝 처리 결과
errors 0 = AMO 통과 기준 달성. warnings 2 는 본인 reviewer note 로 정당화 가능. 머지 후
다시 한번 깔끔한 작업 + 시각 검증 + reviewer note 까지 완비된 PR 감사합니다. admin merge 진행합니다. |
edwardkim
approved these changes
Apr 26, 2026
edwardkim
left a comment
Owner
There was a problem hiding this comment.
검증 완료 (992 lib + 6/6 svg_snapshot + clippy + wasm32 + web-ext lint errors 0 + 시각 검증). admin merge.
Collaborator
Author
|
@edwardkim 이미 진행중이셨군요.. 제가 작업 흐름을 해친게 아닐까 걱정됩니다.. 상세한 리뷰 감사드립니다! 👍 하루 빨리 firefox 확장을 사용하고 싶네요!' |
edwardkim
added a commit
that referenced
this pull request
Apr 26, 2026
@postmelee 의 PR 인수 + 메인테이너 검증 + admin merge (commit 626338f). Firefox AMO 워닝 해결: - 카테고리 A (manifest 모순): 2건 → 0 (strict_min_version=142.0) - 카테고리 B (innerHTML/document.write): 16건 → 0 (DOM/SVG API 교체) - 카테고리 B (Function): 2건 잔존 — reviewer note 정당화 web-ext lint: errors 0, warnings 2 (AMO 통과 기준 달성). 메인테이너 자체 task338 작업은 본 PR 로 대체 (plans/branch 폐기). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
edwardkim
added a commit
that referenced
this pull request
Apr 26, 2026
4 tasks
edwardkim
added a commit
that referenced
this pull request
Apr 26, 2026
라이브러리 버전 동기화 (Cargo.toml / rhwp-vscode / npm/editor / rhwp-studio): 0.7.3 → 0.7.6 브라우저 확장 (rhwp-firefox): 0.2.1 → 0.2.2 (AMO 재제출용) - manifest strict_min_version 142 + viewer 번들 보안 sanitize 반영 본 사이클 외부 기여 PR: - #268/#334 (@oksure): replaceOne API - #279/#282 (@seanshin): 목차 리더 + 페이지번호 정렬 - #324/#327 (@planet6897): form-002 인너 표 페이지 분할 - #335 (@oksure): SVG/HTML draw_image base64 임베딩 - #338/#339 (@postmelee): Firefox AMO 워닝 해결 - #340/#341 (@planet6897): typeset 경로 정합 - #342/#343 (@planet6897): Task #321~#332 통합 + 회귀 해소 rhwp-firefox/README.md 에 v0.2.2 변경 이력 + 기여자 감사 섹션 추가 (@postmelee, @seanshin 인정). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
seanshin
pushed a commit
to seanshin/rhwp
that referenced
this pull request
Apr 26, 2026
- 최근 변경: v0.7.3 → v0.7.6 (2026-04-26) 교체 - PR edwardkim#266 (Task edwardkim#157), edwardkim#273 (Task edwardkim#267), edwardkim#282 (Task edwardkim#279) by @seanshin - PR edwardkim#256, edwardkim#327, edwardkim#341, edwardkim#343 by @planet6897 - PR edwardkim#334, edwardkim#335 by @oksure, PR edwardkim#339 by @postmelee - devel 섹션: 머지된 항목 제거, 현재 분석 중(edwardkim#362/edwardkim#345) + 계획 중(edwardkim#150/edwardkim#253) 반영 - 테스트 수: 891+ → 1000+ - README_EN.md 동일 내용 영문 반영
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
변경 요약
Firefox AMO 제출 검증에서 보고된 #338 경고를 정리합니다.
주요 변경:
data_collection_permissions사용에 맞춰 Firefoxstrict_min_version을142.0으로 상향document.write제거innerHTML정적 문자열 매치 제거Function경고가 재빌드 산출물에서 재현되지 않음을 확인#338 경고 항목 처리 결과
이슈 본문에 기록된 카테고리 B 보안 워닝을 기준으로, 재빌드된 Firefox 제출 패키지(
rhwp-firefox/dist)를 다시 확인했습니다.document.writeinnerHTMLFunction/Function(wasm/rhwp.js,assets/viewer-*.js)wasm/rhwp.js의Function경고는 wasm-bindgen 생성 코드로 보고된 항목입니다. 이번 PR에서는 해당 생성 코드를 직접 수정하지 않고, 최신 재빌드된 제출 패키지 기준으로 경고 문자열이 더 이상 재현되지 않음을 확인했습니다.AMO 제출자가 바로 사용할 수 있는 검토자 메모도 함께 추가했습니다.
상세 변경
rhwp-firefox/manifest.jsonbrowser_specific_settings.gecko.strict_min_version:112.0→142.0data_collection_permissions.required = ["none"]유지rhwp-firefox/build.mjsdist/정리rhwp-studiodocument.write기반 인쇄 팝업을 DOM API 기반으로 변경innerHTML사용을 DOM API,textContent,replaceChildren(), SVG DOM 생성, SVG XML parsing/import 방식으로 변경관련 이슈
테스트
cargo test통과cargo clippy -- -D warnings통과관련 샘플 파일로 SVG 내보내기 확인
웹(WASM) 렌더링 확인 (해당하는 경우)
cd rhwp-firefox && npm run build통과추가 검증
rhwp-firefox/manifest.json,rhwp-firefox/dist/manifest.json에서version: "0.2.1",gecko.id: "rhwp-firefox@edwardkim.github.io",strict_min_version: "142.0"및data_collection_permissions확인rhwp-firefox/dist에 staletest/,*test*,*.map파일 없음 확인rhwp-firefox/dist에서document.write매치 없음 확인rhwp-firefox/dist에서new Function/Function(매치 없음 확인rhwp-firefox/dist에서innerHTML매치 없음 확인git diff --check통과참고:
rhwp-studio의tsc --noEmit은 현재pkg/rhwp.d.ts의 기존 WASM 타입 선언 누락으로 실패합니다.exportHwpxgetSourceFormat해당 타입 불일치는 이번 PR 변경과 무관한 기존 상태로 확인했습니다.
스크린샷
innerHTML 기반 생성 경로를 DOM/SVG API 기반 생성으로 치환 검증
1. 인쇄 팝업 렌더링
document.write를 제거하고 DOM API 기반으로 인쇄 문서를 구성한 뒤에도 인쇄 팝업이 정상 렌더링됨을 확인했습니다.print_test_crop.mp4
2. 표/그림 선택 overlay
table/object selection overlay의 SVG 생성 경로를
innerHTML에서 DOM/SVG API 기반으로 변경한 뒤에도 외곽선과 핸들이 정상 표시됨을 확인했습니다.table_test_crop.mp4
3. 선/도형 선택 overlay
DOM/SVG API 치환 후에도 이미 배치된 선, 타원, 호, 다각형을 선택했을 때 외곽선, 끝점/리사이즈 핸들, 회전 핸들이 정상 표시됨을 확인했습니다.
4. 도형 배치 preview 및 크기 label
input-handler.ts의 도형 배치 preview 생성 경로를innerHTML에서 DOM/SVG API 기반으로 변경한 뒤에도 드래그 중 점선 preview와 크기 label이 정상 표시됨을 확인했습니다.shape_test_crop.mp4
5. 대화상자 및 picker UI
shape picker, symbol dialog, table picker, paragraph dialog 등 UI 삽입 경로를
innerHTML에서 DOM API,textContent,replaceChildren(),option요소 생성 방식으로 변경한 뒤에도 기존 UI가 동일하게 표시됨을 확인했습니다.innerhtml_test.mp4