Closed Bug 1726038 Opened 4 years ago Closed 4 years ago

browser_partitionedClearSiteDataHeader.js has an unexpected comma operator

Categories

(Core :: Storage: StorageManager, defect)

defect

Tracking

()

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: standard8, Assigned: emz)

References

Details

Attachments

(1 file)

I'm looking to update ESLint, and it is picking up an instance of a unexpected comma operator:

toolkit/components/antitracking/test/browser/browser_partitionedClearSiteDataHeader.js
148:16 error Unexpected use of comma operator. no-sequences (eslint)

This was introduced by bug 1685355. The code in question is:

https://searchfox.org/mozilla-central/rev/d3683dbb252506400c71256ef3994cdbdfb71ada/toolkit/components/antitracking/test/browser/browser_partitionedClearSiteDataHeader.js#148

    await BrowserTestUtils.withNewTab(
      (browserA, CLEAR_SITE_DATA_URL_ORIGIN_A),
      () => {}
    );

I think the test is operating by only passing CLEAR_SITE_DATA_URL_ORIGIN_A to withNewTab, however, I'm not sure if that is intentional or not. Paul, would you be able to take a look?

Flags: needinfo?(pbz)
Assignee: nobody → pbz
Status: NEW → ASSIGNED

Good catch, thank you. I've submitted a patch to fix this. The fix doesn't change the behavior of the test.

Flags: needinfo?(pbz)
Pushed by pzuhlcke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1a79385f2a43 Fixed unexpected comma operator in clearSiteData test. r=Standard8
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: