Rewrite test_bug590870.html and test_bug590812.html to not depend on ambient allowXULXBL
Categories
(Core :: DOM: Core & HTML, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox102 | --- | fixed |
People
(Reporter: mccr8, Assigned: mccr8)
References
Details
Attachments
(3 files)
I've rewritten test_bug590870.html and test_bug590812.html to use SpecialPowers.pushPermissions to set allowXULXBL to true and false as needed, instead of depending on it being set to true everywhere, except for noxul.example.com where it is false.
| Assignee | ||
Comment 1•3 years ago
|
||
| Assignee | ||
Comment 2•3 years ago
|
||
Joel, do you know how I can run testing/mozbase/mozprofile/tests/test_profile_view.py locally? My patch here removes the only two uses of noxul, so I could remove this mechanism from testing/mozbase/mozprofile/mozprofile/permissions.py, but it looks like there's a test for that, so I'd have to fix the test, but if I do ./mach python-test testing/mozbase/mozprofile/tests/test_permissions.py I get an exception like "ValueError: Plugin already registered: mozlog=<module 'mozlog.pytest_mozlog.plugin' from '/Users/andrewmccreight/mc/testing/mozbase/mozlog/mozlog/pytest_mozlog/plugin.py'>"
Updated•3 years ago
|
| Assignee | ||
Comment 3•3 years ago
|
||
There's a similar chrome test for this functionality, test_title.xhtml,
and I think we don't care too much about the correctness of in-content
XUL at this point. We want to avoid enabling XUL during tests.
| Assignee | ||
Comment 4•3 years ago
|
||
It looks like this is just added in to test a bunch of stuff,
but this causes the test to break if allowXULXBL is not set,
so just remove it.
Comment 5•3 years ago
|
||
this is relatively simple if you know the magic command:
./mach python-test --subsuite mozbase testing/mozbase/mozprofile/tests/test_profile_view.py
| Assignee | ||
Comment 6•3 years ago
|
||
That command hits the same error for me, unfortunately.
There are more tests that depend on allowXULXBL, but I can file a new bug for those.
Comment 8•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/bbde66bb52b2
https://hg.mozilla.org/mozilla-central/rev/43cfd48f2a7c
https://hg.mozilla.org/mozilla-central/rev/5bebf6e23891
Description
•