diff options
Diffstat (limited to 'docshell/shistory')
-rw-r--r-- | docshell/shistory/ChildSHistory.cpp | 3 | ||||
-rw-r--r-- | docshell/shistory/SessionHistoryEntry.cpp | 8 |
2 files changed, 5 insertions, 6 deletions
diff --git a/docshell/shistory/ChildSHistory.cpp b/docshell/shistory/ChildSHistory.cpp index 9148491718..3e3cf09493 100644 --- a/docshell/shistory/ChildSHistory.cpp +++ b/docshell/shistory/ChildSHistory.cpp @@ -156,7 +156,8 @@ void ChildSHistory::Go(int32_t aOffset, bool aRequireUserInteraction, // Check for user interaction if desired, except for the first and last // history entries. We compare with >= to account for the case where // aOffset >= Count(). - if (!aRequireUserInteraction || index.value() >= Count() - 1 || + if (!StaticPrefs::browser_navigation_requireUserInteraction() || + !aRequireUserInteraction || index.value() >= Count() - 1 || index.value() <= 0) { break; } diff --git a/docshell/shistory/SessionHistoryEntry.cpp b/docshell/shistory/SessionHistoryEntry.cpp index 692ab4fe44..4f5b760c8a 100644 --- a/docshell/shistory/SessionHistoryEntry.cpp +++ b/docshell/shistory/SessionHistoryEntry.cpp @@ -20,7 +20,7 @@ #include "nsXULAppAPI.h" #include "mozilla/PresState.h" #include "mozilla/StaticPrefs_fission.h" - +#include "mozilla/dom/BindingIPCUtils.h" #include "mozilla/dom/BrowserParent.h" #include "mozilla/dom/CanonicalBrowsingContext.h" #include "mozilla/dom/ContentChild.h" @@ -1797,10 +1797,8 @@ namespace IPC { // Allow sending mozilla::dom::WireframeRectType enums over IPC. template <> struct ParamTraits<mozilla::dom::WireframeRectType> - : public ContiguousEnumSerializer< - mozilla::dom::WireframeRectType, - mozilla::dom::WireframeRectType::Image, - mozilla::dom::WireframeRectType::EndGuard_> {}; + : public mozilla::dom::WebIDLEnumSerializer< + mozilla::dom::WireframeRectType> {}; template <> struct ParamTraits<mozilla::dom::WireframeTaggedRect> { |