• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

AIR 32 for Windows, StageWebView - LOCATION_CHANGING problem

Engaged ,
May 16, 2019 May 16, 2019

Copy link to clipboard

Copied

Hello there,

On Windows the event LOCATION_CHANGING is NOT fired if window.location is changed in JavaScript in the html file rendered in StageWebView.

Following link fires LOCATION_CHANGING event

<a href="anything">click me</a>

Following link DOES NOT FIRE LOCATION_CHANGING event. Will try to load "file:///anything" without firing the changing event, allowing to prevent default.

<a href="javascript:test();">click me</a>

// In JavaScript

function test() {

window.location = "anything";

}

This only happens on Windows. Code works well on iOS. (couldn't test on Mac or android).ù

Anybody ever faced this?

TOPICS
Development

Views

242

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines