Closed
Bug 801739
Opened 12 years ago
Closed 9 years ago
Initialize mDoorHangerPopup in WebApp, not GeckoApp
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: Margaret, Unassigned)
Details
Attachments
(1 file, 1 obsolete file)
2.91 KB,
patch
|
Margaret
:
review+
|
Details | Diff | Splinter Review |
We currently initialize mDoorHangerPopup with a BrowserApp-specific DoorHangerPopup in BrowserApp, and a generic fallback DoorHangerPopup in GeckoApp. Instead, we should delegate doorhanger popup initialization to the WebApp/BrowserApp subclasses. To do this, we need to make sure that GeckoApp can handle a null mDoorHangerPopup, but it looks like that might already be true. See bug 800199 comments 5-8 for more context.
Comment 1•12 years ago
|
||
Attachment #695645 -
Flags: review?(margaret.leibovic)
Reporter | ||
Updated•12 years ago
|
Assignee: nobody → kshriram18
Status: NEW → ASSIGNED
Reporter | ||
Comment 2•12 years ago
|
||
Comment on attachment 695645 [details] [diff] [review] Patch that initializes mDoorHangerPopup in WebApp, not GeckoApp Review of attachment 695645 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for the patch! There's just one change I'd like you to make before we land this. Note to myself: I double-checked that we have null checks before ever referencing mDoorHangerPopup, so this is a safe change to make. ::: mobile/android/base/BrowserApp.java @@ +261,5 @@ > > @Override > protected void initializeChrome(String uri, boolean isExternalURL) { > super.initializeChrome(uri, isExternalURL); > + mDoorHangerPopup = new DoorHangerPopup(this, null); Now that this is moved into BrowserApp, you can actually call the constructor with the correct anchor view: http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/DoorHangerPopup.java#42 @@ +266,4 @@ > mBrowserToolbar.updateBackButton(false); > mBrowserToolbar.updateForwardButton(false); > > mDoorHangerPopup.setAnchor(mBrowserToolbar.mFavicon); So you could just replace this line with a call to the constructor that passes in mBrowserToolbar.mFavicon.
Attachment #695645 -
Flags: review?(margaret.leibovic) → feedback+
Comment 3•12 years ago
|
||
Attachment #695645 -
Attachment is obsolete: true
Attachment #695749 -
Flags: review?(margaret.leibovic)
Reporter | ||
Comment 4•12 years ago
|
||
Comment on attachment 695749 [details] [diff] [review] Patch that initializes mDoorHangerPopup in WebApp, not GeckoApp Awesome, thanks!
Attachment #695749 -
Flags: review?(margaret.leibovic) → review+
Reporter | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 5•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/b7f50cfa3fe1
Keywords: checkin-needed
Comment 6•11 years ago
|
||
Backed out in http://hg.mozilla.org/integration/mozilla-inbound/rev/2b45a99e0108 for bustage like https://tbpl.mozilla.org/php/getParsedLog.php?id=18448746&tree=Mozilla-Inbound : WebApp.java:94: DoorHangerPopup(org.mozilla.gecko.GeckoApp,android.view.View) is not public in org.mozilla.gecko.DoorHangerPopup; cannot be accessed from outside package mDoorHangerPopup = new DoorHangerPopup(this, null);
Reporter | ||
Comment 7•11 years ago
|
||
Mavericks, sorry I missed you on IRC. Are you having any luck looking into this? Does it build properly for you locally? It seems like a weird error because all these classes should be in the org.mozilla.gecko package. Maybe something is going wrong with pre-processing the package name in WebApp.java.in? Wes, do you know anything about this stuff?
Comment 8•11 years ago
|
||
May be http://stackoverflow.com/questions/7047173/class-constructor-cannot-be-accessed-by-outside-package could help solve.
Comment 9•11 years ago
|
||
Can you confirm that you're still working on this bug?
Flags: needinfo?(kshriram18)
Updated•11 years ago
|
Assignee: kshriram18 → nobody
Reporter | ||
Comment 10•11 years ago
|
||
The patch here doesn't apply anymore, and it looks like the WebApp.java.in change needs to be moved to WebAppImpl.java. However, we still need to figure out what caused the failure on inbound, so this probably isn't a good mentor bug anymore.
Flags: needinfo?(kshriram18)
Whiteboard: [mentor=margaret][lang=java]
Updated•11 years ago
|
Assignee: nobody → kshriram18
Reporter | ||
Comment 11•11 years ago
|
||
Mavericks, let me know if you need more help here. Do you have commit access to try server? It might be good to rebase this patch and push it to try to see if it still fails.
Updated•9 years ago
|
Assignee: kshriram18 → nobody
Comment 12•9 years ago
|
||
Margaret, I'd like to start showing this bug around - in your judgement can this work be salvaged, or would it be better to start from scratch? Is it still relevant?
Flags: needinfo?(margaret.leibovic)
Reporter | ||
Comment 13•9 years ago
|
||
(In reply to Mike Hoye [:mhoye] from comment #12) > Margaret, I'd like to start showing this bug around - in your judgement can > this work be salvaged, or would it be better to start from scratch? Is it > still relevant? Looking through the code, I think this issue was actually addressed by bug 943915. I don't think this is actually an issue anymore, so I'm going to close this as WORKSFORME.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Flags: needinfo?(margaret.leibovic)
Resolution: --- → WORKSFORME
Comment 14•9 years ago
|
||
Thank you!
Assignee | ||
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•