Closed
Bug 1407098
Opened 7 years ago
Closed 7 years ago
stylo-blocklist: put a nightly only domain in stylo blocklist for testing
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox56 | --- | unaffected |
firefox57 | --- | unaffected |
firefox58 | --- | fixed |
People
(Reporter: chenpighead, Assigned: chenpighead)
References
Details
Attachments
(3 files)
At present, the stylo blocklist is empty in all channels. We can consider put a real site domain, e.g., mozilla.org ? to do some real site tests/verifications. The domain could be easily limited in Nightly channel.
Comment 1•7 years ago
|
||
I can donate my arewestyloyet.rs domain if people want to use it for testing (we never formally made use of that domain, so it's quite a waste...)
Assignee | ||
Comment 2•7 years ago
|
||
I think it depends on what do we expect to test/verify with it. If we just want to verify that the mechanism is actually working, probably we could put a test page on that domain and put some words to mention the style backend for page. For example,
```
<p>
If you see XXX below, the page is styled by stylo; otherwise, the page is blocked by stylo blocklist and fallback to be styled by gecko.
</p>
<div>
[refer to Bug 1365771 (stylo-behavior-changes) to make a case here]
</div>
```
Not sure if we will need to upload more cases to the domain and do the verification, it's unclear to me if this would gain us any good at present.
Hi Chris, is there any other scenario that you can think of using this kind of nightly only blocked domain for?
Flags: needinfo?(cpeterson)
Comment 3•7 years ago
|
||
I think there are several things we want to check:
1. sites not mentioned in the list should not be affected
2. sites in the list should have stylo backend
3. a mix of sites in and not in that list in a single page should not lead to any issue
Having a special domain should be enough for 1 and 2, and to some extent 3. But I think we really want to have more coverage on 3, in that case, we probably should randomly include some popular websites in the list somehow in Nightly.
Updated•7 years ago
|
Priority: -- → P3
Updated•7 years ago
|
status-firefox56:
--- → unaffected
status-firefox57:
--- → unaffected
status-firefox-esr52:
--- → unaffected
Flags: needinfo?(cpeterson)
Summary: stylo-blocklist: consider put a nightly only domain in stylo blocklist → stylo-blocklist: consider put a nightly only domain in stylo blocklist for testing
Comment 4•7 years ago
|
||
How can QA determine whether a page is using Stylo or the old Gecko style system? Can we create a test page that looks for some Stylo-specific CSS feature and then reports "You are using Stylo" or "You are using the old Gecko style system"?
Comment 5•7 years ago
|
||
Yes, per comment 2 I think we just need to pick one of the bug 1379467 blockers to make test from. Bug 1379467 looks like an easy one to do this with.
Comment 6•7 years ago
|
||
Like this. It would need to be served from whatever domain you decide to add to the blocklist, of course.
Updated•7 years ago
|
Assignee: nobody → jeremychen
Assignee | ||
Comment 7•7 years ago
|
||
As comment 1 and comment 6 said, I think we're ready for creating a stylo test website. Xidorn, could you help upload the file (made by heycam in comment 6) to your arewestyloyet.rs domain?
Flags: needinfo?(xidorn+moz)
Comment hidden (mozreview-request) |
Comment 9•7 years ago
|
||
(In reply to Cameron McCormack (:heycam) (away 24 Oct – 12 Nov) from comment #6)
> Created attachment 8918203 [details]
> stylo check
>
> Like this. It would need to be served from whatever domain you decide to
> add to the blocklist, of course.
This doesn't work for non-stylo. I get an unstable result on Firefox 56 :/
I get things like:
* stylo is ... not sure (-3924.45px)
* stylo is ... not sure (-3.57914e+7px)
* stylo is ... not sure (-104468px)
(That probably means we are doing something more wrong than just not supporting that.)
Comment 10•7 years ago
|
||
Looks like this is fixed in Firefox 57 (when stylo is disabled).
Comment 11•7 years ago
|
||
This should be a more precise stylo check based on bug 1374885.
Comment 12•7 years ago
|
||
I've updated https://arewestyloyet.rs/ with a testing page.
Please check the source code of the page and its script / style (since there are some invisible elements) and tell me if there is anything can be improved.
Flags: needinfo?(xidorn+moz)
Assignee | ||
Comment 13•7 years ago
|
||
(In reply to Xidorn Quan [:xidorn] UTC+10 from comment #12)
> I've updated https://arewestyloyet.rs/ with a testing page.
>
> Please check the source code of the page and its script / style (since there
> are some invisible elements) and tell me if there is anything can be
> improved.
Xidorn, I've verified it works as expected with:
* stylo enabled
* stylo disabled
* stylo enabled with "arewestyloyet.rs" in the blocklist
Thank you for making this fantastic testing page. Looks awesome!!
Assignee | ||
Updated•7 years ago
|
Attachment #8918539 -
Flags: review?(xidorn+moz)
Assignee | ||
Updated•7 years ago
|
See Also: → 1374885
Summary: stylo-blocklist: consider put a nightly only domain in stylo blocklist for testing → stylo-blocklist: put a nightly only domain in stylo blocklist for testing
Comment 14•7 years ago
|
||
Unfortunately, this page can only distinguish between WebKit-based browsers and Gecko-based browsers, and it would incorrectly report Edge as using Stylo :/
Comment 15•7 years ago
|
||
mozreview-review |
Comment on attachment 8918539 [details]
Bug 1407098 - put a nightly only domain in stylo blocklist for testing.
https://reviewboard.mozilla.org/r/189400/#review194678
Attachment #8918539 -
Flags: review?(xidorn+moz) → review+
Assignee | ||
Comment 16•7 years ago
|
||
(In reply to Xidorn Quan [:xidorn] UTC+10 (less responsive Nov 5 ~ Dec 16) from comment #14)
> Unfortunately, this page can only distinguish between WebKit-based browsers
> and Gecko-based browsers, and it would incorrectly report Edge as using
> Stylo :/
We can surely put more script to detect different browsers. However, this page should be mostly used for testing Firefox, so I don't think it is worth to put more efforts for other browsers at the moment.
Assignee | ||
Updated•7 years ago
|
Status: NEW → ASSIGNED
Comment 17•7 years ago
|
||
Pushed by jichen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f0600bdbba0f
put a nightly only domain in stylo blocklist for testing. r=xidorn
Comment 18•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in
before you can comment on or make changes to this bug.
Description
•