Closed
Bug 1106935
Opened 10 years ago
Closed 10 years ago
Remove old tablet code & dependent resources
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox36 fixed, firefox37 fixed, firefox38 wontfix, firefox39 wontfix, firefox40 fixed, fennec+)
RESOLVED
FIXED
Firefox 40
People
(Reporter: rnewman, Assigned: mcomella)
References
Details
Attachments
(17 files, 2 obsolete files)
(deleted),
patch
|
mhaigh
:
review+
Sylvestre
:
approval-mozilla-aurora+
Sylvestre
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
(deleted),
text/x-review-board-request
|
mcomella
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
mcomella
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
mcomella
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
mcomella
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
mcomella
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
mcomella
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
mcomella
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
mcomella
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
mcomella
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
mcomella
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
mcomella
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
mcomella
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
mcomella
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
mcomella
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
mcomella
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
mcomella
:
review+
|
Details |
It is time.
Requesting tracking to make us aware of when the rollback option will go away.
Comment 2•10 years ago
|
||
Let's get an assignee
Flags: needinfo?(michael.l.comella)
Flags: needinfo?(mhaigh)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → michael.l.comella
Status: NEW → ASSIGNED
Flags: needinfo?(michael.l.comella)
Flags: needinfo?(mhaigh)
Updated•10 years ago
|
tracking-fennec: ? → 37+
Reporter | ||
Comment 3•10 years ago
|
||
Our resources have got a lot bigger since the summer. Paring them down would be great.
Blocks: fatfennec
Assignee | ||
Comment 4•10 years ago
|
||
Martyn, please review, land, and flag for uplift.
I removed all the resources I found that are mirrored on both old tablet and
new tablet - we can uplift this to get some APK savings. Note that the rest of
the work to be done in this bug has neglible APK savings.
In order to make sure I didn't break any runtime references, I created null
bitmaps to fill the place of the removed old tablet resources. They have a
header of:
<!-- Bug 1106935: Temporary replacement for old tablet resources -->
To make them easy to find.
Attachment #8543131 -
Flags: review?(mhaigh)
Assignee | ||
Updated•10 years ago
|
Whiteboard: [leave-open]
Assignee | ||
Comment 5•10 years ago
|
||
(In reply to Michael Comella (:mcomella) [PTO until 1/14] from comment #4)
> I removed all the resources I found that are mirrored on both old tablet and
> new tablet
I did this with:
ls m/a/b/resources/drawable-large-xhdpi-v11/*
And checking which items were named twice (* and new_tablet_*).
Assignee | ||
Comment 6•10 years ago
|
||
Add files from m/a/b/drawable-xlarge-xhdpi-v11/.
Attachment #8543133 -
Flags: review?(mhaigh)
Assignee | ||
Updated•10 years ago
|
Attachment #8543131 -
Attachment is obsolete: true
Attachment #8543131 -
Flags: review?(mhaigh)
Assignee | ||
Comment 7•10 years ago
|
||
Updated•10 years ago
|
Attachment #8543133 -
Flags: review?(mhaigh)
Assignee | ||
Comment 8•10 years ago
|
||
Comment on attachment 8543131 [details] [diff] [review]
Part 1: Replace old tablet pngs with null XML resources
I want this part in 36.
Attachment #8543131 -
Flags: review?(mhaigh)
Comment 9•10 years ago
|
||
Comment on attachment 8543133 [details] [diff] [review]
Part 1: Replace old tablet pngs with null XML resources
Review of attachment 8543133 [details] [diff] [review]:
-----------------------------------------------------------------
LGTM
Attachment #8543133 -
Flags: review+
Assignee | ||
Comment 10•10 years ago
|
||
Assignee | ||
Comment 11•10 years ago
|
||
Comment on attachment 8543133 [details] [diff] [review]
Part 1: Replace old tablet pngs with null XML resources
Approval Request Comment
[Feature/regressing bug #]:
New tablet UI (bug 1014156)
[User impact if declined]:
The APK in 36 will contain unused png assets and be unnecessarily large.
[Describe test coverage new/current, TBPL]:
None
[Risks and why]:
Low - we're basically removing some images. In the best bad case, those images will disappear from the UI because we mirror each removed asset with a null resource. Worst case, we crash because the assets cannot be found.
[String/UUID change made/needed]:
None
Attachment #8543133 -
Flags: approval-mozilla-beta?
Attachment #8543133 -
Flags: approval-mozilla-aurora?
Comment 12•10 years ago
|
||
Updated•10 years ago
|
Attachment #8543133 -
Flags: approval-mozilla-beta?
Attachment #8543133 -
Flags: approval-mozilla-beta+
Attachment #8543133 -
Flags: approval-mozilla-aurora?
Attachment #8543133 -
Flags: approval-mozilla-aurora+
Comment 13•10 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/7f35fd48c3b1
https://hg.mozilla.org/releases/mozilla-beta/rev/f154bf489b34
Setting the status for 36/37 to fixed for tracking purposes. Feel free to set them back to affected if more is intended to land there at some point.
Updated•10 years ago
|
Attachment #8543131 -
Flags: review?(mhaigh)
Assignee | ||
Comment 14•10 years ago
|
||
/r/3143 - Bug 1106935 - Part 2: Remove old tablet branches from BrowserToolbar.
/r/3145 - Bug 1106935 - Part 3: Remove tablet browser_toolbar.xml and orphaned resources.
/r/3147 - Bug 1106935 - Part 4: Move new_tablet_browser_toolbar to browser_toolbar and update associated code.
/r/3149 - Bug 1106935 - Part 5: Rename BrowserToolbarNewTablet -> BrowserToolbarTablet.
Pull down these commits:
hg pull review -r 20cda66a6b901a556283f9627b5156c66ab0a3ac
Attachment #8556778 -
Flags: review?(mhaigh)
Assignee | ||
Comment 15•10 years ago
|
||
Micro-commits! Yes! Let's land these as we go along, to avoid epic bitrot.
Assignee | ||
Comment 16•10 years ago
|
||
Finkle, I see no reason this needs to be in 37 (besides part 1, which is to remove the pngs, which is in 36) - any concerns with clearing the tracking flag?
Flags: needinfo?(mark.finkle)
Comment 17•10 years ago
|
||
Agreed. Changed to "+"
tracking-fennec: 37+ → +
Flags: needinfo?(mark.finkle)
Assignee | ||
Comment 18•10 years ago
|
||
Comment on attachment 8556778 [details]
MozReview Request: bz://1106935/mcomella
/r/3143 - Bug 1106935 - Part 2: Remove old tablet branches from BrowserToolbar.
/r/3145 - Bug 1106935 - Part 3: Remove tablet browser_toolbar.xml and orphaned resources.
/r/3147 - Bug 1106935 - Part 4: Move new_tablet_browser_toolbar to browser_toolbar and update associated code.
/r/3149 - Bug 1106935 - Part 5: Rename BrowserToolbarNewTablet -> BrowserToolbarTablet.
/r/3173 - Bug 1106935 - Part 6: Replace NewTabletUI.isEnabled with HardwareUtils.isTablet where simple. r=mhaigh
Pull down these commits:
hg pull review -r 9264730533081acf138d1d789ec93598802d9e90
Comment 19•10 years ago
|
||
Comment on attachment 8556778 [details]
MozReview Request: bz://1106935/mcomella
https://reviewboard.mozilla.org/r/3141/#review2667
Looks good - would be good to hit up those remaining TODOs. Loving the micro commits :)
::: mobile/android/base/home/TopSitesThumbnailView.java
(Diff revision 2)
> +import org.mozilla.gecko.util.HardwareUtils;
Stick this import up by the other org.mozilla imports
::: mobile/android/base/toolbar/BrowserToolbarTablet.java
(Diff revision 2)
> - if (selectedTab != null && selectedTab.canDoForward()) {
> + // TODO: Remove this hack in favor of resources when old tablet is removed.
Are we not removing the old tablet code?
::: mobile/android/base/toolbar/BrowserToolbarTablet.java
(Diff revision 2)
> + // Do nothing;
; -> .
::: mobile/android/base/toolbar/BrowserToolbarPhoneBase.java
(Diff revision 2)
> +import org.mozilla.gecko.widget.ThemedImageView;
Stick this import up by the other org.mozilla imports
::: mobile/android/base/toolbar/BrowserToolbarTablet.java
(Diff revision 2)
> - @Override
> + // TODO: Move this to *TabletBase when old tablet is removed.
Are we not removing the old tablet code?
Attachment #8556778 -
Flags: review?(mhaigh)
Assignee | ||
Updated•10 years ago
|
Attachment #8556778 -
Flags: review?(mhaigh)
Assignee | ||
Comment 20•10 years ago
|
||
Comment on attachment 8556778 [details]
MozReview Request: bz://1106935/mcomella
/r/3143 - Bug 1106935 - Part 2: Remove old tablet branches from BrowserToolbar.
/r/3145 - Bug 1106935 - Part 3: Remove tablet browser_toolbar.xml and orphaned resources.
/r/3147 - Bug 1106935 - Part 4: Move new_tablet_browser_toolbar to browser_toolbar and update associated code.
/r/3149 - Bug 1106935 - Part 5: Rename BrowserToolbarNewTablet -> BrowserToolbarTablet.
/r/3173 - Bug 1106935 - Part 6: Replace NewTabletUI.isEnabled with HardwareUtils.isTablet where simple. r=mhaigh
/r/3255 - Bug 1106935 - review: Correct import style; fix comment grammar. r=mhaigh
Pull down these commits:
hg pull review -r 209864d6670b8c2316539b33eaafa5149671d1ff
Assignee | ||
Comment 21•10 years ago
|
||
https://reviewboard.mozilla.org/r/3141/#review2677
As per comment 15, I'd like to land these as we go along so we don't epic bitrot - it all doesn't need to land together.
> Are we not removing the old tablet code?
Easy issues first (see above).
> Are we not removing the old tablet code?
I was trying to do the easy issues first - eventually, everything will get removed, don't you worry!
Comment 22•10 years ago
|
||
Comment on attachment 8556778 [details]
MozReview Request: bz://1106935/mcomella
Comments as above. Didn't mean to cancel the review, rb flow is still a bit alien to me!
Attachment #8556778 -
Flags: review?(mhaigh) → review+
Assignee | ||
Comment 23•10 years ago
|
||
remote: https://hg.mozilla.org/integration/fx-team/rev/f1215e82b80c
remote: https://hg.mozilla.org/integration/fx-team/rev/82782dff1b40
remote: https://hg.mozilla.org/integration/fx-team/rev/fb5c06b33638
remote: https://hg.mozilla.org/integration/fx-team/rev/ca24935d3b8a
remote: https://hg.mozilla.org/integration/fx-team/rev/a08c30389a72
remote: https://hg.mozilla.org/integration/fx-team/rev/a9cc1659d77f
Assignee | ||
Comment 24•10 years ago
|
||
Comment on attachment 8556778 [details]
MozReview Request: bz://1106935/mcomella
/r/3143 - Bug 1106935 - Remove new tablet branch in MenuItemActionBar. r=mhaigh
/r/3145 - Bug 1106935 - Move BrowserToolbarTablet menu button right margin hack to xml. r=mhaigh
/r/3147 - Bug 1106935 - Remove MOZ_ANDROID_NEW_TABLET_UI confvar. r=nalexander
/r/3149 - Bug 1106935 - Remove new tablet branch in GeckoMenuInflater. r=mhaigh
/r/3173 - Bug 1106935 - Remove new tablet favicon size branch from Favicons. r=mhaigh
/r/3255 - Bug 1106935 - Remove new tablet branch in selecting default toolbar favicons. r=mhaigh
Pull down these commits:
hg pull review -r 6ca02c382b85580353f57192eecff8e23e12c5ad
Attachment #8556778 -
Flags: review?(nalexander)
Attachment #8556778 -
Flags: review?(mhaigh)
Attachment #8556778 -
Flags: review+
Comment 25•10 years ago
|
||
https://reviewboard.mozilla.org/r/3147/#review2713
Is there a reason you've left the configure.in references? I'd rather remove all traces and deal with any potential build errors for the (rare!) folks who defined it manually. Kill it with fire, no need for re-review.
Comment 26•10 years ago
|
||
Looks like this was an RB mistake, but my comments stand. Follow-up?
Comment 27•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/f1215e82b80c
https://hg.mozilla.org/mozilla-central/rev/82782dff1b40
https://hg.mozilla.org/mozilla-central/rev/fb5c06b33638
https://hg.mozilla.org/mozilla-central/rev/ca24935d3b8a
https://hg.mozilla.org/mozilla-central/rev/a08c30389a72
https://hg.mozilla.org/mozilla-central/rev/a9cc1659d77f
Assignee | ||
Comment 28•10 years ago
|
||
https://reviewboard.mozilla.org/r/3147/#review2727
Ignorance - I added a new commit to deal with this.
Assignee | ||
Comment 29•10 years ago
|
||
Comment on attachment 8556778 [details]
MozReview Request: bz://1106935/mcomella
/r/3143 - Bug 1106935 - Remove new tablet branch in MenuItemActionBar. r=mhaigh
/r/3145 - Bug 1106935 - Move BrowserToolbarTablet menu button right margin hack to xml. r=mhaigh
/r/3147 - Bug 1106935 - Remove MOZ_ANDROID_NEW_TABLET_UI confvar. r=nalexander
/r/3149 - Bug 1106935 - Remove new tablet branch in GeckoMenuInflater. r=mhaigh
/r/3173 - Bug 1106935 - Remove new tablet favicon size branch from Favicons. r=mhaigh
/r/3255 - Bug 1106935 - Remove new tablet branch in selecting default toolbar favicons. r=mhaigh
/r/3317 - Bug 1106935 - Remove MOZ_ANDROID_NEW_TABLET_UI from configure.in. r=nalexander
Pull down these commits:
hg pull review -r 7ccf97e8c1ef0040e0a27d158a95782fd17d0f7e
Comment 30•10 years ago
|
||
Comment on attachment 8556778 [details]
MozReview Request: bz://1106935/mcomella
https://reviewboard.mozilla.org/r/3141/#review2965
Ship It!
Attachment #8556778 -
Flags: review?(nalexander) → review+
Comment 31•10 years ago
|
||
Comment on attachment 8556778 [details]
MozReview Request: bz://1106935/mcomella
https://reviewboard.mozilla.org/r/3141/#review3105
Ship It!
Attachment #8556778 -
Flags: review?(mhaigh) → review+
Assignee | ||
Comment 32•10 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/9080887b3cc4
https://hg.mozilla.org/integration/fx-team/rev/fb066050757e
https://hg.mozilla.org/integration/fx-team/rev/78cb4369b396
https://hg.mozilla.org/integration/fx-team/rev/319511aa757a
https://hg.mozilla.org/integration/fx-team/rev/f292df38d7eb
https://hg.mozilla.org/integration/fx-team/rev/efa9411df1c4
https://hg.mozilla.org/integration/fx-team/rev/f8366cf7e7c8
Comment 33•10 years ago
|
||
Backed out for blowing up API9 tests. Please verify that this is green on Try before pushing again.
https://hg.mozilla.org/integration/fx-team/rev/c17419e63808
https://treeherder.mozilla.org/logviewer.html#?job_id=2025871&repo=fx-team
Assignee | ||
Comment 34•10 years ago
|
||
Gotcha:
13:08:51 INFO - 02-18 13:06:29.343 E/GeckoApp( 590): Exception starting favicon cache. Corrupt resources?
13:08:51 INFO - 02-18 13:06:29.343 E/GeckoApp( 590): java.lang.IllegalStateException: Null default favicon was returned from the resources system!
That was hard to track down - Richard, why don't we just throw when the Favicon cache cannot be inited? See:
https://mxr.mozilla.org/mozilla-central/source/mobile/android/base/GeckoApp.java?rev=d3ac91f56ef2#1189
Flags: needinfo?(rnewman)
Assignee | ||
Comment 35•10 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=ca5b82311a3f
NI self to land when green (pending review).
Flags: needinfo?(michael.l.comella)
Assignee | ||
Comment 36•10 years ago
|
||
Comment on attachment 8556778 [details]
MozReview Request: bz://1106935/mcomella
/r/3143 - Bug 1106935 - Remove MOZ_ANDROID_NEW_TABLET_UI from configure.in. r=nalexander
/r/3145 - Bug 1106935 - Remove new tablet branch in selecting default toolbar favicons. r=mhaigh
/r/3147 - Bug 1106935 - Remove new tablet favicon size branch from Favicons. r=mhaigh
/r/3149 - Bug 1106935 - Remove new tablet branch in GeckoMenuInflater. r=mhaigh
/r/3173 - Bug 1106935 - Remove MOZ_ANDROID_NEW_TABLET_UI confvar. r=nalexander
/r/3255 - Bug 1106935 - Move BrowserToolbarTablet menu button right margin hack to xml. r=mhaigh
/r/3317 - Bug 1106935 - Remove new tablet branch in MenuItemActionBar. r=mhaigh
/r/4029 - Bug 1106935 - Get bitmap from Drawable, rather than BitmapFactory.
Pull down these commits:
hg pull review -r 936b05446cbc3ffcfda1a297d769f02699e7a275
Attachment #8556778 -
Flags: review?(rnewman)
Attachment #8556778 -
Flags: review+
Reporter | ||
Comment 37•10 years ago
|
||
https://reviewboard.mozilla.org/r/4029/#review3167
Ship It!
::: mobile/android/base/favicons/Favicons.java
(Diff revision 1)
> - defaultFavicon = BitmapFactory.decodeResource(res, R.drawable.toolbar_favicon_default);
> + defaultFavicon = ((BitmapDrawable) res.getDrawable(R.drawable.toolbar_favicon_default)).getBitmap();
This'll now throw a CCE instead of returning null for us to check on the line below. Consider checking:
```
if (res instanceof BitmapDrawable) {
defaultFavicon = ...
} else {
throw new IllegalStateException("toolbar_favicon_default wasn't a bitmap resource!");
}
```
Assignee | ||
Comment 38•10 years ago
|
||
https://reviewboard.mozilla.org/r/4029/#review3169
> This'll now throw a CCE instead of returning null for us to check on the line below. Consider checking:
>
> ```
> if (res instanceof BitmapDrawable) {
> defaultFavicon = ...
> } else {
> throw new IllegalStateException("toolbar_favicon_default wasn't a bitmap resource!");
> }
> ```
Assuming we continue to catch rather than crash (https://bugzilla.mozilla.org/show_bug.cgi?id=1106935#c34), wfm.
Reporter | ||
Comment 39•10 years ago
|
||
(In reply to Michael Comella (:mcomella) from comment #34)
> That was hard to track down - Richard, why don't we just throw when the
> Favicon cache cannot be inited?
To answer this specific question: because we shouldn't get there (as the log message notes, to get in this state the default favicon needs to be missing from the APK), but if we can't, it's worth trying to be a functional browser.
That kinda assumes that it works; if it doesn't, then yes, we should consider crashing in an obvious fashion instead.
Flags: needinfo?(rnewman)
Assignee | ||
Comment 40•10 years ago
|
||
Comment on attachment 8556778 [details]
MozReview Request: bz://1106935/mcomella
rnewman, comment 37.
Attachment #8556778 -
Flags: review?(rnewman) → review+
Assignee | ||
Comment 41•10 years ago
|
||
(In reply to Richard Newman [:rnewman] from comment #39)
> That kinda assumes that it works; if it doesn't, then yes, we should
> consider crashing in an obvious fashion instead.
Sure, seems like it doesn't work - can you file a bug to crash instead, or file a bug to fix it (and add a test! :P), to your preference?
Flags: needinfo?(rnewman)
Assignee | ||
Comment 42•10 years ago
|
||
green try in comment 35. The landed patch will be slightly different, w/ rnewman's nit from comment 37: I don't expect the changes to break anything.
Flags: needinfo?(michael.l.comella)
Assignee | ||
Comment 43•10 years ago
|
||
remote: https://hg.mozilla.org/integration/fx-team/rev/2ba0223fe2b4
remote: https://hg.mozilla.org/integration/fx-team/rev/d34cbc2d9328
remote: https://hg.mozilla.org/integration/fx-team/rev/85da10774705
remote: https://hg.mozilla.org/integration/fx-team/rev/e08a3fda1ada
remote: https://hg.mozilla.org/integration/fx-team/rev/fffa9d369acd
remote: https://hg.mozilla.org/integration/fx-team/rev/ced200b5b4ab
remote: https://hg.mozilla.org/integration/fx-team/rev/6d82ed89b839
remote: https://hg.mozilla.org/integration/fx-team/rev/42b42d67f1a8
Comment 45•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/2ba0223fe2b4
https://hg.mozilla.org/mozilla-central/rev/d34cbc2d9328
https://hg.mozilla.org/mozilla-central/rev/85da10774705
https://hg.mozilla.org/mozilla-central/rev/e08a3fda1ada
https://hg.mozilla.org/mozilla-central/rev/fffa9d369acd
https://hg.mozilla.org/mozilla-central/rev/ced200b5b4ab
https://hg.mozilla.org/mozilla-central/rev/6d82ed89b839
https://hg.mozilla.org/mozilla-central/rev/42b42d67f1a8
Reporter | ||
Comment 46•10 years ago
|
||
Michael, did everything land for this bug, or is it open for a reason?
Flags: needinfo?(michael.l.comella)
Assignee | ||
Comment 47•10 years ago
|
||
(In reply to Richard Newman [:rnewman] from comment #46)
> Michael, did everything land for this bug, or is it open for a reason?
Everything did not land yet - this is going to take a while and is low priority.
Flags: needinfo?(michael.l.comella)
Assignee | ||
Updated•10 years ago
|
Attachment #8556778 -
Flags: review+ → review?(mhaigh)
Assignee | ||
Comment 48•10 years ago
|
||
Comment on attachment 8556778 [details]
MozReview Request: bz://1106935/mcomella
/r/3143 - Bug 1106935 - Remove unused imports from testAboutPage. r=mhaigh
/r/3145 - Bug 1106935 - Add XML attributes to dimens. r=mhaigh
/r/3147 - Bug 1106935 - Use Android resource system on tablet in ToolbarDisplayLayout. r=mhaigh
/r/3149 - Bug 1106935 - Remove unused NewTabletUI imports. r=mhaigh
/r/3173 - Bug 1106935 - Use resource system for tablets in ThumbnailHelper. r=mhaigh
Pull down these commits:
hg pull -r 0ca8c927063473dc475be984405a8aed04b30590 https://reviewboard-hg.mozilla.org/gecko/
Comment 49•10 years ago
|
||
https://reviewboard.mozilla.org/r/3173/#review2669
Ship It!
::: mobile/android/base/home/TopSitesThumbnailView.java
(Diff revision 1)
> +import org.mozilla.gecko.util.HardwareUtils;
Move this code up by the other moz imports
::: mobile/android/base/ThumbnailHelper.java
(Diff revision 4)
> + res.getValue(R.dimen.thumbnail_aspect_ratio, outValue, true);
Much nicer way of doing it!
Comment 50•10 years ago
|
||
https://reviewboard.mozilla.org/r/3147/#review5391
Ship It!
::: mobile/android/base/resources/drawable-large-v11/site_security_level.xml
(Diff revision 4)
> +<?xml version="1.0" encoding="utf-8"?>
I don't know if this is a limitation of the systems we use, but it'd be good to have these marked as file name changes, rather than a file deleted and a new file added, so we can keep the history intact.
Comment 51•10 years ago
|
||
https://reviewboard.mozilla.org/r/3145/#review5389
::: mobile/android/base/resources/values/dimens.xml
(Diff revision 4)
> + <dimen name="custom_match_parent">-1px</dimen>
I've just submmitted this in one of my Tab Queue bugs. Are you sure the px on the end there is right?
We're trying to emulate the default values of match_parent or wrap_content, which are defined as (http://goo.gl/KE5s26):
<attr name="layout_width" format="dimension">
<enum name="fill_parent" value="-1" />
<enum name="match_parent" value="-1" />
<enum name="wrap_content" value="-2" />
</attr>
This is a more thorough write up of the method than the SO anwser, if you're interested: http://blog.danlew.net/2015/01/06/handling-android-resources-with-non-standard-formats/
Comment 52•10 years ago
|
||
https://reviewboard.mozilla.org/r/3143/#review2671
Ship It!
::: mobile/android/base/toolbar/BrowserToolbarPhoneBase.java
(Diff revision 1)
> +import org.mozilla.gecko.widget.ThemedImageView;
Move this import up by the other moz imports
Comment 53•10 years ago
|
||
Comment 54•10 years ago
|
||
Comment on attachment 8556778 [details]
MozReview Request: bz://1106935/mcomella
https://reviewboard.mozilla.org/r/3141/#review5399
Am I right in thinking that the NewTabletUI file is still alive after these patches?
Attachment #8556778 -
Flags: review?(mhaigh)
Assignee | ||
Comment 55•10 years ago
|
||
https://reviewboard.mozilla.org/r/3141/#review5413
Yes, we're doing this in parts so I haven't finished removing everything yet.
Assignee | ||
Comment 56•10 years ago
|
||
https://reviewboard.mozilla.org/r/3147/#review5417
> I don't know if this is a limitation of the systems we use, but it'd be good to have these marked as file name changes, rather than a file deleted and a new file added, so we can keep the history intact.
hg notates them as file add/deletes but I did run the `hg mv` command, and it does store that history. Note that when using `hg log`, you also have to specify the `--follow` flag to get this history, e.g. `hg log -f site_security_level.xml`.
Assignee | ||
Comment 57•10 years ago
|
||
https://reviewboard.mozilla.org/r/3173/#review5419
> Move this code up by the other moz imports
It already is. I'm a bit confused because I haven't touched this file with the latest push - I wonder if this is a reviewboard error?
Assignee | ||
Comment 58•10 years ago
|
||
https://reviewboard.mozilla.org/r/3143/#review5421
> Move this import up by the other moz imports
Same - it's with the other moz imports. It looks like this is from a previous push ("Diff revision 1" as opposed to 4).
Assignee | ||
Comment 59•10 years ago
|
||
https://reviewboard.mozilla.org/r/3145/#review5425
> I've just submmitted this in one of my Tab Queue bugs. Are you sure the px on the end there is right?
>
> We're trying to emulate the default values of match_parent or wrap_content, which are defined as (http://goo.gl/KE5s26):
>
> <attr name="layout_width" format="dimension">
> <enum name="fill_parent" value="-1" />
> <enum name="match_parent" value="-1" />
> <enum name="wrap_content" value="-2" />
> </attr>
>
> This is a more thorough write up of the method than the SO anwser, if you're interested: http://blog.danlew.net/2015/01/06/handling-android-resources-with-non-standard-formats/
Nice find!
I think px is used in the SO answer because (I think) it doesn't get scaled by the system, and thus its value is used directly, but your answer is definitely more correct - I'll switch over to using that.
Assignee | ||
Updated•10 years ago
|
Summary: Remove old tablet code and resources → Remove old tablet code & dependent resources
Assignee | ||
Comment 60•10 years ago
|
||
Comment on attachment 8556778 [details]
MozReview Request: bz://1106935/mcomella
/r/3143 - Bug 1106935 - Remove unused imports from testAboutPage. r=mhaigh
/r/3145 - Bug 1106935 - Add XML attributes to dimens. r=mhaigh
/r/3147 - Bug 1106935 - Use Android resource system on tablet in ToolbarDisplayLayout. r=mhaigh
/r/3149 - Bug 1106935 - Remove unused NewTabletUI imports. r=mhaigh
/r/3173 - Bug 1106935 - Use resource system for tablets in ThumbnailHelper. r=mhaigh
/r/6571 - Bug 1106935 - Remove NewTabletUI branch in TabsPanel. r=mhaigh
/r/6573 - Bug 1106935 - Remove references to old tablet sidebar. r=mhaigh
/r/6575 - Bug 1106935 - Remove unused tabs panel style resources. r=mhaigh
/r/6577 - Bug 1106935 - Remove NewTabletUI branch in PrivateTabsPanel. r=mhaigh
/r/6579 - Bug 1106935 - Remove NewTabletUI branch in ActionBarViewFlipper. r=mhaigh
/r/6581 - Bug 1106935 - Remove NewTabletUI branch in BrowserToolbarTabletBase. r=mhaigh
/r/6583 - Bug 1106935 - Remove NewTabletUI branches in NewTabletUI. r=mhaigh
/r/6585 - Bug 1106935 - Remove NewTabletUI class. r=mhaigh
Pull down these commits:
hg pull -r 1e216b09beb6574695a103c7c13a530468aa422f https://reviewboard-hg.mozilla.org/gecko/
Attachment #8556778 -
Flags: review?(mhaigh)
Assignee | ||
Comment 61•10 years ago
|
||
Assignee | ||
Comment 62•10 years ago
|
||
I removed your NewTabletUI class. :D
Note that I also filed bug 1150742 for even more followup madness (the distinction being this bug is primarily about removing the branches in code as opposed to research).
Comment 63•10 years ago
|
||
https://reviewboard.mozilla.org/r/6585/#review5715
Looking good - can't wait to get this landed!
Assignee | ||
Comment 64•10 years ago
|
||
Comment on attachment 8556778 [details]
MozReview Request: bz://1106935/mcomella
r+ via irc:
06:44 <mcomella> mhaigh: Is this an r+? https://bugzilla.mozilla.org/show_bug.cgi?id=1106935#c63
06:44 <mhaigh> mcomella: yeah - weird - I ticked the ship it option. anyway - SHIP IT!
Attachment #8556778 -
Flags: review?(mhaigh) → review+
Assignee | ||
Comment 65•10 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/98b329aed166
https://hg.mozilla.org/integration/fx-team/rev/0af8086b3bc9
https://hg.mozilla.org/integration/fx-team/rev/c594a2788d16
https://hg.mozilla.org/integration/fx-team/rev/f19635d67587
https://hg.mozilla.org/integration/fx-team/rev/0302e869e440
https://hg.mozilla.org/integration/fx-team/rev/a5e6cf8b9c9c
https://hg.mozilla.org/integration/fx-team/rev/bf88029f521e
https://hg.mozilla.org/integration/fx-team/rev/e581a1f51297
https://hg.mozilla.org/integration/fx-team/rev/c1befe2261fc
https://hg.mozilla.org/integration/fx-team/rev/57c22ce3666a
https://hg.mozilla.org/integration/fx-team/rev/dff4d833af14
https://hg.mozilla.org/integration/fx-team/rev/ce8b48cf665e
Assignee | ||
Updated•10 years ago
|
Whiteboard: [leave-open]
Comment 66•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/98b329aed166
https://hg.mozilla.org/mozilla-central/rev/0af8086b3bc9
https://hg.mozilla.org/mozilla-central/rev/c594a2788d16
https://hg.mozilla.org/mozilla-central/rev/f19635d67587
https://hg.mozilla.org/mozilla-central/rev/0302e869e440
https://hg.mozilla.org/mozilla-central/rev/a5e6cf8b9c9c
https://hg.mozilla.org/mozilla-central/rev/bf88029f521e
https://hg.mozilla.org/mozilla-central/rev/e581a1f51297
https://hg.mozilla.org/mozilla-central/rev/c1befe2261fc
https://hg.mozilla.org/mozilla-central/rev/57c22ce3666a
https://hg.mozilla.org/mozilla-central/rev/dff4d833af14
https://hg.mozilla.org/mozilla-central/rev/ce8b48cf665e
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 40
Comment 67•10 years ago
|
||
Michael, can you please continue to handle these uplifts? They tend to be time-consuming and conflict-prone.
status-firefox39:
--- → affected
Flags: needinfo?(michael.l.comella)
Assignee | ||
Comment 68•10 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM UTC-4] from comment #67)
> Michael, can you please continue to handle these uplifts? They tend to be
> time-consuming and conflict-prone.
The rest of this does not need to be uplifted - part 1 was the only changeset that needed to land on 38+.
Flags: needinfo?(michael.l.comella)
Assignee | ||
Comment 69•9 years ago
|
||
Attachment #8556778 -
Attachment is obsolete: true
Attachment #8618760 -
Flags: review+
Attachment #8618761 -
Flags: review+
Attachment #8618762 -
Flags: review+
Attachment #8618763 -
Flags: review+
Attachment #8618764 -
Flags: review+
Attachment #8618765 -
Flags: review+
Attachment #8618766 -
Flags: review+
Attachment #8618767 -
Flags: review+
Attachment #8618768 -
Flags: review+
Attachment #8618769 -
Flags: review+
Attachment #8618770 -
Flags: review+
Attachment #8618771 -
Flags: review+
Attachment #8618772 -
Flags: review+
Attachment #8618773 -
Flags: review+
Attachment #8618774 -
Flags: review+
Attachment #8618775 -
Flags: review+
Assignee | ||
Comment 70•9 years ago
|
||
Assignee | ||
Comment 71•9 years ago
|
||
Assignee | ||
Comment 72•9 years ago
|
||
Assignee | ||
Comment 73•9 years ago
|
||
Assignee | ||
Comment 74•9 years ago
|
||
Assignee | ||
Comment 75•9 years ago
|
||
Assignee | ||
Comment 76•9 years ago
|
||
Assignee | ||
Comment 77•9 years ago
|
||
Assignee | ||
Comment 78•9 years ago
|
||
Assignee | ||
Comment 79•9 years ago
|
||
Assignee | ||
Comment 80•9 years ago
|
||
Assignee | ||
Comment 81•9 years ago
|
||
Assignee | ||
Comment 82•9 years ago
|
||
Assignee | ||
Comment 83•9 years ago
|
||
Assignee | ||
Comment 84•9 years ago
|
||
Assignee | ||
Comment 85•9 years ago
|
||
Reporter | ||
Updated•9 years ago
|
Flags: needinfo?(rnewman)
Updated•4 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
•