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 upAdd Blob URL store #11534
Add Blob URL store #11534
Conversation
highfive
commented
Jun 1, 2016
|
Heads up! This PR modifies the following files:
|
highfive
commented
Jun 1, 2016
|
cc @Manishearth |
|
That's an incorrect interpretation of "global object". Say you have a page with an iframe; a blob url created in the outer window should not be resolvable in the iframe. |
|
@Ms2ger So I think the Window/Worker-wide |
|
Yep, |
highfive
commented
Jun 1, 2016
|
New code was committed to pull request. |
|
|
|
r? @Manishearth |
|
@bors-servo r+ Note that the resource thread will also need to know the blob uuids |
|
|
Add Blob URL store Spec: https://w3c.github.io/FileAPI/#BlobURLStore. I finally decide to put the store under `ScriptThread` and interpret the "global object" as the script thread itself. The new APIs will be used during the page loading (if scheme is `blob`) and `URL.createObjectURL/revokeObjectURL`. Related to #11131. <!-- Please describe your changes on the following line: --> --- <!-- 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] These changes fix part of #10539 <!-- Either: --> - [x] These changes do not require tests because it is new stub code which needs further integrating PRs. <!-- 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/11534) <!-- Reviewable:end -->
|
|
|
|
highfive
commented
Jun 3, 2016
|
|
@bors-servo retry
|
Add Blob URL store Spec: https://w3c.github.io/FileAPI/#BlobURLStore. I finally decide to put the store under `ScriptThread` and interpret the "global object" as the script thread itself. The new APIs will be used during the page loading (if scheme is `blob`) and `URL.createObjectURL/revokeObjectURL`. Related to #11131. <!-- Please describe your changes on the following line: --> --- <!-- 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] These changes fix part of #10539 <!-- Either: --> - [x] These changes do not require tests because it is new stub code which needs further integrating PRs. <!-- 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/11534) <!-- Reviewable:end -->
|
|
highfive
commented
Jun 3, 2016
|
|
Jesus ... I will leave it cool for several hours |
|
@bors-servo: retry |
Add Blob URL store Spec: https://w3c.github.io/FileAPI/#BlobURLStore. I finally decide to put the store under `ScriptThread` and interpret the "global object" as the script thread itself. The new APIs will be used during the page loading (if scheme is `blob`) and `URL.createObjectURL/revokeObjectURL`. Related to #11131. <!-- Please describe your changes on the following line: --> --- <!-- 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] These changes fix part of #10539 <!-- Either: --> - [x] These changes do not require tests because it is new stub code which needs further integrating PRs. <!-- 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/11534) <!-- Reviewable:end -->
|
|
highfive
commented
Jun 3, 2016
|
|
@bors-servo: retry |
|
|
|
|
|
cool, thanks |
Add blob loader Add a blob loader to implement [Blob URL](https://w3c.github.io/FileAPI/#url). The related interfaces to script thread are also declared. Progressing in parallel with PR #11534. Related to #11131. <!-- Please describe your changes on the following line: --> --- <!-- 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] These changes fix part of #10539 <!-- Either: --> - [x] These changes do not require tests because not integrated yet. <!-- 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/11536) <!-- Reviewable:end -->
izgzhen commentedJun 1, 2016
•
edited by larsbergstrom
Spec: https://w3c.github.io/FileAPI/#BlobURLStore.
I finally decide to put the store under
ScriptThreadand interpret the "global object" as the script thread itself. The new APIs will be used during the page loading (if scheme isblob) andURL.createObjectURL/revokeObjectURL.Related to #11131.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is