Closed
Bug 453459
Opened 16 years ago
Closed 16 years ago
Bug pages no longer added to bfcache due to unload listener on Window
Categories
(Bugzilla :: Bugzilla-General, defect, P2)
Tracking
()
VERIFIED
FIXED
Bugzilla 3.2
People
(Reporter: bzbarsky, Assigned: guy.pyrzak)
References
Details
(Keywords: regression)
Attachments
(3 files, 2 obsolete files)
350.09 KB,
patch
|
mkanat
:
review-
|
Details | Diff | Splinter Review |
222.98 KB,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
751 bytes,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
After the 3.2 upgrade, none of the bugzilla pages are added to bfcache, as far as I can see.
STEPS TO REPRODUCE:
1) Load https://bugzilla.mozilla.org/show_bug.cgi?id=452731
2) Load https://bugzilla.mozilla.org/show_bug.cgi?id=344559
3) Click the "Back" button in your browser
EXPECTED RESULTS: speedy back
ACTUAL RESULTS: slow back
NOTES: This is particularly bad when trying to go back to the page you get right after commenting, since that one requires a repost to actually show... which is undesirable.
ADDITIONAL INFORMATION: The issue seems to be that there is an unload listener attached to the Window (presumably by one of the copious scripts that the bug page is including). Any time that happens, we have to turn off bfcache.
I have to say I have a hard time believing we need an unload listener here.
In any case, this is making using Bugzilla pretty miserable, especially when following dependency chains.
Comment 1•16 years ago
|
||
I'm unable to duplicate this problem in Gran Paradiso 3.0.3pre. After adding mkanat and pyrzak to the CC and submitting, I clicked on bug 452731 in the dependency list, visited that bug, then hit the Back button, and got back here without having to reload (I see the list of addresses it emailed to at the top and everything).
Reporter | ||
Comment 2•16 years ago
|
||
OK, that could be just the HTTP cache being nicer to you than to me. Try this:
1) Load this bug page.
2) Run
javascript:document.documentElement.textContent='OK'; void(0)
from the URL bar.
3) Load google.com.
4) Hit back.
You should see the OK, not the bug page.
Comment 3•16 years ago
|
||
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b1pre) Gecko/20080902011844 SeaMonkey/2.0a1pre
After following the steps in comment #2:
At step 3, http://www.google.com/ auto-resends me to http://www.google.be/ (my IP address is 87.65.220.145 aka 145.220-65-87.adsl-dyn.isp.belgacom.be)
At step 4, I get back to the bug page, not to google.com and not to "OK".
If I click Forward before Commit, I'm back to Google.
Then Back brings me back to Bugzilla (after several seconds of the tab icon "throbbing"), and my partially-filled textarea (i.e., what I had already typed of this comment) is still there.
Then if I click the drop-down icon at the right end of my Location bar, "http://www.google.com/" is at top and "javascript:document.documentElement.textContent='OK'; void(0)" is second from top (both of them without double quotes of course).
I'm not sure if I have reproduced the bug. Boris, change the OS to All if I did.
Reporter | ||
Comment 4•16 years ago
|
||
> You should see the OK, not the bug page.
I thought this part was pretty clear. This bug is XP, of course, since it's a bug in the JS in bugzilla...
OS: Mac OS X → All
Hardware: PC → All
Comment 5•16 years ago
|
||
I also saw this issue several times within the last days. I already talked with Justdave on IRC but wasn't able to find reproducible STR. The pages are added to the bfcache but under some circumstances it doesn't work. Mostly I noticed that directly after I logged in. Opening other bugs in their own tab hasn't shown this issue.
Keywords: regression
Reporter | ||
Comment 6•16 years ago
|
||
In case it helps, here's the JS stack to the point where the window.addEventListener("onunload", ...) call happens:
(gdb) jsstack
0 [native frame]
1 anonymous(K = undefined, L = [function], N = "unload", M = [object Window @ 0xd15f220 (native @ 0xd15e34c)]) ["https://bugzilla.mozilla.org/js/yui/yahoo-dom-event.js":9]
this = [object Object]
2 anonymous() ["https://bugzilla.mozilla.org/js/yui/yahoo-dom-event.js":11]
n = undefined
EU = [object Object]
this = [object Window @ 0xd15f220 (native @ 0xd15e34c)]
3 <TOP LEVEL> ["https://bugzilla.mozilla.org/js/yui/yahoo-dom-event.js":9]
this = [object Window @ 0xd15f220 (native @ 0xd15e34c)]
Looks like the
EU._simpleAdd(window,"unload",EU._unload)
call in that mess.
Comment 7•16 years ago
|
||
pyrzak, which patch added this regression? If the patch has already been checked in upstream, then we should move the bug to Bugzilla.
Assignee | ||
Comment 8•16 years ago
|
||
This is caused by YUI getting added to Bugzilla.
the fix is to remove the unload events in FF from the unload and instead add it to the pagehide event. I will get to work on this when I can unless there is another yui/js person out there who would like to take on this one?
Assignee | ||
Comment 9•16 years ago
|
||
Comment 10•16 years ago
|
||
(In reply to comment #9)
> also filed
> https://sourceforge.net/tracker/index.php?func=detail&aid=2091763&group_id=165715&atid=836476
> against YUI
Boris: YUI says WONTFIX for that, do you want to respond on the linked bug? (If they don't fix it, there's a chance that we won't fix it either.)
Reporter | ||
Comment 11•16 years ago
|
||
I commented, but I'm not going to spend time setting up an account there.
Honestly, this is pretty negatively impacting my work with bugzilla: I use browser history to go through things I just did a _lot_, and this bug plus whatever HTTP caching issue there seems to be which prevents me seeing the results of POSTs makes that well-nigh impossible.
Comment 12•16 years ago
|
||
Further it will cause dataloss. I was already affected by this multiple times now. Writing a comment, re-setting some flags and checking the history.. Ouch! When you go back you will get the alert. Either you cancel it and loose all modifications or clicking yes and run into a mid-air collision. This impacts the work on Bugzilla drastically. Please fix that!
Updated•16 years ago
|
Assignee: nobody → general
Component: Bugzilla: Other b.m.o Issues → Bugzilla-General
Product: mozilla.org → Bugzilla
QA Contact: other-bmo-issues → default-qa
Version: other → 3.2
Updated•16 years ago
|
Priority: -- → P2
I don't touch as many bugs a day as bz, but I do also go back and forward between bugs (and between bugs and patches, where bfcache at least works in direction) extensively, and there is a really noticeable delay. This (plus whatever is slowing down pageload significantly) makes me feel like I'm using Bugzilla on dialup again; I can't imagine what it feels like to Bugzilla users who actually *are* on dialup :(
(In reply to comment #8)
> the fix is to remove the unload events in FF from the unload and instead add it
> to the pagehide event.
If you're going to be hacking this, please be sure to check for Gecko rather than just Firefox.
Assignee | ||
Comment 14•16 years ago
|
||
boris, smokey, I was wondering if you all could give me more specific info about the slow down, for example are we 100% sure it is the JS? Try turning off the JS and does it do what you all were used to?
If it is all the JS, then I would like to get some info about the before and after (although if that is the case I can figure it out myself with turning off the JS).
I'm not sure i have as accurate an idea as you two do, so please let me know. I am equally interested in fixing this for you guys.
Reporter | ||
Comment 15•16 years ago
|
||
Assignee | ||
Comment 16•16 years ago
|
||
ok, we've got the fix and tested it (the solution from the YUI guys), we'll make sure to check for any gecko based browser. This didnt seem to work for webkit though. I'm not sure if they have BF cache.
Assignee | ||
Comment 17•16 years ago
|
||
Attachment #336786 -
Flags: review?(mkanat)
Assignee | ||
Updated•16 years ago
|
Assignee: general → nobody
Component: Bugzilla-General → Bugzilla: Other b.m.o Issues
Product: Bugzilla → mozilla.org
QA Contact: default-qa → other-bmo-issues
Version: 3.2 → other
Assignee | ||
Comment 18•16 years ago
|
||
caused by YUI upgrade. Revert fixes it.
Assignee | ||
Updated•16 years ago
|
Assignee: nobody → guy.pyrzak
Comment 19•16 years ago
|
||
Comment on attachment 336786 [details] [diff] [review]
reverts back to YUI 2.3.1 which doesn't break bf_cache for bmo
You replaced calendar.js with a non-minified version.
Attachment #336786 -
Flags: review?(mkanat) → review-
Comment 20•16 years ago
|
||
(In reply to comment #19)
> (From update of attachment 336786 [details] [diff] [review])
> You replaced calendar.js with a non-minified version.
Please make a delta patch from the last one for that, I already commited it.
Assignee | ||
Comment 21•16 years ago
|
||
Attachment #336983 -
Flags: review?(mkanat)
Comment 22•16 years ago
|
||
Comment on attachment 336983 [details] [diff] [review]
delta patch to change calendar with minimized version
That doesn't look like a delta--I don't see a change to the non-monified calendar.js?
Assignee | ||
Comment 23•16 years ago
|
||
forgot to run update first
Attachment #336983 -
Attachment is obsolete: true
Attachment #336989 -
Flags: review?(mkanat)
Attachment #336983 -
Flags: review?(mkanat)
Comment 24•16 years ago
|
||
Comment on attachment 336989 [details] [diff] [review]
delta patch to change calendar with minimized version V2
Lookz gewd 2 me.
Attachment #336989 -
Flags: review?(mkanat) → review+
Comment 25•16 years ago
|
||
Yeah, this is bad, what's holding this up?
Comment 26•16 years ago
|
||
(In reply to comment #25)
> Yeah, this is bad, what's holding this up?
me being on call last week and getting paged out of bed 10 times a night all week and being dead tired; and still catching up on bugmail since then.
I'll get this committed and deployed tonight.
Comment 27•16 years ago
|
||
Or today since I fell asleep on it again. :(
Committing to: /var/www/html/bmo/3.2/
modified js/yui/calendar.js
Committed revision 6145.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment 28•16 years ago
|
||
This is deployed to production, you'll probably have to shift+reload to pick it up, since the js files tend to get cached by your browser.
Comment 29•16 years ago
|
||
Did you commit the "reverts back" patch, too? (The one with review-; I didn't see the commit message.)
Comment 30•16 years ago
|
||
Yeah, I did, see comment 20. That's why I asked for a delta patch instead of a replacement. :)
Comment 31•16 years ago
|
||
Max, does it mean it isn't completely fixed yet? I ask because I can still see it on bmo with the following steps:
1. Log-off
2. Goto https://bugzilla.mozilla.org/show_bug.cgi?id=453459
3. Log-in (redirected to the above link)
4. Click on History
5. Go back
I still get ask if I want to resent the information.
Comment 32•16 years ago
|
||
(In reply to comment #31)
> 1. Log-off
> 2. Goto https://bugzilla.mozilla.org/show_bug.cgi?id=453459
> 3. Log-in (redirected to the above link)
> [snip]
No, that's normal, you logged in and so you actually posted data.
If you're seeing it on some other page, shift-refresh to get the new JS files.
Comment 33•16 years ago
|
||
Ok, but following steps should use bfcache, right?
1. Open a bug
2. Goto History
3. Go back
With step 3 the page gets completely reloaded and it takes around 4 seconds until it has been finished. It's still very annoying and doesn't seem to be fixed when comparing to the "View Bug Activity" behavior on Bugzilla 3.0 branch.
Comment 34•16 years ago
|
||
(In reply to comment #28)
> This is deployed to production, you'll probably have to shift+reload to pick it
> up, since the js files tend to get cached by your browser.
Is this really deployed to production? AFAICS, this is only deployed on https://bugzilla-stage-tip.mozilla.org/. Because none of the recent checkins is visible on b.m.o, only on stage.
Comment 35•16 years ago
|
||
It seems to work now even on bmo.
(In reply to comment #32)
> (In reply to comment #31)
> > 1. Log-off
> > 2. Goto https://bugzilla.mozilla.org/show_bug.cgi?id=453459
> > 3. Log-in (redirected to the above link)
> > [snip]
>
> No, that's normal, you logged in and so you actually posted data.
And this is not normal but also a regression. Please compare the given steps with the 3.0 branch on landfill by using following url:
http://landfill.bugzilla.org/bugzilla-3.0-branch/show_bug.cgi?id=3405
You will see when going back from the activity page that there is no sheet which asks for resending the data. Perhaps it should be filed as a separate bug?
(In reply to comment #34)
> (In reply to comment #28)
> > This is deployed to production, you'll probably have to shift+reload to pick it
> > up, since the js files tend to get cached by your browser.
>
> Is this really deployed to production? AFAICS, this is only deployed on
> https://bugzilla-stage-tip.mozilla.org/. Because none of the recent checkins is
> visible on b.m.o, only on stage.
When I shift-reload this bug, click the History link up in the Modified line, and press back, I'm still getting a slow load and lots of "Waiting for bmo" "Contacting bmo" "Transferring data from bmo" messages in the status bar while I wait for this bug to load. It certainly doesn't seem like a fix is on production-bmo (or else the fix is not working).
Reporter | ||
Comment 37•16 years ago
|
||
> No, that's normal, you logged in and so you actually posted data.
Yes, but the point is that we shouldn't be doing _any_ server access if bfcache is working. So POST vs GET doesn't matter: we're just restoring the DOM, not hitting the HTTP layer at all. If things work.
Comment 38•16 years ago
|
||
The patches that are on here are deployed on bugzilla.mozilla.org. I deployed this one and the EXPIRED thing here first before I merged in the rest of the stuff from the 3.2 branch. So if this is still happening on bmo then this bug isn't really fixed.
(In reply to comment #35)
> And this is not normal but also a regression. Please compare the given steps
> with the 3.0 branch on landfill by using following url:
>
> http://landfill.bugzilla.org/bugzilla-3.0-branch/show_bug.cgi?id=3405
This is not a valid test, because you're not using SSL. The fact that SSL is in use blows away some of Firefox's normal caching behaviors.
Try it with https://landfill.bugzilla.org/bugzilla-3.0-branch/show_bug.cgi?id=3405 instead.
Reporter | ||
Comment 39•16 years ago
|
||
ssl vs non-ssl doesn't affect bfcache behavior.
Reporter | ||
Comment 40•16 years ago
|
||
So this is odd. I can confirm that the pageload is much faster now, for whatever reason. At the same time, we're still not hitting the bfcache (based on some stepping through in gdb), because the unload listener added with the stack of comment 6 is still there, as far as I can tell.
Comment 41•16 years ago
|
||
Based on Boris comment we should reopen this bug.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 42•16 years ago
|
||
Yeah, I can confirm that this is really not fixed yet.
Status: REOPENED → NEW
Comment 43•16 years ago
|
||
quite painful on a hotel - less than optimal broadband - connection
Comment 44•16 years ago
|
||
(In reply to comment #43)
> quite painful on a hotel - less than optimal broadband - connection
You're telling me. Bugzilla from Thailand was atrocious. I'm not sure how Gary manages from Singapore. ;)
But really, what work can I do to help get this fixed? It's clearly still a problem.
Comment 45•16 years ago
|
||
fixing bug 457116 may help some. I also note there that removing most of my saved searches from the footer seemed to help.
Is there any bug that addresses time to complete queries (not render)? That seems to have gotten worse, but it wouldn't be this bug.
Comment 46•16 years ago
|
||
Did someone investigate if there was a bug in Firefox itself?
Comment 47•16 years ago
|
||
(In reply to comment #46)
> Did someone investigate if there was a bug in Firefox itself?
Interesting question. I tried it with Firefox 2.0.0.17 in parallel and noticed a big performance win. While I had to wait around 10s to go back from an attachment with 3.0.4pre it only takes ~1s with 2.0.0.17. A good test case will be bug 340535 with 253 comments at the moment. That behavior gives really the feeling that we have a regression in Firefox 3.
Comment 48•16 years ago
|
||
(In reply to comment #47)
Where you logged in into bugzilla with Fx 2.0.0.17?
I just did a test: with bug 340535, clicking on 'history link' and back;
* FX 3, not logged in: fast
* Camino 2.0a1pre, logged in into bugzilla: rather slow, took several seconds to go back to the bug page
* Minefield latest, logged in: same as Camino.
* WebKit latest nightly, not logged in: real slow, statusbar shows 'connecting to b.m.o'. I've never seen WebKit so slow.
The 'history' link has always been acceptably fast, I see the issue much more often with attachements, esp if those are images.
Comment 49•16 years ago
|
||
Could someone CC some of the bfcache experts here? I don't know who they are. :) And if the regression is confirmed, then we should close this bug and file a separate one in the appropriate product/component.
Comment 50•16 years ago
|
||
I was able to identify the problem, at least for me. As what it looks like Firebug is causing this problem. After some suspending/resuming actions it resolves the issue and bfcache is working properly and pages are displayed immediately when going back and forward. Anyone who can confirm that?
Comment 51•16 years ago
|
||
(In reply to comment #49)
> Could someone CC some of the bfcache experts here?
I believe Boris qualifies as that.
Comment 52•16 years ago
|
||
(In reply to comment #45)
> I also note there that removing most of my
> saved searches from the footer seemed to help.
Yep, that improves things a lot here.
Comment 53•16 years ago
|
||
How many saved searches do you have in your footer? I have 38, but the number shouldn't matter at all.
Comment 54•16 years ago
|
||
(In reply to comment #53)
I had twelve, reduced to four. It makes a real difference. That may also sort of confirm my comment 48: when not logged in, no saved searches.
Doesn't explain the WebKit slowness, though. But maybe I just hit b.m.o on a slow moment when I tested it there.
Comment 55•16 years ago
|
||
(In reply to comment #54)
> I had twelve, reduced to four. It makes a real difference.
Could be due to bug 364162.
Comment 56•16 years ago
|
||
(In reply to comment #48)
> I just did a test: with bug 340535, clicking on 'history link' and back;
Could you run the same tests again, now with JS disabled?
Comment 57•16 years ago
|
||
(In reply to comment #50)
> I was able to identify the problem, at least for me. As what it looks like
> Firebug is causing this problem. After some suspending/resuming actions it
> resolves the issue and bfcache is working properly and pages are displayed
> immediately when going back and forward. Anyone who can confirm that?
This is just FYI regarding Firebug: listens for 'pagehide' on top windows and 'unload' on frames. If pagehide fires and the page is not cached, then listens for unload. I know of one bug involving Firebug losing track after forward and back.
Comment 58•16 years ago
|
||
(In reply to comment #47)
> (In reply to comment #46)
> > Did someone investigate if there was a bug in Firefox itself?
>
> Interesting question. I tried it with Firefox 2.0.0.17 in parallel and noticed
> a big performance win. While I had to wait around 10s to go back from an
> attachment with 3.0.4pre it only takes ~1s with 2.0.0.17. A good test case will
> be bug 340535 with 253 comments at the moment. That behavior gives really the
> feeling that we have a regression in Firefox 3.
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.18pre) Gecko/2008092803 BonEcho/2.0.0.18pre
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b1pre) Gecko/20080928001417 SeaMonkey/2.0a2pre
Tried to compare it by opening bug 340535 in a new tab. No really significant difference between BonEcho [aka Fx2 nightly] and SeaMonkey when logged in (maybe 10 seconds or so, counting mentally, not clocking). Slightly faster when not logged-in (tested in BonEcho), but much less than 10 times faster.
Reporter | ||
Comment 59•16 years ago
|
||
> Could someone CC some of the bfcache experts here?
That would be me, or at least the closest you'll find active. Seriously, comment 40 is the current state of things as far as I can tell. If someone can point me at a previous-version install of Bugzilla, I can check what the behavior was there.
Comment 60•16 years ago
|
||
I was talking with pyrzak right now and he said he knows how to fix this issue:
<pyrzak> Disabling the current behavior is trivial:
YAHOO.util.Event._simpleRemove(window, "unload", YAHOO.util.Event._unload);
He said he would do it tonight. Let's wait for his patch to be attached, tested and applied to b.m.o, then let's discuss again if the issue is still here. :)
Comment 61•16 years ago
|
||
(In reply to comment #59)
> If someone can point me at a previous-version install of Bugzilla, I can check
> what the behavior was there.
https://bugzilla-stage.mozilla.org/ is still there running the old 3.0 code with an old snapshot. I was going to clone the current production into there (and move to 3.4/trunk on bugzilla-stage-tip) eventually, but I haven't gotten around to it yet.
Comment 62•16 years ago
|
||
except that the database moved and the config didn't get updated, should have that fixed in a few minutes.
Comment 63•16 years ago
|
||
some stopwatch timings on using this bug as the testcase on a dell AMD Turion, wireless G. Connection varies between 100-500KB/sec inbound, enough to account for variation in times. Each test was run 5-6 times. clean profile.
logged not logged in* not logged in
in* logged in js off js off
FF 2.0.0.12 6.2-8.3 5.1-6.4 4.2-4.9 3.6-4.1
FF 3.0.2 4.4-5.8 3.7-4.2 2.7-3.7 2.7-3.5
FF 3.1b1pre 4.0-4.8 3.7-4.7 3.1-4.1 2.6-3.7
* bz account with editbugs and 6 saved searches
conclusions:
- v2.x looks like slower than v3.anything
- v3.1 looks faster than v3.0 (mixed results)
- js off ~1 second faster all versions
- not logged in ~ 1 second faster (js=off/on minor or no impact)
- type of account maybe makes ~10% difference
sadly, not able to control for connection speed nor bugzilla response time.
3??k logged in, with saved sesarches (didn't get to save it before comment 61+62
344k logged in, no saved sesarches
313k logged in, "no privs" account
288k not logged in
NOTE: 36k keywords array is ALWAYS loaded, even when not logged in (Bug 457116)
comment 45 based on reducing 61 saved searches to 7.
Assignee | ||
Comment 64•16 years ago
|
||
Attachment #340869 -
Flags: review?(mkanat)
Attachment #340869 -
Flags: review?(justdave)
Comment 65•16 years ago
|
||
(In reply to comment #64)
> Created an attachment (id=340869) [details]
> Patch v1
I have a few questions:
Is that unload listener only added when you use certain YUI controls, or is it added by dom-event?
How bad are the memory leaks that this will cause in IE?
Why do you have to use a seemingly-private function (that begins with an underscore) to remove the event?
Comment 66•16 years ago
|
||
(In reply to comment #65)
> Why do you have to use a seemingly-private function (that begins with an
> underscore) to remove the event?
I can answer this question: because one of the admins of the YUI project told him to do this.
Assignee | ||
Comment 67•16 years ago
|
||
(In reply to comment #65)
> Is that unload listener only added when you use certain YUI controls, or is
> it added by dom-event?
It is added by event. See the code in YUI for more info
> How bad are the memory leaks that this will cause in IE?
No idea! We could make this only happen for firefox, just an if statement.
> Why do you have to use a seemingly-private function (that begins with an
> underscore) to remove the event?
YUI dude said so...
I don't really have many answers for this one, I'm not even sure if this does anything(i don't know how to observe the bfcache)! So perhaps Boris should review this instead of max.
Reporter | ||
Comment 68•16 years ago
|
||
> i don't know how to observe the bfcache
See comment 2 for tasty easy-to-follow steps to do just that. ;)
Comment 69•16 years ago
|
||
(In reply to comment #68)
> See comment 2 for tasty easy-to-follow steps to do just that. ;)
Without the patch, I get the bug page. With the page, I get "OK".
Comment 70•16 years ago
|
||
(In reply to comment #69)
> Without the patch, I get the bug page. With the page, I get "OK".
Sorry: s/the page/the patch/.
IE has <!--[if IE]> <![endif]-->. It would be great if Gecko had something similar, so that we could do it for Gecko-based browsers only. (I think we already suggested this somewhere.)
Assignee | ||
Comment 71•16 years ago
|
||
Attachment #340869 -
Attachment is obsolete: true
Attachment #340980 -
Flags: review?(LpSolit)
Attachment #340869 -
Flags: review?(mkanat)
Attachment #340869 -
Flags: review?(justdave)
Comment 72•16 years ago
|
||
I need to move this bug back into the Bugzilla product so that I can set flags correctly. Moreover, pyrzak's patch must land upstream; it's not specific to b.m.o.
Component: Bugzilla: Other b.m.o Issues → Bugzilla-General
Product: mozilla.org → Bugzilla
QA Contact: other-bmo-issues → default-qa
Target Milestone: --- → Bugzilla 3.2
Version: other → 3.2
Comment 73•16 years ago
|
||
Comment on attachment 340980 [details] [diff] [review]
Patch v2
Seems to work fine, and the test condition will only remove the listener if it's a Gecko-based browser. So this eliminates mkanat's worries about memory leaks in IE. r=LpSolit
Attachment #340980 -
Flags: review?(LpSolit) → review+
Comment 74•16 years ago
|
||
Obviously a blocker. I would still like a second review before approving it.
Status: NEW → ASSIGNED
Flags: blocking3.2+
Flags: approval?
Flags: approval3.2?
Comment 75•16 years ago
|
||
Patch v2 is now deployed on https://bugzilla-stage-tip.mozilla.org/
Comment 76•16 years ago
|
||
bz, could you test on the installation given in comment 75?
(In reply to comment #75)
> Patch v2 is now deployed on https://bugzilla-stage-tip.mozilla.org/
bfcache seems to be working for me in a few simple tests on that install--except changes made to the keyword field (but not committed before leaving the page) aren't remembered on going back; I assume that will go away when the keyword chooser is removed?
Comment 78•16 years ago
|
||
(In reply to comment #77)
> I assume that will go away when the keyword chooser is removed?
Removed?
Comment 79•16 years ago
|
||
My concern is that now we have a working bfcache, are some of our onload (or onDOMReadyState) events unnecessary? Will this break YUI in any way in Firefox?
Comment 80•16 years ago
|
||
(In reply to comment #78)
> (In reply to comment #77)
> > I assume that will go away when the keyword chooser is removed?
>
> Removed?
We removed the chooser upstream. bmo has apparently decided to use an unreviewed patch to put in a different keyword autocomplete system.
(In reply to comment #80)
> (In reply to comment #78)
> > (In reply to comment #77)
> > > I assume that will go away when the keyword chooser is removed?
> >
> > Removed?
>
> We removed the chooser upstream. bmo has apparently decided to use an
> unreviewed patch to put in a different keyword autocomplete system.
Boy, that's not at all clear from bug 452734 :P
Assignee | ||
Comment 82•16 years ago
|
||
(In reply to comment #79)
> My concern is that now we have a working bfcache, are some of our onload (or
> onDOMReadyState) events unnecessary? Will this break YUI in any way in Firefox?
I dunno (that's a good qa question) but we can't get rid of the onDOMReady stuff b/c IE and safari and other browsers still need it (only firefox has bfcache as far as I know). I would hope those events wouldn't get fired when bfcache is being used.
Comment 83•16 years ago
|
||
As none of us really knows the answer for comment 79, we will check in this patch as is and see what happens.
Flags: approval?
Flags: approval3.2?
Flags: approval3.2+
Flags: approval+
Reporter | ||
Comment 84•16 years ago
|
||
> bz, could you test on the installation given in comment 75?
Looks good to me.
Assignee | ||
Comment 85•16 years ago
|
||
Checking in template/en/default/global/header.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/global/header.html.tmpl,v <-- header.html.tmpl
new revision: 1.59; previous revision: 1.58
done
Checking in template/en/default/global/header.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/global/header.html.tmpl,v <-- header.html.tmpl
new revision: 1.56.2.3; previous revision: 1.56.2.2
done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago → 16 years ago
Resolution: --- → FIXED
Comment 86•16 years ago
|
||
Bfcache works fantastic now when navigating forwards and backwards through bugs. Looks like it's fixed now. Boris, can you agree?
Reporter | ||
Comment 87•16 years ago
|
||
I'm not getting that on bmo in my debug build. I've tried shift-reloading and I've tried clearing cache, but there is still an unload listener...
Comment 88•16 years ago
|
||
This isn't on the production bmo server yet, just on the staging server mentioned in comment 75. If you sign off on it there I'll deploy it.
Reporter | ||
Comment 89•16 years ago
|
||
Oh. I did that in comment 84. ;)
(In reply to comment #88)
> This isn't on the production bmo server yet, just on the staging server
> mentioned in comment 75. If you sign off on it there I'll deploy it.
Is there an ETA for getting this deployed on bmo? It'd probably relieve half of my pain from bug 453584....
Comment 91•16 years ago
|
||
(In reply to comment #90)
> Is there an ETA for getting this deployed on bmo?
As soon as someone helps justdave resolving conflicts: http://pastebin.mozilla.org/555012
Comment 92•16 years ago
|
||
Or we can just skip merging the rest of 3.2 and just take this.
Committing to: bzr+ssh://dm-bugstage01/var/www/html/bmo/3.2/
modified template/en/default/global/header.html.tmpl
Committed revision 6151.
And deployed to production.
Updated•16 years ago
|
Status: RESOLVED → VERIFIED
Comment 93•16 years ago
|
||
Just a question. Does bfcache doesn't catch the following trace?
1. File a new bug with an attachment or just attach an attachment to an already existing bug
2. Commit the change
3. Click on the newly added attachment
4 [review]. Click the back button
Why the former page cannot be displayed without reloading its content? It's really annoying because you cannot go back directly to the bug report after you did step 3.
Reporter | ||
Comment 94•16 years ago
|
||
If you don't get back the page from after step 2, then bfcache didn't happen.
Comment 95•16 years ago
|
||
(In reply to comment #9)
> also filed
> https://sourceforge.net/tracker/index.php?func=detail&aid=2091763&group_id=165715&atid=836476
> against YUI
This bug has been moved to a new tracking system with little indication at the old address of where to go for the followup; then the original bug has been CLOSED which forbids adding new comments (such as this one). After jumping through several hoops, I found the new ticket (ASSIGNED) at http://yuilibrary.com/projects/yui2/ticket/2091763
You need to log in
before you can comment on or make changes to this bug.
Description
•