Closed Bug 987310 Opened 10 years ago Closed 10 years ago

Sanitize the filter predicates loaded from the preferences

Categories

(DevTools :: Netmonitor, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 31

People

(Reporter: vporof, Assigned: vporof)

Details

Attachments

(1 file)

I accidentally modified the filter preferences to have a bogus predicate. This made the netmonitor unable to use filters at all. We should properly sanitize this.
Attached patch v1Splinter Review
Assignee: nobody → vporof
Status: NEW → ASSIGNED
Attachment #8395862 - Flags: review?(rcampbell)
Comment on attachment 8395862 [details] [diff] [review]
v1

Review of attachment 8395862 [details] [diff] [review]:
-----------------------------------------------------------------

alrighty.
Attachment #8395862 - Flags: review?(rcampbell) → review+
Keywords: checkin-needed
(In reply to Carsten Book [:Tomcat] from comment #3)
> landed as https://hg.mozilla.org/integration/fx-team/rev/dff900f56c49

Thank you! Please add [fixed-in-fx-team] in the whiteboard when landing on fx-team.
Whiteboard: [fixed-in-fx-team]
(In reply to Victor Porof [:vporof][:vp] from comment #4)
> (In reply to Carsten Book [:Tomcat] from comment #3)
> > landed as https://hg.mozilla.org/integration/fx-team/rev/dff900f56c49
> 
> Thank you! Please add [fixed-in-fx-team] in the whiteboard when landing on
> fx-team.

np, yeah will do!

also had to back this change out, seems it caused a leak like https://tbpl.mozilla.org/php/getParsedLog.php?id=36728854&tree=Fx-Team
Whiteboard: [fixed-in-fx-team]
That can't be caused by this patch... Please re-land this.
Please also add the back-out changeset in the future, it's easier to track things down: https://hg.mozilla.org/integration/fx-team/rev/a26977bf2252
Tentative reland: https://hg.mozilla.org/integration/fx-team/rev/513e425d0268
Hopefully this proves not to be the actual source of oranges.
Whiteboard: [fixed-in-fx-team]
I've been looking into comment 5 some more, and I found something that might *potentially* be a cause for oranges.

Because of the way we lazily populate the requests menu, a timeout could fire after the test finishes, which just results in an exception being thrown. This looks harmless, but it should definitely not happen.

Although there are so many other tests that already suffer from this problem, I've fixed this, just in case it might actually be the thing that's causing things to fail at the end of the suite: https://hg.mozilla.org/integration/fx-team/rev/7f4778b94aa8
https://hg.mozilla.org/mozilla-central/rev/513e425d0268
https://hg.mozilla.org/mozilla-central/rev/7f4778b94aa8
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 31
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: