The default bug view has changed. See this FAQ.

[BrowserAPI] Fix test_browserElement_inproc_ContextmenuEvents.html so it doesn't do SimpleTest.finish() twice

RESOLVED FIXED in mozilla16

Status

()

Core
DOM
RESOLVED FIXED
5 years ago
4 years ago

People

(Reporter: Justin Lebar (not reading bugmail), Unassigned)

Tracking

Trunk
mozilla16
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
The context menu test registers an onerror handler and calls SimpleTest.finish() off that handler.

It seems that we sometimes get two error events instead of one.  We end up calling finish() twice, which causes an error in the /next/ test.

That we're getting two errors doesn't seem particularly notable to me (I didn't investigate why); this change fixes things by ignoring all but the first error.  We can do a follow-up to see why we're getting two errors, if we think that might be indicative of a problem.
(Reporter)

Comment 1

5 years ago
Created attachment 640233 [details] [diff] [review]
Patch v1
Attachment #640233 - Flags: review?
(Reporter)

Updated

5 years ago
Attachment #640233 - Flags: review? → review?(dale)
Attachment #640233 - Flags: review+
Is that the correct way to r+ a change? happy with this change though, its a safer test, I will investigate why the second error is thrown, I have other contextmenu work to do
(Reporter)

Comment 3

5 years ago
> Is that the correct way to r+ a change?

Close.  You set the justin.lebar+bug review? to review+.  As is, you still have a pending review.  :)

Thanks for the r+, though!
Attachment #640233 - Flags: review?(dale) → review+
https://hg.mozilla.org/mozilla-central/rev/552418e64261
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16

Comment 5

5 years ago
Try run for 726feb8e3105 is complete.
Detailed breakdown of the results available here:
    https://tbpl.mozilla.org/?tree=Try&rev=726feb8e3105
Results (out of 72 total builds):
    success: 62
    warnings: 8
    failure: 2
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/jlebar@mozilla.com-726feb8e3105
(Assignee)

Updated

4 years ago
Component: DOM: Mozilla Extensions → DOM
Product: Core → Core
You need to log in before you can comment on or make changes to this bug.