aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlscriptelement.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Auto merge of #15020 - jdm:external_script_line, r=Ms2gerbors-servo2017-01-161-1/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not use the script element's line number for external scripts. This was yielding incorrect line numbers when looking at JS backtraces in gdb. - [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 <!-- 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/15020) <!-- Reviewable:end -->
| * Do not use the script element's line number for external scripts.Josh Matthews2017-01-131-1/+2
| |
* | Kill beforescriptexecute and afterscriptexecute (fixes #12446)Anthony Ramine2017-01-141-20/+0
| |
* | Auto merge of #15011 - nox:load-fixes, r=jdmbors-servo2017-01-141-0/+11
|\ \ | | | | | | | | | | | | | | | | | | | | | Various script loading fixes <!-- 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/15011) <!-- Reviewable:end -->
| * | Implement HTMLScriptElement async attributeAnthony Ramine2017-01-141-0/+11
| | |
* | | Handle crossorigin in link and refactor crossorigin handlingmrnayak2017-01-131-25/+4
|/ / | | | | | | | | | | | | | | Implemented Step three and handled step four of obtain the resource part of 4.2.4 The link element. Link to spec : https://html.spec.whatwg.org/multipage/semantics.html#concept-link-obtain Refactored crossOrigin handling in HTMLScriptElement, HTMLImageElement
* / Don't fire a load event on inline scriptsAnthony Ramine2017-01-131-2/+0
|/ | | | https://github.com/whatwg/html/issues/1757
* Store parser's current line when script elements are created.karenher2017-01-111-3/+7
| | | | | | 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.
* Introduce PendingScriptAnthony Ramine2017-01-111-15/+21
| | | | | 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
|
* Do not pass an Option to Document::set_pending_parsing_blocking_scriptAnthony Ramine2017-01-101-2/+2
|
* Introduce ExternalScriptKind to simplify HTMLScriptElement::prepareAnthony Ramine2017-01-101-43/+44
|
* Fix steps numbering of HTMLScriptExecute::prepareAnthony Ramine2017-01-101-35/+42
|
* Implement Subresource Integritymrnayak2017-01-081-3/+15
| | | | | | | | | | | Implemented response validation part of https://w3c.github.io/webappsec-subresource-integrity/. Implemented step eighteen of the main fetch. If a request has integrity metadata, then following steps are performed *Wait for response body *If the response does not have a termination reason and response does not match request’s integrity metadata, set response to a network error.# Please enter the commit message for your changes. Lines starting
* Implement "child text content" concept; use it where appropriate.Corey Farwell2016-12-151-1/+1
|
* Rename `Reflectable` to `DomObject`.Corey Farwell2016-12-081-1/+1
| | | | Fixes https://github.com/servo/servo/issues/8473.
* Implement document.write (fixes #3704)Anthony Ramine2016-11-281-9/+11
| | | | This is a bit crude because of some missing utility methods on BufferQueue.
* Rewrite how parser handles script schedulingAnthony Ramine2016-11-261-24/+12
|
* Auto merge of #14210 - GuillaumeGomez:fragment_node, r=noxbors-servo2016-11-211-0/+4
|\ | | | | | | | | | | | | | | | | | | | | Add missing action in CreateContextualFragment method r? @nox <!-- 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/14210) <!-- Reviewable:end -->
| * Add missing actions in CreateContextualFragment methodGuillaume Gomez2016-11-181-0/+4
| |
* | Remove redundant url clonesPu Xingyu2016-11-181-2/+2
| | | | | | | | | | They are now redundant since now document.url() returns a struct rather than a reference.
* | Urlmageddon: Use refcounted urls more often.Emilio Cobos Álvarez2016-11-171-6/+6
|/
* Properly implement TaskSource for NetworkingTaskSourceKeith Yeung2016-11-111-2/+2
|
* Auto merge of #14156 - frewsxcv:cors-capitalization, r=KiChjangbors-servo2016-11-101-7/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update CORS naming from 'CORS' to 'Cors'. As per: https://aturon.github.io/style/naming/README.html#general-conventions-[rfc-#430] Acronyms should be considered one word and not all caps. <!-- 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/14156) <!-- Reviewable:end -->
| * Update CORS naming from 'CORS' to 'Cors'.Corey Farwell2016-11-091-7/+7
| | | | | | | | | | | | | | | | As per: https://aturon.github.io/style/naming/README.html#general-conventions-[rfc-#430] Acronyms should be considered one word and not all caps.
* | Update html5ever to 0.10.1Anthony Ramine2016-11-101-15/+16
|/
* Update to string-cache 0.3Simon Sapin2016-11-031-16/+17
|
* Remove intrinsic Root::r()Anthony Ramine2016-10-111-6/+4
|
* Rename Reflectable::global_scope to globalAnthony Ramine2016-10-061-1/+1
|
* Move JS evaluation functions to GlobalScopeAnthony Ramine2016-10-061-2/+2
|
* Introduce Reflectable::global_scopeAnthony Ramine2016-10-061-1/+1
|
* Introduce GlobalScope::pipeline_idAnthony Ramine2016-10-061-1/+1
|
* Make reflect_dom_object take a &GlobalScopeAnthony Ramine2016-10-061-1/+1
|
* Auto merge of #13571 - servo:simplify-fetching, r=noxbors-servo2016-10-041-1/+1
|\ | | | | | | | | | | | | | | Simplify fetching code. <!-- 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/13571) <!-- Reviewable:end -->
| * Avoid PendingAsyncLoad in fetch_async.Ms2ger2016-10-041-1/+1
| |
* | Remove duplicated definition of 'doc'.Ms2ger2016-10-041-2/+0
|/ | | | The same line exists higher up in the function.
* Replace ScriptHelpers by GlobalRef methodsAnthony Ramine2016-10-031-4/+2
|
* Remove same-origin-data-url flag from fetch implementationJan Zerebecki2016-10-011-2/+0
| | | | | | | The spec removed it. Check the scheme instead, data is always same origin now, except for workers. This also updates the comments to make step numbers match the spec. Closes #13362
* Auto merge of #13397 - aochagavia:dispatch-event, r=Ms2gerbors-servo2016-09-261-3/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Return an enum instead of a boolean from dispatch_event Fixes #13196 --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13196. - [X] These changes do not require tests because the functionality hasn't changed <!-- 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/13397) <!-- Reviewable:end -->
| * Return an enum instead of a boolean from dispatch_eventAdolfo Ochagavía2016-09-261-3/+4
| | | | | | | | Fixes #13196
* | Add FetchMetadata and update corresponding methodsKeith Yeung2016-09-211-3/+7
| |
* | Use fetch infrastructure to load external scriptsKeith Yeung2016-09-211-18/+55
| |
* | Add crossorigin attribute and implement step 14 of prepare a scriptKeith Yeung2016-09-211-0/+29
|/ | | | Add WPT test for HTMLScriptElement crossOrigin IDL attribute
* Bring referrer policy delivery to <a> and <link> via rel attributeYing-Ruei Liang(KK)2016-09-201-1/+2
|
* Most of the code refactoring needed to be done is done with this commit.Arthur Marble2016-09-181-4/+4
|
* Reorder `use` statementsUK9922016-09-091-1/+1
|
* dom::Response implementationMalisa Smith2016-09-061-3/+1
|
* Update serde to 0.8 (fixes #12659)Anthony Ramine2016-08-121-1/+2
|
* Stop destructuring load in HTMLScriptElement::execute().Ms2ger2016-07-161-11/+10
|
* Turn ScriptOrigin into a struct.Ms2ger2016-07-161-13/+30
|