Skip to content

Commit

Permalink
Fix: NW2 Standard alert/confirm.. clip in main window #7422
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwang committed May 9, 2020
1 parent 50eef59 commit 7f26567
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chrome/browser/ui/browser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include "chrome/browser/ui/browser.h"

#include "components/app_modal/javascript_dialog_manager.h"
#include "chrome/browser/web_applications/components/web_app_helpers.h"

#include <stddef.h>
Expand Down Expand Up @@ -1927,7 +1928,8 @@ void Browser::DidNavigateMainFramePostCommit(WebContents* web_contents) {

content::JavaScriptDialogManager* Browser::GetJavaScriptDialogManager(
WebContents* source) {
return JavaScriptDialogTabHelper::FromWebContents(source);
return app_modal::JavaScriptDialogManager::GetInstance();
//return JavaScriptDialogTabHelper::FromWebContents(source);
}

bool Browser::GuestSaveFrame(content::WebContents* guest_web_contents) {
Expand Down

0 comments on commit 7f26567

Please sign in to comment.