Closed
Bug 738662
Opened 12 years ago
Closed 12 years ago
Add tracing/warning information to help debug XUL overlay problems
Categories
(Core :: XUL, defect)
Core
XUL
Tracking
()
RESOLVED
FIXED
mozilla14
People
(Reporter: Irving, Assigned: Irving)
Details
Attachments
(1 file, 2 obsolete files)
7.85 KB,
patch
|
enndeakin
:
review+
|
Details | Diff | Splinter Review |
While trying to track down some overlay-related issues, I added useful details to several error and warning messages. Most of these only come out with NSPR_LOG_MODULES=nsXULDocument:4, but it's better than nothing.
Assignee | ||
Comment 1•12 years ago
|
||
"File Not Found" is so much nicer when it actually tells you *which* file...
Attachment #608765 -
Flags: review?(bzbarsky)
Comment 2•12 years ago
|
||
Comment on attachment 608765 [details] [diff] [review] Add details to various error/warning messages Instead of hand-unrolling the NS_WARNING in PutScript, just dynamically construct the string for it, please (#ifdef DEBUG, of course). The changes to nsExpatDriver::HandleExternalEntityRef are wrong; that function doesn't return nsresult, so returning rv is broken. The rest looks fine, though the toolkit change should get review from someone who knows that code.
Attachment #608765 -
Flags: review?(bzbarsky) → review-
Assignee | ||
Comment 3•12 years ago
|
||
Addressed bz's comments, added enndeakin to review XUL toolkit change.
Attachment #608797 -
Flags: review?(enndeakin)
Attachment #608797 -
Flags: review?(bzbarsky)
Comment 4•12 years ago
|
||
Comment on attachment 608797 [details] [diff] [review] Add details to various error/warning messages, take 2 r=me
Attachment #608797 -
Flags: review?(bzbarsky) → review+
Comment 5•12 years ago
|
||
Comment on attachment 608797 [details] [diff] [review] Add details to various error/warning messages, take 2 >+ if (!toolbox) { >+ let tbName = this.getAttribute("toolbarName"); This should be 'toolbarname' (all lowercase) or this.toolbarName >+ throw("toolbar ID " + this.getAttribute("id") + tbname + ": toolboxid attribute '" + toolboxId + "' points to a toolbox which doesn't exist"); Use this.id and print a space between the id and the name.
Assignee | ||
Comment 6•12 years ago
|
||
Clean up toolbox.xml comments from Neil Deakin. If toolbarName isn't null, the tbName string is built with a leading space so I don't add one in the throw().
Attachment #608765 -
Attachment is obsolete: true
Attachment #608797 -
Attachment is obsolete: true
Attachment #608797 -
Flags: review?(enndeakin)
Attachment #609437 -
Flags: review?(enndeakin)
Updated•12 years ago
|
Attachment #609437 -
Flags: review?(enndeakin) → review+
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 7•12 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/2f58de36c53a
Keywords: checkin-needed
Target Milestone: --- → mozilla14
Comment 8•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/2f58de36c53a
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•