Highlighted

AIR 32 for Windows, StageWebView - LOCATION_CHANGING problem

Engaged ,
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

153

Likes

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

AIR 32 for Windows, StageWebView - LOCATION_CHANGING problem

Engaged ,
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

154

Likes

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
May 16, 2019 0

Have something to add?

Join the conversation