Some files depend on |using namespace mozilla| and |using namespace dom| in other cpp file to use Document
Categories
(Core :: DOM: Core & HTML, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox64 | --- | unaffected |
firefox65 | --- | unaffected |
firefox66 | --- | fixed |
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
(Keywords: regression)
Attachments
(1 file)
When I'm working on renaming a find in dom/base, I hit this bug.
Assignee | ||
Comment 1•5 years ago
|
||
s/find/file
Assignee | ||
Comment 2•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=ed1c7aa0eac431ece663b4c3a421f1ade7fe2f1f
Assignee | ||
Comment 3•5 years ago
|
||
After landing bug 1517241, some lines in Document.cpp and Element.cpp depend on |using namespace mozilla| and |using namespace mozilla::dom| of *different* cpp files. Therefore, when you rename some cpp files in dom/base, you'll hit compile error. This patch fixes the dependency with moving some classes into mozilla namespace and adding |mozilla::| or |dom::| to a couple of lines.
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/54f18c480711 Fix some lines which depend on |using namespace mozilla| and |using namespace mozilla::dom| in Document.cpp and Element.cpp r=smaug
Comment 5•5 years ago
|
||
Thanks for fixing this Masayuki, and sorry :(
Updated•5 years ago
|
Comment 6•5 years ago
|
||
bugherder |
Assignee | ||
Comment 7•5 years ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #5)
Thanks for fixing this Masayuki, and sorry :(
No problem. But I think that we should stop using |using namespace foo| even in cpp files if they are unified. I usually hit this kind of bugs when I try to rename cpp files.
Updated•5 years ago
|
Comment 8•5 years ago
|
||
(In reply to Masayuki Nakano [:masayuki] (JST, +0900)(sick) from comment #7)
No problem. But I think that we should stop using |using namespace foo| even in cpp files if they are unified. I usually hit this kind of bugs when I try to rename cpp files.
Yeah, or at least test non-unified builds in automation? That might be easier, though I recall that being frowned upon a few times.
Description
•