[Android] Fix that dict.iteritems() is no longer supported in python 3.0+

'dict' object has no attribute 'iteritems' in python 3.0 and later,
use dict.items() instead.

BUG=https://crosswalk-project.org/jira/browse/XWALK-2129
Merge pull request #2213 from jinbang/fix_dict_iteritems

[Android] Fix that dict.iteritems() is no longer supported in python 3.0...
[Android] make_apk: Use open(), not file().

The latter does not exist in Python 3, so those functions were broken
when invoked.
Bump version to 8.36.178.0
Merge pull request #2216 from rakuco/py3-compatibility

[Android] make_apk: Use open(), not file().
[Android] Package name must be specified even having manifest

Package name is the ID of an Android application,
and the manifest will not carry the package field.
We should never generate the package name based on some rules we invented.
So it must be specified in argument.
[Tizen][Runtime] Send tizen_app_id to extensions for tizen.

After commit c22823fae34f299b8861af6cf3ee7a05d36cc118
we had already storage [tizen_app_id] to tizen pkgmgr db for
wgt packaged app, and some parts of t-e-c will need to get app
info from pkgmgr db according to [tizen_app_id], so we need to
send [tizen_app_id] to extensions.

Besides we still use [app_id] in xwalk internal, and send
[app_id] to extensions.
[Android] Clear FLAG_FORCE_NOT_FULLSCREEN when entering fullscreen

The FLAG_FORCE_NOT_FULLSCREEN flag of Android Window will force the
Android system to show status bar, even with SYSTEM_UI_FLAG_FULLSCREEN
set in SystemUIVisibility.

Record whether the FLAG_FORCE_NOT_FULLSCREEN is set before entering
fullscreen and clear it if so. Add the flag back if necessary when
exiting fullscreen.

BUG=https://crosswalk-project.org/jira/browse/XWALK-2150
Merge pull request #2214 from jinbang/tool_package_name

[Android] Package name must be specified even having manifest
[Android] Add test case for onReceivedErrorTest().

This patch is to add test case for onReceivedErrorTest().
Open some urls with error format, the resource client will receive
the related error. Verify the error information with the expected
result.
[Extensions] Check validation of XWalkExtensionInstance before binding callbacks.

There is race condition that sometimes CreateInstance() return invalid
XWalkExtensionInstance.

So far, this crash does not happen on any C++ extensions or Android
extension tests. Only happens on CordovaTests apk. And worse and worse
when loadUrl calling times increased.

Meanwhile, the Android speicific function RegisterExtension() and
UnregisterExtension() are removed from xwalk_browser_main_parts.h

BUG=https://crosswalk-project.org/jira/browse/XWALK-1688
Merge pull request #2199 from CooderIan/send_tizen_app_id

[Tizen][Runtime] Send tizen_app_id to extensions for tizen.
[Android] make_apk: Print an error message _before_ exiting.

Fix the order of the print() and sys.exit() calls so that the error
message is actually printed before the program exits.
Bump version to 8.36.179.0
[Runtime] Disable extensions api for external web page.

We should only enable extension js api for frame which with
app scheme or file scheme.

BUG=XWALK-2153
Merge pull request #2224 from rakuco/fix-exit-print-order

[Android] make_apk: Print an error message _before_ exiting.
Merge pull request #2220 from wang16/full_screen

[Android] Clear FLAG_FORCE_NOT_FULLSCREEN when entering fullscreen
Merge pull request #2212 from wuhengzhi/onReceivedLoadError_test

[Android] Add test case for onReceivedErrorTest().
[Android] Add test case for onJavascriptCloseWindow().

This patch is to add test case about onJavascriptCloseWindow().
Load a html, it will call "window.close()", then
onJavascriptCloseWindow() will be called. The called flag will be
marked with the help of TestHelperBridge. Get this flag and compare
it with the expected result.
Merge pull request #2221 from CooderIan/disable_api

[Runtime] Disable extensions api for external web page.