From 91b146482418b9a1915d26b8dcb934c0cdb1ee72 Mon Sep 17 00:00:00 2001 From: Daniele Gobbetti Date: Wed, 16 Aug 2017 21:31:39 +0200 Subject: [PATCH] Pebble: use iframe for clay configuration webpages Replacing the top frame with a data-uri is forbidden since chromium-based-webview version 60. With this commit we swap the body with an iframe when needed. Old webviews work as usual also with this approach. No special treatment is needed for local storage as its usage is forbidden in data-uri iframes. Fixes #758 --- CHANGELOG.md | 1 + app/src/main/assets/app_config/configure.html | 12 +++++++++++ .../app_config/js/gadgetbridge_boilerplate.js | 20 ++++++++++++++++++- app/src/main/res/xml/changelog_master.xml | 10 ++++++++++ 4 files changed, 42 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b0811d8..9f210d90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ * Add workaround for blacklist not properly persisting * Handle resetting language to default properly * Pebble: Pass booleans from Javascript Appmessage correctly +* Pebble: Use iframe for clay configuration webpages * Add greek transliteration support * Various visual improvements to charts diff --git a/app/src/main/assets/app_config/configure.html b/app/src/main/assets/app_config/configure.html index 6da22151..cdc7669f 100644 --- a/app/src/main/assets/app_config/configure.html +++ b/app/src/main/assets/app_config/configure.html @@ -9,6 +9,18 @@