Closed Bug 1569999 Opened 5 years ago Closed 5 years ago

Closing Firefox clears JavaScript files from Appcache

Categories

(Core :: Networking: Cache, defect)

69 Branch
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: ajohnson, Unassigned)

References

Details

Attachments

(3 files)

Attached file AppcacheTest.zip (deleted) —

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36

Steps to reproduce:

Testing using 69.0b8 (64-bit) on Windows 10

  1. download AppcacheTest.zip and create a website using the files
  2. navigate to AppCacheTest.html so it will down load the manifest
  3. Indexeddb Test to confirm that page works
  4. close Firefox completely
  5. go into airplane mode or shut server off
  6. re-open Firefox and navigate to indexeddb-test.html

Actual results:

The page loads but the Javascript fails to run. Related Error:
Loading failed for the <script> with source “https://ajohnson.imagetrend.com/FirefoxTest/dbTest.js”. indexeddb-test.html:38:1

Expected results:

The page should load and the test should run.

Hi @ajohnson, I've checked the issue on Windows 10 machine using FF versions: nightly 70.0a1, beta 69.0b9 & release 68.0.1 - cannot reproduce it. Further, I will attach a screenshot to see in my end how the dbTest.js is loaded with server off; also I will set a component on it, if isn't the proper one please fell free to change it.
Thanks.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Component: DOM: Core & HTML → Networking: Cache

Michal, could you take a look?
Thanks.

Flags: needinfo?(michal.novotny)
Flags: needinfo?(michal.novotny) → needinfo?(ajohnson)
Attached file main-log.txt (deleted) —

Here is the log when I go the indexeddb-test.html when the server is down. The error in the dev console is: Loading failed for the <script> with source “https://ajohnson.imagetrend.com/FirefoxTest/dbTest.js”.

Flags: needinfo?(ajohnson)
Flags: needinfo?(michal.novotny)

(In reply to ajohnson from comment #5)

Created attachment 9085770 [details]
main-log.txt

Here is the log when I go the indexeddb-test.html when the server is down. The error in the dev console is: Loading failed for the <script> with source “https://ajohnson.imagetrend.com/FirefoxTest/dbTest.js”.

Thanks for the logs, but it just shows that the cache entry was really not found in the cache:

2019-08-15 15:04:56.132000 UTC - [Parent 30868: Main Thread]: D/nsHttp nsHttpChannel::OnCacheEntryAvailable [this=0000016EC6A1C000 entry=0000000000000000 new=0 appcache=0000016EC69E5E20 status=804b003d mAppCache=0000016EC69E5E20 mAppCacheForWrite=0000000000000000]

More important is the log of loading resources that should cache the item.

Flags: needinfo?(michal.novotny) → needinfo?(ajohnson)
Attached file 29240-main-log.txt (deleted) —

Here is the log file when loading the cache. Let me know how else I can help.

Flags: needinfo?(ajohnson)
Flags: needinfo?(michal.novotny)

Since appcache is deprecated and we're in the process of removing it from Firefox, I say we close this as WONTFIX.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
Flags: needinfo?(michal.novotny)
Depends on: 1619673
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: