Comments (4)
Hi @Keith94, thanks for the feedback.
This is a known issue that I haven't worked out how to fix yet.
when tab is not active, tab.status "complete" is not returned by Chrome
Chrome has events that give extensions such as RetroTxt notifications when tabs have been created, changed and closed. There seems to be an inconsistency when using file:///
URLs where Chrome does not tell RetroTxt that a new background tab is complete, i.e. finished loading the local file.
from retrotxt.
The effected code.
eventpage.js
Line 601
if (url.length === 0) { // do nothing
} else if (tab.active === false && tab.status === "loading" && url.startsWith(`file:///`) === true) {
// when tab is not active, tab.status "complete" is not returned by Chrome
runParseEventUrls(`onCreated`, url, tab.id);
} else if (tab.status === "complete") {
runParseEventUrls(`onCreated`, url, tab.id);
}
from retrotxt.
I see, this is Firefox btw if that makes a difference.
from retrotxt.
Unfortunately, I think it's an (intentional?) web extension design flaw regardless of browser.
I remember working on this issue. The current broken system relies on new tab event. The preferred option was the have it depend on the update tab event.
The problem was the update tab event got triggered multiple times, and there was no way to distinguish between a new tab and refresh (F5) updates. So you had an issue where the tab would render with RetroTxt then straight after revert it back to the original text. Having this happen at the same time on multiple background tabs with large text or ANSI files slowed down the browser considerably.
from retrotxt.
Related Issues (20)
- [BUG] Unchecked runtime.lastError: Could not establish connection on toolbar button click. HOT 5
- [BUG] Manifest error HOT 1
- [BUG] Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist. HOT 1
- Fine-tune the access permissions. HOT 2
- [FEATURE] Clickable links HOT 5
- [BUG] Page wrap setting doesn't apply HOT 4
- Tail support HOT 1
- RetroTxt for Firefox is stuck at v4.2.1 HOT 2
- [BUG] `file:///` 80 column wrap ~ page wrap conflict HOT 1
- [TODO] Options tab title HOT 1
- [TODO] Use chrome.action.isEnabled() HOT 1
- [TODO] Fetch and display favicons
- [BUG] Typo fix HOT 1
- [New] Add Intel's One Mono font HOT 1
- [BUG] New Install HOT 1
- [FEATURE] Storage sync for Options HOT 1
- [BUG] Monitor downloads HOT 1
- Rework some items in the Display Options. HOT 1
- [FEATURE] CSS `text-wrap` pretty and balance values for text and wrapped ANSI HOT 1
- [FEATURE] Time to build output in console?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from retrotxt.