Closed
Bug 699786
Opened 14 years ago
Closed 14 years ago
Cancel pending favicon requests for tabs that changed location
Categories
(Firefox for Android Graveyard :: General, defect, P3)
Tracking
(firefox11 fixed, fennec11+)
RESOLVED
FIXED
People
(Reporter: lucasr, Assigned: lucasr)
References
Details
Attachments
(3 files)
|
4.16 KB,
patch
|
blassey
:
review+
|
Details | Diff | Splinter Review |
|
6.76 KB,
patch
|
blassey
:
review+
|
Details | Diff | Splinter Review |
|
4.87 KB,
patch
|
blassey
:
review+
|
Details | Diff | Splinter Review |
If favicon is requested but the corresponding tab changes location, we should simply cancel the pending request as we're not interested in its results anymore.
| Assignee | ||
Updated•14 years ago
|
OS: Linux → Android
Hardware: x86 → All
Updated•14 years ago
|
Assignee: nobody → lucasr.at.mozilla
Priority: -- → P3
| Assignee | ||
Comment 1•14 years ago
|
||
Attachment #575150 -
Flags: review?(blassey.bugs)
| Assignee | ||
Comment 2•14 years ago
|
||
Attachment #575151 -
Flags: review?(blassey.bugs)
| Assignee | ||
Comment 3•14 years ago
|
||
Attachment #575152 -
Flags: review?(blassey.bugs)
Updated•14 years ago
|
Attachment #575150 -
Flags: review?(blassey.bugs) → review+
Comment 4•14 years ago
|
||
Comment on attachment 575151 [details] [diff] [review]
(2/3) Add API and infra to support favicon load cancellation
Review of attachment 575151 [details] [diff] [review]:
-----------------------------------------------------------------
Nit, make mNextFaviconLoadId a static member of the LoadFaviconTask class
Attachment #575151 -
Flags: review?(blassey.bugs) → review+
| Assignee | ||
Comment 5•14 years ago
|
||
(In reply to Brad Lassey [:blassey] from comment #4)
> Comment on attachment 575151 [details] [diff] [review] [diff] [details] [review]
> (2/3) Add API and infra to support favicon load cancellation
>
> Review of attachment 575151 [details] [diff] [review] [diff] [details] [review]:
> -----------------------------------------------------------------
>
> Nit, make mNextFaviconLoadId a static member of the LoadFaviconTask class
Tried that but inner classes can't have static members...
Comment 6•14 years ago
|
||
Comment on attachment 575152 [details] [diff] [review]
(3/3) Cancel pending favicon loads when location changes
Review of attachment 575152 [details] [diff] [review]:
-----------------------------------------------------------------
::: embedding/android/GeckoApp.java
@@ +589,5 @@
> tab.removeTransientDoorHangers();
>
> + // Cancel any pending favicon load task
> + long faviconLoadId = tab.getFaviconLoadId();
> + if (faviconLoadId > 0)
should this be:?
if (faviconLoadId != Favicons.NOT_LOADING)
Attachment #575152 -
Flags: review?(blassey.bugs) → review+
| Assignee | ||
Comment 7•14 years ago
|
||
(In reply to Brad Lassey [:blassey] from comment #6)
> Comment on attachment 575152 [details] [diff] [review] [diff] [details] [review]
> (3/3) Cancel pending favicon loads when location changes
>
> Review of attachment 575152 [details] [diff] [review] [diff] [details] [review]:
> -----------------------------------------------------------------
>
> ::: embedding/android/GeckoApp.java
> @@ +589,5 @@
> > tab.removeTransientDoorHangers();
> >
> > + // Cancel any pending favicon load task
> > + long faviconLoadId = tab.getFaviconLoadId();
> > + if (faviconLoadId > 0)
>
> should this be:?
> if (faviconLoadId != Favicons.NOT_LOADING)
Yep, fixed.
| Assignee | ||
Comment 8•14 years ago
|
||
Pushed:
http://hg.mozilla.org/projects/birch/rev/fa4ef7d24a26
http://hg.mozilla.org/projects/birch/rev/e20ccbf697a1
http://hg.mozilla.org/projects/birch/rev/9999a423d8ab
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
tracking-fennec: --- → 11+
Updated•14 years ago
|
status-firefox11:
--- → fixed
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•