Closed Bug 1504754 Opened 6 years ago Closed 6 years ago

Debug noscripts version of new tab page fail to load

Categories

(Firefox :: New Tab Page, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 65
Iteration:
65.3 - Nov 30
Tracking Status
firefox65 --- fixed

People

(Reporter: Mardak, Assigned: Mardak)

References

Details

Attachments

(2 files)

The debug pages are conditionally packaged for not release/beta:

https://searchfox.org/mozilla-central/rev/7c848ac7630df5baf1314b0c03e015683599efb9/browser/components/newtab/jar.mn#43-46

But we forgot to package the noscripts versions as part of bug 1472212 when it turned on by default.
I suppose arguably, it should have been added as part of bug 1416066 when creating those files in the first place.
Depends on: 1416066
Assignee: nobody → edilee
Iteration: --- → 65.3 (Nov 30)
Priority: -- → P2
Commit pushed to master at https://github.com/mozilla/activity-stream

https://github.com/mozilla/activity-stream/commit/afc2c3730892d5a3d477a36c54ad8207a42b1941
Fix Bug 1504754 - Debug noscripts version of new tab page need to be packaged (#4551)
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Blocks: 1505929
Depends on: 1506205
The main fix here was reverted in bug 1506205 for test failures
No longer blocks: 1505929
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
The approach here wasn't quite right as indicated by the test failure (why ./mach package didn't fail locally or in our automation is another issue…)

https://treeherder.mozilla.org/logviewer.html#?job_id=210726475&repo=try&lineNumber=43272
[task 2018-11-09T02:54:50.522Z] 02:54:50     INFO -  package> ERROR: The following duplicated files are not allowed:
[task 2018-11-09T02:54:50.522Z] 02:54:50     INFO -  package> browser/chrome/browser/res/activity-stream/prerendered/en-US/activity-stream-noscripts.html
[task 2018-11-09T02:54:50.522Z] 02:54:50     INFO -  package> browser/chrome/browser/res/activity-stream/prerendered/static/activity-stream-debug-noscripts.html
[task 2018-11-09T02:54:50.522Z] 02:54:50     INFO -  package> browser/chrome/browser/res/activity-stream/prerendered/en-US/activity-stream-prerendered-noscripts.html
[task 2018-11-09T02:54:50.522Z] 02:54:50     INFO -  package> browser/chrome/browser/res/activity-stream/prerendered/static/activity-stream-prerendered-debug-noscripts.html

The debug html files would load a different script file however, -noscripts versions don't have script files in html, so they become identical. The fix should be to always load -noscripts ignoring -debug, and make sure the noscripts loader knows to load debug scripts.
We don't need to prerender or package a -debug-noscripts html file. For noscripts debug, we already dynamically pick the -dev scripts to inject, and this works with all locales (where before we only bothered packaging "static" english-only version).
Summary: Debug noscripts version of new tab page need to be packaged → Debug noscripts version of new tab page fail to load
See Also: → 1506229
Commit pushed to master at https://github.com/mozilla/activity-stream

https://github.com/mozilla/activity-stream/commit/678c6cc941234a6ff1cca513aaf110e47d1fbd6e
Fix Bug 1504754 - Debug noscripts version of new tab page fail to load (#4560)
Status: REOPENED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → FIXED
Blocks: 1510766
https://hg.mozilla.org/mozilla-central/rev/59ff6b57e94e
Target Milestone: --- → Firefox 65
Component: Activity Streams: Newtab → New Tab Page
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: