Closed
Bug 784739
Opened 12 years ago
Closed 11 years ago
Switch from NULL to nullptr
Categories
(Core :: General, defect)
Core
General
Tracking
()
RESOLVED
FIXED
mozilla29
People
(Reporter: ehsan.akhgari, Assigned: poiru)
References
Details
(Whiteboard: [mentor=ehsan][lang=c++][qa-])
Attachments
(79 files, 58 obsolete files)
26.46 KB,
patch
|
ehsan.akhgari
:
review+
RyanVM
:
checkin+
|
Details | Diff | Splinter Review |
27.12 KB,
patch
|
ehsan.akhgari
:
review+
RyanVM
:
checkin+
|
Details | Diff | Splinter Review |
27.14 KB,
patch
|
ehsan.akhgari
:
review+
RyanVM
:
checkin+
|
Details | Diff | Splinter Review |
20.60 KB,
patch
|
ehsan.akhgari
:
review+
RyanVM
:
checkin+
|
Details | Diff | Splinter Review |
16.62 KB,
patch
|
ehsan.akhgari
:
review+
RyanVM
:
checkin+
|
Details | Diff | Splinter Review |
13.42 KB,
patch
|
ehsan.akhgari
:
review+
RyanVM
:
checkin+
|
Details | Diff | Splinter Review |
23.36 KB,
patch
|
ehsan.akhgari
:
review+
RyanVM
:
checkin+
|
Details | Diff | Splinter Review |
39.74 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
104.10 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
53.30 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
37.11 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
86.23 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
25.12 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
137.86 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
150.58 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
38.42 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
87.99 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
77.60 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
75.67 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
63.67 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
81.88 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
67.09 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
77.66 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
94.68 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
86.84 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
84.84 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
79.72 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
86.66 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
90.86 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
86.26 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
78.79 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
76.10 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
76.19 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
79.84 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
76.23 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
77.34 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
76.56 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
80.49 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
83.69 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
84.95 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
102.41 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
48.13 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
23.79 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
78.45 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
78.66 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
70.07 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
68.63 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
93.62 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
79.65 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
54.61 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
68.23 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
77.77 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
85.38 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
78.84 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
80.46 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
29.04 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
57.52 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
66.64 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
85.54 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
44.08 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
16.06 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
42.41 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
29.04 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
53.37 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
49.32 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
8.00 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
28.13 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
30.95 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
41.02 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
35.43 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
50.97 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
42.51 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
15.77 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
16.92 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
30.86 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
97.32 KB,
patch
|
ehsan.akhgari
:
review+
ehugg
:
feedback+
|
Details | Diff | Splinter Review |
33.19 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
18.34 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
3.74 KB,
patch
|
lsblakk
:
approval-mozilla-aurora+
lsblakk
:
approval-mozilla-beta+
Sylvestre
:
approval-mozilla-release-
|
Details | Diff | Splinter Review |
This is the follow-up to bug 626472.
Reporter | ||
Comment 1•12 years ago
|
||
Josh, do you know any contributors who might wanna take this over? This is not necessarily a good first bug.
Comment 2•12 years ago
|
||
What must we do for resolve this "bug" please ? Just replace all NULL by nullptr ?
Comment 3•12 years ago
|
||
And, must we have Mac for this "bug" ?
Comment 4•12 years ago
|
||
(In reply to Kévin Plestan from comment #2)
> What must we do for resolve this "bug" please ? Just replace all NULL by
> nullptr ?
Yes.
(In reply to Kévin Plestan from comment #3)
> And, must we have Mac for this "bug" ?
No.
Comment 5•12 years ago
|
||
Ok Thank you, I will try to do this
Comment 6•12 years ago
|
||
Excuse me, must I search file by file "NULL" and replace it by "nullptr" or there is something which can help me ? Something like an IDE ? Thank you for your help.
Comment 7•12 years ago
|
||
Must I replace all NULL I see by nullptr or must I just replace the NULL which are used for pointer ? Sorry for silly questions but I do not know all of the programming's world.
Reporter | ||
Comment 8•12 years ago
|
||
Thanks Kévin for your interest in working on this!
I think the best way to replace NULL with nullptr across all of our code is to use a script similar to the one used in bug 690892 <https://bug690892.bugzilla.mozilla.org/attachment.cgi?id=567444>. You can just replace the sed rules there with ones that replace NULL with nullptr, something like:
's/\bNULL /nullptr /g'
's/\bNULL\b/nullptr/g'
The spacing trick is used to make sure that we avoid messing up the indentation as much as we can.
Please let me know if you need more help.
Comment 9•12 years ago
|
||
Must I modified .idl files ?
Thank you.
Reporter | ||
Comment 10•12 years ago
|
||
(In reply to comment #9)
> Must I modified .idl files ?
No.
Comment 11•12 years ago
|
||
Thank you very much
Comment 12•12 years ago
|
||
@Kevin: I'd love to take this over if you're no longer working on this. :)
Comment 13•12 years ago
|
||
I'm at the end of my work. I'm trying to compile my mozilla's version. I'll informe you if it's working ;) .
P.S : correct me if I do english errors because I'm not english (but french. Besides, a french who's learning english ^^ ) Thank You !
Reporter | ||
Comment 14•12 years ago
|
||
(In reply to comment #13)
> I'm at the end of my work. I'm trying to compile my mozilla's version. I'll
> informe you if it's working ;) .
Great to hear that!
> P.S : correct me if I do english errors because I'm not english (but french.
> Besides, a french who's learning english ^^ ) Thank You !
No worries. A lot of us are not native English speakers either (including myself. :-)
Comment 15•12 years ago
|
||
@Kevin: Still working on this? I'd love to fix this bug if you're no longer interested. :)
Comment 16•12 years ago
|
||
I've tried changing NULL to nullptr in all cpp, cc, mm and h files and, because I changed source/mfbt/Assertions.h which is used by memory/mozjemalloc/jemalloc.c so this gives me an error. Should I avoid changing the h files?
Comment 17•12 years ago
|
||
(In reply to Cristian Ojog from comment #16)
> I've tried changing NULL to nullptr in all cpp, cc, mm and h files and,
> because I changed source/mfbt/Assertions.h which is used by
> memory/mozjemalloc/jemalloc.c so this gives me an error. Should I avoid
> changing the h files?
The majority of h files can use nullptr; I think avoiding Assertions.h will probably be sufficient.
Comment 18•12 years ago
|
||
Hi I tried this bug with command
find ./ ! -path ./.hg/\* ! -name Assertions.h -type f \( -iname \*.h -o -iname \*.cpp -o -iname *.mm -o -iname *.cc \) | xargs -n 1 sed -i -e 's/\bNULL /nullptr /g' -e 's/\bNULL\b/nullptr/g'
but the build is showing
error: ‘nullptr’ undeclared (first use in this function)
do i have to include <mfbt/nullptr.h> to files too ?
and which directories do i have to exclude other than .hg ?
Updated•12 years ago
|
Assignee: nobody → mohit.www
Updated•12 years ago
|
Status: NEW → ASSIGNED
Reporter | ||
Comment 19•12 years ago
|
||
(In reply to comment #18)
> Hi I tried this bug with command
> find ./ ! -path ./.hg/\* ! -name Assertions.h -type f \( -iname \*.h -o -iname
> \*.cpp -o -iname *.mm -o -iname *.cc \) | xargs -n 1 sed -i -e 's/\bNULL
> /nullptr /g' -e 's/\bNULL\b/nullptr/g'
>
> but the build is showing
> error: ânullptrâ undeclared (first use in this function)
> do i have to include <mfbt/nullptr.h> to files too ?
> and which directories do i have to exclude other than .hg ?
Which file is this error coming from?
Comment 20•12 years ago
|
||
/home/mohit/mozilla-central/memory/mozjemalloc/jemalloc.c: In function ‘extent_tree_szad_first’:
/home/mohit/mozilla-central/memory/mozjemalloc/jemalloc.c:2307:1: error: ‘nullptr’ undeclared (first use in this function)
Same error in functions
extent_tree_szad_[first/last/next/prev/nsearch/search/psearch]
extent_tree_ad_[first/last/next/prev/nsearch/search/psearch]
arena_chunk_tree_dirty_[first/last/next/prev/nsearch/search/psearch]
arena_avail_tree_[first/last/next/prev/nsearch/search/psearch]
Comment 21•12 years ago
|
||
You probably should leave memory/mozjemalloc and memory/jemalloc alone.
Comment 22•12 years ago
|
||
(In reply to :Ms2ger from comment #21)
> You probably should leave memory/mozjemalloc and memory/jemalloc alone.
Now these error are present
/home/mohit/mozilla-central/nsprpub/pr/src/io/prfdcach.c: In function ‘_PR_Getfd’:
/home/mohit/mozilla-central/nsprpub/pr/src/io/prfdcach.c:113:33: error: ‘nullptr’ undeclared (first use in this function)
/home/mohit/mozilla-central/nsprpub/pr/src/io/prfdcach.c:113:33: note: each undeclared identifier is reported only once for each function it appears in
/home/mohit/mozilla-central/nsprpub/pr/src/io/prfdcach.c: In function ‘_PR_CleanupFdCache’:
/home/mohit/mozilla-central/nsprpub/pr/src/io/prfdcach.c:274:9: error: ‘nullptr’ undeclared (first use in this function)
I modified the command to :
find ./ ! -path ./.hg/\* ! -path ./memory/mozjemalloc/\* ! -path ./memory/jemalloc/\* ! -name Assertions.h -type f \( -iname \*.h -o -iname \*.cpp -o -iname *.mm -o -iname *.cc \) | xargs -n 1 sed -i -e 's/\bNULL /nullptr /g' -e 's/\bNULL\b/nullptr/g'
Reporter | ||
Comment 23•12 years ago
|
||
Please exclude all .c files. Thanks!
Comment 24•12 years ago
|
||
Attachment #701145 -
Flags: review?(Ms2ger)
Comment 25•12 years ago
|
||
Comment 26•12 years ago
|
||
I excluded mozilla-central/toolkit/* because it was showing an "nullptr" not defined error in files
mozilla-central/toolkit/crashreporter/google-breakpad/src/common/*.cc
and the patch was too large so i had to upload the compressed version.
Comment 27•12 years ago
|
||
Attachment #701146 -
Attachment is obsolete: true
Comment 28•12 years ago
|
||
Attachment #701145 -
Attachment is obsolete: true
Attachment #701145 -
Flags: review?(Ms2ger)
Attachment #701300 -
Flags: feedback?(Ms2ger)
Comment 29•12 years ago
|
||
Thanks for the patch; I'll try to take a look tomorrow.
Comment 30•12 years ago
|
||
Comment on attachment 701300 [details] [diff] [review]
NULL changed to nullptr in .cc and .cpp files
Sorry it took a little longer than I expected. I skimmed over the patch, and it generally looks good. There's a few more things you should leave alone, though:
You shouldn't touch the strings in dom/indexedDB/OpenDatabaseHelper.cpp.
Please fix the indentation of the backslashes of COPY_STRING in dom/workers/Navigator.cpp and dom/workers/WorkerScope.cpp (they should all line up).
extensions/spellcheck/hunspell/src/ is upstream code; you should leave that alone.
Same for gfx/angle/, gfx/cairo/cairo/src/, gfx/graphite2/, gfx/harfbuzz/src/, gfx/ots/src/, gfx/skia/src/ and gfx/ycbcr/.
Same for media/libsoundtouch/, mfbt/double-conversion/ and other-licenses/.
Thanks for taking this on!
Attachment #701300 -
Flags: feedback?(Ms2ger) → feedback+
Comment 31•12 years ago
|
||
Attachment #701152 -
Attachment is obsolete: true
Attachment #701300 -
Attachment is obsolete: true
Attachment #706563 -
Flags: review?(Ms2ger)
Comment 32•12 years ago
|
||
Updated•12 years ago
|
Attachment #706563 -
Flags: review?(ehsan)
Reporter | ||
Comment 33•12 years ago
|
||
Comment on attachment 706564 [details]
command
>find ./ \
>! -path ./.hg/\* \
>! -path ./extensions/spellcheck/hunspell/src\* \
>! -path ./toolkit\* \
Why are you excluding toolkit?
>! -path \*netwerk/sctp\* \
>! -path \*xpcom/typelib/xpt/\* \
>! -path ./memory/mozjemalloc/\* \
>! -path ./js\* ! -path \*nsprpub\* \
>! -path ./memory/jemalloc/\* \
>! -path ./gfx/angle/\* \
>! -path ./gfx/cairo/cairo/src/\* \
>! -path ./gfx/graphite2/\* \
>! -path ./gfx/harfbuzz/src/\* \
>! -path ./gfx/ots/src/\* \
>! -path ./gfx/skia/src/\* \
>! -path ./gfx/ycbcr/\* \
>! -path ./media/libsoundtouch/\* \
>! -path ./mfbt/double-conversion/\* \
>! -path ./other-licenses/\* \
>! -name Assertions.h \
>! -name OpenDatabaseHelper.cpp \
>-type f \( -iname \*.cpp -o -iname *.cc \) | xargs -n 1 sed -i -e 's/\bNULL /nullptr /g' -e 's/\bNULL\b/nullptr/g'
This will mess up indentations. You want something like: 's/\bNULL /nullptr /g'.
Also, have you run this through the try server? If yes, please post a TBPL link. Thanks!
Reporter | ||
Updated•12 years ago
|
Attachment #706563 -
Flags: review?(ehsan)
Reporter | ||
Comment 34•12 years ago
|
||
Randell, what parts of the code in media/webrtc is owned by us?
Comment 35•12 years ago
|
||
Well, these are not our code:
media/webrtc/trunk
media/webrtc/signaling, except for:
media/webrtc/signaling/src/test
media/webrtc/signaling/src/media-conduit
media/webrtc/signaling/src/mediapipeline
media/webrtc/signaling/src/peerconnection
The media/webrtc/signaling code other than ours has largely been taken over by us though, so we can discuss making reasonably portable changes to it for stuff like this. Ethan Hugg of Cisco (ehugg on #media) and I would be the people to talk to.
In other news, media/mtransport/third_party are all imported, as is netwerk/srtp/src and netwerk/sctp/src
Reporter | ||
Comment 36•12 years ago
|
||
Thanks, Randell!
So, Mohit, to keep things simper here, I'd suggest you exclude media/webrtc, media/mtransport/third_party, netwerk/srtp/src and netwerk/sctp/src for now. Thanks!
Comment 37•12 years ago
|
||
Attachment #706563 -
Attachment is obsolete: true
Attachment #706564 -
Attachment is obsolete: true
Attachment #706563 -
Flags: review?(Ms2ger)
Attachment #708398 -
Flags: review?(ehsan)
Comment 38•12 years ago
|
||
Reporter | ||
Comment 39•12 years ago
|
||
Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=ae390dc0b45d
Reporter | ||
Comment 40•12 years ago
|
||
As you can see in the link in comment 39, this patch doesn't build on any platform.
Reporter | ||
Updated•12 years ago
|
Attachment #708398 -
Flags: review?(ehsan)
Comment 41•12 years ago
|
||
Hi all,
as there was no activity in this ticket since end of January, I would like to take it over. Is it ok to re-assign it to me?
Updated•12 years ago
|
Assignee: mohit.www → matekm
Comment 42•12 years ago
|
||
This is first version of the patch that changes occurences of NULL to nullptr
Attachment #727864 -
Flags: review?(matekm)
Comment 43•12 years ago
|
||
Would like to run this patch through try server, but I need level 1 access and for that I need a voucher. Please, vote on https://bugzilla.mozilla.org/show_bug.cgi?id=851871
Comment 44•12 years ago
|
||
New, gzipped patch. Previous one wasn't full.If there is a need I can split this patch in few smaller ones.
Attachment #727864 -
Attachment is obsolete: true
Attachment #727864 -
Flags: review?(matekm)
Attachment #727874 -
Flags: review?(matekm)
Comment 45•12 years ago
|
||
Instead of gzipping it, I advise breaking it into one patch per top-level directory (or some such)
Comment 46•12 years ago
|
||
Attachment #727874 -
Attachment is obsolete: true
Attachment #727874 -
Flags: review?(matekm)
Attachment #729634 -
Flags: review?(matekm)
Comment 47•12 years ago
|
||
Attachment #729635 -
Flags: review?(matekm)
Comment 48•12 years ago
|
||
Attachment #729637 -
Flags: review?(matekm)
Comment 49•12 years ago
|
||
Attachment #729640 -
Flags: review?(matekm)
Comment 50•12 years ago
|
||
Attachment #729641 -
Flags: review?(matekm)
Comment 51•12 years ago
|
||
Attachment #729642 -
Flags: review?(matekm)
Comment 52•12 years ago
|
||
Attachment #729643 -
Flags: review?(matekm)
Comment 53•12 years ago
|
||
Attachment #729644 -
Flags: review?(matekm)
Comment 54•12 years ago
|
||
Attachment #729645 -
Flags: review?(matekm)
Comment 55•12 years ago
|
||
Attachment #729646 -
Flags: review?(matekm)
Comment 56•12 years ago
|
||
Attachment #729648 -
Flags: review?(matekm)
Comment 57•12 years ago
|
||
Attachment #729649 -
Flags: review?(matekm)
Comment 58•12 years ago
|
||
Attachment #729650 -
Flags: review?(matekm)
Comment 59•12 years ago
|
||
Attachment #729651 -
Flags: review?(matekm)
Comment 60•12 years ago
|
||
Attachment #729653 -
Flags: review?(matekm)
Attachment #729640 -
Attachment is obsolete: true
Attachment #729640 -
Attachment is patch: false
Attachment #729640 -
Flags: review?(matekm)
Comment 61•12 years ago
|
||
Why are these all assigned for yourself to review?
Attachment #729634 -
Flags: review?(matekm) → review?(ehsan)
Attachment #729635 -
Flags: review?(matekm) → review?(ehsan)
Attachment #729637 -
Flags: review?(matekm) → review?(ehsan)
Attachment #729641 -
Flags: review?(matekm) → review?(ehsan)
Attachment #729642 -
Flags: review?(matekm) → review?(ehsan)
Attachment #729643 -
Flags: review?(matekm) → review?(ehsan)
Attachment #729644 -
Flags: review?(matekm) → review?(ehsan)
Attachment #729645 -
Flags: review?(matekm) → review?(ehsan)
Attachment #729646 -
Flags: review?(matekm) → review?(ehsan)
Attachment #729648 -
Flags: review?(matekm) → review?(ehsan)
Attachment #729649 -
Flags: review?(matekm) → review?(ehsan)
Attachment #729650 -
Flags: review?(matekm) → review?(ehsan)
Attachment #729651 -
Flags: review?(matekm) → review?(ehsan)
Attachment #729653 -
Flags: review?(matekm) → review?(ehsan)
Reporter | ||
Comment 62•12 years ago
|
||
I don't expect to get to these reviews before next week... Sorry.
Reporter | ||
Comment 63•12 years ago
|
||
Comment on attachment 729649 [details] [diff] [review]
mozilla-central/editor subdir NULL -> nullptr switch
Review of attachment 729649 [details] [diff] [review]:
-----------------------------------------------------------------
::: editor/libeditor/html/nsEditorTxnLog.cpp
@@ +307,4 @@
> if (txn) {
> txn->GetTxnDescription(str);
> if (str.IsEmpty())
> + str.AssignLiteral("<nullptr>");
Hmm, this is bad, but it doesn't matter in this case since this code is unused...
Attachment #729649 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•12 years ago
|
Whiteboard: [mentor=ehsan][lang=c++] → [mentor=ehsan][lang=c++][leave open]
Reporter | ||
Comment 64•12 years ago
|
||
Comment on attachment 729649 [details] [diff] [review]
mozilla-central/editor subdir NULL -> nullptr switch
https://hg.mozilla.org/integration/mozilla-inbound/rev/e8abe42df0dc
Attachment #729649 -
Flags: checkin+
Reporter | ||
Updated•12 years ago
|
Attachment #729642 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•12 years ago
|
Attachment #729641 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 65•12 years ago
|
||
Comment on attachment 729643 [details] [diff] [review]
mozilla-central/config subdir NULL -> nullptr switch
Review of attachment 729643 [details] [diff] [review]:
-----------------------------------------------------------------
This file is not used, and it should probably be removed. Can you please file a bug on that? Thanks!
Attachment #729643 -
Flags: review?(ehsan) → review-
Reporter | ||
Updated•12 years ago
|
Attachment #729635 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 66•12 years ago
|
||
Comment on attachment 729642 [details] [diff] [review]
mozilla-central/chrome subdir NULL -> nullptr switch
https://hg.mozilla.org/integration/mozilla-inbound/rev/275cff0aef99
Attachment #729642 -
Flags: checkin+
Reporter | ||
Comment 67•12 years ago
|
||
Comment on attachment 729641 [details] [diff] [review]
mozilla-central/caps subdir NULL -> nullptr switch
https://hg.mozilla.org/integration/mozilla-inbound/rev/832de954da6a
Attachment #729641 -
Flags: checkin+
Reporter | ||
Comment 68•12 years ago
|
||
Comment on attachment 729635 [details] [diff] [review]
mozilla-central/b2g subdir NULL -> nullptr switch
https://hg.mozilla.org/integration/mozilla-inbound/rev/2ab6aaf3ed13
Attachment #729635 -
Flags: checkin+
Reporter | ||
Comment 69•12 years ago
|
||
Comment on attachment 729645 [details] [diff] [review]
mozilla-central/dbm subdir NULL -> nullptr switch
Review of attachment 729645 [details] [diff] [review]:
-----------------------------------------------------------------
We do not own this code. Sorry, I should have mentioned it earlier.
Attachment #729645 -
Flags: review?(ehsan) → review-
Reporter | ||
Updated•12 years ago
|
Attachment #729646 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 70•12 years ago
|
||
Comment on attachment 729650 [details] [diff] [review]
mozilla-central/embedding subdir NULL -> nullptr switch
Review of attachment 729650 [details] [diff] [review]:
-----------------------------------------------------------------
::: embedding/components/find/src/nsFind.cpp
@@ +466,4 @@
> {
> if (!aNode)
> {
> + printf(">>>> Node: nullptr\n");
This is not needed, but I'll remove it myself.
Attachment #729650 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 71•12 years ago
|
||
Comment on attachment 729646 [details] [diff] [review]
mozilla-central/docshell subdir NULL -> nullptr switch
https://hg.mozilla.org/integration/mozilla-inbound/rev/5b2c0b85aea3
Attachment #729646 -
Flags: checkin+
Reporter | ||
Comment 72•12 years ago
|
||
Comment on attachment 729650 [details] [diff] [review]
mozilla-central/embedding subdir NULL -> nullptr switch
https://hg.mozilla.org/integration/mozilla-inbound/rev/16af89e4b032
Attachment #729650 -
Flags: checkin+
Reporter | ||
Comment 73•12 years ago
|
||
Comment on attachment 729634 [details] [diff] [review]
mozilla-central/accessible subdir NULL -> nullptr switch
Review of attachment 729634 [details] [diff] [review]:
-----------------------------------------------------------------
https://hg.mozilla.org/integration/mozilla-inbound/rev/6120f41441ff
Attachment #729634 -
Flags: review?(ehsan)
Attachment #729634 -
Flags: review+
Attachment #729634 -
Flags: checkin+
Reporter | ||
Comment 74•12 years ago
|
||
Comment on attachment 729637 [details] [diff] [review]
mozilla-central/browser subdir NULL -> nullptr switch
Review of attachment 729637 [details] [diff] [review]:
-----------------------------------------------------------------
https://hg.mozilla.org/integration/mozilla-inbound/rev/e56f91d780df
Attachment #729637 -
Flags: review?(ehsan)
Attachment #729637 -
Flags: review+
Attachment #729637 -
Flags: checkin+
Reporter | ||
Comment 75•12 years ago
|
||
Comment on attachment 729651 [details] [diff] [review]
mozilla-central/extensions subdir NULL -> nullptr switch
Review of attachment 729651 [details] [diff] [review]:
-----------------------------------------------------------------
https://hg.mozilla.org/integration/mozilla-inbound/rev/e0d063f04ee2
Attachment #729651 -
Flags: review?(ehsan)
Attachment #729651 -
Flags: review+
Attachment #729651 -
Flags: checkin+
Reporter | ||
Comment 76•12 years ago
|
||
Comment on attachment 729644 [details] [diff] [review]
mozilla-central/content subdir NULL -> nullptr switch
Review of attachment 729644 [details] [diff] [review]:
-----------------------------------------------------------------
::: content/smil/nsSMILAnimationFunction.cpp
@@ +421,5 @@
> }
>
> if (NS_SUCCEEDED(rv)) {
> + NS_ABORT_IF_FALSE(from, "nullptr from-value during interpolation");
> + NS_ABORT_IF_FALSE(to, "nullptr to-value during interpolation");
These are not needed, will fix myself.
::: content/smil/nsSMILNullType.cpp
@@ +33,4 @@
> nsSMILNullType::Add(nsSMILValue& aDest, const nsSMILValue& aValueToAdd,
> uint32_t aCount) const
> {
> + NS_NOTREACHED("Adding nullptr type");
Ditto.
::: content/smil/nsSMILTimedElement.cpp
@@ +267,4 @@
> void
> nsSMILTimedElement::SetAnimationElement(SVGAnimationElement* aElement)
> {
> + NS_ABORT_IF_FALSE(aElement, "nullptr owner element");
Ditto.
::: content/svg/content/src/SVGContentUtils.cpp
@@ +70,4 @@
> float
> SVGContentUtils::GetFontSize(nsIFrame *aFrame)
> {
> + NS_ABORT_IF_FALSE(aFrame, "nullptr frame in GetFontSize");
And here.
::: content/svg/content/src/nsSVGAttrTearoffTable.h
@@ +55,4 @@
> #endif
> mTable.Get(aSimple, &tearoff);
> NS_ABORT_IF_FALSE(!found || tearoff,
> + "nullptr pointer stored in attribute tear-off map");
And here.
Attachment #729644 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 77•12 years ago
|
||
(In reply to :Ehsan Akhgari (needinfo? me!) from comment #74)
> Comment on attachment 729637 [details] [diff] [review]
> mozilla-central/browser subdir NULL -> nullptr switch
>
> Review of attachment 729637 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> https://hg.mozilla.org/integration/mozilla-inbound/rev/e56f91d780df
Landed a follow-up: https://hg.mozilla.org/integration/mozilla-inbound/rev/06ae36377cfa
Reporter | ||
Comment 78•12 years ago
|
||
Comment on attachment 729637 [details] [diff] [review]
mozilla-central/browser subdir NULL -> nullptr switch
This broke the build again this time somewhere else on Windows, so I backed it out:
https://hg.mozilla.org/integration/mozilla-inbound/rev/84588077a188
Build failure:
https://tbpl.mozilla.org/php/getParsedLog.php?id=21369991&tree=Mozilla-Inbound
Attachment #729637 -
Flags: checkin+ → checkin-
Comment 79•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e8abe42df0dc
https://hg.mozilla.org/mozilla-central/rev/275cff0aef99
https://hg.mozilla.org/mozilla-central/rev/832de954da6a
https://hg.mozilla.org/mozilla-central/rev/2ab6aaf3ed13
https://hg.mozilla.org/mozilla-central/rev/5b2c0b85aea3
https://hg.mozilla.org/mozilla-central/rev/16af89e4b032
https://hg.mozilla.org/mozilla-central/rev/6120f41441ff
https://hg.mozilla.org/mozilla-central/rev/e0d063f04ee2
Reporter | ||
Comment 80•12 years ago
|
||
Comment on attachment 729644 [details] [diff] [review]
mozilla-central/content subdir NULL -> nullptr switch
https://hg.mozilla.org/integration/mozilla-inbound/rev/ad1a3999aa2e
Attachment #729644 -
Flags: checkin+
Comment 81•12 years ago
|
||
Reporter | ||
Comment 82•12 years ago
|
||
Comment on attachment 729648 [details] [diff] [review]
mozilla-central/dom subdir NULL -> nullptr switch
Review of attachment 729648 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/plugins/base/android/android_npapi.h
@@ +104,4 @@
>
> /** queries for a specific ANPInterface.
>
> + Maybe called with nullptr for the NPP instance
Please revert the changes to this file.
::: dom/plugins/base/npapi.h
@@ +154,4 @@
> void* notifyData;
> const char* headers; /* Response headers from host.
> * Exists only for >= NPVERS_HAS_RESPONSE_HEADERS.
> + * Used for HTTP only; nullptr for non-HTTP.
And this file.
::: dom/plugins/base/npruntime.h
@@ +137,4 @@
> #define VOID_TO_NPVARIANT(_v) \
> NP_BEGIN_MACRO \
> (_v).type = NPVariantType_Void; \
> + (_v).value.objectValue = nullptr; \
And this file.
::: dom/system/gonk/android_audio/EffectApi.h
@@ +78,4 @@
> uint8_t node[6];
> } effect_uuid_t;
>
> +// nullptr UUID definition (matches SL_IID_NULL_)
And this file.
Attachment #729648 -
Flags: review?(ehsan) → review-
Reporter | ||
Comment 83•12 years ago
|
||
Comment on attachment 729653 [details] [diff] [review]
mozilla-central/gfx subdir NULL -> nullptr switch
Review of attachment 729653 [details] [diff] [review]:
-----------------------------------------------------------------
Please revert the changes to gfx/skia, and separate out the gfx/2d changes into another patch. Thanks!
Attachment #729653 -
Flags: review?(ehsan) → review-
Comment 84•12 years ago
|
||
Sorry for that little mess with changes. Next time I will push the patches to the try server...
Comment 85•12 years ago
|
||
Attachment #729634 -
Attachment is obsolete: true
Attachment #729635 -
Attachment is obsolete: true
Attachment #729637 -
Attachment is obsolete: true
Attachment #729641 -
Attachment is obsolete: true
Attachment #729642 -
Attachment is obsolete: true
Attachment #729643 -
Attachment is obsolete: true
Attachment #729644 -
Attachment is obsolete: true
Attachment #729645 -
Attachment is obsolete: true
Attachment #729646 -
Attachment is obsolete: true
Attachment #729648 -
Attachment is obsolete: true
Attachment #729649 -
Attachment is obsolete: true
Attachment #729650 -
Attachment is obsolete: true
Attachment #729651 -
Attachment is obsolete: true
Attachment #729653 -
Attachment is obsolete: true
Attachment #734213 -
Flags: review?(ehsan)
Comment 86•12 years ago
|
||
For the dom/ changes, you'll need to revert your changes to dom/indexedDB/OpenDatabaseHelper.cpp.
Comment 87•12 years ago
|
||
Hi, this is probably a very noobish question, but what would happen if I made a #define somewhere and changed NULL to nullptr? To prevent mixing C++ and C we could do this in an appropriate header file or add a level of abstraction. I'd like to work on this way of doing it and close this bug.
Comment 88•12 years ago
|
||
Last patch don't include dom changes, only browser/
Reporter | ||
Comment 89•12 years ago
|
||
(In reply to tvssarma.omega9 from comment #87)
> Hi, this is probably a very noobish question, but what would happen if I
> made a #define somewhere and changed NULL to nullptr? To prevent mixing C++
> and C we could do this in an appropriate header file or add a level of
> abstraction.
The point of this bug is to use nullptr in our source code instead of NULL for consistency.
> I'd like to work on this way of doing it and close this bug.
I believe matekm is already working on the rest of the changes needed here...
Reporter | ||
Comment 90•12 years ago
|
||
Comment on attachment 734213 [details] [diff] [review]
mozilla-central/browser subdir NULL -> nullptr switch
This patch is weird.. It seems like you've concatenated a few patch files here? Can you please upload a version of the patch which includes all of the changes? If you have several mq patches in your queue, you can use hg diff -r to get the difference between two changesets.
Attachment #734213 -
Flags: review?(ehsan)
Comment 91•12 years ago
|
||
Could you confirm that you're still working on this?
Flags: needinfo?(matekm)
Assignee | ||
Comment 92•11 years ago
|
||
Assigning myself since matekm does not seem to be working on this any longer.
Assignee: matekm → birunthan
Flags: needinfo?(matekm)
OS: Mac OS X → All
Hardware: x86 → All
Assignee | ||
Comment 93•11 years ago
|
||
Attachment #708398 -
Attachment is obsolete: true
Attachment #708399 -
Attachment is obsolete: true
Attachment #734213 -
Attachment is obsolete: true
Attachment #775349 -
Flags: review?(ehsan)
Assignee | ||
Comment 94•11 years ago
|
||
Attachment #775350 -
Flags: review?(ehsan)
Assignee | ||
Comment 95•11 years ago
|
||
Attachment #775351 -
Flags: review?(ehsan)
Assignee | ||
Comment 96•11 years ago
|
||
Attachment #775353 -
Flags: review?(ehsan)
Assignee | ||
Comment 97•11 years ago
|
||
Attachment #775356 -
Flags: review?(ehsan)
Assignee | ||
Comment 98•11 years ago
|
||
Attachment #775357 -
Flags: review?(ehsan)
Assignee | ||
Comment 99•11 years ago
|
||
Attachment #775358 -
Flags: review?(ehsan)
Assignee | ||
Comment 100•11 years ago
|
||
Attachment #775359 -
Flags: review?(ehsan)
Assignee | ||
Comment 101•11 years ago
|
||
Attachment #775361 -
Flags: review?(ehsan)
Assignee | ||
Comment 102•11 years ago
|
||
Attachment #775362 -
Flags: review?(ehsan)
Assignee | ||
Comment 103•11 years ago
|
||
Attachment #775363 -
Flags: review?(ehsan)
Assignee | ||
Comment 104•11 years ago
|
||
Attachment #775364 -
Flags: review?(ehsan)
Assignee | ||
Comment 105•11 years ago
|
||
Ehsan: By the way, if it is easier for you to review a few large patches (compared to many smaller patches), please let me know and I'll do so in the future.
Reporter | ||
Updated•11 years ago
|
Attachment #775349 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 106•11 years ago
|
||
Comment on attachment 775350 [details] [diff] [review]
Switch from NULL to nullptr in gfx/2d/
Review of attachment 775350 [details] [diff] [review]:
-----------------------------------------------------------------
Redirecting request to Bas.
Attachment #775350 -
Flags: review?(ehsan) → review?(bas)
Updated•11 years ago
|
Attachment #775350 -
Flags: review?(bas) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #775351 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #775353 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #775356 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #775357 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #775364 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #775358 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #775359 -
Flags: review?(ehsan)
Reporter | ||
Updated•11 years ago
|
Attachment #775359 -
Flags: review?(bas)
Reporter | ||
Updated•11 years ago
|
Attachment #775361 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #775363 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 107•11 years ago
|
||
Comment on attachment 775362 [details] [diff] [review]
Switch from NULL to nullptr in gfx/layers/opengl/
Review of attachment 775362 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/layers/opengl/LayerManagerOGL.h
@@ +15,5 @@
> #ifdef XP_WIN
> #include <windows.h>
> #endif
>
> +#define BUFFER_OFFSET(i) ((char *)nullptr + (i))
This code looks weird. Joe, what's this all about?
Attachment #775362 -
Flags: review?(ehsan) → review?(joe)
Reporter | ||
Comment 108•11 years ago
|
||
(In reply to comment #105)
> Ehsan: By the way, if it is easier for you to review a few large patches
> (compared to many smaller patches), please let me know and I'll do so in the
> future.
Smaller patches are always better!
Comment 109•11 years ago
|
||
(In reply to :Ehsan Akhgari (needinfo? me!) from comment #107)
> > +#define BUFFER_OFFSET(i) ((char *)nullptr + (i))
>
> This code looks weird. Joe, what's this all about?
Its a pretty common idiom: http://www.embedded.com/design/embedded/4024941/Learn-a-new-trick-with-the-offsetof--macro
Updated•11 years ago
|
Attachment #775362 -
Flags: review?(joe) → review+
Assignee | ||
Comment 110•11 years ago
|
||
Rebased patch.
Attachment #775350 -
Attachment is obsolete: true
Attachment #775809 -
Flags: review?(bas)
Reporter | ||
Comment 111•11 years ago
|
||
(In reply to comment #109)
> (In reply to :Ehsan Akhgari (needinfo? me!) from comment #107)
> > > +#define BUFFER_OFFSET(i) ((char *)nullptr + (i))
> >
> > This code looks weird. Joe, what's this all about?
>
> Its a pretty common idiom:
> http://www.embedded.com/design/embedded/4024941/Learn-a-new-trick-with-the-offsetof--macro
Gah, I read that as:
(char)nullptr + (i)
Sorry!
Reporter | ||
Comment 112•11 years ago
|
||
Bas: ping?
Comment 113•11 years ago
|
||
Comment on attachment 775809 [details] [diff] [review]
Switch from NULL to nullptr in gfx/2d/
Review of attachment 775809 [details] [diff] [review]:
-----------------------------------------------------------------
Only win here!
Attachment #775809 -
Flags: review?(bas) → review+
Updated•11 years ago
|
Attachment #775359 -
Flags: review?(bas) → review+
Reporter | ||
Comment 114•11 years ago
|
||
Birunthan, did you ever get a chance to test these patches on try?
Flags: needinfo?(birunthan)
Assignee | ||
Comment 115•11 years ago
|
||
Rebased patch.
Attachment #775361 -
Attachment is obsolete: true
Attachment #778822 -
Flags: review?(ehsan)
Assignee | ||
Comment 116•11 years ago
|
||
(In reply to :Ehsan Akhgari (needinfo? me!) from comment #114)
> Birunthan, did you ever get a chance to test these patches on try?
Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=c4ea56e76b84
Flags: needinfo?(birunthan)
Reporter | ||
Updated•11 years ago
|
Attachment #778822 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 117•11 years ago
|
||
Thanks a lot for your patches!
https://hg.mozilla.org/integration/mozilla-inbound/rev/4c94544e2c09
https://hg.mozilla.org/integration/mozilla-inbound/rev/e5e44dee1202
https://hg.mozilla.org/integration/mozilla-inbound/rev/3638943416ab
https://hg.mozilla.org/integration/mozilla-inbound/rev/e9b535ce91ae
https://hg.mozilla.org/integration/mozilla-inbound/rev/aa06df37ebba
https://hg.mozilla.org/integration/mozilla-inbound/rev/59fed755d497
https://hg.mozilla.org/integration/mozilla-inbound/rev/ecfdc57dacbd
https://hg.mozilla.org/integration/mozilla-inbound/rev/d9e553a7232a
https://hg.mozilla.org/integration/mozilla-inbound/rev/f73954b225cc
https://hg.mozilla.org/integration/mozilla-inbound/rev/730fd7affc04
https://hg.mozilla.org/integration/mozilla-inbound/rev/a36bd2e1c291
https://hg.mozilla.org/integration/mozilla-inbound/rev/81b78a2ca769
Comment 118•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/4c94544e2c09
https://hg.mozilla.org/mozilla-central/rev/e5e44dee1202
https://hg.mozilla.org/mozilla-central/rev/3638943416ab
https://hg.mozilla.org/mozilla-central/rev/e9b535ce91ae
https://hg.mozilla.org/mozilla-central/rev/aa06df37ebba
https://hg.mozilla.org/mozilla-central/rev/59fed755d497
https://hg.mozilla.org/mozilla-central/rev/ecfdc57dacbd
https://hg.mozilla.org/mozilla-central/rev/d9e553a7232a
https://hg.mozilla.org/mozilla-central/rev/f73954b225cc
https://hg.mozilla.org/mozilla-central/rev/730fd7affc04
https://hg.mozilla.org/mozilla-central/rev/a36bd2e1c291
https://hg.mozilla.org/mozilla-central/rev/81b78a2ca769
Assignee | ||
Comment 119•11 years ago
|
||
Attachment #775349 -
Attachment is obsolete: true
Attachment #775351 -
Attachment is obsolete: true
Attachment #775353 -
Attachment is obsolete: true
Attachment #775356 -
Attachment is obsolete: true
Attachment #775357 -
Attachment is obsolete: true
Attachment #775358 -
Attachment is obsolete: true
Attachment #775359 -
Attachment is obsolete: true
Attachment #775362 -
Attachment is obsolete: true
Attachment #775363 -
Attachment is obsolete: true
Attachment #775364 -
Attachment is obsolete: true
Attachment #775809 -
Attachment is obsolete: true
Attachment #778822 -
Attachment is obsolete: true
Attachment #780465 -
Flags: review?(ehsan)
Assignee | ||
Comment 120•11 years ago
|
||
Attachment #780466 -
Flags: review?(ehsan)
Assignee | ||
Comment 121•11 years ago
|
||
Attachment #780467 -
Flags: review?(ehsan)
Assignee | ||
Comment 122•11 years ago
|
||
Attachment #780468 -
Flags: review?(ehsan)
Assignee | ||
Comment 123•11 years ago
|
||
Attachment #780469 -
Flags: review?(ehsan)
Assignee | ||
Comment 124•11 years ago
|
||
Attachment #780470 -
Flags: review?(ehsan)
Assignee | ||
Comment 125•11 years ago
|
||
Attachment #780471 -
Flags: review?(ehsan)
Assignee | ||
Comment 126•11 years ago
|
||
Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=f9c8d4306072
Attachment #780473 -
Flags: review?(ehsan)
Assignee | ||
Comment 127•11 years ago
|
||
Updated to fix compile errors on some platforms.
Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=48f5570c3b3d
Attachment #780466 -
Attachment is obsolete: true
Attachment #780466 -
Flags: review?(ehsan)
Attachment #780491 -
Flags: review?(ehsan)
Comment 128•11 years ago
|
||
Comment on attachment 780491 [details] [diff] [review]
Switch from NULL to nullptr in mfbt/
Review of attachment 780491 [details] [diff] [review]:
-----------------------------------------------------------------
::: mfbt/RangedPtr.h
@@ +14,5 @@
>
> #include "mozilla/Assertions.h"
> #include "mozilla/Attributes.h"
> #include "mozilla/Util.h"
> +#include "mozilla/NullPtr.h"
NullPtr goes before Util
Attachment #780491 -
Flags: review?(ehsan) → review?(jwalden+bmo)
Assignee | ||
Comment 129•11 years ago
|
||
(In reply to :Ms2ger from comment #128)
> NullPtr goes before Util
Fixed, thanks!
Attachment #780491 -
Attachment is obsolete: true
Attachment #780491 -
Flags: review?(jwalden+bmo)
Attachment #780552 -
Flags: review?(jwalden+bmo)
Assignee | ||
Updated•11 years ago
|
Attachment #780552 -
Attachment filename: 784739-mfbt.patch
Assignee | ||
Updated•11 years ago
|
Attachment #780552 -
Attachment description: 784739-mfbt.patch → Switch from NULL to nullptr in mfbt/
Attachment #780552 -
Attachment filename: 784739-mfbt.patch
Comment 130•11 years ago
|
||
Comment on attachment 780552 [details] [diff] [review]
Switch from NULL to nullptr in mfbt/
Review of attachment 780552 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good with the one nit fixed. Do you need someone to push this? I can make that fix and push this, if you want, or you can post an appropriately revised patch and someone else can push it, if you'd prefer.
::: mfbt/tests/TestPoisonArea.cpp
@@ +195,5 @@
> FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER |
> FORMAT_MESSAGE_FROM_SYSTEM |
> FORMAT_MESSAGE_IGNORE_INSERTS,
> + nullptr, errcode, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
> + (LPSTR)&errmsg, 0, nullptr);
This header doesn't #include "mozilla/NullPtr.h". It needs to #include that for this to be okay. Right now, you're probably only succeeding because you're on a compiler with nullptr support.
Attachment #780552 -
Flags: review?(jwalden+bmo) → review+
Assignee | ||
Comment 131•11 years ago
|
||
(In reply to Jeff Walden [:Waldo] (remove +bmo to email) from comment #130)
> ... I can make that fix and push this ...
Sure, that'd be great. Thanks!
Comment 132•11 years ago
|
||
Got it. Queued up for the next time I have stuff to push.
Reporter | ||
Updated•11 years ago
|
Attachment #780467 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #780468 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #780469 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #780470 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #780471 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 133•11 years ago
|
||
Comment on attachment 780473 [details] [diff] [review]
Switch from NULL to nullptr in storage/
Review of attachment 780473 [details] [diff] [review]:
-----------------------------------------------------------------
::: storage/src/TelemetryVFS.cpp
@@ +393,2 @@
> // so we always define them. Verify that we're not going to call
> + // nullptr pointers, though.
Nit: s/nullptr pointers/nullptrs/
Attachment #780473 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #780465 -
Flags: review?(ehsan) → review+
Comment 134•11 years ago
|
||
Pushed the mfbt/ changes, with minor post-review tweaks I noticed while double-checking |hg o -p|:
https://hg.mozilla.org/integration/mozilla-inbound/rev/c10c0a6270ec
Thanks!
Comment 135•11 years ago
|
||
Something in this push made Windows checktests mad. Backed out per our IRC conversation.
https://hg.mozilla.org/integration/mozilla-inbound/rev/bbf37166d07c
Comment 136•11 years ago
|
||
I fired up a Windows build, and the jsapi-tests executable (which failed in tbpl logs, although nobody noticed it just at the time) was crashing in PRMJ_ShutdownNow() code, or something similar, clearly implicating the JS_Init changes -- not this bug. Relanded:
https://hg.mozilla.org/integration/mozilla-inbound/rev/e978bb426e87
Comment 137•11 years ago
|
||
Assignee | ||
Comment 138•11 years ago
|
||
Rebased patch.
Attachment #780465 -
Attachment is obsolete: true
Attachment #783670 -
Flags: review?(ehsan)
Assignee | ||
Comment 139•11 years ago
|
||
Rebased patch.
Attachment #780471 -
Attachment is obsolete: true
Attachment #783671 -
Flags: review?(ehsan)
Assignee | ||
Comment 140•11 years ago
|
||
(In reply to :Ehsan Akhgari (needinfo? me!) from comment #133)
> Nit: s/nullptr pointers/nullptrs/
Fixed.
Attachment #780473 -
Attachment is obsolete: true
Attachment #783674 -
Flags: review?(ehsan)
Assignee | ||
Updated•11 years ago
|
Attachment #780552 -
Attachment is obsolete: true
Reporter | ||
Updated•11 years ago
|
Attachment #783670 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #783671 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #783674 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 141•11 years ago
|
||
Landed all of the remaining patches (I think). Please let me know if I missed something.
https://hg.mozilla.org/integration/mozilla-inbound/rev/71c2dd22bcca
https://hg.mozilla.org/integration/mozilla-inbound/rev/079bcec8ffd9
https://hg.mozilla.org/integration/mozilla-inbound/rev/88130a1e2831
https://hg.mozilla.org/integration/mozilla-inbound/rev/5172d6907d40
https://hg.mozilla.org/integration/mozilla-inbound/rev/ac758cadd034
https://hg.mozilla.org/integration/mozilla-inbound/rev/417f4d51eba2
https://hg.mozilla.org/integration/mozilla-inbound/rev/dfd50d4b9ac6
https://hg.mozilla.org/mozilla-central/rev/71c2dd22bcca
https://hg.mozilla.org/mozilla-central/rev/079bcec8ffd9
https://hg.mozilla.org/mozilla-central/rev/88130a1e2831
https://hg.mozilla.org/mozilla-central/rev/5172d6907d40
https://hg.mozilla.org/mozilla-central/rev/ac758cadd034
https://hg.mozilla.org/mozilla-central/rev/417f4d51eba2
https://hg.mozilla.org/mozilla-central/rev/dfd50d4b9ac6
Assignee | ||
Comment 143•11 years ago
|
||
Attachment #780467 -
Attachment is obsolete: true
Attachment #780468 -
Attachment is obsolete: true
Attachment #780469 -
Attachment is obsolete: true
Attachment #780470 -
Attachment is obsolete: true
Attachment #783670 -
Attachment is obsolete: true
Attachment #783671 -
Attachment is obsolete: true
Attachment #783674 -
Attachment is obsolete: true
Attachment #793483 -
Flags: review?(ehsan)
Assignee | ||
Comment 144•11 years ago
|
||
Attachment #793484 -
Flags: review?(ehsan)
Assignee | ||
Comment 145•11 years ago
|
||
Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=71c6447ede08
Reporter | ||
Updated•11 years ago
|
Attachment #793484 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #793483 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 146•11 years ago
|
||
Hey Birunthan, did I ever mention how much your work here is appreciated?! :-) Thanks a lot!
Keywords: checkin-needed
Updated•11 years ago
|
Attachment #793483 -
Flags: checkin+
Updated•11 years ago
|
Attachment #793484 -
Flags: checkin+
Comment 147•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/c0c72a444eec
https://hg.mozilla.org/integration/mozilla-inbound/rev/15ce5693e28a
Keywords: checkin-needed
Comment 148•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c0c72a444eec
https://hg.mozilla.org/mozilla-central/rev/15ce5693e28a
Flags: in-testsuite-
Assignee | ||
Comment 149•11 years ago
|
||
(In reply to :Ehsan Akhgari (needinfo? me!) from comment #146)
> Hey Birunthan, did I ever mention how much your work here is appreciated?!
> :-) Thanks a lot!
Glad to help.
Attachment #793483 -
Attachment is obsolete: true
Attachment #793484 -
Attachment is obsolete: true
Attachment #794427 -
Flags: review?(ehsan)
Assignee | ||
Comment 150•11 years ago
|
||
Attachment #794428 -
Flags: review?(ehsan)
Assignee | ||
Comment 151•11 years ago
|
||
Attachment #794430 -
Flags: review?(ehsan)
Assignee | ||
Comment 152•11 years ago
|
||
Attachment #794431 -
Flags: review?(ehsan)
Assignee | ||
Comment 153•11 years ago
|
||
Attachment #794432 -
Flags: review?(ehsan)
Assignee | ||
Comment 154•11 years ago
|
||
Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=c1244ec4535f
Reporter | ||
Updated•11 years ago
|
Attachment #794427 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #794428 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #794430 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #794431 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #794432 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 155•11 years ago
|
||
Comment on attachment 793483 [details] [diff] [review]
Switch from NULL to nullptr in browser/components/
These aren't obsolete just because they were already checked in.
Attachment #793483 -
Attachment is obsolete: false
Updated•11 years ago
|
Attachment #793484 -
Attachment is obsolete: false
Updated•11 years ago
|
Attachment #794427 -
Flags: checkin+
Updated•11 years ago
|
Attachment #794428 -
Flags: checkin+
Updated•11 years ago
|
Attachment #794430 -
Flags: checkin+
Updated•11 years ago
|
Attachment #794431 -
Flags: checkin+
Updated•11 years ago
|
Attachment #794432 -
Flags: checkin+
Comment 156•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/7db2236a3775
https://hg.mozilla.org/integration/mozilla-inbound/rev/5c8591a9369a
https://hg.mozilla.org/integration/mozilla-inbound/rev/fd99696eb53d
https://hg.mozilla.org/integration/mozilla-inbound/rev/b25a650ea032
https://hg.mozilla.org/integration/mozilla-inbound/rev/21f216a5e2f1
Keywords: checkin-needed
Comment 157•11 years ago
|
||
Assignee | ||
Comment 158•11 years ago
|
||
Attachment #807195 -
Flags: review?(ehsan)
Assignee | ||
Comment 159•11 years ago
|
||
I overzealously added `#include "mozilla/NullPtr.h"` to all public JS headers that I touched. Without it, B2G builds failed since the GCC version they use lacks support for nullptr. If you want, I can certainly look into removing the #include except where absolutely necessary.
Attachment #807199 -
Flags: review?(ehsan)
Assignee | ||
Comment 160•11 years ago
|
||
Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=bd1b8fddd36c
Attachment #807201 -
Flags: review?(ehsan)
Assignee | ||
Comment 161•11 years ago
|
||
The try link in the previous comment was wrong. The correct url is: https://tbpl.mozilla.org/?tree=Try&rev=6a81463451c3
Attachment #807195 -
Attachment is obsolete: true
Attachment #807195 -
Flags: review?(ehsan)
Attachment #807204 -
Flags: review?(ehsan)
Assignee | ||
Comment 162•11 years ago
|
||
Attachment #807206 -
Flags: review?(ehsan)
Reporter | ||
Updated•11 years ago
|
Attachment #807199 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #807201 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 163•11 years ago
|
||
(In reply to Birunthan Mohanathas [:poiru] from comment #159)
> Created attachment 807199 [details] [diff] [review]
> Switch from NULL to nullptr in js/ductwork/, js/ipc/, and js/public/
>
> I overzealously added `#include "mozilla/NullPtr.h"` to all public JS
> headers that I touched. Without it, B2G builds failed since the GCC version
> they use lacks support for nullptr. If you want, I can certainly look into
> removing the #include except where absolutely necessary.
No, that's fine!
Reporter | ||
Comment 164•11 years ago
|
||
Comment on attachment 807204 [details] [diff] [review]
Switch from NULL to nullptr in netwerk/ (1/2)
Review of attachment 807204 [details] [diff] [review]:
-----------------------------------------------------------------
::: netwerk/build/nsNetModule.cpp
@@ +306,5 @@
> \
> BaseWebSocketChannel * inst; \
> \
> + *aResult = nullptr; \
> + if (nullptr != aOuter) { \
Nit: indentation (will fix when landing)
Attachment #807204 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #807206 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 165•11 years ago
|
||
Comment 166•11 years ago
|
||
Assignee | ||
Comment 167•11 years ago
|
||
Attachment #808170 -
Flags: review?(ehsan)
Assignee | ||
Comment 168•11 years ago
|
||
Attachment #808172 -
Flags: review?(ehsan)
Assignee | ||
Comment 169•11 years ago
|
||
Attachment #808173 -
Flags: review?(ehsan)
Assignee | ||
Comment 170•11 years ago
|
||
Attachment #808174 -
Flags: review?(ehsan)
Assignee | ||
Comment 171•11 years ago
|
||
Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=24238400cecd
Attachment #808176 -
Flags: review?(ehsan)
Assignee | ||
Comment 172•11 years ago
|
||
Rebased patch.
Attachment #808170 -
Attachment is obsolete: true
Attachment #808170 -
Flags: review?(ehsan)
Attachment #808601 -
Flags: review?(ehsan)
Assignee | ||
Comment 173•11 years ago
|
||
Rebased patch.
Attachment #808174 -
Attachment is obsolete: true
Attachment #808174 -
Flags: review?(ehsan)
Attachment #808602 -
Flags: review?(ehsan)
Assignee | ||
Comment 174•11 years ago
|
||
Rebased patch.
Attachment #808176 -
Attachment is obsolete: true
Attachment #808176 -
Flags: review?(ehsan)
Attachment #808603 -
Flags: review?(ehsan)
Reporter | ||
Updated•11 years ago
|
Attachment #808172 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #808173 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #808601 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #808602 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #808603 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 175•11 years ago
|
||
Luke, do I have your blessing to land these JS engine patches here?
Flags: needinfo?(luke)
Comment 176•11 years ago
|
||
I think we should land the patches. The biggest reason I see is that most (all?) of Gecko is doing it and consistency is good, but I'm also like that it reduces SHOUTCAPS. These two things seem to outweigh the loss in terseness.
Before landing the js/src patches, though, could you please send an "I'm planning to make this change; here's why; any violent objections?" to m.d.t.js-engine.internals. It'd be nice not to surprise everyone.
Flags: needinfo?(luke)
Reporter | ||
Comment 177•11 years ago
|
||
(In reply to Luke Wagner [:luke] from comment #176)
> Before landing the js/src patches, though, could you please send an "I'm
> planning to make this change; here's why; any violent objections?" to
> m.d.t.js-engine.internals. It'd be nice not to surprise everyone.
Sure, done.
Reporter | ||
Comment 178•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/0a28d2e865e4
https://hg.mozilla.org/integration/mozilla-inbound/rev/5d34afe94163
https://hg.mozilla.org/integration/mozilla-inbound/rev/0b4ab192b289
https://hg.mozilla.org/integration/mozilla-inbound/rev/c4aa9fdddb72
https://hg.mozilla.org/integration/mozilla-inbound/rev/ce4978329418
Comment 179•11 years ago
|
||
Thanks, but I think you missed js/src/vm/.
Comment 180•11 years ago
|
||
Also, js/src/jit.
Assignee | ||
Comment 181•11 years ago
|
||
(In reply to :Benjamin Peterson from comment #179)
> Thanks, but I think you missed js/src/vm/.
(In reply to :Benjamin Peterson from comment #180)
> Also, js/src/jit.
I have patches ready for them, but I have yet to review the patches myself. I also need to make sure they compile on B2G builds (which lack compiler support for nullptr). I'll try to do that in the evening (i.e. tomorrow morning MV time).
Comment 182•11 years ago
|
||
Assignee | ||
Comment 183•11 years ago
|
||
Attachment #811278 -
Flags: review?(ehsan)
Assignee | ||
Comment 184•11 years ago
|
||
Attachment #811279 -
Flags: review?(ehsan)
Assignee | ||
Comment 185•11 years ago
|
||
Attachment #811280 -
Flags: review?(ehsan)
Assignee | ||
Comment 186•11 years ago
|
||
Attachment #811281 -
Flags: review?(ehsan)
Assignee | ||
Comment 187•11 years ago
|
||
Attachment #811282 -
Flags: review?(ehsan)
Assignee | ||
Comment 188•11 years ago
|
||
Attachment #811283 -
Flags: review?(ehsan)
Assignee | ||
Comment 189•11 years ago
|
||
Attachment #811285 -
Flags: review?(ehsan)
Assignee | ||
Comment 190•11 years ago
|
||
Pushed js/src/jit/ changes to try: https://tbpl.mozilla.org/?tree=Try&rev=154672842bef
Attachment #811286 -
Flags: review?(ehsan)
Assignee | ||
Comment 191•11 years ago
|
||
Attachment #811287 -
Flags: review?(ehsan)
Assignee | ||
Comment 192•11 years ago
|
||
Attachment #811288 -
Flags: review?(ehsan)
Assignee | ||
Comment 193•11 years ago
|
||
Attachment #811289 -
Flags: review?(ehsan)
Assignee | ||
Comment 194•11 years ago
|
||
Attachment #811289 -
Attachment is obsolete: true
Attachment #811289 -
Flags: review?(ehsan)
Attachment #811290 -
Flags: review?(ehsan)
Assignee | ||
Comment 195•11 years ago
|
||
Attachment #811291 -
Flags: review?(ehsan)
Assignee | ||
Comment 196•11 years ago
|
||
Pushed the js/src/vm/ changes to try: https://tbpl.mozilla.org/?tree=Try&rev=d23bdcbe911d
Apologies for exhausting you! :-)
Attachment #811292 -
Flags: review?(ehsan)
Reporter | ||
Updated•11 years ago
|
Attachment #811278 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #811279 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #811280 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #811281 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #811282 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #811283 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #811285 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #811286 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #811287 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #811288 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #811290 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #811291 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #811292 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 197•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/5761d3de664c
https://hg.mozilla.org/integration/mozilla-inbound/rev/c102b5ec30df
https://hg.mozilla.org/integration/mozilla-inbound/rev/e44494d17d37
https://hg.mozilla.org/integration/mozilla-inbound/rev/0c0ec323b661
https://hg.mozilla.org/integration/mozilla-inbound/rev/59c9b78bef2c
https://hg.mozilla.org/integration/mozilla-inbound/rev/307c8a99f7eb
https://hg.mozilla.org/integration/mozilla-inbound/rev/b7e1f15c2964
https://hg.mozilla.org/integration/mozilla-inbound/rev/bef1a1ec6ea3
https://hg.mozilla.org/integration/mozilla-inbound/rev/e34fa34cc870
https://hg.mozilla.org/integration/mozilla-inbound/rev/c793f516edda
https://hg.mozilla.org/integration/mozilla-inbound/rev/79a3d1d2c065
https://hg.mozilla.org/integration/mozilla-inbound/rev/d32249ad7115
https://hg.mozilla.org/integration/mozilla-inbound/rev/37cac3701742
Comment 198•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/5761d3de664c
https://hg.mozilla.org/mozilla-central/rev/c102b5ec30df
https://hg.mozilla.org/mozilla-central/rev/e44494d17d37
https://hg.mozilla.org/mozilla-central/rev/0c0ec323b661
https://hg.mozilla.org/mozilla-central/rev/59c9b78bef2c
https://hg.mozilla.org/mozilla-central/rev/307c8a99f7eb
https://hg.mozilla.org/mozilla-central/rev/b7e1f15c2964
https://hg.mozilla.org/mozilla-central/rev/bef1a1ec6ea3
https://hg.mozilla.org/mozilla-central/rev/e34fa34cc870
https://hg.mozilla.org/mozilla-central/rev/c793f516edda
https://hg.mozilla.org/mozilla-central/rev/79a3d1d2c065
https://hg.mozilla.org/mozilla-central/rev/d32249ad7115
https://hg.mozilla.org/mozilla-central/rev/37cac3701742
Assignee | ||
Comment 199•11 years ago
|
||
Attachment #814084 -
Flags: review?(ehsan)
Assignee | ||
Comment 200•11 years ago
|
||
Attachment #814086 -
Flags: review?(ehsan)
Assignee | ||
Comment 201•11 years ago
|
||
Attachment #814087 -
Flags: review?(ehsan)
Assignee | ||
Comment 202•11 years ago
|
||
Attachment #814088 -
Flags: review?(ehsan)
Assignee | ||
Comment 203•11 years ago
|
||
Attachment #814090 -
Flags: review?(ehsan)
Assignee | ||
Comment 204•11 years ago
|
||
Attachment #814091 -
Flags: review?(ehsan)
Assignee | ||
Comment 205•11 years ago
|
||
Attachment #814092 -
Flags: review?(ehsan)
Assignee | ||
Comment 206•11 years ago
|
||
Attachment #814093 -
Flags: review?(ehsan)
Assignee | ||
Comment 207•11 years ago
|
||
Attachment #814094 -
Flags: review?(ehsan)
Assignee | ||
Comment 208•11 years ago
|
||
Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=14386a2261fd / https://tbpl.mozilla.org/?tree=Try&rev=0e99c2f8e079
Attachment #814095 -
Flags: review?(ehsan)
Reporter | ||
Updated•11 years ago
|
Attachment #814084 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #814086 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #814087 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #814088 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #814090 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #814091 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #814092 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #814093 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #814094 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #814095 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 209•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/c0382512480b
https://hg.mozilla.org/integration/mozilla-inbound/rev/59c078a58301
https://hg.mozilla.org/integration/mozilla-inbound/rev/75f90df83f53
https://hg.mozilla.org/integration/mozilla-inbound/rev/e34c99c7dee4
https://hg.mozilla.org/integration/mozilla-inbound/rev/4177ead919e6
https://hg.mozilla.org/integration/mozilla-inbound/rev/ce9cca8500d5
https://hg.mozilla.org/integration/mozilla-inbound/rev/421efbf3ad86
https://hg.mozilla.org/integration/mozilla-inbound/rev/212dafcf376f
https://hg.mozilla.org/integration/mozilla-inbound/rev/09d8891fff22
https://hg.mozilla.org/integration/mozilla-inbound/rev/c131a717180e
Comment 210•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c0382512480b
https://hg.mozilla.org/mozilla-central/rev/59c078a58301
https://hg.mozilla.org/mozilla-central/rev/75f90df83f53
https://hg.mozilla.org/mozilla-central/rev/e34c99c7dee4
https://hg.mozilla.org/mozilla-central/rev/4177ead919e6
https://hg.mozilla.org/mozilla-central/rev/ce9cca8500d5
https://hg.mozilla.org/mozilla-central/rev/421efbf3ad86
https://hg.mozilla.org/mozilla-central/rev/212dafcf376f
https://hg.mozilla.org/mozilla-central/rev/09d8891fff22
https://hg.mozilla.org/mozilla-central/rev/c131a717180e
Assignee | ||
Comment 211•11 years ago
|
||
Attachment #814361 -
Flags: review?(ehsan)
Assignee | ||
Comment 212•11 years ago
|
||
Attachment #814363 -
Flags: review?(ehsan)
Assignee | ||
Comment 213•11 years ago
|
||
Attachment #814364 -
Flags: review?(ehsan)
Assignee | ||
Comment 214•11 years ago
|
||
Attachment #814365 -
Flags: review?(ehsan)
Assignee | ||
Comment 215•11 years ago
|
||
Attachment #814366 -
Flags: review?(ehsan)
Assignee | ||
Comment 216•11 years ago
|
||
Attachment #814367 -
Flags: review?(ehsan)
Assignee | ||
Comment 217•11 years ago
|
||
Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=3eac0e9dc377
The B2G ICS build failed due to an unrelated reason. I can retry that if needed.
Attachment #814368 -
Flags: review?(ehsan)
Reporter | ||
Updated•11 years ago
|
Attachment #814361 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #814363 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #814364 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #814365 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #814366 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #814368 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #814367 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 218•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/8cc13e82d47c
https://hg.mozilla.org/integration/mozilla-inbound/rev/36d4de5601b4
https://hg.mozilla.org/integration/mozilla-inbound/rev/89a576ec25cf
https://hg.mozilla.org/integration/mozilla-inbound/rev/4ea080e6ae83
https://hg.mozilla.org/integration/mozilla-inbound/rev/1e7a720a0f63
https://hg.mozilla.org/integration/mozilla-inbound/rev/19c28d2f1c18
Comment 219•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/8cc13e82d47c
https://hg.mozilla.org/mozilla-central/rev/36d4de5601b4
https://hg.mozilla.org/mozilla-central/rev/89a576ec25cf
https://hg.mozilla.org/mozilla-central/rev/4ea080e6ae83
https://hg.mozilla.org/mozilla-central/rev/1e7a720a0f63
https://hg.mozilla.org/mozilla-central/rev/19c28d2f1c18
Assignee | ||
Comment 220•11 years ago
|
||
Attachment #815461 -
Flags: review?(ehsan)
Assignee | ||
Comment 221•11 years ago
|
||
Attachment #815462 -
Flags: review?(ehsan)
Assignee | ||
Comment 222•11 years ago
|
||
Attachment #815463 -
Flags: review?(ehsan)
Assignee | ||
Comment 223•11 years ago
|
||
Attachment #815464 -
Flags: review?(ehsan)
Assignee | ||
Comment 224•11 years ago
|
||
Attachment #815465 -
Flags: review?(ehsan)
Assignee | ||
Comment 225•11 years ago
|
||
Attachment #815466 -
Flags: review?(ehsan)
Assignee | ||
Comment 226•11 years ago
|
||
Attachment #815467 -
Flags: review?(ehsan)
Assignee | ||
Comment 227•11 years ago
|
||
Attachment #815468 -
Flags: review?(ehsan)
Assignee | ||
Comment 228•11 years ago
|
||
Attachment #815469 -
Flags: review?(ehsan)
Assignee | ||
Comment 229•11 years ago
|
||
Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=0a14596e94ff
Attachment #815470 -
Flags: review?(ehsan)
Reporter | ||
Updated•11 years ago
|
Attachment #815461 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #815462 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #815463 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #815464 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #815465 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #815466 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #815467 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #815468 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #815469 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #815470 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 230•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/9ee0459d7336
https://hg.mozilla.org/integration/mozilla-inbound/rev/01fa49869175
https://hg.mozilla.org/integration/mozilla-inbound/rev/8b9687f6c602
https://hg.mozilla.org/integration/mozilla-inbound/rev/62c48f864545
https://hg.mozilla.org/integration/mozilla-inbound/rev/18fa6912a68a
https://hg.mozilla.org/integration/mozilla-inbound/rev/fc9733225130
https://hg.mozilla.org/integration/mozilla-inbound/rev/ec55161f8059
https://hg.mozilla.org/integration/mozilla-inbound/rev/20f2a3e61f37
https://hg.mozilla.org/integration/mozilla-inbound/rev/ad59ee55f596
https://hg.mozilla.org/integration/mozilla-inbound/rev/cbae15cadd74
https://hg.mozilla.org/mozilla-central/rev/9ee0459d7336
https://hg.mozilla.org/mozilla-central/rev/01fa49869175
https://hg.mozilla.org/mozilla-central/rev/8b9687f6c602
https://hg.mozilla.org/mozilla-central/rev/62c48f864545
https://hg.mozilla.org/mozilla-central/rev/18fa6912a68a
https://hg.mozilla.org/mozilla-central/rev/fc9733225130
https://hg.mozilla.org/mozilla-central/rev/ec55161f8059
https://hg.mozilla.org/mozilla-central/rev/20f2a3e61f37
https://hg.mozilla.org/mozilla-central/rev/ad59ee55f596
https://hg.mozilla.org/mozilla-central/rev/cbae15cadd74
Comment 232•11 years ago
|
||
This results in build failures under gcc 4.5.3.
toolkit/crashreporter/client/crashreporter.cpp:37:38: error: 'nullptr' was not declared in this scope
Comment 233•11 years ago
|
||
For reference: This checkin http://hg.mozilla.org/mozilla-central/rev/fc9733225130 (from this bug here) uncovered Bug 926083, which is about libxul link step failing on Windows with MSVC 2012. The important bit is "uncovered" here as I think the actual problem was already there before the change to nullptr.
Comment 234•11 years ago
|
||
Apparently there are a number of developers using VS2012, especially in Metro land. They aren't taking too kindly to their builds being broken.
So, I backed out fc9733225130, which was isolated in comment #233 as the regression point. If we need to back out more changesets, a loud chorus of Windows developers would support that.
FWIW, I don't like backing out green changesets. But the reality is many Windows developers rely on VS2012. Bug 926705 has been filed to have RelEng deploy a VS2012 builder.
https://hg.mozilla.org/integration/mozilla-inbound/rev/f8bd4c964967
Comment 235•11 years ago
|
||
Some context here. Apparently way back in the day, VS2012 was required to build Firefox for Metro. So, many of our Metro developers have 2012 installed. They could possibly all be talked into installing 2010.
Comment 237•11 years ago
|
||
(In reply to Gregory Szorc [:gps] from comment #235)
> Some context here. Apparently way back in the day, VS2012 was required to
> build Firefox for Metro. So, many of our Metro developers have 2012
> installed. They could possibly all be talked into installing 2010.
Well yes but I thought later versions are required to build 64-bit Windows so probably still an issue for people trying to get that working.
Comment 238•11 years ago
|
||
(In reply to Gregory Szorc [:gps] from comment #235)
> Some context here. Apparently way back in the day, VS2012 was required to
> build Firefox for Metro. So, many of our Metro developers have 2012
> installed. They could possibly all be talked into installing 2010.
vs2012 is much nicer to use than vs2010, when the build isn't broken that is, so it would be a hard sell.
Comment 239•11 years ago
|
||
(In reply to Chris Pearce (:cpearce) from comment #238)
> (In reply to Gregory Szorc [:gps] from comment #235)
> > Some context here. Apparently way back in the day, VS2012 was required to
> > build Firefox for Metro. So, many of our Metro developers have 2012
> > installed. They could possibly all be talked into installing 2010.
>
> vs2012 is much nicer to use than vs2010, when the build isn't broken that
> is, so it would be a hard sell.
Since vs2010 was also busted by that changeset, so it would be a hard sell indeed. :)
Comment 240•11 years ago
|
||
(In reply to :Ally Naaktgeboren from comment #239)
> Since vs2010 was also busted by that changeset, so it would be a hard sell
> indeed. :)
We build with vs2010 in automation *today*. So, something about the environments is different. Different Windows SDK versions or a conflicting SDK, perhaps? Who knows. Just another reason why we need reproducible build environments for developers.
Comment 241•11 years ago
|
||
(In reply to :Ally Naaktgeboren from comment #239)
> (In reply to Chris Pearce (:cpearce) from comment #238)
> > (In reply to Gregory Szorc [:gps] from comment #235)
> > > Some context here. Apparently way back in the day, VS2012 was required to
> > > build Firefox for Metro. So, many of our Metro developers have 2012
> > > installed. They could possibly all be talked into installing 2010.
> >
> > vs2012 is much nicer to use than vs2010, when the build isn't broken that
> > is, so it would be a hard sell.
>
> Since vs2010 was also busted by that changeset, so it would be a hard sell
> indeed. :)
I built just fine under vs2010 with that changeset, albeit under windows 7 but did include metro in the build.
Reporter | ||
Comment 242•11 years ago
|
||
Relanded the backed out changeset together with a workaround for bug 926083:
https://hg.mozilla.org/integration/mozilla-inbound/rev/73ac7e81f316
Assignee | ||
Comment 244•11 years ago
|
||
Attachment #821219 -
Flags: review?(ehsan)
Assignee | ||
Comment 245•11 years ago
|
||
Attachment #821220 -
Flags: review?(ehsan)
Assignee | ||
Updated•11 years ago
|
Attachment #821220 -
Attachment description: Bug 784739 - Switch from NULL to nullptr in dom/plugins/base/ → Switch from NULL to nullptr in dom/plugins/base/
Assignee | ||
Comment 246•11 years ago
|
||
Attachment #821226 -
Flags: review?(ehsan)
Assignee | ||
Comment 247•11 years ago
|
||
Attachment #821227 -
Flags: review?(ehsan)
Assignee | ||
Comment 248•11 years ago
|
||
Attachment #821229 -
Flags: review?(ehsan)
Assignee | ||
Comment 249•11 years ago
|
||
Attachment #821230 -
Flags: review?(ehsan)
Assignee | ||
Comment 250•11 years ago
|
||
Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=e08fdb1745fc / https://tbpl.mozilla.org/?tree=Try&rev=a5372c0244c0
Attachment #821231 -
Flags: review?(ehsan)
Reporter | ||
Updated•11 years ago
|
Attachment #821219 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #821220 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #821226 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #821227 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #821229 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #821230 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #821231 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 251•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/b8c97df0418d
https://hg.mozilla.org/integration/mozilla-inbound/rev/3656e6195ed2
https://hg.mozilla.org/integration/mozilla-inbound/rev/298d6746f0af
https://hg.mozilla.org/integration/mozilla-inbound/rev/d8b4feaa9add
https://hg.mozilla.org/integration/mozilla-inbound/rev/e2540bc9686e
https://hg.mozilla.org/integration/mozilla-inbound/rev/58652b0ac86e
https://hg.mozilla.org/integration/mozilla-inbound/rev/b7c32ea628e2
Comment 252•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/b8c97df0418d
https://hg.mozilla.org/mozilla-central/rev/3656e6195ed2
https://hg.mozilla.org/mozilla-central/rev/298d6746f0af
https://hg.mozilla.org/mozilla-central/rev/d8b4feaa9add
https://hg.mozilla.org/mozilla-central/rev/e2540bc9686e
https://hg.mozilla.org/mozilla-central/rev/58652b0ac86e
https://hg.mozilla.org/mozilla-central/rev/b7c32ea628e2
Comment 253•11 years ago
|
||
...and gcc 4.5 is broken yet again. Please don't r+ patches like this unless they properly use mfbt/NullPtr.h, it's there for a reason.
Reporter | ||
Comment 254•11 years ago
|
||
(In reply to comment #253)
> ...and gcc 4.5 is broken yet again. Please don't r+ patches like this unless
> they properly use mfbt/NullPtr.h, it's there for a reason.
Finding out where that include is actually needed requires somebody builds with gcc4.5 *on the platform that you are on*, which is not a supported build environment anyway. Anyways, you have blanket r=me to add those includes anywhere that is needed until we figure out a better way (bug 930675 perhaps.)
Assignee | ||
Comment 255•11 years ago
|
||
Attachment #822885 -
Flags: review?(ehsan)
Assignee | ||
Comment 256•11 years ago
|
||
Attachment #822886 -
Flags: review?(ehsan)
Assignee | ||
Comment 257•11 years ago
|
||
Attachment #822887 -
Flags: review?(ehsan)
Assignee | ||
Comment 258•11 years ago
|
||
Attachment #822888 -
Flags: review?(ehsan)
Assignee | ||
Comment 259•11 years ago
|
||
Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=43a61654f7d3
Attachment #822889 -
Flags: review?(ehsan)
Reporter | ||
Updated•11 years ago
|
Attachment #822885 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #822886 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #822887 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #822888 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #822889 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 260•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/28e8a3bbe870
https://hg.mozilla.org/integration/mozilla-inbound/rev/7bbd0f0eee60
https://hg.mozilla.org/integration/mozilla-inbound/rev/678df5249db9
https://hg.mozilla.org/integration/mozilla-inbound/rev/165922bc5650
https://hg.mozilla.org/integration/mozilla-inbound/rev/f19037548095
Comment 261•11 years ago
|
||
Assignee | ||
Comment 262•11 years ago
|
||
Attachment #830265 -
Flags: review?(ehsan)
Assignee | ||
Comment 263•11 years ago
|
||
Attachment #830266 -
Flags: review?(ehsan)
Assignee | ||
Comment 264•11 years ago
|
||
Attachment #830267 -
Flags: review?(ehsan)
Assignee | ||
Comment 265•11 years ago
|
||
Attachment #830268 -
Flags: review?(ehsan)
Assignee | ||
Comment 266•11 years ago
|
||
Attachment #830269 -
Flags: review?(ehsan)
Reporter | ||
Updated•11 years ago
|
Attachment #830265 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #830266 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #830267 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #830268 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #830269 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 267•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/365669affac7
https://hg.mozilla.org/integration/mozilla-inbound/rev/ccca3c4247e1
https://hg.mozilla.org/integration/mozilla-inbound/rev/8c947073f4ea
https://hg.mozilla.org/integration/mozilla-inbound/rev/0fc828acb653
https://hg.mozilla.org/integration/mozilla-inbound/rev/ca67a11bfdcf
Assignee | ||
Comment 269•11 years ago
|
||
Attachment #8337262 -
Flags: review?(ehsan)
Assignee | ||
Comment 270•11 years ago
|
||
Attachment #8337263 -
Flags: review?(ehsan)
Assignee | ||
Comment 271•11 years ago
|
||
Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=2ca89a3958b3
(Note that the indexedDB changes are included in the "miscellaneous directories" changeset in the try push above.)
Attachment #8337264 -
Flags: review?(ehsan)
Attachment #8337264 -
Flags: feedback?(ethanhugg)
Comment 272•11 years ago
|
||
Comment on attachment 8337264 [details] [diff] [review]
Switch from NULL to nullptr in webrtc/signaling/
Review of attachment 8337264 [details] [diff] [review]:
-----------------------------------------------------------------
Seems to still build and work fine.
I do wonder if we should be changing lines like this:
if (a != NULL)
to:
if (a)
instead of:
if (a != nullptr)
Attachment #8337264 -
Flags: feedback?(ethanhugg) → feedback+
Reporter | ||
Comment 273•11 years ago
|
||
(In reply to Ethan Hugg [:ehugg] from comment #272)
> Seems to still build and work fine.
>
> I do wonder if we should be changing lines like this:
> if (a != NULL)
> to:
> if (a)
> instead of:
> if (a != nullptr)
I'd prefer if we did that in another bug, since this patch doesn't really change the weirdness of such code... :-)
Reporter | ||
Updated•11 years ago
|
Attachment #8337262 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #8337263 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #8337264 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 274•11 years ago
|
||
Comment 275•11 years ago
|
||
Assignee | ||
Comment 276•11 years ago
|
||
Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=d7001fbeaf96
Attachment #8355790 -
Flags: review?(ehsan)
Assignee | ||
Comment 277•11 years ago
|
||
Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=a486edf8b46d
This should cover the last remaining instances of NULL in our own code. Unless I have missed something, I think this bug can be (finally) closed.
Attachment #8355808 -
Flags: review?(ehsan)
Reporter | ||
Updated•11 years ago
|
Attachment #8355790 -
Flags: review?(ehsan) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #8355808 -
Flags: review?(ehsan) → review+
Reporter | ||
Comment 278•11 years ago
|
||
Thanks a lot for your effort here, Birunthan!
https://hg.mozilla.org/integration/mozilla-inbound/rev/7ebd1e1a8197
https://hg.mozilla.org/integration/mozilla-inbound/rev/5954f2857de4
Whiteboard: [mentor=ehsan][lang=c++][leave open] → [mentor=ehsan][lang=c++]
https://hg.mozilla.org/mozilla-central/rev/7ebd1e1a8197
https://hg.mozilla.org/mozilla-central/rev/5954f2857de4
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Comment 280•11 years ago
|
||
Comment on attachment 821220 [details] [diff] [review]
Switch from NULL to nullptr in dom/plugins/base/
Review of attachment 821220 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/plugins/base/npruntime.h
@@ +136,5 @@
>
> #define VOID_TO_NPVARIANT(_v) \
> NP_BEGIN_MACRO \
> (_v).type = NPVariantType_Void; \
> + (_v).value.objectValue = nullptr; \
This file is a public API header. Various NPAPI plugins (which are not part of Mozilla) include this file.
Do you really want to require that anything using NPAPI must be built with C++11 support?
Reporter | ||
Comment 281•11 years ago
|
||
(In reply to Omair Majid from comment #280)
> Comment on attachment 821220 [details] [diff] [review]
> Switch from NULL to nullptr in dom/plugins/base/
>
> Review of attachment 821220 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: dom/plugins/base/npruntime.h
> @@ +136,5 @@
> >
> > #define VOID_TO_NPVARIANT(_v) \
> > NP_BEGIN_MACRO \
> > (_v).type = NPVariantType_Void; \
> > + (_v).value.objectValue = nullptr; \
>
> This file is a public API header. Various NPAPI plugins (which are not part
> of Mozilla) include this file.
>
> Do you really want to require that anything using NPAPI must be built with
> C++11 support?
No, that was a mistake, thanks for catching it. Fixed in https://hg.mozilla.org/integration/mozilla-inbound/rev/0691948a0abe.
Comment 282•11 years ago
|
||
Comment 283•11 years ago
|
||
I was told it's not possible to get it backported to 27.*. Any chance to have it in 28? Thanks
Reporter | ||
Comment 284•11 years ago
|
||
(In reply to Gabriele Giacone from comment #283)
> I was told it's not possible to get it backported to 27.*. Any chance to
> have it in 28? Thanks
What is it that you want backported exactly?
Flags: needinfo?(1o5g4r8o)
Comment 285•11 years ago
|
||
(In reply to :Ehsan Akhgari (needinfo? me!) (slow responsiveness, emailapocalypse) from comment #284)
> (In reply to Gabriele Giacone from comment #283)
> > I was told it's not possible to get it backported to 27.*. Any chance to
> > have it in 28? Thanks
>
> What is it that you want backported exactly?
Switching back to NULL for plugins.
https://hg.mozilla.org/mozilla-central/rev/0691948a0abe
Gnash plugin build against 27 is broken.
Flags: needinfo?(1o5g4r8o)
Reporter | ||
Comment 286•11 years ago
|
||
Note about this approval request: this patch doesn't change anything in the binaries that we ship, so it's 100% safe to backport anywhere. It however changes the NPAPI headers we ship as part of the SDK which people use to build plugins. based on to make them C compatible again. Without this patch, the plugin developers will need to fix this header themselves every time.
The mozilla-release approval is made so that this gets included in a potential next dot-release of 27 (in the SDK accompanying it to be more precise.)
Attachment #8380682 -
Flags: approval-mozilla-release?
Attachment #8380682 -
Flags: approval-mozilla-beta?
Attachment #8380682 -
Flags: approval-mozilla-aurora?
Comment 287•11 years ago
|
||
The NPAPI headers should be unmodified copies of the files from the npapi-sdk project: https://code.google.com/p/npapi-sdk/
Is that still the case? (Plugin developers should be using those headers instead of the Mozilla SDK anyway).
Reporter | ||
Comment 288•11 years ago
|
||
(In reply to comment #287)
> The NPAPI headers should be unmodified copies of the files from the npapi-sdk
> project: https://code.google.com/p/npapi-sdk/
>
> Is that still the case? (Plugin developers should be using those headers
> instead of the Mozilla SDK anyway).
Not sure what they use, but we definitely incorrectly modified the ones in our tree.
Comment 289•11 years ago
|
||
Comment on attachment 8380682 [details] [diff] [review]
Fix the npapi headers
No sign yet that there would be a 27.0.2 - approving for beta/aurora though and will keep the nom up for release in case the unexpected happens.
Attachment #8380682 -
Flags: approval-mozilla-beta?
Attachment #8380682 -
Flags: approval-mozilla-beta+
Attachment #8380682 -
Flags: approval-mozilla-aurora?
Attachment #8380682 -
Flags: approval-mozilla-aurora+
Comment 290•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/939571a11ebb
https://hg.mozilla.org/releases/mozilla-beta/rev/85053eae528b
Note that the "status-firefox28:fixed" status only applies to the very specific NPAPI follow-up fix in comment 282, not to the entirety of what landed over the course of this bug. It would have been preferable if this follow-up work be done in a separate bug for tracking purposes, but that's neither here nor there now, I guess.
status-firefox28:
--- → fixed
status-firefox29:
--- → fixed
Comment 291•11 years ago
|
||
This seems like it has a broad range of impact. Could someone please advise QA what, if any, areas of potential regression exist so we can test this before it is released?
Comment 292•11 years ago
|
||
Updated•11 years ago
|
status-b2g-v1.3:
--- → fixed
Comment 293•11 years ago
|
||
This doesn't need manual QA.
Whiteboard: [mentor=ehsan][lang=c++] → [mentor=ehsan][lang=c++][qa-]
Updated•11 years ago
|
status-b2g-v1.3T:
--- → fixed
status-b2g-v1.4:
--- → fixed
Comment 294•11 years ago
|
||
Comment on attachment 8380682 [details] [diff] [review]
Fix the npapi headers
It is in 29 and we are going to release it next week...
Attachment #8380682 -
Flags: approval-mozilla-release? → approval-mozilla-release-
You need to log in
before you can comment on or make changes to this bug.
Description
•