Repository navigation
Implement private browsing for mozbrowser - #11544
Conversation
|
Heads up! This PR modifies the following files:
|
|
Mostly this looks good, but there is one big change I think is worth making. This PR adds the pipeline id to each of the resource messages, but not the privacy level of the pipeline. Since the resource thread doesn't know the privacy level, it has to send a message to the constellation asking it. This adds quite a bit of complexity to the code, and involves the constellation in every resource access. Life would be a lot simpler if the resource messages included the privacy level of the pipeline, not just the pipeline id.
|
|
☔ The latest upstream changes (presumably #11585) made this pull request unmergeable. Please resolve the merge conflicts. |
|
OK, looks much nicer!
|
|
|
|
Review status: all files reviewed at latest revision, 15 unresolved discussions, some commit checks failed. components/constellation/constellation.rs, line 424 [r6] (raw file):
|
|
Review status: all files reviewed at latest revision, 15 unresolved discussions, some commit checks failed. components/constellation/constellation.rs, line 424 [r6] (raw file):
|
|
After you get test-unit to pass and squash, you can r=me. |
|
☔ The latest upstream changes (presumably #11556) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@bors-servo: r=asajeffrey |
|
📌 Commit 7ca7b03 has been approved by |
Implement private browsing for mozbrowser <!-- Please describe your changes on the following line: --> Support the `mozprivatebrowsing` attribute on mozbrowser iframes. This separates the non-private and private sessions in terms of cookies, HSTS lists, cached HTTP credentials, HTTP connection pools, and web storage. The private session is shared between all private mozbrowsers, and lasts until shutdown. --- <!-- 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 - [X] There are tests for these changes <!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11544) <!-- Reviewable:end -->
|
💔 Test failed - linux-dev |
…Make iframes of differing privacy values be considered cross-origin. Make the constellation hand out separate private and public channels for the pipeline content to communicate with the resource thread as necessary.
|
@bors-servo: r=asajeffrey |
|
📌 Commit 7e2b4d1 has been approved by |
Implement private browsing for mozbrowser <!-- Please describe your changes on the following line: --> Support the `mozprivatebrowsing` attribute on mozbrowser iframes. This separates the non-private and private sessions in terms of cookies, HSTS lists, cached HTTP credentials, HTTP connection pools, and web storage. The private session is shared between all private mozbrowsers, and lasts until shutdown. --- <!-- 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 - [X] There are tests for these changes <!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11544) <!-- Reviewable:end -->
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows |
Support the
mozprivatebrowsingattribute on mozbrowser iframes. This separates the non-private and private sessions in terms of cookies, HSTS lists, cached HTTP credentials, HTTP connection pools, and web storage. The private session is shared between all private mozbrowsers, and lasts until shutdown../mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is