Closed Bug 376428 Opened 18 years ago Closed 18 years ago

Check for updates window closes by itself if no update available

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: wgianopoulos, Assigned: enndeakin)

References

Details

(Keywords: regression)

Attachments

(1 file)

If you do Help -> Check for updates, and no update is available, the window closes by itself after 1 second, just as if you had clicked on Finish. I am trying to narrow down a regression window for this.
By narrowing the regression window, this seems to be caused by the checkin for bug 366478.
Assignee: nobody → events
Blocks: 366478
Component: Software Update → Event Handling
Product: Firefox → Core
QA Contact: software.update → ian
I'll bet this is because the wizard uses a 'pageshow' event which is the same event as the bfcache 'pageshow' event. So, the fix is probably to remove the XUL indicator in the event table for pageshow/pagehide in nsContentUtils.cpp and not support the bfcache events as attributes in XUL.
Bug 366478 has been verified as the cause via backout.
This error is in the JS Console when checking for updates, and also appears when trying to check for updates to extensions via: Tools->Addons: Find Updates Error: [Exception... "'Component does not have requested interface' when calling method: [nsIInterfaceRequestor::getInterface]" nsresult: "0x80004002 (NS_NOINTERFACE)" location: "<unknown>" data: no] Addons also reports on different extensions: An error occured... blah blah blah. Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9a4pre) Gecko/20070403 Minefield/3.0a4pre Firefox ID:2007040318 [cairo]
(In reply to comment #4) > This error is in the JS Console when checking for updates, and also appears > when trying to check for updates to extensions via: Tools->Addons: Find Updates > > > Error: [Exception... "'Component does not have requested interface' when > calling method: [nsIInterfaceRequestor::getInterface]" nsresult: "0x80004002 > (NS_NOINTERFACE)" location: "<unknown>" data: no] > > Addons also reports on different extensions: An error occured... blah blah > blah. > > Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9a4pre) Gecko/20070403 > Minefield/3.0a4pre Firefox ID:2007040318 [cairo] > These error messages pre-date the problem being discussed here and are a completely seperate issue.
(In reply to comment #2) > I'll bet this is because the wizard uses a 'pageshow' event which is the same > event as the bfcache 'pageshow' event. So, the fix is probably to remove the > XUL indicator in the event table for pageshow/pagehide in nsContentUtils.cpp > and not support the bfcache events as attributes in XUL. > I tried that and it does resolve the issue. I ave no idea what else to check though to see if that causes a regression elsewhere.
Only parse the onpageshow/onpagehide attributes used for bfcache on html elements so that they don't conflict with the similarly named attributes used in the XUL <wizard> element.
Assignee: events → enndeakin
Status: NEW → ASSIGNED
Attachment #260581 - Flags: superreview?(jonas)
Attachment #260581 - Flags: review?(jonas)
Just for the sake of completeness and searchability...these 2 messages show up in the error console: Error: gUpdates.wiz has no properties Source file: chrome://mozapps/content/update/updates.js Line: 657 and Error: this.wiz has no properties Source file: chrome://mozapps/content/update/updates.js Line: 192
Attachment #260581 - Flags: superreview?(jonas)
Attachment #260581 - Flags: superreview+
Attachment #260581 - Flags: review?(jonas)
Attachment #260581 - Flags: review+
WFM now with: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a4pre) Gecko/20070404 Minefield/3.0a4pre ID:2007040411 [cairo]
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
yup, now fixed!
Status: RESOLVED → VERIFIED
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: