Closed Bug 361030 Opened 18 years ago Closed 18 years ago

Bookmarks refresh problem due to JS error code

Categories

(Firefox :: Bookmarks & History, defect)

2.0 Branch
x86
All
defect
Not set
minor

Tracking

()

VERIFIED FIXED
Firefox 3 alpha2

People

(Reporter: stef_fx, Assigned: sayrer)

References

Details

(Keywords: verified1.8.1.2)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0 When I manipulate Bookmark this produce javascript warnings that impact sometimes refresh of bookmarks. Warning message is : Warning: reference to undefined property this.BATCH_LIMIT Source File: chrome://browser/content/bookmarks/bookmarks.js Line: 1588 Same message on lines : 1627, 1694, 1724. The problem come from a wrong variable "this.BATCH_LIMIT" which must be replace by "kBATCH_LIMIT". Hope the code will be updated ;-) Thanks, Stéphane. Reproducible: Always Steps to Reproduce: 1. select a bookmark and move it in another place.
Version: unspecified → 2.0 Branch
yeah, I don't see .BATCH_LIMIT defined anywhere
Assignee: nobody → sayrer
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached patch use kBATCH_LIMITSplinter Review
Attachment #248133 - Flags: review?(sspitzer)
Flags: blocking1.8.1.2?
Attachment #248133 - Flags: review?(sspitzer) → review?(sspitzer)
Comment on attachment 248133 [details] [diff] [review] use kBATCH_LIMIT thanks for catching and fixing this. it appears to be fall out from jminta's patch from bug #168411, where he replaces some of the calls to this.BATCH_LIMIT with kBATCH_LIMIT, but not all. my apologies for not catching this during the review process of #168411 it looks like the 1.8 branch has problem as well. robert, can you land on the MOZILLA_1_8_BRANCH (once you have approval) as well?
Attachment #248133 - Flags: review?(sspitzer)
Attachment #248133 - Flags: review?(jminta)
Attachment #248133 - Flags: review+
oops, I see robert already has plans to land this on branch (and trunk). thanks again, robert!
Comment on attachment 248133 [details] [diff] [review] use kBATCH_LIMIT yep yep. I need to run with strict warnings on more often. :-/
Attachment #248133 - Flags: review?(jminta) → review+
Checking in bookmarks.js; /cvsroot/mozilla/browser/components/bookmarks/content/bookmarks.js,v <-- bookmarks.js new revision: 1.127; previous revision: 1.126 done
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Attachment #248133 - Flags: approval1.8.1.2?
Target Milestone: --- → Firefox 3 alpha2
Flags: blocking1.8.1.2? → blocking1.8.1.2-
Comment on attachment 248133 [details] [diff] [review] use kBATCH_LIMIT Approved for 1.8 branch, a=jay for drivers.
Attachment #248133 - Flags: approval1.8.1.2? → approval1.8.1.2+
Checking in bookmarks.js; /cvsroot/mozilla/browser/components/bookmarks/content/bookmarks.js,v <-- bookmarks.js new revision: 1.104.2.22; previous revision: 1.104.2.21 done
Keywords: fixed1.8.1.2
Verified using: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2pre) Gecko/20070116 BonEcho/2.0.0.2pre I had these two preferences set to true: javascript.options.showInConsole javascript.options.strict With the new builds I no longer see the warnings in the Error Console when moving bookmarks around.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: