-
Notifications
You must be signed in to change notification settings - Fork 62
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
API to invalidate BFCache'd webpage with outdated content added by the extension #747
Comments
A potentially [much] simpler and cleaner solution might be to allow chrome.scripting.executeScript({
target: {tabId, documentIds: ['.........']},
func: config => {/* apply config to the page */},
args: [config],
}); Right now it ignores documentIds and just runs in the current document of the tab. |
Note from today's meeting WECG meeting: using extension messaging to post a message to a BFCached document used to evict a document, but doesn't any more. |
The general consensus is to not introduce APIs to enable extensions to blanket evict bfcache'd contexts (meeting notes pending review at #750). Instead, the idea is that the |
Indeed, config registration would help, I totally forgot about it. I vaguely remember now it was about to be implemented 5+ years ago in Chrome. |
Problem:
If we try to use a listener on
pageshow
event and retrieve the configuration, there'll be a noticeable delay before the up-to-date configuration is applied, which is very jarring when the visual changes are substantial.Possible solution:
Alternatives:
The text was updated successfully, but these errors were encountered: