Closed Bug 166648 Opened 22 years ago Closed 22 years ago

Prefs: link prefetching UI for (network.prefetch-next)

Categories

(Core :: Networking, defect, P4)

defect

Tracking

()

RESOLVED FIXED
mozilla1.3beta

People

(Reporter: darin.moz, Assigned: skasinathan)

References

Details

(Keywords: topembed-, Whiteboard: [prefetch] checklinux, checkwin)

Attachments

(2 files, 4 obsolete files)

allow link prefetching to be disabled via user prefs.  currently, there is only
a static pref in all.js that can be set to false to disable prefetching.  this
should probably be a user pref instead.  that would give users as well as
embedders much easier control over whether or not prefetching is enabled.
Status: NEW → ASSIGNED
Keywords: mozilla1.2, topembed
Priority: -- → P3
Whiteboard: [prefetch]
Target Milestone: --- → mozilla1.2beta
Please make this bug block Bug 121324 [Tracking bug for ANY changes to prefs
(additions, deletions, change in usage)].  Thanks.
Keywords: nsbeta1
Severity: normal → minor
Priority: P3 → P4
QA Contact: benc → tever
this is an app level UI issue rather than a core Gecko pref handling issue.
please renominiate topembed if mistaken.
Keywords: topembedtopembed-
jud: actually, the current preference is not fully dynamic.  so there would be a
tiny bit of backend work required to support a UI level pref.  i'll renominate
if fixing this bug ever becomes a real requirement.

-> future
Target Milestone: mozilla1.2beta → Future
-> 1.2 final as there appears to be a good number of requests for this UI
following the release of mozilla 1.2 beta.
Target Milestone: Future → mozilla1.2final
Attached patch v1 patch (obsolete) — Splinter Review
ok, this patch adds UI for the link prefetching pref to the Advanced tab.
Attached image screenshot (obsolete) —
Comment on attachment 104006 [details] [diff] [review]
v1 patch

i would change to pref to something like:

network.prefetch-next.enable

r=dougt
Attachment #104006 - Flags: review+
-> 1.3 alpha
Target Milestone: mozilla1.2final → mozilla1.3alpha
Attachment #104006 - Flags: superreview?(jaggernaut)
I'm not sure if the main Advanced panel is the best place for it. What about Cache?

Patrice, what do you think?
Oops, forgot to CC Patrice.

Patrice, see my previous comment.
i thought about advanced:cache too, but it is already fairly crowded.  however,
we have been meaning to clean up the advanced:cache preferences panel
(specifically, to remove the memory cache size setting).  perhaps this bug needs
to be blocked by that bug :-/
Target Milestone: mozilla1.3alpha → mozilla1.3beta
Blocks: 121324
--> suresh
Assignee: darin → suresh
Status: ASSIGNED → NEW
Jag and I are checking this and it seems to us that the best place is indeed the
Advanced Cache panel. What's the bug number for cleaning up that panel? 
Depends on: 188956
I've filed a new bug 188956 to cover cache cleanup issue. Even after we clean up
Cache panel, i'm not sure the real-estate is sufficient enough in that Panel.

How about we move prefetching pref to "HTTP Networking" pref panel?
Status: NEW → ASSIGNED
No longer depends on: 188956
Attached image updated Cache pref panel. (obsolete) —
This screenshot includes,
1. Removing memory cache info.
2. Adding pre-fetching pref to Cache panel.

To Do:
Replace KB with MB. (Bug 188956 will takes care of this)


How does this screenshot looks?
Attached patch patchSplinter Review
I'm hoping that this would fit on mac. If not, I'll seek Jatin's help to
rephrase the pre-fetching description in the pref panel.
Attachment #104006 - Attachment is obsolete: true
Comment on attachment 112225 [details] [diff] [review]
patch

carrying over dougt's previous review.
Attachment #112225 - Flags: superreview?(jaggernaut)
Attachment #112225 - Flags: review+
This screenshot includes rephrasing the pre-fetching description suggested by
Jatin. 

And this also fits well on Mac and Linux.
Attachment #104009 - Attachment is obsolete: true
Attachment #111653 - Attachment is obsolete: true
Attachment #112222 - Attachment is obsolete: true
Attachment #112225 - Flags: superreview?(jaggernaut) → superreview?(bryner)
Attachment #112225 - Flags: superreview?(bryner) → superreview?(alecf)
Comment on attachment 112225 [details] [diff] [review]
patch

Why the changes to switch AddProgressListener() from the progress object to the
doc loader service? is that supposed to be part of this patch?
sr=alecf if it is, but I'd like to see documentation in the patch and/or bug to
explain
Attachment #112225 - Flags: superreview?(alecf) → superreview+
Attachment #112225 - Flags: approval1.3b?
alecf: look closely.  no change.  i just moved the AddProgress call into a
helper function.  the prefetch service has always been a listener of the doc
loader service.
Comment on attachment 112225 [details] [diff] [review]
patch

a=asa (on behalf of drivers) for checkin to 1.3beta
Attachment #112225 - Flags: approval1.3b? → approval1.3b+
Fixed in trunk!
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment on attachment 112225 [details] [diff] [review]
patch

grammar check: switch "faster" and "quicker" in the messages actually checked
in :-P
In the dialog (captured in
http://bugzilla.mozilla.org/attachment.cgi?id=112313&action=view attachment) the
checkbox should actually be aligned to the *top* of "Prefetch web pages [...]
can load faster" text, instead of being align to the *middle* of it.
Attachment #104006 - Flags: superreview?(jaggernaut)
Sergey, that's a theme issue.

But the <hbox> shouldn't have flex="1", so I've filed bug 191282.
VERIFIED: Mozilla 1.4b, Mach-O.

Preferences | Advanced | Cache:
Link Prefetching
[x] Prefetch web pages when idle, so that links in web page desiged for
prefetching can load faster.


Note, the final pref is "network.prefetch-next", (suggestion in #7 was never taken)

I'll be updating the prefs docs and commiting the changes today:

http://www.mozilla.org/quality/networking/docs/netprefs.html
QA Contact: tever → benc
Summary: allow link prefetching to be disabled via user prefs → Prefs: link prefetching UI for (network.prefetch-next)
Whiteboard: [prefetch] → [prefetch] checklinux, checkwin
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: