Closed Bug 1081079 Opened 10 years ago Closed 9 years ago

Create a React mixin for dealing with document title updates

Categories

(Hello (Loop) :: Client, defect, P2)

defect
Points:
2

Tracking

(firefox39 fixed)

RESOLVED FIXED
mozilla39
Iteration:
39.2 - 23 Mar
Tracking Status
firefox39 --- fixed
backlog tech-debt

People

(Reporter: NiKo, Assigned: standard8)

Details

(Whiteboard: [tech-debt])

Attachments

(1 file, 1 obsolete file)

A bit along the lines of this comment: https://bugzilla.mozilla.org/show_bug.cgi?id=1078718#c3, I think we should create a react mixin for dealing with document title updates. 

That would make things cleaner and easier to test.
Whiteboard: [tech-debt]
backlog: --- → Fx36+
backlog: Fx36+ → Fx37+
Assignee: nobody → standard8
backlog: Fx37+ → Fx38?
P2 as this is already in progress, we have a mixin, we should just use it everywhere (it'd also fix some issues which we already have).
backlog: Fx38? → tech-debt
Priority: -- → P2
This is ready to land, but depends on the patches in bug 1140481 / bug 1088672. Hence I'll wait until they've landed before requesting review.

This is enough that we can close this bug - the remaining work is wontfix as it covers the standalone call url items which will hopefully go away soon.
Iteration: --- → 39.2 - 23 Mar
Points: --- → 2
Now that the deps have landed, this patch is ready for review. I've not done the standalone call url uses - they are effectively wontfix.

For now, this will save some of our titles being messed up.
Attachment #8575209 - Attachment is obsolete: true
Attachment #8576663 - Flags: review?(dmose)
Rank: 21
Flags: firefox-backlog+
Comment on attachment 8576663 [details] [diff] [review]
Use the DocumentTitleMixin for Loop in more places.

Dan isn't around for the next couple of days...
Attachment #8576663 - Flags: review?(dmose) → review?(jaws)
Comment on attachment 8576663 [details] [diff] [review]
Use the DocumentTitleMixin for Loop in more places.

Review of attachment 8576663 [details] [diff] [review]:
-----------------------------------------------------------------

r=me but the DocumentTitleMixin seems almost too simple, like I actually don't see much value in it. It just adds a lot of indirection for the code.
Attachment #8576663 - Flags: review?(jaws) → review+
(In reply to Jared Wein [:jaws] (please needinfo? me) from comment #5)
> r=me but the DocumentTitleMixin seems almost too simple, like I actually
> don't see much value in it. It just adds a lot of indirection for the code.

I find the value all in the testability - it makes testing it much simpler, and means we're not messing with the live document (and hence, things like ui-showcase end up with the right title).
https://hg.mozilla.org/integration/fx-team/rev/448e02bb2620
Flags: in-testsuite+
Target Milestone: --- → mozilla39
https://hg.mozilla.org/mozilla-central/rev/448e02bb2620
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Flags: qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: