Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure FrameState consistency #15091

Merged
merged 1 commit into from Jan 18, 2017
Merged

Conversation

@cbrewster
Copy link
Member

cbrewster commented Jan 18, 2017

As we begin to add more state to FrameState, we need to make sure that when we do replacements and when we finish traversals that the state is properly updated. This also fixes an issue where we were not updating the url of the FrameState when navigating with replacement enabled (I wonder if it would be possible to write a test to detect this. The url only matters when reloading a document after it was discarded by the max session history).


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #__ (github issue number if applicable).
  • There are tests for these changes OR
  • These changes do not require tests because _____

This change is Reviewable

@highfive
Copy link

highfive commented Jan 18, 2017

Heads up! This PR modifies the following files:

  • @asajeffrey: components/constellation/frame.rs, components/constellation/constellation.rs
@cbrewster
Copy link
Member Author

cbrewster commented Jan 18, 2017

@highfive highfive assigned asajeffrey and unassigned SimonSapin Jan 18, 2017
@cbrewster cbrewster force-pushed the cbrewster:frame_state_consistency branch from 08f81af to eedff27 Jan 18, 2017
@asajeffrey
Copy link
Member

asajeffrey commented Jan 18, 2017

LGTM. @bors-servo r+

@bors-servo
Copy link
Contributor

bors-servo commented Jan 18, 2017

📌 Commit eedff27 has been approved by asajeffrey

@bors-servo
Copy link
Contributor

bors-servo commented Jan 18, 2017

Testing commit eedff27 with merge 68fa988...

bors-servo added a commit that referenced this pull request Jan 18, 2017
Ensure FrameState consistency

<!-- Please describe your changes on the following line: -->
As we begin to add more state to `FrameState`, we need to make sure that when we do replacements and when we finish traversals that the state is properly updated. This also fixes an issue where we were not updating the `url` of the `FrameState` when navigating with replacement enabled (I wonder if it would be possible to write a test to detect this. The url only matters when reloading a document after it was discarded by the max session history).

---
<!-- 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 _____

<!-- 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/15091)
<!-- Reviewable:end -->
@bors-servo bors-servo mentioned this pull request Jan 18, 2017
4 of 4 tasks complete
@bors-servo bors-servo merged commit eedff27 into servo:master Jan 18, 2017
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.