How do I find missing images in Firefox debugging - firefox

In firefox, I have a few missing images being shown in the console like:
GET http://localhost/img/file.svg [HTTP/1.1 404 Not Found 1513ms]
Is there a way I can find where these images are being called from? I'm using a bootstrap template and would rather not go through every script to locate them. I'm sure they are being called from a style sheet.

Related

d3js not showing any objects on browser

I'm new to d3js and trying to vizualize a decision-tree from the following Github
https://github.com/fractalytics/sklearn-tree-d3js
when I download everything from above and open the index.html nothing shown on my web browser.
I swicthed from Chrome to FireFox but nothing happened.
What's wrong or missing in this case??
I tried some other examples like https://gist.github.com/ajschumacher/65eda1df2b0dd2cf616f
but got the same result. nothing shown on my browser.

Internal Links Not Working Convert .HTM to .pdf

I am trying to convert an .htm file from the SEC website to a .pdf and have the internal links work. I am successfully converting to .pdf using wkhtmltopdf, but all the internal links point me back to the first page.
wkhtmltopdf https://www.sec.gov/Archives/edgar/data/1594617/000119312514117433/d640354ds1a.htm test.pdf
It looks like there's an issue with wkhtmltopdf dealing with anchor tags that have no content. There's a PR that was opened in 2017 to resolve it, but it remains open.
As it turns out, your document does indeed have empty anchor tags, so that's probably the root cause:
<A NAME="toc640354_15"></A>
I would suggest using chrome to produce the pdf, with its --headless and --print-to-pdf flags. From your chrome installation directory, do:
chrome.exe --headless --disable-gpu --print-to-pdf="C:\path\to\file.pdf" https://www.sec.gov/Archives/edgar/data/1594617/000119312514117433/d640354ds1a.htm
Make sure you specify an absolute path to the output file or it doesn't seem to work, for whatever reason. The command will immediately return without any output or indication of success. Give it a few seconds to retrieve, render and write the file.
I tested with your document, and the links work perfectly.

Firefox add-on will not display images

I have a blank Firefox Add-On I made using the Getting Started Tutorial. When I run my extension using jpm run I observe the following.
If I navigate to any image it appears like this (image is displayed nicely in the centre):
However, I have the same image store in my extension under: ./data/test.jpg. When I navigate to resource://my-addon/data/test.jpg I get the following blank page:
The image is there, because if I hover over it in the inspector, it shows:
Am I doing something wrong, missing something in the docs about rendering images or is there a bug with how images are being rendered from the extension?
Include the self and then do
console.log(seld.data.url(''))
This will give you the id of your addon. It is very likely not my-addon it will be something like: jid1-4GP7z3tkUd3Tzg#jetpack - so your path to your image will be resource://jid1-4GP7z3tkUd3Tzg#jetpack/data/test.jpg.

Location of Firefox throbber/spinner image

I'm trying to locate the "throbber" (or "spinner") image used in the Firefox 3.6x chrome to show that a request is being processed:
Firefox throbber http://i49.tinypic.com/kd7bth.png
I'm not familiar with the source code structure for Firefox, and a simple search hasn't yielded the answer.
Does anyone know which file I'm looking for? (E.g. can you provide a link to the file in the Mercurial repository, or tell me how to find it?).
Inside of your Firefox installation it's inside chrome/classic.jar, the path is: skin/classic/global/media/throbber.png
I'm not sure where it is in the Mozilla repository though.
Here's some info on how to customize it: http://kb.mozillazine.org/Throbber_URL

IE web browser control res:// usage

I'm using the IWebBrowser2 control in my app and I have various html files that are stored as resources in the exe. To load these up I use the "res://" protocol. The problem is that with certain versions of IE the pages no longer load up, and instead just shows "Action Canceled, Internet Explorer was unable to link to the page requested."
The pages are referenced in the .rc script like so:
stats.html HTML DISCARDABLE "res\stats.html"
The res request looks like
res://C:\path\To\MyApp.exe/stats.html
This used to work just fine, at some point this behavior changed, presumably with a hot fix or something like that. Now, on my machine, it doesn't work. I have tried altering the res path to look like:
res://MyApp.exe/stats.html
that didn't work.
I then tried changing the rc script:
stats HTML DISCARDABLE "res\stats.html"
and the res path:
res://MyApp.exe/stats
Now it works! However this is really annoying to have to use this way (removing the "." and file extension from the resource name). Does anyone know if this is a bug? A feature? Why does this happen and is there another way around this?
Edit:
After playing around some more I found this to work:
stats.htm HTML DISCARDABLE "res\stats.html"
res://MyApp.exe/stats.htm
changing the ".html" extension in the resource name to ".htm" works but I have no idea why!
Make sure the Content Type is set correctly. Make sure that HKEY_CLASSES_ROOT.html has it's Content Type set to "text/html", otherwise strange things happen. Ditto for .htm as well.

Resources