Support controlling interface and member visibility via preferences#10081
Support controlling interface and member visibility via preferences#10081bors-servo merged 8 commits intoservo:masterfrom
Conversation
|
I discovered that in the case of:
|
|
Do you mean that |
|
No, I mean that window.Parent is still defined even if the preference controlling it's visibility is false. |
|
Well that's obviously wrong, no? |
|
👍 to `[Pref="dom.bluetooth.enabled"], and off by default. cc @dati91 |
|
This is ready for review. |
|
This is still ready for review; I just got carried away and implemented the Pref annotation for members of interfaces as well. |
83e93ac to
e06f60d
Compare
|
☔ The latest upstream changes (presumably #10204) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Can we get a review on that? |
|
This has been ignored for more than a month. I would really appreciate if someone would take responsibility for reviewing my work :( |
|
On it. Could you give more details about what you meant by "This was easier to throw together than per-attribute/method support"? |
|
@jdm I think you are cursed. |
|
Hey @jdm, how did you make that happen? Reviewable thinks that somehow there's a discussion attached to a file that doesn't exist in the review, hence boom. Comments from Reviewable |
|
I mean @nox, sorry. Comments from Reviewable |
|
@pkaminski I just clicked on the Reviewable button and it failed to load. @jdm I don't get the purpose of avoiding |
| properties[arrayName] = "EMPTY_CONSTANTS" | ||
| else: | ||
| properties[arrayName] = "&[]" | ||
| properties[arrayName] = array.variableName() |
There was a problem hiding this comment.
Please revert this. It worked before and you didn't even document EMPTY_CONSTANTS.
|
…ally-exposed ones.
|
@bors-servo: r=nox |
|
📌 Commit 2a9bf70 has been approved by |
Support controlling interface and member visibility via preferences This was easier to throw together than per-attribute/method support, and it gets rid of some nonstandard properties from our globals. Fixes #7626. r? @Ms2ger <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10081) <!-- Reviewable:end -->
|
💔 Test failed - linux-rel |
|
|
⚡ Previous build results for android, arm32, arm64, linux-dev, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows are reusable. Rebuilding only linux-rel... |
|
⚡ Previous build results for android, arm32, arm64, linux-dev, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows are reusable. Rebuilding only linux-rel... |
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows |

This was easier to throw together than per-attribute/method support, and it gets rid of some nonstandard properties from our globals.
Fixes #7626.
r? @Ms2ger
This change is