aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused imports.Ms2ger2015-12-129-9/+0
|
* Auto merge of #8935 - Ms2ger:get_or_create, r=Manishearthbors-servo2015-12-123-39/+19
|\ | | | | | | | | | | | | | | Avoid some rooting in parsing. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8935) <!-- Reviewable:end -->
| * Avoid some rooting in parsing.Ms2ger2015-12-113-39/+19
| |
* | Auto merge of #8930 - frewsxcv:event-type-atom, r=noxbors-servo2015-12-1122-107/+128
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | Pass around event types as Atoms instead of Strings `Event` internally stores the `type` as an `Atom`, and we're `String`s everywhere, which can cause unnecessary allocations to occur since they'll end up as `Atom`s anyways. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8930) <!-- Reviewable:end -->
| * Pass around event types as Atoms instead of StringsCorey Farwell2015-12-1022-107/+128
| | | | | | | | | | | | `Event` internally stores the `type` as an `Atom`, and we're `String`s everywhere, which can cause unnecessary allocations to occur since they'll end up as `Atom`s anyways.
* | Auto merge of #8918 - Ms2ger:trace, r=noxbors-servo2015-12-111-16/+10
|\ \ | | | | | | | | | | | | | | | | | | | | | Initialize the slots of global objects before a possible GC. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8918) <!-- Reviewable:end -->
| * | Initialize the slots of global objects before a possible GC.Ms2ger2015-12-101-16/+10
| | |
* | | Auto merge of #8926 - frewsxcv:no-map, r=SimonSapinbors-servo2015-12-111-4/+12
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prefer 'if let' over 'map() with side effects' <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8926) <!-- Reviewable:end -->
| * | | Prefer 'if let' over 'map() with side effects'Corey Farwell2015-12-101-4/+12
| | |/ | |/|
* / | Fix warnings: Use Vec.extend_from_slice instead of Vec.push_allTetsuharu OHZEKI2015-12-104-10/+9
|/ /
* | Auto merge of #8911 - alex:patch-1, r=frewsxcvbors-servo2015-12-101-2/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | Remove two "#![feature]" that are now stable <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8911) <!-- Reviewable:end -->
| * | Remove two "#![feature]" that are now stableAlex Gaynor2015-12-091-2/+0
| | |
* | | Auto merge of #8909 - cnaj:msg_refactoring, r=jdmbors-servo2015-12-1015-22/+18
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move ScriptMsg to script_traits crate, Fixes #8833 Review of documentation that was missing needed. Fixes #8833. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8909) <!-- Reviewable:end -->
| * | | Move ScriptMsg from msg crate into script_traitsTomas Cernaj2015-12-0915-22/+18
| | |/ | |/|
* | | Auto merge of #8828 - Ronak6892:docResp, r=eefriedmanbors-servo2015-12-102-4/+116
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | M1503/M1504 : Support for missing XMLHttpRequestAPIs and Document response handling Hi, This is for NCSU Fall 15 project M1503 and M1504: M1503: Integrate XML Parser (Step 3 of 4): Support for Document response handling and calling the appropriate parser. M1504: Support for missing XMLHttpRequest APIs https://github.com/servo/servo/wiki/Integrate-xml5ever It includes changes to handle document response for XMLHttpRequest. Kindly review. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8828) <!-- Reviewable:end -->
| * | Implement responseXML API and document response type for XHRJitendra Jain2015-12-092-4/+116
| |/
* / Update rustc to the 2015-12-09 nightly.Ms2ger2015-12-091-0/+1
|/
* Auto merge of #8867 - nfallen:6638-websocket_loader, r=jdmbors-servo2015-12-081-101/+55
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move websocket creation to resource task This is a pull request for part of https://github.com/servo/servo/issues/6638 It includes the following changes: -The websocket networking code (ie. making a connection, receiving data, and sending data) has been extracted out of components/script/dom/websocket.rs and into the new file components/net/websocket_loader.rs. -websocket.rs now communicates with the resource task (components/net/resource_task.rs) to instruct it to initiate a new websocket connection - websocket_loader.rs now provides an API sent over an IPCChannel that allows websocket.rs to receive feedback about this process and to subsequently send and receive data <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8867) <!-- Reviewable:end -->
| * move websocket creation to resource taskNova Fallen2015-12-081-101/+55
| |
* | Auto merge of #8827 - jdm:debugmozjscrash, r=Ms2gerbors-servo2015-12-081-22/+9
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid a null-dereference using debug mozjs builds. This matches the e… …quivalent code upstream in Gecko. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8827) <!-- Reviewable:end -->
| * | Avoid a null-dereference using debug mozjs builds. This matches the ↵Josh Matthews2015-12-071-22/+9
| | | | | | | | | | | | equivalent code upstream in Gecko.
* | | Auto merge of #8876 - ecoal95:webgl-nits, r=jdmbors-servo2015-12-081-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WebGL nits This improves support for running our triangle test (see: https://github.com/servo/servo/pull/8831), and adds missing error in `BufferSubData` <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8876) <!-- Reviewable:end -->
| * | | webgl: Add correct error handling to BufferSubDataEmilio Cobos Álvarez2015-12-071-1/+1
| | |/ | |/| | | | | | | | | | | | | From the WebGL spec: > If data is null then an INVALID_VALUE error is generated.
* | | Auto merge of #8862 - fstr:move_workerid, r=Ms2gerbors-servo2015-12-085-9/+10
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | Moved WorkerId type to devtools_traits Fixes #8846. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8862) <!-- Reviewable:end -->
| * | Moved WorkerId type to devtools_traitsFlorian Strübe2015-12-075-9/+10
| | |
* | | Auto merge of #8853 - KiChjang:generic-task-sources, r=jdmbors-servo2015-12-0711-39/+98
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | Split fn script_chan into 5 different task channel fn Partial #7959. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8853) <!-- Reviewable:end -->
| * | Split fn script_chan into 5 different task channel fnKeith Yeung2015-12-0611-39/+98
| | |
* | | Auto merge of #8831 - simartin:ticket_6791, r=eefriedmanbors-servo2015-12-071-7/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #6791: Allow more array types in bufferData and bufferSubData. Fix https://github.com/servo/servo/issues/6791 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8831) <!-- Reviewable:end -->
| * | | Issue #6791: Allow more array types in bufferData and bufferSubData.Simon Martin2015-12-061-7/+3
| | |/ | |/|
* | | move FocusType enum to the script crateRoman Klauke2015-12-063-5/+11
| | | | | | | | | | | | | | | | | | | | | This commit moves the FocusType enum to the script crate and replaces all usages with the new `usage`. Fixes #8840
* | | Implement IsPointInPathDavid Zbarsky2015-12-052-6/+18
| | |
* | | Add link to issue for :visitedSimon Sapin2015-12-051-0/+1
| | |
* | | Auto merge of #8812 - jitendra29:support-withCredentials, r=jdmbors-servo2015-12-052-0/+4
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | M1504: Implement basic support for withCredentials API The pull request includes the following task: * Implemented basic network-level support by adding a member to LoadData that is used by http_loader.rs to conditionally exclude cookies from the HTTP request if the flag is false (default true) <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8812) <!-- Reviewable:end -->
| * | implement support for withCredentialsJigesh Mehta2015-12-042-0/+4
| |/
* | Create and invoke XML parser for XML documents.ronak2015-12-044-35/+95
| |
* | Introduce abstraction over HTML and XML parsers for parser network listener.Josh Matthews2015-12-045-33/+328
| |
* | Prepare infrastructure for XML parser.jsharda2015-12-044-4/+145
|/
* Auto merge of #8788 - ecoal95:fix-webgl-texturing, r=jdmbors-servo2015-12-041-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | webgl: Fix texturing These two tiny changes were making WebGL textures not work. It was not seen in our texturing test since it only used one texture, we render to a texture by default, and that texture was bound to `gl::TEXTURE_2D`. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8788) <!-- Reviewable:end -->
| * webgl: Fix texturingEmilio Cobos Álvarez2015-12-031-1/+1
| | | | | | | | | | | | | | These two tiny changes were making WebGL textures not work. It was not seen in our texturing test since we render to a texture by default, and that texture was bound to `gl::TEXTURE_2D`.
* | Auto merge of #8768 - vegayours:8616_intermittent_option_unwrap_in_timers, r=jdmbors-servo2015-12-041-8/+14
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix intermittent Option::unwrap in timers fixes intermittent #8616 This intermittent indicates real problem in code. Lets consider such code: ```javascript // timer 1 setTimeout(function() { //timer 2 setTimeout(function() {}, 0); }, 0); ``` When we receive event to fire timer 1 it will be selected and extracted from active timers list in fire_timer function. During timer 1 handler execution we will schedule timer 2 and request timer event for it. But it will be executed during same fire_timer call because of 0 timeout. And as a result we will have empty timers list and expecting event for timer 2 that will crash in assert. I'm not sure that all I've written is clear, but we have something like this: ``` install timer 1 -> [1] in timers list push and expect timer event 1 -> expected_event=1 received timer event 1 fire_timer() select timer 1 to execute -> [] in timers list execute timer 1 handler install timer 2 -> [2] in timers list push and expect timer event 2 -> expected_event=2 select timer 2 to execute (because of 0 timeout) -> [] in tiemrs list execute timer 2 handler expected_event=2 is dangling received timer event 2 fire_timer() -> BOOM ``` <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8768) <!-- Reviewable:end -->
| * | fix intermittent Option::unwrap in timersAleksandr Likhanov2015-12-041-8/+14
| |/ | | | | | | not allow to fire timers installed during another timer call
* | Auto merge of #8805 - Ms2ger:drain_modified_elements, r=jdmbors-servo2015-12-041-3/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | Simplify drain_modified_elements a bit. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8805) <!-- Reviewable:end -->
| * | Simplify drain_modified_elements a bit.Ms2ger2015-12-031-3/+2
| | |
* | | Fix warnings.Ms2ger2015-12-041-1/+0
| | |
* | | Auto merge of #8818 - jdm:imagepanic, r=Manishearthbors-servo2015-12-041-2/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make IPC image cache listener silently drop failures instead of catas… …trophically panicking. Resolves #8817. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8818) <!-- Reviewable:end -->
| * | | Make IPC image cache listener silently drop failures instead of ↵Josh Matthews2015-12-041-2/+2
| | | | | | | | | | | | | | | | catastrophically panicking. Resolves #8817.
* | | | Auto merge of #8728 - dzbarsky:reset_bitmpa, r=dzbarskybors-servo2015-12-042-2/+10
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reset canvas state when changing bitmap dimensions Ran http://mxr.mozilla.org/servo/source/tests/wpt/web-platform-tests/html/semantics/embedded-content/the-canvas-element/initial.reset.2dstate.html?force=1#88 to confirm that this code is being executed, but the test still fails because the font isn't implemented and the expando doesn't get reset. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8728) <!-- Reviewable:end -->
| * | | Reset canvas state when changing bitmap dimensionsDavid Zbarsky2015-11-302-2/+10
| | | |
* | | | Auto merge of #8810 - frewsxcv:webidl-spec-link, r=eefriedmanbors-servo2015-12-041-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix broken WebIDL spec link <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8810) <!-- Reviewable:end -->
| * | | | Fix broken WebIDL spec linkCorey Farwell2015-12-031-1/+1
| | |/ / | |/| |