aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #10961 - creativcoder:custom_response_iface, r=jdmbors-servo2016-05-211-4/+35
|\ | | | | | | | | | | | | | | | | | | | | adding interface for custom responses Fixes #10960 <!-- 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/10961) <!-- Reviewable:end -->
| * adding interface for custom responsesRahul Sharma2016-05-201-4/+35
| |
* | Remove pointless phantom arguments to ScriptThreadFactory and ↵Ms2ger2016-05-201-6/+4
|/ | | | LayoutThreadFactory.
* Implement trait-based ResourceThreads and clean up related naming issuesZhen Zhang2016-05-201-11/+7
| | | | | | | | | | Changes include: - Introduce an IpcSend trait to abstract over a collection of IpcSenders - Implement ResourceThreads collection to abstract the resource-related sub threads across the component - Rename original ResourceThread and ControlMsg into an unifed CoreResource__ to accommodate above changes and avoid confusions
* Remove ConstellationChan.Ms2ger2016-05-191-18/+17
| | | | | | It's a pointless abstraction that propagates the obsolete chan terminology, swaps the order in which the sender and receiver are returned, and hides a source of panics.
* Auto merge of #11239 - jdm:time-profile, r=noxbors-servo2016-05-181-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add timeline markers for HTTP requests, JS evaluation, and HTML parsing. 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 (didn't try to compile past a rustc upgrade on airplane wifi) - [X] `./mach test-tidy --faster` does not report any errors - [X] These changes fix #11218 (github issue number if applicable). Either: - [ ] There are tests for these changes OR - [X] These changes do not require tests because we don't have testing infrastructure for profiling. 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/11239) <!-- Reviewable:end -->
| * Add timeline markers for HTTP requests, JS evaluation, and HTML parsing.Josh Matthews2016-05-181-0/+1
| |
* | Report panics in web worker threads.Ms2ger2016-05-181-1/+5
|/
* Stop using JSAutoRequest.Ms2ger2016-05-131-2/+1
|
* Auto merge of #10714 - KiChjang:user-interaction-task, r=Ms2gerbors-servo2016-05-121-3/+7
|\ | | | | | | | | | | | | | | | | | | | | Implement user interaction task source Part of #7959. <!-- 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/10714) <!-- Reviewable:end -->
| * Implement user interaction task sourceKeith Yeung2016-05-111-1/+5
| |
| * Rename DOM manipulation messages to tasksKeith Yeung2016-05-041-2/+2
| |
* | Addressed commentConnor Brewster2016-05-111-12/+10
| |
* | removed instances of &Root<BrowsingContext>Connor Brewster2016-05-111-3/+3
| |
* | remove page and move functionality to browing contextConnor Brewster2016-05-111-244/+248
| | | | | | | | | | | | | | | | | | | | Allow for adding history items Fixed nested iframe test failure Cleanup and small refactors fixup
* | Add logging for shutting down non-root pipelines in the script thread.Josh Matthews2016-05-111-0/+1
| |
* | Make debug logging for tracing JS objects more informative.Josh Matthews2016-05-111-0/+1
|/
* Auto merge of #10632 - szeged:bluetooth-ipc, r=jdmbors-servo2016-05-041-0/+5
|\ | | | | | | | | | | | | | | | | | | | | WebBluetooth impementation Update the current WebBluetooth implementation. <!-- 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/10632) <!-- Reviewable:end -->
| * Add Bluetooth IPC supportfokinv2016-05-031-0/+5
| |
* | Auto merge of #8454 - jdm:media, r=KiChjangbors-servo2016-05-031-0/+13
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement basic <media> infrastructure This gets us to the point where we can start playing with actually integrating rust-media to process the data received by the network request, as currently it's just ignored. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8454) <!-- Reviewable:end -->
| * | Implement basic media resource selection and fetching.Josh Matthews2016-05-031-0/+13
| | |
* | | Update SpiderMonkeyAnthony Ramine2016-05-031-2/+3
| |/ |/|
* | Make IFrameLoadInfo take an Option<LoadData> instead of Option<Url>Keith Yeung2016-04-301-1/+1
| |
* | Reduce channel cloning.Ms2ger2016-04-291-1/+1
| |
* | Avoid the unnecessary MainThreadScriptChan in ScriptThread::create().Ms2ger2016-04-291-4/+8
| |
* | Remove unused SendableMainThreadScriptChan::new() method.Ms2ger2016-04-291-8/+0
| |
* | Remove unused MainThreadScriptChan::new() method.Ms2ger2016-04-291-8/+0
| |
* | Avoid some clones.Ms2ger2016-04-291-11/+7
|/
* script: Make iframes know their pipeline IDs at all times, even afterPatrick Walton2016-04-281-4/+9
| | | | | | | | | navigation. Since WebRender uses the pipeline ID stored in the iframe element to determine which pipeline to display, it had better be kept up to date! Closes #9919.
* Remove extraneous script_chan parameter from Trusted::newKeith Yeung2016-04-281-3/+2
|
* Auto merge of #10647 - ConnorGBrewster:parse_xml, r=jdmbors-servo2016-04-271-23/+29
|\ | | | | | | | | | | | | | | | | | | | | | | | | Finish hooking up XML parser This is a work in progress PR for #10581. I just want to make sure I am headed in the right direction. cc @jdm <!-- 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/10647) <!-- Reviewable:end -->
| * Finish hooking up XML parserConnor Brewster2016-04-271-23/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added script integration with xml5ever Updated test expectations Removed timeout test expectation Refactors application/xhtml+xml is treated as HTML Updated xml5ever Updated Text Expectations
* | Move abstract parser infrastructure from servohtmlparser.rs to parseMartin Broesamle2016-04-271-1/+2
|/
* Add referrer policy pass-through and referrer header logicRebecca2016-04-251-0/+2
| | | | | | | add pass-through from doc to http-loader for referrer_policy, ref_URL add logic for setting referer header add script pass-through for referrer add unit tests for setting referer header
* Upgrade to rust-url 1.0 and hyper 0.9Simon Sapin2016-04-231-30/+22
|
* Auto merge of #10654 - notriddle:no_resize_on_initial_load, r=asajeffreybors-servo2016-04-221-15/+17
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | compositing/script: Do not dispatch the resize event when initially l… …oading. No bug report corresponds to this, but I noticed it while trying to reduce #10593 <!-- 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/10654) <!-- Reviewable:end -->
| * compositing/script: Do not dispatch the resize event when initially loading.Michael Howell2016-04-221-15/+17
| | | | | | | | | | No bug report corresponds to this, but I noticed it while trying to reduce #10593
* | Auto merge of #10710 - Ms2ger:js, r=noxbors-servo2016-04-211-1/+1
|\ \ | |/ |/| | | | | | | | | | | Update js. <!-- 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/10710) <!-- Reviewable:end -->
| * Update js.Ms2ger2016-04-201-1/+1
| |
* | Propagating the load errors from network loaderRavi Shankar2016-04-201-3/+3
| |
* | Added a dedicated panic channel.Alan Jeffrey2016-04-191-7/+7
|/
* Auto merge of #10587 - asajeffrey:add-failure-panic-message, r=Manishearthbors-servo2016-04-141-2/+2
|\ | | | | | | | | | | | | | | | | | | | | Added panic message to failures. Added the panic message to failures. This is a step towards #10334, since it gives us access to the panic error message when we fire a `mozbrowsererror` event. The remaining steps are also to record the backtrace, and to report the failure in the event. <!-- 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/10587) <!-- Reviewable:end -->
| * Added panic message to failures.Alan Jeffrey2016-04-131-2/+2
| |
* | Remove the url! plugin.Simon Sapin2016-04-141-1/+1
|/ | | | | | | | In rust-url 1.0 the `Url` struct is going to have private fields, and there is no way to to create an aribitrary one without going through the parser. The plugin never had a clear demonstrated performance benefit, it was made mostly because it was possible and relatively easy at the time.
* Use better JS engine defaultsJack Moffitt2016-04-081-1/+2
| | | | | | | | | | | This adds in preferences for all the SM 39 available options (as retrieved from Gecko), and uses the same defaults as Gecko. A few properties are not supported yet, and incremental GC is still always disabled regardless of the preference setting. This also adds back in the options that were accidentally deleted when \#10342 was rebased, which moved things from script_thread.rs to script_runtime.rs.
* Fix rebasing errorStjepan Glavina2016-04-071-1/+0
| | | | | | | | | This PR mistakenly removed JIT enabling/disabling by preference: https://github.com/servo/servo/pull/10342/files Look for `get_pref`. I'm putting the missing piece of code into the appropriate place in script_runtime.rs
* refactors entities from script_thread into script_runtimeRahul Sharma2016-04-061-228/+11
|
* forcetouch events supportPaul Rouget2016-04-051-1/+7
| | | | | | | | | | This enables Apple forcetouch DOM events. It requires the preference dom.forcetouch.enabled. The DOM events are described here: - https://developer.apple.com/library/mac/documentation/AppleApplications/Conceptual/SafariJSProgTopics/RespondingtoForceTouchEventsfromJavaScript.html The Cocoa mechanism is documented here: - https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSEvent_Class/#//apple_ref/doc/uid/20000016-SW274
* Auto merge of #10325 - stjepang:pref-disable-jit, r=mbrubeckbors-servo2016-04-051-1/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Add preferences to enable/disable the JITs When creating a runtime (script.rs), we check prefs and then enable or disable the JITs (Baseline and Ion) accordingly. Closes #10278. <!-- 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/10325) <!-- Reviewable:end -->
| * Add preferences to enable/disable the JITsStjepan Glavina2016-04-041-1/+11
| | | | | | | | | | When creating a runtime (script.rs), we check prefs and then enable or disable the JITs (Baseline and Ion).