return origin == other;
}
} else if (SERVICE_DATA_TYPE_MIME == type) {
+ if (other == "") {
+ return origin == other;
+ }
+
std::list<std::string> vectorOrigin =
parsingMimeData(origin, SERVICE_DATA_MIME_TOKEN);
if (SIZE_OF_MIME_ELEMENT != vectorOrigin.size()) {
return;
}
if (DPL::ToUTF8String(*servicedUri) == currentUri) {
- // set only encoded bundle
- double scale = elm_config_scale_get();
- PluginModuleSupport::setCustomProperties(
- m_ewkContext,
- &scale,
- ApplicationDataSingleton::Instance().getEncodedBundle());
- // dispatch 'appservice' js event
- PluginModuleSupport::dispatchJavaScriptEvent(
- m_ewkContext,
- WrtPlugins::W3C::ServiceCustomEvent,
- NULL);
+ LogInfo("current page is reloaded");
ewk_view_reload(m_currentEwkView);
} else {
+ LogInfo("service page is loaded");
m_currentUri = DPL::ToUTF8String(*servicedUri);
- // inform wrt information for plugin loading to web process
- PluginModuleSupport::start(
- m_ewkContext,
- m_model->Handle.Get(),
- elm_config_scale_get(),
- ApplicationDataSingleton::Instance().getEncodedBundle(),
- m_theme.c_str(),
- m_model->SettingList.Get().isEncrypted());
- // load page
- ewk_view_url_set(m_currentEwkView, m_currentUri.c_str());
+ ewk_view_uri_set(m_currentEwkView, m_currentUri.c_str());
}
}
- resumeWebkit(m_currentEwkView);
-
// call user callback
if (!m_cbs->reset.empty()) {
m_cbs->reset(true);