Closed
Bug 1332213
Opened 9 years ago
Closed 9 years ago
Support for dumping failed update for v2
Categories
(Toolkit :: Safe Browsing, defect, P2)
Toolkit
Safe Browsing
Tracking
()
RESOLVED
FIXED
mozilla54
| Tracking | Status | |
|---|---|---|
| firefox54 | --- | fixed |
People
(Reporter: hchang, Assigned: hchang)
References
Details
Attachments
(1 file)
Dumping failed update was supported by Bug 1310142. However, it only works for v4 since |mPending| will be cut [1] while it's being parsed.
In order to debug Bug 1304602, I'd like to duplicate the crash on my own with
the original database and update data collected so we have to support v2 as well.
[1] https://dxr.mozilla.org/mozilla-central/rev/96cb95af530477edb66ae48d98c18533476e57bb/toolkit/components/url-classifier/ProtocolParser.cpp#364
| Assignee | ||
Updated•9 years ago
|
Assignee: nobody → hchang
| Comment hidden (mozreview-request) |
Comment 2•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8828255 [details]
Bug 1332213 - Store the update stream duplicately in v2 protocol parser. .
https://reviewboard.mozilla.org/r/105728/#review106904
::: toolkit/components/url-classifier/ProtocolParser.h:106
(Diff revision 1)
> virtual const nsTArray<ForwardedUpdate> &Forwards() const override { return mForwards; }
> virtual bool ResetRequested() override { return mResetRequested; }
>
> +#ifdef MOZ_SAFEBROWSING_DUMP_FAILED_UPDATES
> + // Unfortunately we have to override to return mRawUpdate which
> + // will never be cut during parsing.
To make the comment clearer, I would suggest:
// will not be modified during the parsing, unlike mPending.
::: toolkit/components/url-classifier/ProtocolParser.h:169
(Diff revision 1)
>
> // Updates to apply to the current table being parsed.
> TableUpdateV2 *mTableUpdate;
> +
> +#ifdef MOZ_SAFEBROWSING_DUMP_FAILED_UPDATES
> + nsCString mRawUpdate; // Equal to mPending but will never be cut.
To make the comment clearer, I would suggest:
// Keep a copy of mPending before it's processed.
Attachment #8828255 -
Flags: review?(francois) → review+
Updated•9 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P2
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Pushed by hchang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9c8fc27b018c
Store the update stream duplicately in v2 protocol parser. r=francois.
Comment 6•9 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox54:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in
before you can comment on or make changes to this bug.
Description
•