Last modified: 2012-02-27 19:51:38 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T33980, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31980 - Refactor PhoneGap app so it can be run in browser and ported to other HTML/JS app stacks
Refactor PhoneGap app so it can be run in browser and ported to other HTML/JS...
Status: RESOLVED FIXED
Product: Wikimedia Mobile
Classification: Unclassified
Generic (Other open bugs)
--
All All
: Normal enhancement (vote)
: ---
Assigned To: Tomasz Finc
:
Depends on: 31973
Blocks: 31981
  Show dependency treegraph
 
Reported: 2011-10-27 01:41 UTC by Brion Vibber
Modified: 2012-02-27 19:51 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Brion Vibber 2011-10-27 01:41:21 UTC
PhoneGap itself is a kind of shim to make our 'insides' mostly pure HTML, which is super nice! But for other platforms it might be nice to be able to drop a few PhoneGap-specific dependencies even further.

This could be useful for having an app that runs natively in Chrome OS, WebOS (though there is a PhoneGap frontend), Mozilla's WebAPI / Boot2Gecko stuff, and whatever else might be coming down the pipe.

Another obvious target is running it within a regular browser for faster local iteration. :)
Comment 1 Brion Vibber 2011-10-31 01:17:07 UTC
Pull request:
https://github.com/nitobi/Wikipedia/pull/49

With a little more refactoring, if we don't detect Android or iOS platform we can instead target a generic browser control (assuming permissions allow).

Can load up the index.html in Chrome (started with --disable-web-security -- don't do any real browsing in this mode!!!!) and it successfully loads articles and does searches. If you load in a regular browser mode things will die out with permission errors (can't reach the search on XHR, can't manipulate iframe contents).

As with the iOS app mode, there's currently no menu so back/forward/bookmark/history/near me are unavailable.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links