Граф коммитов

1484 Коммитов

Автор SHA1 Сообщение Дата
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Mike Conley 30c59e510c Bug 1095236 - Disable dialog=1 support for windows opened from content. r=mrbkap
--HG--
extra : source : 856b7b90184f29a64093970e540193731b963f61
2015-10-02 19:00:54 -04:00
Wes Kocher 73e113381f Backed out 3 changesets (bug 1095236) for possibly spiking the frequency of VP(b-m) failures CLOSED TREE
Backed out changeset 11cb6379251a (bug 1095236)
Backed out changeset 856b7b90184f (bug 1095236)
Backed out changeset a179310161fb (bug 1095236)
2015-10-13 10:08:11 -07:00
Mike Conley 722366ddf3 Bug 1095236 - Disable dialog=1 support for windows opened from content. r=mrbkap
--HG--
extra : commitid : 4m7AvvB7uNQ
extra : rebase_source : 071e0e0aad76a7f08899591cb2efcc04bd5f2223
extra : histedit_source : d4db8a83cd507d05be0c166542fbdeca0212c76d
2015-10-02 19:00:54 -04:00
Jed Davis 7938778ece Bug 1207864 - Fix nsWebBrowserPersist's onStateChange callback in error cases. r=billm 2015-10-07 12:49:53 -07:00
Jed Davis f6824d8a0c Bug 1204626 - Reparent PWebBrowserPersistDocument to PContent. r=billm
A reference to a document (and the act of saving it) can outlive the
browser tab it was originally loaded in, and this needs to be reflected
in IPC in order to avoid MsgRouteError crashes; see bug for more info.

Note that we still need to pass the PBrowser when starting persistence,
because that's the only handle the parent has on the top-level document;
see comments in this patch for more info.

Also makes TabChildBase::GetDocument public, because it's just a wrapper
around WebNavigation() which is already public, to avoid code duplication.
2015-09-21 14:54:00 +02:00
Jed Davis 4c77f707f0 Bug 1204626 - Avoid error-case double-__delete__ crash in WebBrowserPersist. r=billm
The actor is refcounted, so this isn't a use-after-free, but it will
crash the content process.
2015-09-21 14:54:00 +02:00
Bobby Holley 110f12e7ca Bug 1072150 - Use the opt-out for various sloppy consumers. r=bz 2015-09-24 14:02:41 -07:00
Chris Peterson 71920a9550 Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium 2015-09-22 21:39:03 -07:00
Christoph Kerschbaumer 6e08fa5c8c Bug 1206146 - Use channel->AsyncOpen2() in embedding/components/webbrowserpersist/nsWebBrowserPersist.cpp (r=sicking) 2015-09-19 20:24:39 -07:00
Mike Conley 4b7b981193 Bug 1189554 - Make Saved Passwords dialog resizable on Windows again. r=smaug
We were accidentally overwriting chromeFlags with CHROME_DEFAULT, which
we should only do if the caller has provided a features string when
opening a dialog.

--HG--
extra : amend_source : 70a82802aada30253e860c80b172f0a152ee4a00
2015-09-15 16:33:36 -04:00
Carsten "Tomcat" Book 0b2b43ce7c Backed out 1 changesets (bug 1189554) for suspicion of causing Linux Mn-e10s test failures on a CLOSED TREE
Backed out changeset 7f5c88364008 (bug 1189554)

--HG--
extra : rebase_source : 9e63d9b0219b1b59fc4a6f974231c6783c24dc41
2015-09-17 14:40:14 +02:00
Mike Conley b95e1faf4e Bug 1189554 - Make Saved Passwords dialog resizable on Windows again. r=smaug
We were accidentally overwriting chromeFlags with CHROME_DEFAULT, which
we should only do if the caller has provided a features string when
opening a dialog.

--HG--
extra : transplant_source : %A8Q%A4%2C%A8%04%03%A98%F1%93%7C%A9%D3%956%F8g%40w
2015-09-15 16:33:36 -04:00
Nicholas Nethercote 647b520991 Bug 1201135 - Rename pldhash.{h,cpp} to PLDHashTable.{h,cpp}. r=mccr8.
--HG--
rename : xpcom/glue/pldhash.cpp => xpcom/glue/PLDHashTable.cpp
rename : xpcom/glue/pldhash.h => xpcom/glue/PLDHashTable.h
extra : rebase_source : 06b9d30db96ed78500fd44d9c0b51609103508a3
2015-09-15 20:49:53 -07:00
Nicholas Nethercote 59683492e5 Bug 1121760 (part 3) - Remove PL_DHashTableRemove(). r=poiru.
--HG--
extra : rebase_source : c34d693de4aca45f2ea05c2767c8b1007c89df29
2015-09-14 14:23:24 -07:00
Nicholas Nethercote 479244f7c9 Bug 1121760 (part 2) - Remove PL_DHashTableAdd(). r=poiru.
--HG--
extra : rebase_source : 41eb939bfb5c925cba58b1af57abce9a4e5fdb30
2015-09-14 14:23:12 -07:00
Nicholas Nethercote fcfdd8f54b Bug 1121760 (part 1) - Remove PL_DHashTableSearch(). r=poiru.
--HG--
extra : rebase_source : 770e1f49a451ecbadd778e071b204611e27cf701
2015-05-21 00:34:25 -07:00
Jed Davis 6dc9eb915b Bug 1202887 - Delay WebBrowserPersist error callbacks caused by IPC ActorDestroy. r=billm
The way IPDL glue currently works, it's unsafe to do Send__delete__ on
another actor in that context, and these callbacks can indirectly cause
that; see bug for details.
2015-09-14 11:18:28 -07:00
john 6e2d8c8fe7 Bug 236989 - Ensure persisted subdocuments correctly fixup relative links. r=bzbarsky
The URI of the document being serialized must be taken into account within
GetLocalURI on URIData. This method previously returned its path relative to
the document in which it is first visited, resulting in a bug when subdocuments
stored in different locations also linked to it. By passing in mTargetBaseURI
GetLocalURI can ensure it is returning a path relative to the document
currently being serialized.

--HG--
extra : rebase_source : 124f6b065b5b4d5952678666b72a63937532ec12
2015-09-02 23:53:38 -07:00
Nicholas Nethercote f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Mike Conley 77af80c31b Bug 1141337 - Update nsIWebBrowserPersistable to allow subframe targeting for Save Frame As. r=jld
This alters nsIWebBrowserPersistable so that startPersistence takes an
outerWindowID. This allows us to target a particular subframe from
beneath an nsFrameLoader, which is useful when attempting to Save
Frame As a remote browser.

--HG--
extra : commitid : KWck2rfRjXw
extra : rebase_source : d2390a8cf1b830e4e1c0fa52574455fbc0b05c14
2015-08-06 10:44:16 -04:00
Jed Davis 7753845aef Bug 1193903 - Fix nsWebBrowserPersist for documents with no page descriptor. r=mconley
This restores the behavior from before bug 1101100, when various
indirect properties of the document were obtained by JS that ignored
exceptions by using null instead.  This is currently breaking for the
documents created by Print Preview, because they have no page descriptor.
This patch also makes similar changes to the contentDescriptor getter.
2015-08-13 18:08:09 -07:00
Wes Kocher 6b7a0b75b5 Merge fx-team to m-c a=merge 2015-08-13 16:30:54 -07:00
Jed Davis 0e78372033 Bug 1192654 - Fix nsWebBrowserPersist handling of nonpersistable subdocuments. r=billm
The patch for bug 1101100, in converting this code to be asynchronous
and distributed, accidentally dropped the check for `data` being null;
this patch restores it, and adds a regression test.

--HG--
extra : histedit_source : 9eac378981bf4c21ae4c79d1a452c9098463cbf4
2015-08-13 08:38:19 -07:00
Mike Conley 7421d14843 Bug 1106321 - Serialize DEVMODE down to the content process when printing on Windows. r=jimm
--HG--
extra : commitid : IhjNJOOtmms
extra : rebase_source : 6b0ba29e866dcf63a3054eb955ece082cbbeda13
extra : amend_source : 70bcf59b1f4b1d7a3a8ec4183b3b9710eedfb5f9
2015-08-06 17:36:54 -04:00
Jed Davis f9cdea85fa Bug 1101100 - Multiprocess-enable nsWebBrowserPersist. r=billm
The high-level overview is that the parts of nsWebBrowserPersist which
access the DOM have been factored out (as WebBrowserPersistLocalDocument)
and abstracted (nsIWebBrowserPersistDocument) such that they can be
implemented in the cross-process case using IPC.
2015-08-05 14:25:39 -07:00
Birunthan Mohanathas 7315345693 Bug 1191100 - Remove XPIDL signature comments in .cpp files. r=ehsan
Comment-only so DONTBUILD.
2015-08-04 16:17:36 -07:00
Makoto Kato ed0bf31fba Bug 830801 - Part 3. Remove NOMINMAX define from cpp source. r=mshal 2015-08-03 10:07:20 +09:00
Mike Conley c86643f748 Bug 1114299 - Be more strict about which window chromeFlags we compute from content. r=smaug
We don't ever want to accept "private", "non-private", "remote" or "non-remote" from the
content process. We only let the parent decide when to open those types of windows.

--HG--
extra : commitid : 9MGeXNdb9US
extra : rebase_source : 41a4d9785bd667b84c255eda0ac7fedf44733736
extra : histedit_source : 698c707b68c60108e0631b775a98fb4e241c009b
2015-07-10 11:40:19 -04:00
Jed Davis feac503206 Bug 1179967 - Always rewrite links to absolute in nsWebBrowserPersist instead of side-effecting document. r=jst
--HG--
extra : commitid : JJTI70LvCnb
extra : rebase_source : 8a4b564e630a291e7866ba209a5f7dc4b1284a71
2015-07-15 12:15:48 -07:00
Birunthan Mohanathas a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Emanuel Hoogeveen 7d1e52f2ff Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Juan Gomez 258ad59e3f Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
Ryan VanderMeulen 5f5c327690 Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage. 2015-06-25 19:48:42 -04:00
Juan Gomez 702a59d135 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
--HG--
extra : rebase_source : 2ecbe6c1dd8a7ad8dc529b53349ad431cf1116c9
2015-06-24 14:11:00 -04:00
Karl Tomlinson 603b1ace02 bug 147419 remove ununsed plexName colorspace resolutionName and downloadFonts r=roc
This was only used to write to and read from otherwise unused preferences.

--HG--
extra : rebase_source : a538569807b8340dae3fe9f0cbfc68334e20ccc9
2015-06-11 09:34:27 +12:00
Karl Tomlinson a19a1f0d0c bug 147419 remove ununsed nsIPrintSettings::printCommand and print_command prefs r=roc
These was used only to write to and read from each other.

--HG--
extra : rebase_source : ef49678652f829fe23611fb2294a22c3ffd91cf1
2015-06-10 18:10:28 +12:00
Jed Davis 5813d28889 Bug 1170334 - Re-escape entities in nsWebBrowserPersist XML stylesheet handling. r=hsivonen
--HG--
extra : rebase_source : c895f6b5c0cee1f2a35207f25ed8b653ac1cb591
2015-06-10 18:33:00 +02:00
Shelly Lin f669d48f4d Bug 1138287 - Part 3: Add an option to set screen ID in windowWatcher.openWindow. r=roc
--HG--
extra : histedit_source : 15a046ca47c18feb379cbd51d32c41ec2ef0e1f2
2015-06-05 11:31:55 +08:00
Nicholas Nethercote e849e6588b Bug 1170416 (part 3) - Remove the PLDHashTable2 typedef. r=froydnj.
--HG--
extra : rebase_source : 9510ea47204fffa163cac43aeaaac6ae1ad80419
2015-05-19 16:46:17 -07:00
Mike Conley a1d6a9cf9c Bug 1091112 - Proxy opening the print dialog on OS X to the parent. r=mstange
--HG--
extra : commitid : JRKXD6lod1d
extra : rebase_source : b2bfa7c4f750852c0654367708cc4f0a6c607a24
extra : histedit_source : f0da46869101dc23b8d6b654416298951b078ccb
2015-05-06 14:10:21 -04:00
Mike Conley 1a81ee8239 Bug 1091112 - Add OS X-specific members to PrintData IPDL struct. r=jimm
--HG--
extra : commitid : Dr2MlrmVcdg
extra : rebase_source : 886e4fcae950fd46b51aad1b8f5e5fa47bdbeaa6
2015-05-06 14:09:08 -04:00
Mike Conley 1a3aaea52d Bug 1091112 - Serialize nsIPrintSettings options bitfield. r=jimm
--HG--
extra : commitid : Dms9DmIQc6x
extra : rebase_source : 28597e8eb3c7c9e11bf26f611dae21ff96fad968
2015-05-06 15:35:35 -04:00
Nicholas Nethercote bf1839cd7a Bug 1166598 (part 3) - Use PLDHashTable2 in nsCommandParams. r=froydnj.
--HG--
extra : rebase_source : 8e7e616c93cae653440a6ea2e11cd1c6da2e8821
2015-05-05 18:23:39 -07:00
Gijs Kruitbosch ca40918bd8 Bug 1166066 - Fix opening new windows from a private window. r=jdm
--HG--
extra : rebase_source : 9a71b987e0cd23145e77f9cb28aa40e14b8e0a52
2015-05-19 16:27:04 +01:00
Andrew McCreight 2512f8de5d Bug 1164049 - Fix some mode lines in embedding/. r=smaug
embedding/browser, embedding/components/commandhandler/, embedding/components/find/, embedding/components/windowwatcher/
2015-05-12 08:30:00 +02:00
Birunthan Mohanathas 4377c8f962 Bug 1130096 - Convert embedding/components/windowwatcher/ to Gecko style. r=mccr8 2015-05-11 12:35:14 -07:00
Birunthan Mohanathas 0582061b47 Bug 1130096 - Convert embedding/components/find/ to Gecko style. r=mccr8 2015-05-11 12:35:14 -07:00
Birunthan Mohanathas 916fc10422 Bug 1130096 - Convert embedding/components/commandhandler/ to Gecko style. r=mccr8 2015-05-11 12:35:14 -07:00
Michal Novotny faa2a67d00 Bug 1156493 - e10s: move .cacheKey to nsICacheInfoChannel so child channels can get/set it, r=jduell 2015-05-10 02:26:39 +02:00