Closed
Bug 791215
Opened 12 years ago
Closed 12 years ago
Test plugin hang submission
Categories
(Core Graveyard :: Plug-ins, defect)
Core Graveyard
Plug-ins
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla18
People
(Reporter: benjamin, Assigned: gfritzsche)
References
Details
Attachments
(2 files, 2 obsolete files)
1.30 KB,
patch
|
Details | Diff | Splinter Review | |
6.99 KB,
patch
|
Details | Diff | Splinter Review |
Bug 791009 showed a minor mistake in the plugin hang submissions which should have been caught by an automated test. We have tests for crash submission, I think, but we should test hang submission and in particular the multiple-minidump bits.
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #661756 -
Flags: review?(ted.mielczarek)
Assignee | ||
Updated•12 years ago
|
Assignee | ||
Comment 2•12 years ago
|
||
Fix RangeError in fake crashreport server showing up in above try run:
> toolkit/crashreporter/test/browser/crashreport.sjs: RangeError: arguments array passed to Function.prototype.apply is too large on line 60
Attachment #661881 -
Flags: review?(ted.mielczarek)
Assignee | ||
Comment 3•12 years ago
|
||
And try run for that patch:
https://tbpl.mozilla.org/?tree=Try&rev=b458c7fe6639
Comment 4•12 years ago
|
||
Comment on attachment 661756 [details] [diff] [review]
Add missing hang submission test
Review of attachment 661756 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/plugins/test/mochitest/test_hang_submit.xul
@@ +112,5 @@
> + return;
> + }
> +
> + // Default plugin hang timeout is too high for mochitests
> + Services.prefs.setIntPref("dom.ipc.plugins.timeoutSecs", 5);
Can you set this even lower without breaking things? 5 seconds is a long time to wait for a test.
@@ +125,5 @@
> + // Override the crash reporter URL to send to our fake server
> + Services.prefs.setCharPref("toolkit.crashreporter.pluginHangSubmitURL", SERVER_URL);
> +
> + // Hook into plugin crash events
> + Services.obs.addObserver(testObserver, "crash-report-status", true);
nit: trailing whitespace on this line.
Attachment #661756 -
Flags: review?(ted.mielczarek) → review+
Updated•12 years ago
|
Attachment #661881 -
Flags: review?(ted.mielczarek) → review+
Assignee | ||
Comment 5•12 years ago
|
||
> ::: dom/plugins/test/mochitest/test_hang_submit.xul
> > + // Default plugin hang timeout is too high for mochitests
> > + Services.prefs.setIntPref("dom.ipc.plugins.timeoutSecs", 5);
>
> Can you set this even lower without breaking things? 5 seconds is a long
> time to wait for a test.
Good point, i just followed what the other hang-tests used so far.
Chris, can you remember if you chose that value specifically in test_hanging.html?
Did you run into issues with a too low value causing premature hang-kills on loaded machines?
It was definitely for test_hanging. I don't recall what factored into its choice though, too long ago :).
Assignee | ||
Comment 7•12 years ago
|
||
Attachment #661881 -
Attachment is obsolete: true
Assignee | ||
Comment 8•12 years ago
|
||
Fine on try with 1s hang timeout:
https://tbpl.mozilla.org/?tree=Try&rev=0f074d007cb9
Attachment #661756 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 9•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/156f00b9ac92
https://hg.mozilla.org/integration/mozilla-inbound/rev/bafe7d48e4c5
Flags: in-testsuite+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/156f00b9ac92
https://hg.mozilla.org/mozilla-central/rev/bafe7d48e4c5
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
Updated•2 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•