Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRemove activatable element filter within HTMLElement#click() #9930
Conversation
|
@bors-servo: try |
|
|
Remove activatable element filter within HTMLElement#click() Address #6542 Ensure that click() calls are not limited to activatable elements. Also makes the isTrusted attribute false when synthetic click activation are called from a click() method (as per spec). <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9930) <!-- Reviewable:end -->
|
|
You'll need to remove the appropriate ini file, now that the test passes :) |
|
Wow, that definitely was not the test that I was coding for. Seems weird that it now passes, but I can certainly take that ini out. |
|
Looks good! I've only got stylistic nits about the changes, so you can go ahead and squash all the commits together when you're addressing my comments. Reviewed 8 of 8 files at r1, 1 of 1 files at r2. components/script/dom/activation.rs, line 34 [r2] (raw file): components/script/dom/activation.rs, line 42 [r2] (raw file): components/script/dom/activation.rs, line 46 [r2] (raw file): components/script/dom/activation.rs, line 54 [r2] (raw file): components/script/dom/activation.rs, line 77 [r2] (raw file): if source == ActivationSource::FromClick {
event.set_trusted(false);
}components/script/dom/document.rs, line 8 [r2] (raw file): components/script/dom/document.rs, line 1083 [r2] (raw file): components/script/dom/htmlbuttonelement.rs, line 7 [r2] (raw file): components/script/dom/htmlelement.rs, line 6 [r2] (raw file): components/script/dom/htmlelement.rs, line 188 [r2] (raw file): components/script/dom/htmlinputelement.rs, line 8 [r2] (raw file): components/script/dom/htmlinputelement.rs, line 906 [r2] (raw file): components/script/dom/htmllabelelement.rs, line 7 [r2] (raw file): components/script/dom/htmllabelelement.rs, line 69 [r2] (raw file): Comments from the review on Reviewable.io |
|
Review status: all files reviewed at latest revision, 14 unresolved discussions. components/script/dom/activation.rs, line 34 [r2] (raw file): components/script/dom/activation.rs, line 42 [r2] (raw file): components/script/dom/activation.rs, line 46 [r2] (raw file): components/script/dom/activation.rs, line 54 [r2] (raw file): components/script/dom/activation.rs, line 77 [r2] (raw file): ...which I'm now realizing is related to the partialeq comment above Comments from the review on Reviewable.io |
|
Yes, I meant on the enum. Apologies if that's not where I commented. |
|
Review status: all files reviewed at latest revision, 14 unresolved discussions. components/script/dom/document.rs, line 8 [r2] (raw file): components/script/dom/document.rs, line 1083 [r2] (raw file): components/script/dom/htmlbuttonelement.rs, line 7 [r2] (raw file): components/script/dom/htmlelement.rs, line 6 [r2] (raw file): components/script/dom/htmlelement.rs, line 188 [r2] (raw file): components/script/dom/htmlinputelement.rs, line 8 [r2] (raw file): components/script/dom/htmlinputelement.rs, line 906 [r2] (raw file): components/script/dom/htmllabelelement.rs, line 7 [r2] (raw file): components/script/dom/htmllabelelement.rs, line 69 [r2] (raw file): Comments from the review on Reviewable.io |
|
Comments addressed, squashed down to 1 commit. |
|
One last change and this will be good to merge :) Reviewed 6 of 6 files at r3. components/script/dom/activation.rs, line 56 [r3] (raw file): Comments from the review on Reviewable.io |
Moved synthetic_click_actiavtion out of Activatable trait so it can be called by all elements (not just activatable). Calls appropriately from click. Also updates the isdisabled check in click to check for all types of elements
|
Review status: all files reviewed at latest revision, 1 unresolved discussion. components/script/dom/activation.rs, line 56 [r3] (raw file): Comments from the review on Reviewable.io |
|
@bors-servo: r+ Reviewed 1 of 1 files at r4. Comments from the review on Reviewable.io |
|
|
Remove activatable element filter within HTMLElement#click() Address #6542 Ensure that click() calls are not limited to activatable elements. Also makes the isTrusted attribute false when synthetic click activation are called from a click() method (as per spec). <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9930) <!-- Reviewable:end -->
|
|
|
@bors-servo: retry |
Remove activatable element filter within HTMLElement#click() Address #6542 Ensure that click() calls are not limited to activatable elements. Also makes the isTrusted attribute false when synthetic click activation are called from a click() method (as per spec). <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9930) <!-- Reviewable:end -->
|
|
rebstar6 commentedMar 8, 2016
Address #6542
Ensure that click() calls are not limited to activatable elements. Also makes the isTrusted attribute false when synthetic click activation are called from a click() method (as per spec).