Closed
Bug 1002521
Opened 11 years ago
Closed 11 years ago
about:newtab doesn't show thumbnails when opened using ctrl-T
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
VERIFIED
FIXED
Firefox 32
People
(Reporter: wesj, Assigned: benjamin)
References
Details
(Whiteboard: p=2 s=it-32c-31a-30b.1 [qa!])
Attachments
(4 files)
about:newtab doesn't show thumbnails when opened using ctrl-T. Pressing refresh will show them.
Comment 1•11 years ago
|
||
I'm seeing this as well.
This isn't specific to "Ctrl-T" -- the "+" button in the tab strip has the same effect. However, if I type "about:newtab" into an existing tab's URL bar and hit enter, then I see the thumbnails (no bug).
My nightly browsing profile reproduces this bug 100% of the time. I couldn't initially reproduce in a fresh profile (i.e. there, I see search field + thumbnails in about:newtab) , but after waiting a few minutes and trying again, I was able to reproduce (no more thumbnails in new tabs).
Blocks: 962490
Version: unspecified → Trunk
Comment 2•11 years ago
|
||
Here's a snapshot of a near-fresh profile (with a bunch of unnecessary files removed) that reproduces this for me.
STR:
1. Extract this tarball
2. Run (on Linux at least):
firefox -no-remote -profile profile
3. Open a new tab.
In the new tab, dashed thumbnail boxes briefly appear, and then disappear after a second. They come back if I reload.
Comment 3•11 years ago
|
||
I'm assuming we'll be pushing this bug to Aurora users, when Aurora gets a new trunk snapshot later this week (and bumps to version 31). Setting tracking flag to make sure we don't forget to backport the eventual fix to them.
tracking-firefox31:
--- → ?
Comment 4•11 years ago
|
||
What ends up showing? Just the search input and buttons? The toggle to show/hide?
Comment 5•11 years ago
|
||
The search input and the show/hide toggle button all show up. Just no thumbnails.
Screenshots coming.
Comment 6•11 years ago
|
||
Comment 7•11 years ago
|
||
(Note that the input expands to the width of the thumbnail-grid after I refresh & make the thumbnails appear, too.)
Comment 8•11 years ago
|
||
My nightly info, FWIW:
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0
31.0a1 (2014-04-28)
Comment 9•11 years ago
|
||
Thanks, Daniel. With your profile data, I can reproduce on the latest Nightly but not on my freshly built debug build. The tiles actually appear right after opening a new tab but then disappear a split second later.
After creating a new profile, the problem starts happening after I copy both experiments.json and prefs.json to the new profile. Maybe that points to an experiments problem. Are experiments disabled on hand-built Firefoxes but enabled on Nightly? That might explain what I'm seeing.
Comment 10•11 years ago
|
||
Yeah, this is due to the Tile Switcher experiment add-on I'm pretty sure. Blake, Benjamin, I think you guys worked on that?
https://github.com/bwinton/tile-switcher/blob/master/data/newtabicons-content.js
Bug 980014 changed how newtab creates its grid. There's no .newtab-row anymore, so the content script at the above URL just ends up removing all the grid cells and never adds them back. How it works now is that cells are appended directly to #newtab-grid, and the grid's width makes them flow into rows naturally.
Flags: needinfo?(bwinton)
Updated•11 years ago
|
OS: Linux → All
Hardware: x86_64 → All
Comment 11•11 years ago
|
||
I would totally believe that, and have seen similar things in Whimsy…
I can see a few ways we could handle this.
1) I'm more than happy to update the two add-ons I wrote which are currently using newtab-row.
(But that wouldn't catch any other add-ons which may be accessing the newtab-row.)
2) Would it be possible to re-add the newtab-row class?
(I suspect it might be difficult, given the description of the new behaviour…)
3) Perhaps we should instead not run the Tile Switcher experiment on Nightly?
(Since the data would be decidedly skewed if the layout also changed in the middle of the test.)
Benjamin, Ed: Any preferences on which option to go with (or any suggestions of better options ;) ?
Flags: needinfo?(bwinton)
Assignee | ||
Comment 12•11 years ago
|
||
We have two options for the experiment: we can either force-kill it now (which would be a reasonably good test of the force-kill feature!) or we can publish an update. If we do an update, it would be nice for it to work with both the old and new nightly styling, but I don't know whether that's feasible.
Comment 13•11 years ago
|
||
We could probably add back .newtab-row -- by grouping cells into <span>s each time the grid is resized -- but I'd rather not. (I tried searching https://mxr.mozilla.org/addons/ to see who else uses .newtab-row, but it's timing out or something.)
It ought to be possible to make the add-on work with all Nightlies. The only difference is the parent of the cells. The rearranging logic would work the same otherwise.
Comment 14•11 years ago
|
||
This seems to work to determine if a cell is visible or not :)
for (cell of document.querySelectorAll(".newtab-cell"))
console.log(cell == document.elementFromPoint(cell.offsetLeft, cell.offsetTop))
Then that can be used to feed into something that changes the order of the Links returned? Perhaps some monkeypatching:
Links._getLinks = Links.getLinks;
Links.getLinks = function() {
let links = this._getLinks();
return reordered link based on which how many are visible ?
};
Comment 15•11 years ago
|
||
Here's a new XPI from the latest code at https://github.com/bwinton/tile-switcher which should fix the problem.
Assignee: nobody → bwinton
Status: NEW → ASSIGNED
Assignee | ||
Comment 16•11 years ago
|
||
http://hg.mozilla.org/webtools/telemetry-experiment-server/rev/4286d696976a
Kamil, can you please verify on staging that this upgrades correctly. STR:
* Using production (the old .xpi), set the sample-pref and make sure the experiment is installed and broken
* Switch the manifest URL to telemetry-experiment-dev.allizom.org.
* Test that the new version of the experiment is installed correctly and that control-t works properly.
mmucci please add this to the 32.1 iteration.
Assignee: bwinton → benjamin
Flags: needinfo?(mmucci)
Flags: needinfo?(kamiljoz)
Flags: firefox-backlog+
QA Contact: kamiljoz
Whiteboard: [qa+]
Reporter | ||
Comment 17•11 years ago
|
||
I can verify my problem went away with this installed :) Thanks!
Comment 18•11 years ago
|
||
Added to Iteration 32.1 Benjamin, can you provide a point estimate.
Flags: needinfo?(mmucci) → needinfo?(benjamin)
Whiteboard: [qa+] → p=0 s=it-32c-31a-30b.1 [qa+]
Assignee | ||
Updated•11 years ago
|
Flags: needinfo?(benjamin)
Whiteboard: p=0 s=it-32c-31a-30b.1 [qa+] → p=2 s=it-32c-31a-30b.1 [qa+]
Comment 19•11 years ago
|
||
Went through the verification process using the latest Nightly build from the following location:
- http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2014-04-30-03-02-01-mozilla-central/
Reproduced the original issue from comment #0 and comment #1:
- Installed the latest nightly from the link above
- Changed "experiments.manifest.uri" to "http://kamiljozwiak.com/firefox-manifest.json" which is using the older XPI
- Once the experiment has been installed, ensured that selecting "+" and "CTRL + T" would create a new tab without the tiles being visible
- Also as per comment #1, ensured that about:newtab would display the tiles correctly
Went through the following test cases to ensure that the issue has been resolved:
- Installed the latest nightly from the link above
- Changed "experiments.manifest.uri" to "https://telemetry-experiment-dev.allizom.org/firefox-manifest.json" which is using the newer XPI
- Insured that the experiment was downloaded via "about:support" and "about:addons"
- Ensured tiles are visible when creating a new tab via "CTRL + T"
- Ensured tiles are visible when creating a new tab via selecting "+"
- Ensured tiles are visible when creating a new tab via "File -> New Tab"
- Ensured tiles are visible when creating a new tab via "about:newtab"
- Went through the above cases in OSX 10.9.2 and Windows 8.1
Flags: needinfo?(kamiljoz)
Whiteboard: p=2 s=it-32c-31a-30b.1 [qa+] → p=2 s=it-32c-31a-30b.1 [qa!]
Comment 21•11 years ago
|
||
I can't reproduce anymore. (hooray!)
I'm guessing comment 16 & beyond have fixed this -- if so, can we close this out?
Flags: needinfo?(benjamin)
Assignee | ||
Updated•11 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Target Milestone: --- → Firefox 32
Updated•11 years ago
|
Status: RESOLVED → VERIFIED
status-firefox32:
--- → verified
Updated•11 years ago
|
Flags: needinfo?(jbecerra)
Whiteboard: p=2 s=it-32c-31a-30b.1 [qa!] → p=2 s=it-32c-31a-30b.1 [qa?]
Updated•11 years ago
|
Flags: needinfo?(jbecerra)
Whiteboard: p=2 s=it-32c-31a-30b.1 [qa?] → p=2 s=it-32c-31a-30b.1 [qa+]
Comment 24•11 years ago
|
||
Changing this back to [qa!] as testing has already been completed. This only affected Nightly users as the experiment was only launched on the Nightly channel and not on Aurora. Telemetry Experiments is currently enabled on Aurora but the experiment will not be installed as the manifest.json specifies that it install's only on Nightly.
The following error will be logged in the Browser Console when attempting to install the current experiment on Aurora:
"1399492991180 Browser.Experiments.Experiments DEBUG ExperimentEntry #0::isApplicable() - id=tile-switcher@experiments.mozilla.org - test 'channel' failed"
Whiteboard: p=2 s=it-32c-31a-30b.1 [qa+] → p=2 s=it-32c-31a-30b.1 [qa!]
You need to log in
before you can comment on or make changes to this bug.
Description
•