Closed
Bug 597644
Opened 14 years ago
Closed 14 years ago
Status of "Subscribe to This Page…" menu and toolbar button is not updated when Back/Forward Navigate
Categories
(Firefox :: Menus, defect)
Firefox
Menus
Tracking
()
VERIFIED
FIXED
Firefox 4.0b8
Tracking | Status | |
---|---|---|
blocking2.0 | --- | beta8+ |
People
(Reporter: alice0775, Assigned: Gavin)
References
Details
(Keywords: regression, Whiteboard: [has patch][has review])
Attachments
(1 file)
(deleted),
patch
|
dao
:
review+
|
Details | Diff | Splinter Review |
Build Identifier:
http://hg.mozilla.org/mozilla-central/rev/6ec3a45f4309
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b7pre) Gecko/20100917 Firefox/4.0b7pre ID:20100917195633
After landing of Bug 578967,
Status of "Subscribe to This Page…" menu is not updated when Back/Forward Navigate between page which deliver RSS and not deliver RSS.
Reproducible: Always
Steps to Reproduce:
1. Start Minefield with new profile
2. Go page that does not deliver the RSS (ex. about:home , https://bugzilla.mozilla.org/ )
3. Go page that delivers RSS(ex. http://planet.mozilla.org/ )
4. You will see that "Subscribe to This Page…" is enabled.
5. Click Back Button and Click Forward Button
6. Check status of "Subscribe to This Page…"
Actual Results:
"Subscribe to This Page…" is disabled state.
Expected Results:
State of "Subscribe to This Page…" should be updated.
Comment 1•14 years ago
|
||
Does this occur with the Firefox button menu's 'Subscribe' item too?
Reporter | ||
Comment 2•14 years ago
|
||
(In reply to comment #1)
> Does this occur with the Firefox button menu's 'Subscribe' item too?
Yes.
It seems that regressed before landing Bug 578967 .
So. Please ignore "After landing of Bug 578967," in comment #0.
Reporter | ||
Comment 3•14 years ago
|
||
"Subscribe to This Page…"in Menu bar is broken in range as follows.
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=f4ef40336cc6&tochange=2eb351cc47d3
Reporter | ||
Comment 4•14 years ago
|
||
I am not sure, but the following modification fix this in my environment.
src/browser/base/content/browser.js
// See bug 358202, when tabs are switched during a drag operation,
// timers don't fire on windows (bug 203573)
if (aRequest)
- setTimeout(function () { XULBrowserWindow.asyncUpdateUI(); }, 0);
+ setTimeout(function () { XULBrowserWindow.asyncUpdateUI(); }, 100);
else
this.asyncUpdateUI();
},
Reporter | ||
Comment 5•14 years ago
|
||
This problem also happens on Linux.
http://hg.mozilla.org/mozilla-central/rev/fc8d8dfee20f
Mozilla/5.0 (X11; Linux i686; rv:2.0b7pre) Gecko/20100918 Firefox/4.0b7pre ID:20100918030749
And I got same regression range(See comment #3) for Linux build.
Updated•14 years ago
|
blocking2.0: --- → ?
Reporter | ||
Comment 6•14 years ago
|
||
When I revert to changeset 2f5d97dd7e56 in local build, then the problem is gone.
So, I guess that this problem is caused by changeset 350ffc1d793a of bug 512645
Reporter | ||
Updated•14 years ago
|
Blocks: 512645
Keywords: regression
Comment 7•14 years ago
|
||
Assigning to vlad since he regressed it! :)
Assignee: nobody → vladimir
blocking2.0: ? → beta8+
Updated•14 years ago
|
Summary: Status of "Subscribe to This Page…" menu is not updated when Back/Forward Navigate → Status of "Subscribe to This Page…" menu and toolbar button is not updated when Back/Forward Navigate
Assignee | ||
Comment 10•14 years ago
|
||
This wasn't really "caused by" bug 512645 - that bug just made the existing race condition more likely to expose the bug.
We call setTimeout(updateFeed, 0) from the onLocationChange handler, and that's now running before the onLinkAdded that actually populates the "feeds" array on the <browser>.
We should probably just let addFeed (called by the onLinkAdded handler) handle updating the feed, with batching to avoid updating the state many times in rapid succession.
Assignee: vladimir → nobody
No longer blocks: 512645
Assignee | ||
Updated•14 years ago
|
(In reply to comment #7)
> Assigning to vlad since he regressed it! :)
I have never touched any of the code here or in any other bugs, for the record; I just filed bug 512645 :-)
Assignee | ||
Comment 12•14 years ago
|
||
With this, we could probably remove one of the pageshow/onLocationChange invocations of updateFeeds (via asyncUpdateUI), and probably even remove asyncUpdateUI entirely, but I didn't want to mess with that now.
Assignee | ||
Comment 13•14 years ago
|
||
(that patch is on top of the patch for bug 607496, fwiw)
Updated•14 years ago
|
Attachment #486236 -
Flags: review?(dao) → review+
Updated•14 years ago
|
Whiteboard: [has patch][has review]
Assignee | ||
Comment 14•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 4.0b8
Comment 15•14 years ago
|
||
Verified fixed with Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b8pre) Gecko/20101204 Firefox/4.0b8pre ID:20101204030328
Can we get an automated test for this regression?
Status: RESOLVED → VERIFIED
Flags: in-testsuite?
You need to log in
before you can comment on or make changes to this bug.
Description
•