Open Bug 445436 Opened 18 years ago Updated 3 years ago

Save Page As says source file could not be read if a host linked in the page is set to 127.0.0.1 in hosts file

Categories

(Toolkit :: Downloads API, defect)

x86
Windows 2000
defect

Tracking

()

UNCONFIRMED

People

(Reporter: buaku69, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0 I have ad.doubleclick.net set to 127.0.0.1 in my hosts file to block that domain. If I try and save a website that has links to ad.doubleclick.net I get an error along the lines of: C:\Path\To\Folder\somefile could not be saved, because the source file could not be read. The download manager will show the download of that page failed. Now if I press the retry button in the download manager, the page will successfully save without giving me any errors. Reproducible: Always Steps to Reproduce: 1. Add an entry for ad.doubleclick.net to your hosts file pointing it to 127.0.0.1 2. Go to http://allrecipes.com/ 3. In Firefox go to File->Save Page As... (Type: Web Page, complete) and click Save 4. Notice the error dialogs, and click through the error dialogs. 5. Press the "Retry" button in the download manager. Actual Results: After the download manager pops up and starts saving I get the following error: "D:\Downloads\All recipes - complete resource for recipes and cooking tips_files\home_003 could not be saved, because the source file could not be read. Try again later, or contact the server administrator." Clicking OK produces a few more error dialogs concerning files named "home_002" and "home". Pressing the retry button on the Download Manager successfully saves the page without error. Expected Results: The page should be saved with no errors. I would expect the offending files to not be saved. The files giving the errors are not saved. This I expect. In firefox 2.x these same steps would not produce any error, and the page would be saved on the first try. Sometimes when clicking through the "file could not be saved" boxes I would get a blank Message Box with an OK and a Cancel button, but no text. I cannot reproduce this consistently though. I did notice it happen once after a fresh install of Firefox 3.0 though.
Summary: Save Page As says source file could not be read if a host linked the page is set to 127.0.0.1 in hosts file → Save Page As says source file could not be read if a host linked in the page is set to 127.0.0.1 in hosts file
Product: Firefox → Toolkit
The same problem with another details. I have google-analytics.com set to 127.0.0.1 in my hosts file to block that domain. Actually I have many other records with purpose to prevent access to sites in those domains. Every time when I try to save a page content that uses Google Analytic service, I get a warning message such as this "......_files\ga.js could not be saved, because the source file could not be read. Try again later, or contact the server administrator." and the page content (not "ga.js") is not saved. But after "Retry" action on the download list item with a link to this page Firefox saves it successfully without any messages. This happens because of lack of file "ga.js" (code part for analyzing website by Google Analytic service). Steps to Reproduce : 1. --//-- "google-analytics.com" --//-- 2. Go to any web site which uses GA trough script with link to "google-analytics.com", for example: http://www.rabinphotography.com/ http://peter-pho2.blogspot.com/ 3-4-5 - the same steps Expected Results: Firefox should save content of a page in spite of lack of "some_script.js" (i.e., Google's "ga.js") and if there are some problems have occurred, they may be reported to the user through warnings or context messages of download item and a user would decide what to do with problems occurred but the target content of the page would be saved.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.