[v1.4?] MV3 Persistent Event Page#1230
Draft
cyfung1031 wants to merge 17 commits intoscriptscat:release/v1.3from
Draft
[v1.4?] MV3 Persistent Event Page#1230cyfung1031 wants to merge 17 commits intoscriptscat:release/v1.3from
cyfung1031 wants to merge 17 commits intoscriptscat:release/v1.3from
Conversation
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.
提供了一个有效方法让 Event Page 不断运行
Event Page 里做一个 iframe (类似现在的sandbox.html? )
这 iframe 只做一件事:就是在不拖慢浏览器情况下,不断 loop (iframe里是跑另一条 thread.不会影响 event page)
当时间条件满足了,就会改一下 storage.session
Event Page 那边会加一个 eventlistener ,这样
storage.session被修改时就会提醒要保持清醒这样就会一直不断地保持清醒,不会睡眠
( 这个等 1.3 其他的东西先合并再处理吧。 这样的话,offscreen也能实现了。可以全面进入 Firefox MV3 )