Comments (5)
Ok, I will implement it, thanks for reporting!
from webpirate.
Geolocation is unsupported in QtWebKit, I can't implement this feature.
navigator.geolocation object in "undefined"
from webpirate.
I'm no webkit expert and also don't know the performance impact, but its possible to inject additional objects to a webkit instance,
So in theory it should be possible to set navigator.geolocation
with a custom js object.
I also found this: https://together.jolla.com/question/17380/html5-geolocation-in-webview/
I understand if you dont implement this feature. If i find the time i will do a quick test, to figure out if its possible using javascript injects.
from webpirate.
I've already tried to inject a custom made Geolocation object :)
It works only if "navigator.geolocation" is called before "onload" event, but it fails when this one is invoked before that event (for example, inside a <head> tag), that's the case of 99% of websites.
The link on Jolla Together mentions Qt WebEngine that uses Blink and replaces and aging QtWebKit, this library is available in Qt >= 5.4
If someone finds a way to inject custom objects in a WebKit instance, globally, it would be great.
I want to implement all features requested here, but QtWebKit is very limited and sometimes is simply not possible (in fact I'm leaving those issues opened).
As I said in issue #30, I'm working on an experimental version of WebPirate that uses Chromium Embedded, in that case I can implement Geolocation and more :)
from webpirate.
yea, useing chromium embedded or Qt WebEngine would be the better solution.
from webpirate.
Related Issues (20)
- Accept certificate for X happens too often and contains no useful information HOT 1
- cannot load secure webpage HOT 1
- Mobile Github.com menu button doesn't work HOT 7
- Doesn't open links from external apps when an instance is alredy open HOT 8
- Avoid Lipstick clipboard stuck problem HOT 2
- [WebPirate 1.9] There's a gap above the pulley menu
- Gap exist between keyboard and addressbar :)
- use webpirate as default browser for android apps ( dalvik VM ) HOT 2
- Video stuttereing HOT 7
- Do not have time to save the login/password HOT 1
- I cannot read the body of this newspaper
- Option to have tabs on top HOT 1
- [WIP] Android Like Text Selection HOT 2
- Trouble opening URLs with Web Pirate as the default browser HOT 4
- Incognito or Private browsing mode HOT 1
- Cookies from one domain sent in request to different domain in another tab HOT 10
- Usability questions "find in page" and "go back" HOT 3
- cannot find back button HOT 5
- SFOS 2.1 (Qt 5.6) Default Browser mode opens up blank page if browser closed before
- [SFOS 2.1.0] Closing a tab crashes Webpirate HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webpirate.