diff options
author | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-27 14:35:44 +0000 |
---|---|---|
committer | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-27 14:35:44 +0000 |
commit | 5fe9cb560087823043edf4ef43927427aacad54c (patch) | |
tree | 42a05d02c74bc07353696f3522fa5dba9515c028 /chrome_frame | |
parent | c0f82ec54a1af9c091cf76dcdb25ff7baa90c4d1 (diff) | |
download | chromium_src-5fe9cb560087823043edf4ef43927427aacad54c.zip chromium_src-5fe9cb560087823043edf4ef43927427aacad54c.tar.gz chromium_src-5fe9cb560087823043edf4ef43927427aacad54c.tar.bz2 |
Our InPlaceMenu implementation is only partially being used.
We had a leftover call to InPlaceMenuDestroy without creating a menu in the first place.
This caused us to delete IE's menu and fail the first check inside ieframe!CDocObjectHost::OnInitMenuPopup.
It took a while to figure this out and even longer to figure out why our menu was NULL in this case and not mshtml's.
I don't think that there are any bad side effects with this change but I ask the reviewer to check.
The visible change is that the Print menu item will become enabled and visible whereas Page Setup will be disabled and Print Preview will (correctly atm) not be visible for GCF documents.
BUG=24034, 47074
TEST=See description above and bug report.
Review URL: http://codereview.chromium.org/3034033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53786 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame')
-rw-r--r-- | chrome_frame/ole_document_impl.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome_frame/ole_document_impl.h b/chrome_frame/ole_document_impl.h index 4c346d8..9ce1bbe 100644 --- a/chrome_frame/ole_document_impl.h +++ b/chrome_frame/ole_document_impl.h @@ -209,7 +209,11 @@ class ATL_NO_VTABLE IOleDocumentViewImpl : public IOleDocumentView { hr = t->ActiveXDocActivate(OLEIVERB_UIACTIVATE); } } else { - t->InPlaceMenuDestroy(); + // Menu integration is still not complete, so do not destroy + // IE's menus. If we call InPlaceMenuDestroy here, menu items such + // as Print etc will be disabled and we will not get calls to QueryStatus + // for those commands. + // t->InPlaceMenuDestroy(); // t->DestroyToolbar(); hr = t->UIDeactivate(); } |