Closed
Bug 997818
Opened 12 years ago
Closed 2 years ago
Infobar is not displayed as long as the throbber is still present in the tab
Categories
(Firefox :: Translations, defect)
Firefox
Translations
Tracking
()
RESOLVED
INVALID
People
(Reporter: bmaris, Unassigned)
Details
(Whiteboard: [translation])
Reproducible on try build http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/florian@queze.net-d50109811367/ (BuildID: 20140416053745)
Steps to reproduce:
1. Start Firefox.
2. Load http://www.126.com/
Expected results: Language is detected after the content is loaded and does not wait for plugin content or ads.
Actual results: Language is detected only when the page loads incompletely even though the text is already loaded.
Notes:
1. Reproducible on Windows, Linux and Mac OS X
Updated•12 years ago
|
Summary: Infobar is not displayed if as long as the throbber is still present in the tab → Infobar is not displayed as long as the throbber is still present in the tab
Comment 1•12 years ago
|
||
I discussed this bug a little bit with Gavin yesterday.
Some random ideas we had:
- what about a time based detection? (We would start a timer when receiving the DOMContentLoaded event, and would do language detection at the end of the timer, or when the progress listener tells us everything has finished loading; whichever comes first)
- Should we assume that if the user has started scrolling, then there's already enough data displayed to run language detection? Or should we just run language detection as soon as there's enough content to cause a scrollbar to happen (overflow event).
- Could we use heuristics based on counting the amount of data received through XHR?
- If language detection is cheap we could just run it a lot (run it several times from a timer, until it is confident or the page has finished loading). If we use this approach we should avoid filling up the queue of the language detection worker with data from background tabs though; or we should give priority to foreground tabs.
Whatever we end up doing, it doesn't need to be perfect, but should stay relatively simple.
Comment 2•11 years ago
|
||
Mass move of translation bugs to the new Translation component.
Component: General → Translation
Version: Trunk → unspecified
Updated•11 years ago
|
Flags: firefox-backlog+
Updated•3 years ago
|
Severity: normal → S3
Updated•2 years ago
|
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•