diff --git a/layout/base/nsPresShell.cpp b/layout/base/nsPresShell.cpp index c67f949f22c7..4cb48f434dac 100644 --- a/layout/base/nsPresShell.cpp +++ b/layout/base/nsPresShell.cpp @@ -533,7 +533,7 @@ PresShell::Init(nsIDocument* aDocument, getter_AddRefs(domselection)); if (!NS_SUCCEEDED(result)) return result; - result = domselection->QueryInterface(kIDOMSelectionIID, + result = domselection->QueryInterface(kIFrameSelectionIID, getter_AddRefs(mSelection)); if (!NS_SUCCEEDED(result)) return result; diff --git a/layout/html/base/src/nsPresShell.cpp b/layout/html/base/src/nsPresShell.cpp index c67f949f22c7..4cb48f434dac 100644 --- a/layout/html/base/src/nsPresShell.cpp +++ b/layout/html/base/src/nsPresShell.cpp @@ -533,7 +533,7 @@ PresShell::Init(nsIDocument* aDocument, getter_AddRefs(domselection)); if (!NS_SUCCEEDED(result)) return result; - result = domselection->QueryInterface(kIDOMSelectionIID, + result = domselection->QueryInterface(kIFrameSelectionIID, getter_AddRefs(mSelection)); if (!NS_SUCCEEDED(result)) return result;