Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Bug 1036788 - Stop using origins to identify apps #21743

Merged
merged 1 commit into from
Jul 18, 2014

Conversation

cctuan
Copy link
Contributor

@cctuan cctuan commented Jul 15, 2014

@try-server-hook
Copy link

cctuan George (cctuan) started tests. Results

* @return {AppWindow} The app window object matched.
*/
getApp: function awm_getApp(origin) {
getApp: function awm_getApp(origin, manifestURL) {
for (var id in this._apps) {
if (this._apps[id].origin == origin) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// match manifestURL at first
if (this._apps[id].manifestURL) {
  if (this._apps[id].manifestURL == manifestURL) {
    return this._apps[id];
  }
} else if (this._apps[id].origin == origin) {
  return this._apps[id];
}
return null;

@try-server-hook
Copy link

cctuan George (cctuan) started tests. Results

cctuan added a commit that referenced this pull request Jul 18, 2014
Bug 1036788 - Stop using origins to identify apps
@cctuan cctuan merged commit a43c96b into mozilla-b2g:master Jul 18, 2014
@cctuan cctuan deleted the 1036788 branch April 23, 2015 06:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants