Open Bug 1704516 Opened 3 years ago Updated 3 years ago

Some DNS prefetch requests from HTMLDNSPrefetch are useless

Categories

(Core :: DOM: Networking, defect, P3)

defect

Tracking

()

People

(Reporter: kershaw, Unassigned)

Details

(Whiteboard: [necko-triaged])

Just found that the DNS prefetch requests created from here are not helpful. The reason is that the suffix of this origin attributes is empty (I guess that's because the element's doc is about:home).
For example, when opening a new tab, a prefetch request is created to fetch www.wikipedia.org. This creates a new record with a hash key [www.wikipedia.org]<> in DNS cache. Then, when a user navigates to www.wikipedia.org, another DNS query will be created with the hash key [www.wikipedia.org]<^partitionKey=%28https%2Cwikipedia.org%29>. Since the suffix of two hash keys are different, the previous prefetch request has no effect at all.

Component: DOM: Core & HTML → DOM: Networking
Severity: -- → S4
Priority: -- → P2
Whiteboard: [necko-triaged]
Priority: P2 → P3
You need to log in before you can comment on or make changes to this bug.