Closed
Bug 571008
Opened 14 years ago
Closed 14 years ago
ViewerRegistry should guard against runtime errors in entry filters
Categories
(Other Applications :: DOM Inspector, defect)
Other Applications
DOM Inspector
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: crussell, Assigned: crussell)
Details
Attachments
(2 files, 2 obsolete files)
10.11 KB,
patch
|
sdwilsh
:
review+
|
Details | Diff | Splinter Review |
918 bytes,
patch
|
sdwilsh
:
review+
neil
:
superreview+
|
Details | Diff | Splinter Review |
Right now, in ViewerRegistry.js, we guard against syntax errors in the filters, but not against errors that occur while executing those filters. Given the review process, which kind errors are most likely to sneak through?
Attachment #450154 -
Flags: review?(sdwilsh)
Assignee | ||
Comment 1•14 years ago
|
||
Assignee | ||
Comment 2•14 years ago
|
||
Attachment #450154 -
Attachment is obsolete: true
Attachment #451751 -
Flags: review?(sdwilsh)
Attachment #450154 -
Flags: review?(sdwilsh)
Assignee | ||
Comment 3•14 years ago
|
||
Attachment #450155 -
Attachment is obsolete: true
Attachment #451753 -
Flags: review?(sdwilsh)
Attachment #450155 -
Flags: review?(sdwilsh)
Assignee | ||
Updated•14 years ago
|
Attachment #451753 -
Attachment description: Wrap filter execution in a try ... catch and report any errors mkII--work off cleanup mkII and return value out of catch → Wrap filter execution in a try ... catch and report any errors mkII--work off cleanup mkII and move return out of catch
Comment 4•14 years ago
|
||
Comment on attachment 451751 [details] [diff] [review] ViewerRegistry.js cleanup mkII--fixed some mistakes in first attachment >+ /** >+ * Returns the absolute url where the xul file for a viewer can be found. >+ * >+ * @param aIndex >+ * The numerical index of the entry representing the viewer. >+ * @return >+ * A string of the fully canonized url. er, is that how we've been dong @return? I thought we kept that on the same line... r=sdwilsh
Attachment #451751 -
Flags: review?(sdwilsh) → review+
Comment 5•14 years ago
|
||
Comment on attachment 451753 [details] [diff] [review] Wrap filter execution in a try ... catch and report any errors mkII--work off cleanup mkII and move return out of catch r=sdwilsh
Attachment #451753 -
Flags: review?(sdwilsh) → review+
Assignee | ||
Comment 6•14 years ago
|
||
(In reply to comment #4) > (From update of attachment 451751 [details] [diff] [review]) > >+ /** > >+ * Returns the absolute url where the xul file for a viewer can be found. > >+ * > >+ * @param aIndex > >+ * The numerical index of the entry representing the viewer. > >+ * @return > >+ * A string of the fully canonized url. > er, is that how we've been dong @return? I thought we kept that on the same > line... Well, I've written dom-inspector stuff like that plenty of times, but I'm not sure if any of those have gotten submitted for review/checked in yet. It looks like attachment 445241 [details] [diff] [review] for bug 179621 did that. It makes the description line up with the params' descriptions, which can't happen if the "@return" and its description are on the same line. (Notice that "return" is one char longer than "param".)
Assignee | ||
Updated•14 years ago
|
Attachment #451753 -
Flags: superreview?(neil)
Comment 7•14 years ago
|
||
(In reply to comment #6) > Well, I've written dom-inspector stuff like that plenty of times, but I'm not > sure if any of those have gotten submitted for review/checked in yet. It looks > like attachment 445241 [details] [diff] [review] for bug 179621 did that. It makes the description line > up with the params' descriptions, which can't happen if the "@return" and its > description are on the same line. (Notice that "return" is one char longer than > "param".) Hrm, I must have missed that. Not sure that that is the style anywhere else in mozilla trees.
Assignee | ||
Comment 8•14 years ago
|
||
All right, I'll change it. Is it all right if I change the aforementioned line changed in attachment 445241 [details] [diff] [review], too?
OS: Linux → All
Hardware: x86 → All
Updated•14 years ago
|
Attachment #451753 -
Flags: superreview?(neil) → superreview+
Comment 9•14 years ago
|
||
(In reply to comment #8) > All right, I'll change it. Is it all right if I change the aforementioned line > changed in attachment 445241 [details] [diff] [review], too? yes
Assignee | ||
Comment 10•14 years ago
|
||
Pushed with those changes: http://hg.mozilla.org/dom-inspector/rev/535e5fbda65c (cleanup) http://hg.mozilla.org/dom-inspector/rev/03cf7e93828f (real changes)
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•