Closed
Bug 1191356
Opened 9 years ago
Closed 9 years ago
Clean up nsHTMLEditRules::RemoveListStructure, RemoveBlockContainer, MoveBlock, etc.
Categories
(Core :: DOM: Editor, enhancement)
Core
DOM: Editor
Tracking
()
RESOLVED
FIXED
mozilla49
Tracking | Status | |
---|---|---|
firefox49 | --- | fixed |
People
(Reporter: ayg, Assigned: ayg)
References
Details
Attachments
(9 files, 9 obsolete files)
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review |
No description provided.
Flags: in-testsuite-
Assignee | ||
Comment 1•9 years ago
|
||
Green try for this series: https://treeherder.mozilla.org/#/jobs?repo=try&revision=d5ed28ac87ca
Attachment #8645447 -
Flags: review?(ehsan)
Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8645448 -
Flags: review?(ehsan)
Assignee | ||
Comment 3•9 years ago
|
||
Attachment #8645449 -
Flags: review?(ehsan)
Assignee | ||
Comment 4•9 years ago
|
||
Assignee | ||
Comment 5•9 years ago
|
||
Attachment #8645451 -
Flags: review?(ehsan)
Assignee | ||
Comment 6•9 years ago
|
||
Attachment #8645452 -
Flags: review?(ehsan)
Assignee | ||
Comment 7•9 years ago
|
||
The obvious ugly way to avoid the problem noted in the commit message is to make the new version have an ErrorResult, but that's really lame for something that can already return null.
Attachment #8645453 -
Flags: review?(ehsan)
Assignee | ||
Comment 8•9 years ago
|
||
Attachment #8645454 -
Flags: review?(ehsan)
Assignee | ||
Updated•9 years ago
|
Attachment #8645450 -
Flags: review?(ehsan)
Assignee | ||
Comment 9•9 years ago
|
||
Attachment #8645455 -
Flags: review?(ehsan)
Updated•9 years ago
|
Attachment #8645453 -
Flags: review?(ehsan) → review+
Updated•9 years ago
|
Attachment #8645447 -
Flags: review?(ehsan) → review+
Updated•9 years ago
|
Attachment #8645448 -
Flags: review?(ehsan) → review+
Updated•9 years ago
|
Attachment #8645449 -
Flags: review?(ehsan) → review+
Updated•9 years ago
|
Attachment #8645450 -
Flags: review?(ehsan) → review+
Updated•9 years ago
|
Attachment #8645451 -
Flags: review?(ehsan) → review+
Comment 10•9 years ago
|
||
Comment on attachment 8645452 [details] [diff] [review]
Part 6 -- Clean up nsHTMLEditRules::WillMakeBasicBlock
Review of attachment 8645452 [details] [diff] [review]:
-----------------------------------------------------------------
::: editor/libeditor/nsHTMLEditRules.cpp
@@ +6712,5 @@
> nsHTMLEditRules::SplitAsNeeded(nsIAtom& aTag,
> + OwningNonNull<nsINode>& aInOutParent,
> + int32_t& aInOutOffset)
> +{
> + // XXX Is there a better way to do this?
I suppose we could write an adapter type from OwningNonNull to nsCOMPtr, but I wouldn't bother unless this comes up often...
Attachment #8645452 -
Flags: review?(ehsan) → review+
Updated•9 years ago
|
Attachment #8645454 -
Flags: review?(ehsan) → review+
Updated•9 years ago
|
Attachment #8645455 -
Flags: review?(ehsan) → review+
Assignee | ||
Comment 11•9 years ago
|
||
Attachment #8645447 -
Attachment is obsolete: true
Assignee | ||
Comment 12•9 years ago
|
||
Attachment #8645448 -
Attachment is obsolete: true
Assignee | ||
Comment 13•9 years ago
|
||
Attachment #8645449 -
Attachment is obsolete: true
Assignee | ||
Comment 14•9 years ago
|
||
Attachment #8645450 -
Attachment is obsolete: true
Assignee | ||
Comment 15•9 years ago
|
||
Attachment #8645451 -
Attachment is obsolete: true
Assignee | ||
Comment 16•9 years ago
|
||
Attachment #8645452 -
Attachment is obsolete: true
Assignee | ||
Comment 17•9 years ago
|
||
Attachment #8645453 -
Attachment is obsolete: true
Assignee | ||
Comment 18•9 years ago
|
||
Attachment #8645454 -
Attachment is obsolete: true
Assignee | ||
Comment 19•9 years ago
|
||
Attachment #8645455 -
Attachment is obsolete: true
Assignee | ||
Comment 20•9 years ago
|
||
Checkin instructions: This is a 46-patch set that needs to be checked in in the following order. (Assume every patch depends on the patch before.)
1) Bug 1156062, patches 4-9. (1-3 are already checked in.)
2) Bug 1190172, all patches (1-12).
3) Bug 1191354, all patches (1-13).
4) Bug 1191356, all patches (1-9).
5) Bug 1193762, patches 1-3. (The other patches are not part of the series and I'll check them in myself later.)
This type of cleanup has caused regressions in the past, so to ease regression hunting, *every patch should be checked in in a separate push*, so mozregression will be able to test all of them. (This means it should be on a weekend, apparently.)
https://treeherder.mozilla.org/#/jobs?repo=try&revision=c0e156c70327
Keywords: leave-open → checkin-needed
Assignee | ||
Comment 21•9 years ago
|
||
(In reply to :Aryeh Gregor (working until May 8) from comment #20)
> 1) Bug 1156062, patches 4-9. (1-3 are already checked in.)
This should be 4-12, not 4-9.
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 22•9 years ago
|
||
The first two bugs got checked in, but there was a misunderstanding, so they were checked in all at once and not one changeset per push. Masayuki, are you able to push the rest this weekend? I'm not available. If not, I'll do it the Sunday after this one.
Flags: needinfo?(masayuki)
Comment 23•9 years ago
|
||
(In reply to :Aryeh Gregor (working until May 8) from comment #22)
> The first two bugs got checked in, but there was a misunderstanding, so they
> were checked in all at once and not one changeset per push.
How about to backout them and reland them separately?
> Masayuki, are
> you able to push the rest this weekend? I'm not available. If not, I'll do
> it the Sunday after this one.
I don't have the detail of plan of this weekend. I guess that I have some chance to land them, but I'm not sure I can do that for all patches.
Anyway, I strongly recommend that you should backout them for now.
Flags: needinfo?(masayuki) → needinfo?(ayg)
Comment 24•9 years ago
|
||
I wonder, do you really need to land your patches in weekend? I think that your patches are not so big and there are only a couple of developers hacking editor. So, you can land them even in a weekday.
Assignee | ||
Comment 25•9 years ago
|
||
The problem is that it overloads the builders, which slows down build times for everyone. (Possibly it doesn't run more tests due to coalescing, but maybe it runs more tests too, I don't know.) If it's on a weekend, 1) the builders are mostly idle anyway, and 2) hopefully if they're overloaded nobody's around to care.
I backed out the landings on inbound.
Flags: needinfo?(ayg)
Assignee | ||
Comment 26•9 years ago
|
||
By the way, the landings could be done with an at job, e.g.:
$ at 2:00 Sunday
at> cd /path/to/repo
at> hg pull -u && while hg qpush; do hg qfin -a && hg push; done
I don't expect to be able to do it this week regardless, but maybe someone else can. If not, I should be able to do it next week.
Comment 27•9 years ago
|
||
How about to land 3-4 patches per day? It's not so many landings per developer.
Comment 28•9 years ago
|
||
(In reply to :Aryeh Gregor (working until May 8) from comment #20)
> Checkin instructions: This is a 46-patch set that needs to be checked in in
> the following order. (Assume every patch depends on the patch before.)
>
> 1) Bug 1156062, patches 4-9. (1-3 are already checked in.)
>
> 2) Bug 1190172, all patches (1-12).
>
> 3) Bug 1191354, all patches (1-13).
>
> 4) Bug 1191356, all patches (1-9).
>
> 5) Bug 1193762, patches 1-3. (The other patches are not part of the series
> and I'll check them in myself later.)
>
> This type of cleanup has caused regressions in the past, so to ease
> regression hunting, *every patch should be checked in in a separate push*,
> so mozregression will be able to test all of them. (This means it should be
> on a weekend, apparently.)
>
> https://treeherder.mozilla.org/#/jobs?repo=try&revision=c0e156c70327
> patching file editor/libeditor/nsHTMLEditRules.cpp
> Hunk #3 FAILED at 2426
> 1 out of 4 hunks FAILED -- saving rejects to file editor/libeditor/nsHTMLEditRules.cpp.rej
> patch failed, unable to continue (try -v)
> patch failed, rejects left in working directory
> errors during apply, please fix and qrefresh bug1156062-8.diff
The patch of bug 1156062 part 8 is rejected with current mozilla-inbound. Please make sure all patches can be applied to the latest mozilla-inbound by next morning.
Flags: needinfo?(ayg)
Comment 29•9 years ago
|
||
FYI: Perhaps, I can work on landing the patches for a couple of hours about 24 hours later from now. Although, I'm still not sure if I can work on Sunday.
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(ayg)
Comment 30•9 years ago
|
||
Comment 31•9 years ago
|
||
Comment 32•9 years ago
|
||
Comment 33•9 years ago
|
||
Comment 34•9 years ago
|
||
Comment 35•9 years ago
|
||
Comment 36•9 years ago
|
||
Comment 37•9 years ago
|
||
Comment 38•9 years ago
|
||
Comment 39•9 years ago
|
||
Backed out parts 6-9 for build bustage:
https://hg.mozilla.org/integration/mozilla-inbound/rev/6ddd4f547fceed169f88c649aa3ca3fa37dca394
https://hg.mozilla.org/integration/mozilla-inbound/rev/c3204b6c4e6c350b7d42161c01532fe7cc6be061
https://hg.mozilla.org/integration/mozilla-inbound/rev/211e5067895e396df8c840a218490c9b8a1fbd8a
https://hg.mozilla.org/integration/mozilla-inbound/rev/61ed6234e17d0519701a49a38a4f1b4c833da0a1
First push with failures: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=6dbba6c4a200ac06bdbfab8fce401a2ea8e0e00c
Flags: needinfo?(ayg)
Comment 40•9 years ago
|
||
Comment 41•9 years ago
|
||
Comment 42•9 years ago
|
||
Comment 43•9 years ago
|
||
Assignee | ||
Comment 44•9 years ago
|
||
A rebase failed and I somehow didn't notice, leaving a merge marker in the file. I resolved the conflict, compile-tested the remaining seven patches locally, and repushed to inbound.
Flags: needinfo?(ayg)
Assignee | ||
Comment 45•9 years ago
|
||
Seems to have stuck. One commit still failed to build (somehow I pushed the broken version instead of the corrected one), but two commits later it starts to build, so that range of three commits will not be bisectable.
Comment 46•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/e9c7181b7bb4
https://hg.mozilla.org/mozilla-central/rev/1c306ee11299
https://hg.mozilla.org/mozilla-central/rev/d0f212d477d6
https://hg.mozilla.org/mozilla-central/rev/cb399cd2f5be
https://hg.mozilla.org/mozilla-central/rev/24149bd5c774
https://hg.mozilla.org/mozilla-central/rev/cd06028cfe50
https://hg.mozilla.org/mozilla-central/rev/80a9b6aa8815
https://hg.mozilla.org/mozilla-central/rev/c07e7e8e9140
https://hg.mozilla.org/mozilla-central/rev/690690705ac1
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in
before you can comment on or make changes to this bug.
Description
•