Closed Bug 1766232 Opened 3 years ago Closed 2 years ago

test_timer.js uses unknown Services member properties

Categories

(Firefox :: General, defect)

defect

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox-esr91 --- wontfix
firefox99 --- wontfix
firefox100 --- wontfix
firefox101 --- wontfix
firefox102 --- fixed

People

(Reporter: standard8, Assigned: farre)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

In test_timer.js there are a couple of accesses of Services.mainThreadEventTarget, however that is not available on Services and should probably be Services.tm.mainThreadEventTarget.

If this is fixed or not, it does not affect the test passing, which also makes me wonder if the test is actually testing what bug 1384041 intended it to test.

Set release status flags based on info from the regressing bug 1384041

Has Regression Range: --- → yes

Is this test even testing anything important anymore?

Flags: needinfo?(afarre)

So, the main thread event target is the default target, I think. So no, it probably doesn't.

Flags: needinfo?(afarre)
Component: General → Session Restore
Product: Toolkit → Firefox

(In reply to Andreas Farre [:farre] from comment #3)

So, the main thread event target is the default target, I think. So no, it probably doesn't.

Should the whole test file be removed, or only parts of it?

Flags: needinfo?(afarre)
Assignee: nobody → afarre
Status: NEW → ASSIGNED
Component: Session Restore → General
Flags: needinfo?(afarre)

These test were intended to use the planned, but dropped, one thread
per TabGroup feature. They used to dispatch timer callbacks to the
system group to test the labelling needed, but since TabGroups were
removed and the event target was changed to the main thread event
target, these tests actually test the same thing as the regular
non-target tests. This because nsITimer is created with a target which
just happens to be the mainThreadEventTarget.

Pushed by afarre@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a0ff2b9fbcab Remove tests using Services.mainThreadEventTarget. r=smaug
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: