Make sure that navigations from Location and Window.open perform correct
conversion of history handling when passed "auto".
Differential Revision: https://phabricator.services.mozilla.com/D266519
Make sure that navigations from Location and Window.open perform correct
conversion of history handling when passed "auto".
Differential Revision: https://phabricator.services.mozilla.com/D266519
This is a follow-up of bug 1947732, covering the remaining Trusted Types checks:
- Document.write/writeln
- WorkerGlobalScope.importScripts
- eval and new Functions
- script enforcement
- pre-navigation check
Differential Revision: https://phabricator.services.mozilla.com/D263688
When handling subframe history we will change push loads to be replace
loads while executing an onload handler. This shouldn't happen for
navigation.navigate().
Differential Revision: https://phabricator.services.mozilla.com/D262892
When handling subframe history we will change push loads to be replace
loads while executing an onload handler. This shouldn't happen for
navigation.navigate().
Differential Revision: https://phabricator.services.mozilla.com/D262892
Implement #inform-the-navigation-api-about-child-navigable-destruction.
Add the final calls to #set-the-ongoing-navigation and tweak some of the
existing ones to only happen during history traversals or only during
navigation.
Differential Revision: https://phabricator.services.mozilla.com/D262564
Implement #inform-the-navigation-api-about-child-navigable-destruction.
Add the final calls to #set-the-ongoing-navigation and tweak some of the
existing ones to only happen during history traversals or only during
navigation.
Differential Revision: https://phabricator.services.mozilla.com/D262564
In the same manner as with beforeunload we track when we need to fire a
traverse navigate event for the top level window context. This is
required when: any event handlers are registered on the window's
navigation object or when there are any ongoing or upcoming method
trackers associated with a window's navigation object.
Also make sure to not fire a push/replace/reload navigate event when
only a traverse navigate event should be fired.
Differential Revision: https://phabricator.services.mozilla.com/D261408
This reverts commit 5ab4a68520.
Revert "Bug 1896630 - Part 1: Implement the fields of NavigationActivation. r=farre,dom-core"
This reverts commit 90a32b3f1d.
AppWindow::GetMainWidget() is just mWindow. Add a helper to simplify
GetMainWidget() usage and use it across the tree, simplifying users.
Differential Revision: https://phabricator.services.mozilla.com/D258744
`nsDocShell::Stop()` is called in `nsDocShell::InternalLoad()`, and would abort
ongoing navigations. Adding this flag to that specific call site
prevents this and keeps the intended behavior.
Differential Revision: https://phabricator.services.mozilla.com/D255144
We are making changes to many files. Very huge chunk of the changes are just renaming CSP -> PolicyContainer. Part 1 and part 2 are solely separated as frontend and backend. The unfortunate thing is, I mistakenly placed IDL changes in part 1, and many of those IDL changes affect frontend code too. I'm sorry for this inconvinience and hard to review patch(es).
(FWIW before this rewrite we had another patch stack. It is 25 patches and I believe isn't as comprehensive as this one. It also didn't replace CSP's inheritance but was copied alongside with CSP, but we decided to change our method and make policy conttainer contain CSP and copy it around after some discussion and reviews)
Differential Revision: https://phabricator.services.mozilla.com/D249248
Not sure how to create a reduced test-case for this. This is not very
problematic in any case since the canvas bg will only last while the
presshell is not initialized.
Differential Revision: https://phabricator.services.mozilla.com/D255656