aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmliframeelement.rs
Commit message (Collapse)AuthorAgeFilesLines
* Implement browsing context discarding.Alan Jeffrey2017-01-051-35/+26
|
* Implement correct security checks for HTMLIFrameElement::contentDocument.Ms2ger2016-12-231-5/+3
| | | | Fixes #10964.
* Pass the Document's origin to its constructor.Ms2ger2016-12-231-1/+1
| | | | CC #10963.
* Removed util.Alan Jeffrey2016-12-141-2/+2
|
* Remove HeapGCValueAnthony Ramine2016-12-121-2/+2
| | | | | | It could be used to have mutable JSVal fields without GC barriers. With the removal of that trait, MutHeap and MutNullableHeap can respectively be replaced by MutJS and MutNullableJS.
* Add support for fullscreen #10102Jansen Jan2016-12-091-1/+6
|
* Rename `Reflectable` to `DomObject`.Corey Farwell2016-12-081-1/+1
| | | | Fixes https://github.com/servo/servo/issues/8473.
* Added debugging to htmliframeelement.rs.Alan Jeffrey2016-12-061-0/+3
|
* Implement synchronous about:blank loading.Ms2ger2016-11-301-38/+110
| | | | Based on initial work by jdm in <https://github.com/servo/servo/pull/8600>.
* Remove redundant url clonesPu Xingyu2016-11-181-1/+1
| | | | | 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-3/+3
|
* Replace script thread root browsing context by a collection of documents.Alan Jeffrey2016-11-081-7/+11
|
* Auto merge of #14036 - frewsxcv:event, r=noxbors-servo2016-11-041-1/+1
|\ | | | | | | | | | | | | | | A couple improvements to `EventTarget` event firing. <!-- 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/14036) <!-- Reviewable:end -->
| * Migrate `EventTarget` event firing functions to use `Atom`s.Corey Farwell2016-11-031-1/+1
| | | | | | | | This allows us to utilize more `atom` macros.
| * Remove "fire a simple event" concept, refactor event firing API.Corey Farwell2016-11-031-1/+1
| | | | | | | | | | "fire a simple event" concept was removed in https://github.com/whatwg/html/pull/1933.
* | Lookup frames by frame_id, not pipeline_id.Alan Jeffrey2016-11-031-0/+5
| |
* | Auto merge of #13965 - ↵bors-servo2016-11-031-4/+20
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | asajeffrey:script-iframe-check-document-browsing-context, r=Ms2ger Check that an iframe is in a document with a browsing context before processing src <!-- Please describe your changes on the following line: --> Check that an iframe is in a document with a browsing context before processing src. --- <!-- 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 #13964. - [X] These changes do not require tests because this is already tested by https://github.com/servo/servo/blob/master/tests/wpt/web-platform-tests/old-tests/submission/Opera/script_scheduling/034.html <!-- 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/13965) <!-- Reviewable:end -->
| * Check that an iframe is in a document with a browsing context before ↵Alan Jeffrey2016-11-031-4/+20
| | | | | | | | processing src.
* | Update to string-cache 0.3Simon Sapin2016-11-031-20/+21
|/
* Remove extra spaces in function calls and declarationsDaan Sprenkels2016-10-311-8/+8
|
* script: Implement the `frameBorder` attribute on `HTMLIFrameElement`.Patrick Walton2016-10-261-0/+5
| | | | google.com uses this for the "set Google as your home page" popup.
* Move LoadData to script_traits.Ms2ger2016-10-211-2/+2
|
* Remove intrinsic Root::r()Anthony Ramine2016-10-111-2/+0
|
* IFrame elements now manage FrameIds rather than the constellation.Alan Jeffrey2016-10-071-1/+4
|
* Introduce GlobalScope::pipeline_idAnthony Ramine2016-10-061-2/+3
|
* Introduce GlobalScope::constellation_chanAnthony Ramine2016-10-061-4/+6
|
* Make reflect_dom_object take a &GlobalScopeAnthony Ramine2016-10-061-2/+1
|
* Replace current session entry for reloadsConnor Brewster2016-09-191-3/+4
|
* Made fixes for PR.Arthur Marble2016-09-181-5/+5
|
* Most of the code refactoring needed to be done is done with this commit.Arthur Marble2016-09-181-10/+10
|
* Excise SubpageId and use only PipelineIdsAneesh Agrawal2016-09-131-26/+12
| | | | | | | SubpageId was originally introduced in 2013 to help iframes keep track of their associated (children) pipelines. However, since each pipeline already has a PipelineId, and those are unique, those are sufficient to keep track of children.
* Consistently use parent_pipeline_idAneesh Agrawal2016-09-131-1/+1
| | | | | Instead of containing_pipeline_id, use parent_pipeline_id because it is more clear that it refers to the immediate parent.
* Use fn pipeline_id consistently, not fn pipelineAneesh Agrawal2016-09-131-7/+3
| | | | | | | | | | | | Consistently use the name 'pipeline_id' to refer to a function that returns an (optional) PipelineId. This was prompted by discovering both fn pipeline and fn pipeline_id doing the same job in htmliframeelement.rs. Note that there is fn pipeline in components/compositing/compositor.rs, but that actually returns an Option<&CompositionPipeline>, not any kind of PipelineId.
* Reorder `use` statementsUK9922016-09-091-6/+6
|
* Remove static usage at compile-time of GIT_INFO to enable builds outside of ↵Lars Bergstrom2016-08-271-1/+1
| | | | a git repo
* Implement beginnings of joint session historyConnor Brewster2016-07-211-9/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix backward navigation make use of history iterator Add frame iterator add different back logic cleanup navigation_info Add extra explanation for iter logic Remove forward history on full frame tree Rename navigation to traversal where appropriate check full tree for can go back/forward simplify frame iter logic remove FrameIterator cleanup history iter reduce amount of vec allocations removed extra parenthesis Remove history iterator cleanup after rebasing avoid recursive vec allocation remove full_frame_tree remove_forward_history_in_frame_tree -> clear_joint_session_future
* Removed panic channel, replaced by integrated logging and issue reporting.Alan Jeffrey2016-07-201-2/+2
|
* Allow window elements as well as iframes to the the target of mozbrowser events.Alan Jeffrey2016-07-181-100/+93
|
* Inline DOM element creation into box expressions in components/script/dom/Kuba Birecki2016-07-141-2/+3
|
* Auto merge of #11872 - eddyb:back-to-roots, r=Ms2gerbors-servo2016-07-041-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace return_address usage for rooting with stack guards and convenience macros. The existing `Rooted` and `RootedVec` users were migrated the the following two macros: ```rust let x = Rooted::new(cx, value); // Was changed to: rooted!(in(cx) let x = value); // Which expands to: let mut __root = Rooted::new_unrooted(value); let x = RootedGuard::new(cx, &mut __root); ``` ```rust let mut v = RootedVec::new(); v.extend(iterator); // Was changed to: rooted_vec!(let v <- iterator); // Which expands to: let mut __root = RootableVec::new(); let v = RootedVec::new(&mut __root, iterator); ``` The `rooted!` macro depends on servo/rust-mozjs#272. These APIs based on two types, a container to be rooted and a rooting guard, allow implementing both `Rooted`-style rooting and `Traceable`-based rooting in stable Rust, without abusing `return_address`. Such macros may have been tried before, but in 1.9 their hygiene is broken, they work only since 1.10. Sadly, `Rooted` is a FFI type and completely exposed, so I cannot prevent anyone from creating their own, although all fields but the value get overwritten by `RootedGuard::new` anyway. `RootableVec` OTOH is *guaranteed* to be empty when not rooted, which makes it harmless AFAICT. By fixing rust-lang/rust#34227, this PR enables Servo to build with `-Zorbit`. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix rust-lang/rust#34227 - [x] These changes do not require tests because they are not functional changes <!-- 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/11872) <!-- Reviewable:end -->
| * Switch to using the new rooted!/RootedGuard API for rooting.Eduard Burtescu2016-07-041-2/+2
| |
* | Refactor `util::prefs` operations to be methods on static struct.Corey Farwell2016-07-021-3/+3
|/
* Auto merge of #12136 - ConnorGBrewster:servo_version_reporter, r=asajeffreybors-servo2016-07-021-0/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Send servo version in mozbrowser error. <!-- Please describe your changes on the following line: --> Adds support for sending a version string to b.html so we can put the servo version in the auto generated issue reports. r? @asajeffrey --- <!-- 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 #12083 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because sending servo version on mozbrwosererror for issue reporter. <!-- 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/12136) <!-- Reviewable:end -->
| * Send servo version in mozbrowser error.Connor Brewster2016-07-011-0/+2
| | | | | | | | | | Also moved servo version to util for usage by the --version flag and for sending the version to browser.html with mozbrowsererror
* | Removing u8 from HTMLIframeElementPatrick Trottier2016-07-011-19/+21
|/ | | | | | | | | | | | | | | | Remove u8 in HTMLIframeElement.rs Remove u8 from IframeElement.rs u8 removal trying to pass test - uri Update htmliframeelement.rs u8 removal removing u8 from Rust HTMLIFrameElement
* URI to URLPatrick Trottier2016-06-201-2/+2
| | | | trying to pass test - uri
* Auto merge of #11544 - jdm:privatebrowsing, r=asajeffreybors-servo2016-06-201-0/+15
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement private browsing for mozbrowser <!-- Please describe your changes on the following line: --> Support the `mozprivatebrowsing` attribute on mozbrowser iframes. This separates the non-private and private sessions in terms of cookies, HSTS lists, cached HTTP credentials, HTTP connection pools, and web storage. The private session is shared between all private mozbrowsers, and lasts until shutdown. --- <!-- 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] 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11544) <!-- Reviewable:end -->
| * Propagate privacy information of iframes to corresponding pipelines. Make ↵Sagar Muchhal2016-06-201-0/+15
| | | | | | | | | | | | iframes of differing privacy values be considered cross-origin. Make the constellation hand out separate private and public channels for the pipeline content to communicate with the resource thread as necessary.
* | Move the remainder of layout_interface into script_layout_interface.Ms2ger2016-06-201-1/+1
|/
* Auto merge of #10225 - jmr0:visibility_api, r=jdmbors-servo2016-06-161-1/+53
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement non-visible pipeline and iframe visibility methods This addresses #9566 and a good part of #9751, specifically: * Pipeline has a notion of visibility * IFrame setVisible/getVisible interface with IFrame's pipeline visibility * IFrame mozbrowservisibilitychange responds to changes in visibility * Pipeline visibility is used to limit animations (requestAnimationFrame does not tick animations when hidden) and to increase timer intervals (currently set to a minimum of 1 second while hidden) Absent for now are any changes to the Document API and general implementation of the Page Visibility API, since the more interesting parts require knowledge of whether the user agent is minimized, OS screen locked, etc. cc @paulrouget @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/10225) <!-- Reviewable:end -->