Closed
Bug 1143160
Opened 10 years ago
Closed 10 years ago
A review comment on bug 1131776 breaks splinter
Categories
(bugzilla.mozilla.org :: Splinter, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: bent.mozilla, Assigned: glob)
Details
Attachments
(1 file)
916 bytes,
patch
|
dkl
:
review+
|
Details | Diff | Splinter Review |
https://bugzilla.mozilla.org/page.cgi?id=splinter.html&bug=1131776&attachment=8569405
Try adding a comment by double-clicking a line in one of the files. Normally a comment box appears, but now I see this in the error console:
TypeError: m3 is null 10d39aa75fd233eb12f252bf61acbd28.js:930:0
> var m3 = /^\.\.\.\s+(\d+)\s+/.exec(rawlines[i + 1]);
> count += parseInt(m3[1], 10);
TypeError: Splinter.theReview is undefined 10d39aa75fd233eb12f252bf61acbd28.js:1433:4
> var reviewFile = Splinter.theReview.getFile(file.filename);
This seems to happen on Chrome and older Firefox as well.
Reporter | ||
Updated•10 years ago
|
Summary: Unable to add comments Splinter review → Unable to add comments in Splinter review
looks like an issue with how splinter parses existing reviews:
if (i < rawlines.length - 1 && rawlines[i + 1].match(/^... \d+\s+/)) {
var m3 = /^\.\.\.\s+(\d+)\s+/.exec(rawlines[i + 1]);
that's matching
"> + 1 // 0x10 bf f0"
looks like some unescaped periods
Assignee: nobody → glob
Summary: Unable to add comments in Splinter review → A review comment on bug 1131776 breaks splinter
i'm not sure what this regex is actually looking for, however this should fix the error.
Attachment #8578020 -
Flags: review?(dkl)
Comment 3•10 years ago
|
||
Comment on attachment 8578020 [details] [diff] [review]
1143160_1.patch
Review of attachment 8578020 [details] [diff] [review]:
-----------------------------------------------------------------
Fixes the issue for me. r=dkl
Attachment #8578020 -
Flags: review?(dkl) → review+
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git
27ecca5..5365c22 master -> master
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•