[jira] [Commented] (CB-13644) [Windows] "Element not found" exception thrown when launching Windows 8.1 app on Windows 10

2018-01-12 Thread Maarten Manders (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-13644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16323882#comment-16323882
 ] 

Maarten Manders commented on CB-13644:
--

Unfortunately it seems like the change is not synced in 
_cordova-windows/template/www/cordova.js_.
I don't know if this has to be done manually or what, but currently using the 
platform from git doesn't solve the issue.

> [Windows] "Element not found" exception thrown when launching Windows 8.1 app 
> on Windows 10
> ---
>
> Key: CB-13644
> URL: https://issues.apache.org/jira/browse/CB-13644
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-windows
> Environment: Windows 10, build 15063.
> Windows 8.1 app build.
> Cordova 7.1.0
> Cordova-windows 5.0.0
> Visual Studio 2015.
>Reporter: Maarten Manders
>Assignee: Jesse MacFadyen
>Priority: Critical
>  Labels: cordova-windows@4.5.0
>
> The following exception is thrown when launching a Windows 8.1 app on Windows 
> 10:
> {code:javascript}
> Exception is about to be caught by JavaScript library code at line 2083, 
> column 9 in ms-appx://com.test/www/cordova.js
> 0x80070490 - JavaScript runtime error: Element not found.
> {code}
> This occurs due to the addition made in 
> https://issues.apache.org/jira/browse/CB-12238. The check isn't sufficient to 
> account for the use case described above.
> I believe this to be the solution:
> {code:javascript}
> // Make title bg color match splashscreen bg color
> function colorizeTitleBar() {
> var appView = 
> Windows.UI.ViewManagement.ApplicationView.getForCurrentView();
> if (appView.titleBar && (isWin10UWP || isWp10)) {
> titleInitialBgColor = appView.titleBar.backgroundColor;
> appView.titleBar.backgroundColor = titleBgColor;
> appView.titleBar.buttonBackgroundColor = titleBgColor;
> }
> }
> // Revert title bg color
> function revertTitleBarColor() {
> var appView = 
> Windows.UI.ViewManagement.ApplicationView.getForCurrentView();
> if (appView.titleBar && (isWin10UWP || isWp10)) {
> appView.titleBar.backgroundColor = titleInitialBgColor;
> appView.titleBar.buttonBackgroundColor = titleInitialBgColor;
> }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Closed] (CB-13644) [Windows] "Element not found" exception thrown when launching Windows 8.1 app on Windows 10

2017-12-07 Thread Maarten Manders (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-13644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Maarten Manders closed CB-13644.

Resolution: Duplicate

Issue has already been resolved, but not yet incorporated in a release.

> [Windows] "Element not found" exception thrown when launching Windows 8.1 app 
> on Windows 10
> ---
>
> Key: CB-13644
> URL: https://issues.apache.org/jira/browse/CB-13644
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-windows
> Environment: Windows 10, build 15063.
> Windows 8.1 app build.
> Cordova 7.1.0
> Cordova-windows 5.0.0
> Visual Studio 2015.
>Reporter: Maarten Manders
>Assignee: Jesse MacFadyen
>Priority: Critical
>  Labels: cordova-windows@4.5.0
>
> The following exception is thrown when launching a Windows 8.1 app on Windows 
> 10:
> {code:javascript}
> Exception is about to be caught by JavaScript library code at line 2083, 
> column 9 in ms-appx://com.test/www/cordova.js
> 0x80070490 - JavaScript runtime error: Element not found.
> {code}
> This occurs due to the addition made in 
> https://issues.apache.org/jira/browse/CB-12238. The check isn't sufficient to 
> account for the use case described above.
> I believe this to be the solution:
> {code:javascript}
> // Make title bg color match splashscreen bg color
> function colorizeTitleBar() {
> var appView = 
> Windows.UI.ViewManagement.ApplicationView.getForCurrentView();
> if (appView.titleBar && (isWin10UWP || isWp10)) {
> titleInitialBgColor = appView.titleBar.backgroundColor;
> appView.titleBar.backgroundColor = titleBgColor;
> appView.titleBar.buttonBackgroundColor = titleBgColor;
> }
> }
> // Revert title bg color
> function revertTitleBarColor() {
> var appView = 
> Windows.UI.ViewManagement.ApplicationView.getForCurrentView();
> if (appView.titleBar && (isWin10UWP || isWp10)) {
> appView.titleBar.backgroundColor = titleInitialBgColor;
> appView.titleBar.buttonBackgroundColor = titleInitialBgColor;
> }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Comment Edited] (CB-13644) [Windows] "Element not found" exception thrown when launching Windows 8.1 app on Windows 10

2017-12-07 Thread Maarten Manders (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-13644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281620#comment-16281620
 ] 

Maarten Manders edited comment on CB-13644 at 12/7/17 10:20 AM:


The use case mentioned in the title:

 "when launching a Windows 8.1 app on Windows 10".

Will do.

Apparently a duplicate of https://issues.apache.org/jira/browse/CB-12784


was (Author: mac89):
The use case mentioned in the title:

 "when launching a Windows 8.1 app on Windows 10".

Will do.

> [Windows] "Element not found" exception thrown when launching Windows 8.1 app 
> on Windows 10
> ---
>
> Key: CB-13644
> URL: https://issues.apache.org/jira/browse/CB-13644
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-windows
> Environment: Windows 10, build 15063.
> Windows 8.1 app build.
> Cordova 7.1.0
> Cordova-windows 5.0.0
> Visual Studio 2015.
>Reporter: Maarten Manders
>Assignee: Jesse MacFadyen
>Priority: Critical
>  Labels: cordova-windows@4.5.0
>
> The following exception is thrown when launching a Windows 8.1 app on Windows 
> 10:
> {code:javascript}
> Exception is about to be caught by JavaScript library code at line 2083, 
> column 9 in ms-appx://com.test/www/cordova.js
> 0x80070490 - JavaScript runtime error: Element not found.
> {code}
> This occurs due to the addition made in 
> https://issues.apache.org/jira/browse/CB-12238. The check isn't sufficient to 
> account for the use case described above.
> I believe this to be the solution:
> {code:javascript}
> // Make title bg color match splashscreen bg color
> function colorizeTitleBar() {
> var appView = 
> Windows.UI.ViewManagement.ApplicationView.getForCurrentView();
> if (appView.titleBar && (isWin10UWP || isWp10)) {
> titleInitialBgColor = appView.titleBar.backgroundColor;
> appView.titleBar.backgroundColor = titleBgColor;
> appView.titleBar.buttonBackgroundColor = titleBgColor;
> }
> }
> // Revert title bg color
> function revertTitleBarColor() {
> var appView = 
> Windows.UI.ViewManagement.ApplicationView.getForCurrentView();
> if (appView.titleBar && (isWin10UWP || isWp10)) {
> appView.titleBar.backgroundColor = titleInitialBgColor;
> appView.titleBar.buttonBackgroundColor = titleInitialBgColor;
> }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-13644) [Windows] "Element not found" exception thrown when launching Windows 8.1 app on Windows 10

2017-12-07 Thread Maarten Manders (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-13644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281620#comment-16281620
 ] 

Maarten Manders commented on CB-13644:
--

The use case mentioned in the title:

 "when launching a Windows 8.1 app on Windows 10".

Will do.

> [Windows] "Element not found" exception thrown when launching Windows 8.1 app 
> on Windows 10
> ---
>
> Key: CB-13644
> URL: https://issues.apache.org/jira/browse/CB-13644
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-windows
> Environment: Windows 10, build 15063.
> Windows 8.1 app build.
> Cordova 7.1.0
> Cordova-windows 5.0.0
> Visual Studio 2015.
>Reporter: Maarten Manders
>Assignee: Jesse MacFadyen
>Priority: Critical
>  Labels: cordova-windows@4.5.0
>
> The following exception is thrown when launching a Windows 8.1 app on Windows 
> 10:
> {code:javascript}
> Exception is about to be caught by JavaScript library code at line 2083, 
> column 9 in ms-appx://com.test/www/cordova.js
> 0x80070490 - JavaScript runtime error: Element not found.
> {code}
> This occurs due to the addition made in 
> https://issues.apache.org/jira/browse/CB-12238. The check isn't sufficient to 
> account for the use case described above.
> I believe this to be the solution:
> {code:javascript}
> // Make title bg color match splashscreen bg color
> function colorizeTitleBar() {
> var appView = 
> Windows.UI.ViewManagement.ApplicationView.getForCurrentView();
> if (appView.titleBar && (isWin10UWP || isWp10)) {
> titleInitialBgColor = appView.titleBar.backgroundColor;
> appView.titleBar.backgroundColor = titleBgColor;
> appView.titleBar.buttonBackgroundColor = titleBgColor;
> }
> }
> // Revert title bg color
> function revertTitleBarColor() {
> var appView = 
> Windows.UI.ViewManagement.ApplicationView.getForCurrentView();
> if (appView.titleBar && (isWin10UWP || isWp10)) {
> appView.titleBar.backgroundColor = titleInitialBgColor;
> appView.titleBar.buttonBackgroundColor = titleInitialBgColor;
> }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-13644) [Windows] "Element not found" exception thrown when launching Windows 8.1 app on Windows 10

2017-12-07 Thread Maarten Manders (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-13644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Maarten Manders updated CB-13644:
-
Labels: cordova-windows@4.5.0  (was: )

> [Windows] "Element not found" exception thrown when launching Windows 8.1 app 
> on Windows 10
> ---
>
> Key: CB-13644
> URL: https://issues.apache.org/jira/browse/CB-13644
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-windows
> Environment: Windows 10, build 15063.
> Windows 8.1 app build.
> Cordova 7.1.0
> Cordova-windows 5.0.0
> Visual Studio 2015.
>Reporter: Maarten Manders
>Assignee: Jesse MacFadyen
>Priority: Critical
>  Labels: cordova-windows@4.5.0
>
> The following exception is thrown when launching a Windows 8.1 app on Windows 
> 10:
> {code:javascript}
> Exception is about to be caught by JavaScript library code at line 2083, 
> column 9 in ms-appx://com.test/www/cordova.js
> 0x80070490 - JavaScript runtime error: Element not found.
> {code}
> This occurs due to the addition made in 
> https://issues.apache.org/jira/browse/CB-12238. The check isn't sufficient to 
> account for the use case described above.
> I believe this to be the solution:
> {code:javascript}
> // Make title bg color match splashscreen bg color
> function colorizeTitleBar() {
> var appView = 
> Windows.UI.ViewManagement.ApplicationView.getForCurrentView();
> if (appView.titleBar && (isWin10UWP || isWp10)) {
> titleInitialBgColor = appView.titleBar.backgroundColor;
> appView.titleBar.backgroundColor = titleBgColor;
> appView.titleBar.buttonBackgroundColor = titleBgColor;
> }
> }
> // Revert title bg color
> function revertTitleBarColor() {
> var appView = 
> Windows.UI.ViewManagement.ApplicationView.getForCurrentView();
> if (appView.titleBar && (isWin10UWP || isWp10)) {
> appView.titleBar.backgroundColor = titleInitialBgColor;
> appView.titleBar.buttonBackgroundColor = titleInitialBgColor;
> }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Created] (CB-13644) [Windows] "Element not found" exception thrown when launching Windows 8.1 app on Windows 10

2017-12-07 Thread Maarten Manders (JIRA)
Maarten Manders created CB-13644:


 Summary: [Windows] "Element not found" exception thrown when 
launching Windows 8.1 app on Windows 10
 Key: CB-13644
 URL: https://issues.apache.org/jira/browse/CB-13644
 Project: Apache Cordova
  Issue Type: Bug
  Components: cordova-windows
 Environment: Windows 10, build 15063.
Windows 8.1 app build.
Cordova 7.1.0
Cordova-windows 5.0.0
Visual Studio 2015.
Reporter: Maarten Manders
Assignee: Jesse MacFadyen
Priority: Critical


The following exception is thrown when launching a Windows 8.1 app on Windows 
10:

{code:javascript}
Exception is about to be caught by JavaScript library code at line 2083, column 
9 in ms-appx://com.test/www/cordova.js

0x80070490 - JavaScript runtime error: Element not found.
{code}

This occurs due to the addition made in 
https://issues.apache.org/jira/browse/CB-12238. The check isn't sufficient to 
account for the use case described above.

I believe this to be the solution:

{code:javascript}
// Make title bg color match splashscreen bg color
function colorizeTitleBar() {
var appView = Windows.UI.ViewManagement.ApplicationView.getForCurrentView();
if (appView.titleBar && (isWin10UWP || isWp10)) {
titleInitialBgColor = appView.titleBar.backgroundColor;

appView.titleBar.backgroundColor = titleBgColor;
appView.titleBar.buttonBackgroundColor = titleBgColor;
}
}

// Revert title bg color
function revertTitleBarColor() {
var appView = Windows.UI.ViewManagement.ApplicationView.getForCurrentView();
if (appView.titleBar && (isWin10UWP || isWp10)) {
appView.titleBar.backgroundColor = titleInitialBgColor;
appView.titleBar.buttonBackgroundColor = titleInitialBgColor;
}
}
{code}




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Closed] (CB-11848) [Windows] File plugin, nativeUrl includes two slashes before filename

2016-09-20 Thread Maarten Manders (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-11848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Maarten Manders closed CB-11848.

Resolution: Duplicate

Fixed in https://github.com/apache/cordova-plugin-file/pull/112

> [Windows] File plugin, nativeUrl includes two slashes before filename
> -
>
> Key: CB-11848
> URL: https://issues.apache.org/jira/browse/CB-11848
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin File
>Reporter: Maarten Manders
>  Labels: windows
>
> The returned FileEntry object in the getFile function of a DirectoryEntry 
> object contains an incorrect nativeUrl that contains 2 slashes before the 
> filename (ie. ms-appdata:///temp//myfile.file).
> This can seemingly be resolved by changing the following line in the getFile 
> function in FileProxy.js:
> var fspath = sanitize(dirpath +'/'+ path);
> to
> var fspath = sanitize(path);
> I am unsure if this causes any side-effects however.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-11848) [Windows] File plugin, nativeUrl includes two slashes before filename

2016-09-20 Thread Maarten Manders (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-11848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15505917#comment-15505917
 ] 

Maarten Manders commented on CB-11848:
--

Resolved in https://github.com/apache/cordova-plugin-file/pull/112

> [Windows] File plugin, nativeUrl includes two slashes before filename
> -
>
> Key: CB-11848
> URL: https://issues.apache.org/jira/browse/CB-11848
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin File
>Reporter: Maarten Manders
>  Labels: windows
>
> The returned FileEntry object in the getFile function of a DirectoryEntry 
> object contains an incorrect nativeUrl that contains 2 slashes before the 
> filename (ie. ms-appdata:///temp//myfile.file).
> This can seemingly be resolved by changing the following line in the getFile 
> function in FileProxy.js:
> var fspath = sanitize(dirpath +'/'+ path);
> to
> var fspath = sanitize(path);
> I am unsure if this causes any side-effects however.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Created] (CB-11848) [Windows] File plugin, nativeUrl includes two slashes before filename

2016-09-14 Thread Maarten Manders (JIRA)
Maarten Manders created CB-11848:


 Summary: [Windows] File plugin, nativeUrl includes two slashes 
before filename
 Key: CB-11848
 URL: https://issues.apache.org/jira/browse/CB-11848
 Project: Apache Cordova
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: Plugin File
Reporter: Maarten Manders


The returned FileEntry object in the getFile function of a DirectoryEntry 
object contains an incorrect nativeUrl that contains 2 slashes before the 
filename (ie. ms-appdata:///temp//myfile.file).

This can seemingly be resolved by changing the following line in the getFile 
function in FileProxy.js:

var fspath = sanitize(dirpath +'/'+ path);

to

var fspath = sanitize(path);

I am unsure if this causes any side-effects however.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org