Closed
Bug 1419346
Opened 7 years ago
Closed 7 years ago
browser_favicon_load.js doesn't pass locally
Categories
(Core :: Networking, enhancement, P3)
Core
Networking
Tracking
()
RESOLVED
FIXED
mozilla59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: florian, Assigned: kershaw)
References
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file, 5 obsolete files)
(deleted),
patch
|
kershaw
:
review+
|
Details | Diff | Splinter Review |
Bug 1247843 introduced the browser_favicon_load.js test in the performance folder. This test really doesn't look like a performance test. Given its name, it looks like it was meant to go in the favicon folder.
Additionally, this test prevents running the other tests of the performance folder locally because it has undeclared dependencies on support files from the browser/components/originattributes/ folder.
Due to this, currently the only way to run locally the performance test is to run first:
./mach test browser/components/originattributes/
Flags: needinfo?(kechang)
Updated•7 years ago
|
Assignee: nobody → kechang
Priority: -- → P3
Whiteboard: [necko-triaged]
Assignee | ||
Comment 1•7 years ago
|
||
(In reply to Florian Quèze [:florian] from comment #0)
> Bug 1247843 introduced the browser_favicon_load.js test in the performance
> folder. This test really doesn't look like a performance test. Given its
> name, it looks like it was meant to go in the favicon folder.
>
> Additionally, this test prevents running the other tests of the performance
> folder locally because it has undeclared dependencies on support files from
> the browser/components/originattributes/ folder.
>
> Due to this, currently the only way to run locally the performance test is
> to run first:
> ./mach test browser/components/originattributes/
Sorry for the delay. I'll try to fix this soon.
Flags: needinfo?(kechang)
Assignee | ||
Comment 2•7 years ago
|
||
Attachment #8934378 -
Flags: review?(florian)
Assignee | ||
Comment 3•7 years ago
|
||
Summary:
- Copy some necessary support files to favicon folder.
- Modify the file paths in browser_favicon_load.js.
Hi Florian,
Could you take a look at these patches? Thanks.
Attachment #8934379 -
Flags: review?(florian)
Reporter | ||
Comment 4•7 years ago
|
||
Comment on attachment 8934378 [details] [diff] [review]
Part1: Move the test file to favicons folder
Review of attachment 8934378 [details] [diff] [review]:
-----------------------------------------------------------------
This patch looks like you are deleting and then re-adding the file instead of moving it.
Attachment #8934378 -
Flags: review?(florian) → review-
Reporter | ||
Comment 5•7 years ago
|
||
Comment on attachment 8934379 [details] [diff] [review]
Part2: Modify the paths in test file
Review of attachment 8934379 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/base/content/test/favicons/browser.ini
@@ +9,5 @@
> rich_moz_2.png
> + file_favicon.html
> + file_favicon.png
> + file_favicon.png^headers^
> + file_favicon_thirdParty.html
Did you forget to hg copy these files in the favicons folder?
Attachment #8934379 -
Flags: review?(florian) → review-
Assignee | ||
Comment 6•7 years ago
|
||
Obviously I can't use git to export my patch, so using hg instead.
Attachment #8934378 -
Attachment is obsolete: true
Attachment #8934379 -
Attachment is obsolete: true
Attachment #8934778 -
Flags: review?(florian)
Assignee | ||
Comment 7•7 years ago
|
||
Summary:
- Use "hg copy" for file_favicon.html file_favicon.png, and file_favicon.png^headers^.
- Note that the favicon path in file_favicon_thirdParty.html is different than the original one, so I have to create a new file.
Thanks.
Attachment #8934779 -
Flags: review?(florian)
Reporter | ||
Comment 8•7 years ago
|
||
Comment on attachment 8934779 [details] [diff] [review]
Part2: Modify the paths in test file
Review of attachment 8934779 [details] [diff] [review]:
-----------------------------------------------------------------
(In reply to Kershaw Chang [:kershaw] from comment #6)
> Obviously I can't use git to export my patch, so using hg instead.
I gave you the hg commands because hg is the version control tool for mozilla-central. If you want to use git that's up to you, but let's not blame the tools for your mistakes. Note: the hg patches are all exported in the 'git' format anyway.
::: browser/base/content/test/favicons/browser.ini
@@ +15,5 @@
> [browser_multiple_icons_in_short_timeframe.js]
> [browser_rich_icons.js]
> [browser_icon_discovery.js]
> [browser_preferred_icons.js]
> +[browser_favicon_load.js]
Please do the 'hg move' of this file in the same attachment (ie put the 2 parts into a single patch).
::: browser/base/content/test/favicons/file_favicon_thirdParty.html
@@ +1,1 @@
> +<!DOCTYPE HTML>
Is there a reason for this file to be 'hg add'ed when the other 3 files were 'hg copy'ed?
Attachment #8934779 -
Flags: review?(florian) → review-
Reporter | ||
Updated•7 years ago
|
Attachment #8934778 -
Flags: review?(florian)
Assignee | ||
Comment 9•7 years ago
|
||
(In reply to Florian Quèze [:florian] from comment #8)
> Comment on attachment 8934779 [details] [diff] [review]
> Part2: Modify the paths in test file
>
> Review of attachment 8934779 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> (In reply to Kershaw Chang [:kershaw] from comment #6)
>
> > Obviously I can't use git to export my patch, so using hg instead.
>
> I gave you the hg commands because hg is the version control tool for
> mozilla-central. If you want to use git that's up to you, but let's not
> blame the tools for your mistakes. Note: the hg patches are all exported in
> the 'git' format anyway.
>
I mean there is no similar command like "hg copy" in git, if I was correct.
https://github.com/glandium/git-cinnabar/issues/97
>
> Is there a reason for this file to be 'hg add'ed when the other 3 files were
> 'hg copy'ed?
Because the favicon link in file_favicon_thirdParty.html is changed, using "hg copy" may cause conflict in the future?
Could you correct me if I am wrong? I've never used "hg copy" before. Will the change made to the original file also be merged to the copied one?
Reporter | ||
Comment 10•7 years ago
|
||
(In reply to Kershaw Chang [:kershaw] from comment #9)
> Because the favicon link in file_favicon_thirdParty.html is changed, using
> "hg copy" may cause conflict in the future?
I don't think so.
> Could you correct me if I am wrong? I've never used "hg copy" before. Will
> the change made to the original file also be merged to the copied one?
After a copy the 2 files will be different (a change to one of them won't affect the other), the point of doing a copy is just to let hg record that the 2 files share the same history.
Assignee | ||
Comment 11•7 years ago
|
||
Summary:
- Merge two patches into one
- Use "hg copy" for file_favicon_thirdParty.html
Thanks.
Attachment #8934778 -
Attachment is obsolete: true
Attachment #8934779 -
Attachment is obsolete: true
Attachment #8935227 -
Flags: review?(florian)
Reporter | ||
Comment 12•7 years ago
|
||
Comment on attachment 8935227 [details] [diff] [review]
Move browser_favicon_load.js to favicon folder
Looks good to me, thanks!
Attachment #8935227 -
Flags: review?(florian) → review+
Assignee | ||
Comment 13•7 years ago
|
||
Thanks for your review and guidance.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=b0179cd2e81fd275ef82e18529aa6802673a8d66
Attachment #8935227 -
Attachment is obsolete: true
Attachment #8935357 -
Flags: review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Comment 14•7 years ago
|
||
Pushed by cbrindusan@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/b9e618665a96
Move browser_favicon_load.js to favicon folder, r=florian
Keywords: checkin-needed
Comment 15•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in
before you can comment on or make changes to this bug.
Description
•