Closed Bug 1149350 Opened 10 years ago Closed 10 years ago

Force reload for apps

Categories

(DevTools Graveyard :: WebIDE, defect)

defect
Not set
normal

Tracking

(firefox40 fixed)

RESOLVED FIXED
Firefox 40
Tracking Status
firefox40 --- fixed

People

(Reporter: jryans, Assigned: jryans)

References

Details

Attachments

(1 file)

Myk mentioned on IRC that an app he works on occasionally runs with stale / cached scripts after installing a new version. While we don't yet have a clear STR, in discussion we noticed that we could be pass "force: true" when reloading to bypass the cache.
Summary: Force reload for apps? → Force reload for apps
Here is a sample change that does a "force reload" every time. myk, bdahl, can you try it and let me know if this helps?
Attachment #8585802 - Flags: feedback?(myk)
Attachment #8585802 - Flags: feedback?(bdahl)
I'm building with it now and will start using it afterward. I'll use it for a few days before reporting back, since the problem is intermittent, so it's hard to be sure.
Comment on attachment 8585802 [details] [diff] [review] 0001-Bug-1149350-Force-reload-for-apps.patch Ok, I've been using my custom build with this patch for a few days, and I haven't had the problem again, nor have I noticed any regressions. So this patch seems to address the problem, and at the very least it doesn't seem iatrogenic. I think we should take it!
Attachment #8585802 - Flags: feedback?(myk) → feedback+
Comment on attachment 8585802 [details] [diff] [review] 0001-Bug-1149350-Force-reload-for-apps.patch Review of attachment 8585802 [details] [diff] [review]: ----------------------------------------------------------------- Alex, should we just |force| reload like this in all cases, or make WebIDE on do so sometimes?
Attachment #8585802 - Flags: feedback?(bdahl) → review?(poirot.alex)
(In reply to J. Ryan Stinnett [:jryans] from comment #4) > Alex, should we just |force| reload like this in all cases, or make WebIDE > on do so sometimes? ..."only do so sometimes?"
Comment on attachment 8585802 [details] [diff] [review] 0001-Bug-1149350-Force-reload-for-apps.patch Review of attachment 8585802 [details] [diff] [review]: ----------------------------------------------------------------- Hum it looks like the current production code usages of reload always use force=true. (I mean the usages other than WebIDE ones, that are broken, per this bug) So I think it is valuable to make it by default. Only tests are calling reload without any argument, and I can easily imagine them failing because of that!
Attachment #8585802 - Flags: review?(poirot.alex) → review+
Assignee: nobody → jryans
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 40
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: