gecko-dev/docshell
Nicholas Nethercote 09a6eb41df Bug 1487328 - Make nsSHistory *not* implement nsIWebNavigation. r=nika
nsSHistory currently implements nsIWebNavigation, but only three of the methods
are actually used, and the rest call MOZ_CRASH. This patch removes the
inheritance and changes the implementations of those three methods (Reload(),
GetCurrentURI(), and GotoIndex()) to pure C++.

There is one test, bug662200_window.xul, that calls Reload() from JS, which is
no longer possible. Fortunately, nsSHistory::ReloadCurrentEntry() -- which *is*
available from JS -- is similar enough to Reload(0) that it can be used
instead.

(The only difference between Reload(0) and ReloadCurrentEntry() is that the
former triggers the `OnHistoryReload` notification and the latter triggers
`OnHistoryGotoIndex`, which doesn't matter for this test.)

--HG--
extra : rebase_source : 69dba04f14b1438f50f597f3d16b77225795f8a7
2018-09-03 09:27:37 +10:00
..
base Bug 1487328 - Make nsSHistory *not* implement nsIWebNavigation. r=nika 2018-09-03 09:27:37 +10:00
build Bug 1487333 - Remove nsIExternalSharingAppService. r=jchen 2018-08-30 18:54:24 +10:00
resources/content Bug 1438243 - Improve the UI for pages blocked by policy r=Felipe 2018-02-22 15:41:12 -08:00
shistory Bug 1487328 - Make nsSHistory *not* implement nsIWebNavigation. r=nika 2018-09-03 09:27:37 +10:00
test Bug 1487328 - Make nsSHistory *not* implement nsIWebNavigation. r=nika 2018-09-03 09:27:37 +10:00
moz.build Bug 1350496 - add BUG_COMPONENT to docshell/* files. r=overholt 2017-04-09 05:43:52 -04:00