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 upMake History attributes and methods throw #16697
Conversation
highfive
commented
May 2, 2017
highfive
commented
May 2, 2017
|
r? @asajeffrey or anyone |
|
@bors-servo r+ I suspect that we may have passing tests; if so, just update the expectations and r=me again. |
|
|
|
|
|
|
|
@bors-servo retry
|
Make History attributes and methods throw <!-- Please describe your changes on the following line: --> All History methods and attributes should throw a `SecurityError` if the document associated with the `History` object is not fully active. https://html.spec.whatwg.org/multipage/browsers.html#history-3 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16697) <!-- Reviewable:end -->
|
|
|
Hmm no tests for these; however, I don't know how we would make a test that makes calls to the History object on a non fully-active document. |
cbrewster commentedMay 2, 2017
•
edited by larsbergstrom
All History methods and attributes should throw a
SecurityErrorif the document associated with theHistoryobject is not fully active.https://html.spec.whatwg.org/multipage/browsers.html#history-3
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is