Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tap on web elements that open link in new tab not working #7

Open
khanhtd36 opened this issue Apr 16, 2021 · 5 comments
Open

Tap on web elements that open link in new tab not working #7

khanhtd36 opened this issue Apr 16, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@khanhtd36
Copy link

Environment

Technology Version
Flutter version 2.0.0
App version Git revision 1904602
Android version 10
iOS version -
Xcode version -

Device information: Nokia 6.1 QKQ1.190828.002

Description

Expected behavior: When I tap on web elements that open link in new tab, a new tab opens and go to that url.

Current behavior: When I tap on web elements that open link in new tab, a new tab opens with url about:blank

Steps to reproduce

  1. Open a website that contains an element that opens link in new tab (www.fujinet.net)
  2. Tap on element that opens link in new tab (youtube icon at bottom of the page)
  3. See the target url in new tab (it should be youtube.com but it is about:blank instead)
@khanhtd36 khanhtd36 added the bug Something isn't working label Apr 16, 2021
@saliya1000
Copy link

can You add screenshot from my side its working Well

@jergsss99
Copy link

jergsss99 commented Jun 9, 2021

try this

  onCreateWindow: (controller, createWindowRequest) async {
    var webViewTab = WebViewTab(
      key: GlobalKey(),
      webViewModel: WebViewModel(
          url: createWindowRequest.request.url,
          windowId: createWindowRequest.windowId),
    );

    browserModel.addTab(webViewTab);

    return;
  }

@jergsss99
Copy link

can You add screenshot from my side its working Well

try this

onCreateWindow: (controller, createWindowRequest) async {
var webViewTab = WebViewTab(
key: GlobalKey(),
webViewModel: WebViewModel(
url: createWindowRequest.request.url,
windowId: createWindowRequest.windowId),
);

browserModel.addTab(webViewTab);

return;

}

@emvaized
Copy link

emvaized commented Jun 22, 2021

I can confirm this issue. Maybe related to this: pichillilorenzo/flutter_inappwebview#877?

@pranav-js
Copy link

is there any solution to this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants