aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
* Don't fire a load event on inline scriptsAnthony Ramine2017-01-131-2/+0
| | | | https://github.com/whatwg/html/issues/1757
* Auto merge of #14992 - servo:rustup, r=jdmbors-servo2017-01-121-1/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upgrade to rustc 1.16.0-nightly (2782e8f8f 2017-01-12) <!-- 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 - [ ] 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/14992) <!-- Reviewable:end -->
| * Upgrade to rustc 1.16.0-nightly (2782e8f8f 2017-01-12)Simon Sapin2017-01-121-1/+2
| |
* | Remove reflow status from browsing context.Alan Jeffrey2017-01-122-20/+1
|/
* Remove unused needsRooting field from JSToNativeConversionInfo.Ms2ger2017-01-121-11/+4
|
* Auto merge of #14963 - jdm:script_current_line, r=asajeffreybors-servo2017-01-117-12/+38
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Report meaningful line numbers for inline script errors Rebased from #14661. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #12744 and partially #9604 - [X] There are tests for these changes <!-- 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/14963) <!-- Reviewable:end -->
| * Store parser's current line when script elements are created.karenher2017-01-117-12/+38
| | | | | | | | | | | | Use the newly stored line as the starting line number when evaluating JS. This ensures that inline scripts will report errors with meaningful line numbers.
* | Auto merge of #14291 - fiji-flo:text-input-select, r=pcwaltonbors-servo2017-01-112-1/+42
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Position insertion point in input field with mouse <!-- Please describe your changes on the following line: --> Implements cursor positioning in input elements (text/password) via mouse. The related issue is #10083 but is only covered partly. This PR does **not** cover: * positioning in textarea elements via mouse * text selection in input/textarea elements via mouse --- <!-- 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 #10083 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because I can't think of a way to test mouse interaction in the current test pipeline. <!-- 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/14291) <!-- Reviewable:end -->
| * | Position insertion point in input field with mouseFlorian Merz2017-01-112-1/+42
| | |
* | | Auto merge of #14924 - ioctaptceb:webgl-blendFunc-tests, r=jdmbors-servo2017-01-111-0/+33
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Webgl blend func tests <!-- Please describe your changes on the following line: --> Add a function that validates the conditions for [Constant Color Blend](https://www.khronos.org/registry/webgl/specs/latest/1.0/#CONSTANT_COLOR_BLEND) in the WebGL specs. ./mach run -r tests/wpt/web-platform-tests/webgl/conformance-1.0.3/conformance/misc/webgl-specific.html --- <!-- 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: --> - [x] 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/14924) <!-- Reviewable:end -->
| * | | Add a check to BlendFunc for invalid constantioctaptceb2017-01-111-0/+33
| | |/ | |/| | | | | | | combinations
* | | Auto merge of #13972 - shravan-achar:master, r=Manishearth,emilio,jdmbors-servo2017-01-114-2/+339
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ImageMaps: Implemented support for parsing coord attribute to a shape… <!-- Please describe your changes on the following line: --> Image Maps: (Part 1) Implemented support for parsing coord attribute to a shape object. Implemented a hit_test method to see if a point is within the area. Tests for constructors and hit_test included --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./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. --> … object in HTMLAreaElement <!-- 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/13972) <!-- Reviewable:end -->
| * | | Make area structs accessible from area testsManish Goregaokar2017-01-111-0/+4
| | | |
| * | | HTML image map supportbachar2017-01-113-2/+335
| | |/ | |/|
* | | Auto merge of #14911 - charlesvdv:alternate-stylesheet, r=cbrewsterbors-servo2017-01-112-11/+16
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Handle properly alternate stylesheet <!-- Please describe your changes on the following line: --> Alternate stylesheet are now fetched and then desactivated instead of ignoring them. I don't know if tests are required to check if the stylesheet is correctly loaded and disabled ? <!-- 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 #14881 (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/14911) <!-- Reviewable:end -->
| * | Handle properly alternate stylesheetcharlesvdv2017-01-102-11/+16
| | |
* | | Auto merge of #14959 - nox:pending-script, r=Ms2gerbors-servo2017-01-115-94/+178
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce PendingScript <!-- 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/14959) <!-- Reviewable:end -->
| * | | Introduce PendingScriptAnthony Ramine2017-01-115-82/+166
| | | | | | | | | | | | | | | | | | | | This moves scripts' loading results in Document, instead of maintaining them behind a DOMRefCell in each HTMLScriptElement.
| * | | Rename ScriptOrigin to ClassicScriptAnthony Ramine2017-01-111-10/+10
| | | |
| * | | Introduce Document::has_pending_parsing_blocking_scriptAnthony Ramine2017-01-112-5/+5
| | | |
| * | | Do not pass an Option to Document::set_pending_parsing_blocking_scriptAnthony Ramine2017-01-102-5/+5
| | |/ | |/|
* | | Auto merge of #14929 - servo:update-image, r=mbrubeckbors-servo2017-01-111-1/+1
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | Update image. <!-- 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/14929) <!-- Reviewable:end -->
| * | Update image.Ms2ger2017-01-111-1/+1
| | |
* | | Auto merge of #14943 - nox:external-script-kind, r=jdmbors-servo2017-01-101-66/+74
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce ExternalScriptKind to simplify HTMLScriptElement::prepare <!-- 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/14943) <!-- Reviewable:end -->
| * | | Introduce ExternalScriptKind to simplify HTMLScriptElement::prepareAnthony Ramine2017-01-101-43/+44
| | | |
| * | | Fix steps numbering of HTMLScriptExecute::prepareAnthony Ramine2017-01-101-35/+42
| |/ /
* | | Fix some warnings.Ms2ger2017-01-101-3/+0
| | |
* | | Auto merge of #14928 - nox:insert, r=SimonSapinbors-servo2017-01-103-29/+26
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | Unify text insertion when parsing HTML and XML <!-- 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/14928) <!-- Reviewable:end -->
| * | Unify text insertion when parsing HTML and XMLAnthony Ramine2017-01-103-29/+26
| | |
* | | Auto merge of #14925 - servo:callback, r=jdmbors-servo2017-01-093-60/+75
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some cleanup around JS callbacks. <!-- 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/14925) <!-- Reviewable:end -->
| * | | Privatize some items in EventTarget.Ms2ger2017-01-091-9/+9
| | | |
| * | | Expose CallbackObject more.Ms2ger2017-01-093-22/+31
| | | | | | | | | | | | | | | | This will make it easier to use new fields added to it.
| * | | Introduce CallbackObject::new().Ms2ger2017-01-091-7/+11
| | | |
| * | | Change the order of code in callback.rs to make more sense.Ms2ger2017-01-091-33/+35
| |/ /
* | | Auto merge of #14868 - bd339:iss14068, r=jdmbors-servo2017-01-092-5/+18
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix loss of response type information in Fetch API <!-- Please describe your changes on the following line: --> Avoids mapping response types that are distinct according to [the spec](https://fetch.spec.whatwg.org/#concept-response-type) to fewer response types. Also updates test expectations to match that we now pass tests that check the response type. --- <!-- 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 #14068 <!-- Either: --> - [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="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14868) <!-- Reviewable:end -->
| * | | Don't lose information in Fetch APIbd3392017-01-092-5/+18
| | | | | | | | | | | | | | | | Also update test expectations.
* | | | Auto merge of #14907 - bholley:eliminate_consume, r=emiliobors-servo2017-01-091-10/+4
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Give up on hoisting ElementData into the frame and eliminate the concept of consuming styles Servo PR for the work in https://bugzilla.mozilla.org/show_bug.cgi?id=1325734 <!-- 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/14907) <!-- Reviewable:end -->
| * | | Bug 1325734 - Remove Servo Layout's dependency on the initial-ness of the ↵Bobby Holley2017-01-091-10/+4
| | | | | | | | | | | | | | | | style. r=emilio
* | | | Auto merge of #14789 - Manishearth:supports, r=SimonSapinbors-servo2017-01-0912-6/+219
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support @supports fixes #14786 cc @heycam @upsuper r? @SimonSapin <!-- 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/14789) <!-- Reviewable:end -->
| * | | Add CSS.supports()Manish Goregaokar2017-01-072-2/+32
| | | |
| * | | CSSOM bits for @supports: CSSConditionRule and CSSSupportsRule, with ↵Manish Goregaokar2017-01-0710-4/+187
| | | | | | | | | | | | | | | | conditionText attribute
* | | | Auto merge of #14927 - servo:ImageData-data, r=jdmbors-servo2017-01-091-20/+11
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the typed array APIs in ImageData. <!-- 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/14927) <!-- Reviewable:end -->
| * | | | Use the typed array APIs in ImageData.Ms2ger2017-01-091-20/+11
| | |_|/ | |/| |
* | | | Auto merge of #14917 - ↵bors-servo2017-01-091-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fkautz:pr_out_renaming_default_features_to_default_features_as_per_cargo_s_manifest_format, r=emilio Renaming default_features to default-features as per Cargo's Manifest Format <!-- 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/14917) <!-- Reviewable:end -->
| * | | | Renaming default_features to default-features as per Cargo's Manifest FormatFrederick F. Kautz IV2017-01-081-1/+1
| |/ / /
* / / / WebVR API Implementation, r=larsbergstromImanol Fernandez2017-01-0928-2/+1788
|/ / /
* | | Auto merge of #14895 - dowoncha:request-websocket, r=jdmbors-servo2017-01-081-0/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added Websocket to RequestMode enum Added Websocket to RequestMode enum --- <!-- 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 #14785 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because matching the enum should have default control flow. <!-- 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/14895) <!-- Reviewable:end -->
| * | | Added Websocket to RequestMode enumDowon Cha2017-01-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | set unreachable in dom/request.rs for websocket fixed imports
* | | | Auto merge of #14648 - cynicaldevil:xmlhttpreq-send, r=KiChjangbors-servo2017-01-082-38/+82
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implemented XMLHttpRequest.send(Document) <!-- 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 #9490 . <!-- Either: --> r? @KiChjang `XMLHttpRequest/send-entity-body-document.htm` is not working atm, I get this output: ``` $ ./mach test-wpt tests/wpt/web-platform-tests/XMLHttpRequest/send-entity-body-document.htm Running 1 tests in web-platform-tests Ran 1 tests finished in 0.0 seconds. • 1 ran as expected. 1 tests skipped. ``` <!-- 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/14648) <!-- Reviewable:end -->
| * | | | Implemented XMLHttpRequest.send(Document)Nikhil Shagrithaya2017-01-082-38/+82
| | | | |