Closed
Bug 1376929
Opened 7 years ago
Closed 7 years ago
Fix places-related mochitests in chrome/ for async-transactions
Categories
(Firefox :: Bookmarks & History, enhancement, P1)
Firefox
Bookmarks & History
Tracking
()
RESOLVED
FIXED
Firefox 56
Tracking | Status | |
---|---|---|
firefox56 | --- | fixed |
People
(Reporter: standard8, Assigned: mak)
References
Details
(Whiteboard: [fxsearch])
Attachments
(1 file)
There are various tests in chrome/ that fail when we try to turn on async-transactions.
We should fix those.
Comment hidden (mozreview-request) |
Assignee | ||
Comment 3•7 years ago
|
||
Looks like there are some failures to look into.
Assignee | ||
Updated•7 years ago
|
Attachment #8882723 -
Flags: review?(standard8)
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Reporter | ||
Comment 6•7 years ago
|
||
mozreview-review |
Comment on attachment 8882723 [details]
Bug 1376929 - Fix places-related mochitests in chrome/ for async-transactions.
https://reviewboard.mozilla.org/r/153816/#review159302
Attachment #8882723 -
Flags: review?(standard8) → review+
Pushed by mak77@bonardo.net:
https://hg.mozilla.org/integration/autoland/rev/1f5e741ab2b6
Fix places-related mochitests in chrome/ for async-transactions. r=standard8
Comment 8•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 56
Comment 9•7 years ago
|
||
> - if (!aURI || !aTags || !Array.isArray(aTags)) {
> - throw Cr.NS_ERROR_INVALID_ARG;
> + if (!aURI || !aTags || !Array.isArray(aTags) || aTags.length == 0) {
> + throw Components.Exception("Invalid value for tags", Cr.NS_ERROR_INVALID_ARG);
Why did you do that? An empty array is still an array. getTagsForURI can return an empty array; why am I not allowed to pass the returned value straight to tagURI?
This broke https://addons.mozilla.org/en-US/firefox/addon/bmreplace/.
Flags: needinfo?(mak77)
Assignee | ||
Comment 10•7 years ago
|
||
(In reply to Dmitry Gutov from comment #9)
> Why did you do that? An empty array is still an array. getTagsForURI can
> return an empty array; why am I not allowed to pass the returned value
> straight to tagURI?
because trying to tag with an empty array may hide bugs in the code. Suppose some code is trying to add tags, but due to a bug it ends up passing an empty array every time.
Flags: needinfo?(mak77)
Comment 11•7 years ago
|
||
> Suppose some code is trying to add tags, but due to a bug it ends up passing an empty array every time.
That is silly. An imaginary bug that ends up generating an empty array unintentionally could just as well generate a non-empty array with undesired values.
This is a backward incompatible change. Please revert it.
Assignee | ||
Comment 12•7 years ago
|
||
why? the extension can be fixed easily with a simple if, in a few minutes. I prefer having the API helping us finding unexpected behaviors in the UI code.
Comment 13•7 years ago
|
||
I doubt this is the only extension that will need to be fixed. And debugging this breakage took more than a few minutes.
You need to log in
before you can comment on or make changes to this bug.
Description
•