mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 10:45:42 +00:00
09a6eb41df
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 |
||
---|---|---|
.. | ||
base | ||
build | ||
resources/content | ||
shistory | ||
test | ||
moz.build |