Closed Bug 918293 Opened 11 years ago Closed 6 years ago

loading favicon not included in webdeveloper-console

Categories

(DevTools :: Netmonitor, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: philipp, Unassigned)

References

Details

the loading of favicons is not logged in the network-section of the developer console. since favicons now also seem to be able to break a secure connection when loaded through http (see bug 878153), it is difficult to diagnose this with firefox' own developer tools, since the favicon won't show up as mixed content...
Component: Untriaged → Developer Tools: Netmonitor
IIRC favicons are loaded by the outer window, while the rest of the page is loaded by the inner window. Mihai is this accurate? Does the network actor filter out anything not coming from the inner window?
All favicons are loaded by the tab browser - the network requests point to the chrome window (browser.xul). As such, the network actor filters these requests out. I seem to remember discussing this issue with Tanvi or Ivan from the security team. I'm not sure how we can fix this bug. Do you have any ideas?
Status: UNCONFIRMED → NEW
Ever confirmed: true
I think we should just special-case favicons in this case and include them in the monitored requests.
(In reply to Panos Astithas [:past] from comment #3) > I think we should just special-case favicons in this case and include them > in the monitored requests. How should we do this? With the available network request info I am not sure how we can safely special-case favicons.
Maybe we could use nsIFaviconService to find out the favicon URL and transmit the protocl request out of sequence. Here is an algorithm that should work: 1. On each network request, check if the favicon URL is known and if not, use the nsiFaviconService to get it and store it 2. Use the existing filter for the request a. If the favicon is known, create a protocol event if the filter matches or the request matches the favicon URL b. If the favicon is not known, store the request temporarily 3. When we learn about the favicon URL, go over the cache of rejected-but-temporarily-stored requests, find the favicon request and create a protocol event for it. Then, remove the cache and store the favicon to short-circuit this logic for future requests. I haven't looked very carefully into the available APIs, but I think this should work. We could also try to find someone experienced in how necko/places/whetever handles favicons and ask for a better idea!
Product: Firefox → DevTools
I suspect this will be fixed by bug 1453751
Depends on: 1453751
Indeed, that fixed it. I verified it by opening bugzilla.mozilla.org while looking at the network panel.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.