Open Bug 1472815 Opened 6 years ago Updated 2 years ago

Need a test for bug 1466846 - "homepage" in chrome_settings_overrides not working in some cases

Categories

(WebExtensions :: General, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: mkaply, Assigned: mkaply)

References

Details

bug 1466846 has a fix for a specific problem related to homepage in chrome_settings_overrides where if you disable and reenable, homepage is no longer taken over.

We should have a test for this.

I didn't do it as part of the bug because I was trying to get a quick fix in and honestly I wasn't sure how to write a test (the browser needs to restarted to show the bug).
Priority: -- → P2
(In reply to Mike Kaply [:mkaply] from comment #0)
> I didn't do it as part of the bug because I was trying to get a quick fix in
> and honestly I wasn't sure how to write a test (the browser needs to
> restarted to show the bug).

I didn't look all that closely at the patch, but if you just need to simulate how the extension is stopped and then re-started across a browser restart, you can do that from an xpcshell test with a simple `await promiseRestartManager();`  See something like test_ext_runtime_onInstalled_and_onStartup.js for an example.
Assignee: nobody → mozilla

doesn't look like it will get done

Priority: P2 → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.