aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmliframeelement.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* 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 -->
| * Implement non-visible pipeline and iframe visibility methodsjmr02016-06-151-1/+53
| |
* | Auto merge of #11720 - canaltinova:sandbox, r=noxbors-servo2016-06-111-12/+10
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the type of HTMLIFrameElement.sandbox <!-- 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 #11598 (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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11720) <!-- Reviewable:end -->
| * Add Sandbox field to HTMLIFrameElementNazım Can Altınova2016-06-111-8/+6
| |
| * Change sandbox to sandbox_allowance in HTMLIFrameElementNazım Can Altınova2016-06-111-4/+4
| |
* | Support WindowProxy return values in bindingsJansen Jan2016-06-091-8/+16
|/ | | | unscopable
* Auto merge of #11616 - ConnorGBrewster:navigation_delta, r=asajeffreybors-servo2016-06-071-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for navigating by a delta <!-- Please describe your changes on the following line: --> This adds support for passing a delta with `NavigationDirection`. This will be used with `history.go` 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 do not require tests because I am unsure how to write a test for this <!-- 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/11616) <!-- Reviewable:end -->
| * Added support for navigating by a deltaConnor Brewster2016-06-041-2/+2
| |
* | Stop re-exporting AttrValue.Ms2ger2016-06-071-2/+2
| |
* | Move LengthOrPercentageOrAuto to style::attr.Ms2ger2016-06-061-1/+1
|/
* Auto merge of #11468 - rebstar6:refPol4, r=noxbors-servo2016-06-021-2/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement meta referrer policy delivery (3) <!-- 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 #10311 (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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11468) <!-- Reviewable:end -->
| * Add meta-referrer support for documentsRebecca2016-06-021-2/+3
| |
* | Fire a mozbrowseropenwindow event when an html anchor has a non-self target.Alan Jeffrey2016-06-021-1/+15
|/
* Fix permissions of mozbrowser and BrowserElementPrivileged (fixes #11498)Anthony Ramine2016-05-301-2/+6
|
* Auto merge of #11329 - c-rhodes:11320, r=jdmbors-servo2016-05-271-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Report use statements that use {} with only one entry 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 --faster` does not report any errors - [X ] These changes fix #11320 (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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11329) <!-- Reviewable:end -->
| * Report use statements that use {} with only one entryCullen Rhodes2016-05-271-1/+1
| |
* | Auto merge of #11308 - nox:guarded, r=jdmbors-servo2016-05-271-23/+6
|\ \ | |/ |/| | | | | | | | | | | | | | | | | Implement [Func] First part of #11292, this just includes support of `[Func]`. <!-- 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/11308) <!-- Reviewable:end -->
| * Use [Func] on HTMLIFrameElement.mozbrowserAnthony Ramine2016-05-271-18/+5
| |
| * Move mozbrowser_enabled to util::prefsAnthony Ramine2016-05-271-5/+1
| |
* | Record the frame type (IFrame or MozBrowserIFrame) in the pipeline.Alan Jeffrey2016-05-261-1/+3
|/
* Move DOMString back to scriptAnthony Ramine2016-05-241-4/+5
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* Remove ConstellationChan.Ms2ger2016-05-191-11/+6
| | | | | | 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.
* Removed unused importsPer Lundberg2016-05-151-1/+0
| | | | This fixes #11185.
* Stop using JSAutoRequest.Ms2ger2016-05-131-2/+1
|
* remove page and move functionality to browing contextConnor Brewster2016-05-111-6/+2
| | | | | | | | | | Allow for adding history items Fixed nested iframe test failure Cleanup and small refactors fixup
* Add and update some FIXME comments about origin handling with iframes.Ms2ger2016-05-021-0/+4
|
* Return a Url from HTMLIFrameElement::get_url.Ms2ger2016-05-021-13/+8
| | | | | Since Url::origin() always returns an opaque origin for about: urls, I don't believe this changes behaviour.
* Make IFrameLoadInfo take an Option<LoadData> instead of Option<Url>Keith Yeung2016-04-301-6/+7
|
* Auto merge of #10837 - asajeffrey:add-mozbrowsererror-details, r=Manishearthbors-servo2016-04-291-1/+9
|\ | | | | | | | | | | | | | | | | | | | | Add detail to mozbrowsererror events. Part of #10334. Once #10824 lands, we can include the panic reason and backtrace in the error report. <!-- 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/10837) <!-- Reviewable:end -->
| * Add detail to mozbrowsererror events.Alan Jeffrey2016-04-251-1/+9
| |
* | Reduce channel cloning.Ms2ger2016-04-291-3/+3
| |
* | Avoid some clones.Ms2ger2016-04-291-1/+1
| |
* | script: Make iframes know their pipeline IDs at all times, even afterPatrick Walton2016-04-281-2/+8
|/ | | | | | | | | 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.