Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service Workerにすると一定期間後に入力を受け付けなくなる #14

Open
hkurokawa opened this issue Aug 7, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@hkurokawa
Copy link
Owner

hkurokawa commented Aug 7, 2022

概要

232159e を適用すると、最初は問題なく動くが、数秒後に入力を受け付けなくなったり、ひらがなモードであるにも関わらず英数が入力されたりする

再現手順

  1. 232159ef3cf33a52e06c226f213716d476cdd596 を適用する
  2. 拡張機能をリロードする
  3. 適当なタブで日本語を入力する

結果

ステップ3で、数秒以上たつと入力がまったく反映されない、数秒たつと反映される、急に英数しか入力できなくなる、などの症状が起きる。Developer Toolで見ると以下のようなログが記録されている。

Error in event handler: TypeError: Cannot set properties of null (setting 'context')
    at chrome-extension://epaoakakjoclciilnpfiaaacmpjionjc/main.js:23:15

期待する結果

ステップ3で、SKKの日本語入力が問題なくできる状態がずっと続く

備考

  • Developer Toolでchrome-skkのserviceworkerのコンソールを開いていると再現しない
  • おそらくserviceworkerが一定時間たつとinactiveになるのがきっかけ
@hkurokawa
Copy link
Owner Author

chrome.input.ime.onKeyEvent で service worker が起きないのが原因と思われるので、Chromiumにバグをfileした。
https://crbug.com/1360127

@hkurokawa
Copy link
Owner Author

https://crbug.com/1152255 の修正によって、入力中にいきなり使えなくなることはなくなった。ただし、タブを開きっぱなしにして入力しない状態を30秒保つと、やはり直接入力になってしまう。

@hkurokawa
Copy link
Owner Author

options page を開きっぱなしにして、開発者ツールを起動しておくと、service worker が inactive にならないので、すみませんが、それで回避してください。この issue 自体は open にしておきます。

@hkurokawa hkurokawa added the bug Something isn't working label Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant