Intercept was prevented by four things:
1) the return value of FirePushReplaceReloadNavigateEvent for
pushState was used inverted.
2) the event was created untrusted
3) the wrong flag was being checked to see if the event was in the
process of being dispatched.
4) wrong uri equality method was used.
Differential Revision: https://phabricator.services.mozilla.com/D248222
This includes:
* #fire-a-traverse-navigate-event
* #fire-a-push/replace/reload-navigate-event
* #fire-a-download-request-navigate-event
which are all implemented in terms of #inner-navigate-event-firing-algorithm.
Actually calling any of the above is only added for History.pushState and
History.replaceState using #fire-a-push/replace/reload-navigate-event.
Differential Revision: https://phabricator.services.mozilla.com/D238786
Also fix getters protocol usage and add asserts when null returning
getters actually have been checked implicitly.
Also add spec links and shorten multipage to single page links.
Differential Revision: https://phabricator.services.mozilla.com/D239874
This includes:
* #fire-a-traverse-navigate-event
* #fire-a-push/replace/reload-navigate-event
* #fire-a-download-request-navigate-event
which are all implemented in terms of #inner-navigate-event-firing-algorithm.
Actually calling any of the above is only added for History.pushState and
History.replaceState using #fire-a-push/replace/reload-navigate-event.
Differential Revision: https://phabricator.services.mozilla.com/D238786
Also fix getters protocol usage and add asserts when null returning
getters actually have been checked implicitly.
Also add spec links and shorten multipage to single page links.
Differential Revision: https://phabricator.services.mozilla.com/D239874
This includes:
* #fire-a-traverse-navigate-event
* #fire-a-push/replace/reload-navigate-event
* #fire-a-download-request-navigate-event
which are all implemented in terms of #inner-navigate-event-firing-algorithm.
Actually calling any of the above is only added for History.pushState and
History.replaceState using #fire-a-push/replace/reload-navigate-event.
Differential Revision: https://phabricator.services.mozilla.com/D238786
Also fix getters protocol usage and add asserts when null returning
getters actually have been checked implicitly.
Also add spec links and shorten multipage to single page links.
Differential Revision: https://phabricator.services.mozilla.com/D239874
This includes:
* #fire-a-traverse-navigate-event
* #fire-a-push/replace/reload-navigate-event
* #fire-a-download-request-navigate-event
which are all implemented in terms of #inner-navigate-event-firing-algorithm.
Actually calling any of the above is only added for History.pushState and
History.replaceState using #fire-a-push/replace/reload-navigate-event.
Differential Revision: https://phabricator.services.mozilla.com/D238786
Also fix getters protocol usage and add asserts when null returning
getters actually have been checked implicitly.
Also add spec links and shorten multipage to single page links.
Differential Revision: https://phabricator.services.mozilla.com/D239874
This includes:
* #fire-a-traverse-navigate-event
* #fire-a-push/replace/reload-navigate-event
* #fire-a-download-request-navigate-event
which are all implemented in terms of #inner-navigate-event-firing-algorithm.
Actually calling any of the above is only added for History.pushState and
History.replaceState using #fire-a-push/replace/reload-navigate-event.
Differential Revision: https://phabricator.services.mozilla.com/D238786
Also fix getters protocol usage and add asserts when null returning
getters actually have been checked implicitly.
Also add spec links and shorten multipage to single page links.
Differential Revision: https://phabricator.services.mozilla.com/D239874