Commit Graph

2205 Commits

Author SHA1 Message Date
Nathan Froyd
e4e2da55c9 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
2015-10-18 01:24:48 -04:00
Phil Ringnalda
4e81a2fc7a Merge f-t to m-c, a=merge 2015-10-17 11:19:46 -07:00
Masatoshi Kimura
2c13549f01 Bug 1207137 - Add an error code for weak crypto override. r=bz 2015-10-17 09:38:30 +09:00
Olli Pettay
122461d0b3 Bug 1003100 - pushState() in iframe fails when reloading with CTRL+F5, r=bz 2015-10-16 20:05:54 +03:00
Wes Kocher
1691f9ca1b Backed out 3 changesets (bug 1204983) for various talos failures
Backed out changeset 5bdf50e82ca8 (bug 1204983)
Backed out changeset 602e91d48e43 (bug 1204983)
Backed out changeset c7d3635f771a (bug 1204983)
2015-10-16 09:29:36 -07:00
Christoph Kerschbaumer
5ca9fa46fa Bug 1204983 - Allow about: pages to load remote content (r=bholley,bz,florian,dragana) 2015-10-09 22:03:27 -07:00
Nathan Froyd
46cd87c401 Bug 1207161 - fix run-by-dir leak in test_bug846906.xul; r=mccr8 2015-10-12 21:41:35 -04:00
Gijs Kruitbosch
2c340f37a7 Bug 1210439, r=smaug 2015-10-01 13:23:27 -04:00
Xidorn Quan
2d2beb4278 Bug 1212299 part 1 - Forbid documents inside elements other than iframe from requesting fullscreen. r=smaug 2015-10-12 11:24:23 +11:00
Dragana Damjanovic
43c2862c4a Bug 1211690 - Remove not needed nsILoadInfo get. r=ckerschb 2015-10-11 18:13:10 +02:00
Ehsan Akhgari
1d1baa782b Bug 1213514 - Don't bother checking for third party URLs at interception time unless if the user needs it; r=jdm
The current code is wasteful for the vast majority of our users.
2015-10-10 19:05:27 -04:00
Ehsan Akhgari
3163858808 Bug 1213150 - Part 2: Rework ShouldPrepareForIntercept() in terms of subresource requests; r=jdm 2015-10-09 10:52:55 -04:00
Ehsan Akhgari
14459a56ab Bug 1213150 - Part 1: Add a nsContentUtils::IsNonSubresourceRequest helper; r=jdm 2015-10-09 10:52:54 -04:00
Valentin Gosu
c3a8ae52a2 Bug 1199430 - update to tests. r=gijs 2015-10-08 11:57:58 +02:00
Ehsan Akhgari
72f32cf977 Bug 1212636 - Add a better error message for the content corrupcted error caused by the Promise being passed to FetchEvent.respondWith; r=bkelly 2015-10-07 18:06:26 -04:00
Bill McCloskey
f481f24fa4 Back out bug 967873 - Test changes for async removeTab 2015-10-07 11:15:11 -07:00
Bill McCloskey
7612b44cc8 Back out bug 967873 - browser_onbeforeunload_navigation.js fix for e10s 2015-10-07 11:15:11 -07:00
Bill McCloskey
9ca8b13cfa Back out bug 967873 - Proxy nsDocumentViewer::PermitUnload to the child process 2015-10-07 11:15:11 -07:00
Carsten "Tomcat" Book
d7f143eaad Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book
b9e5717f50 Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)
2015-10-07 12:13:45 +02:00
Ehsan Akhgari
13963a978d Bug 1210302 - Part 3: Add a NS_ParseRequestContentType API; r=mcmanus,sicking 2015-10-06 20:26:46 -04:00
Shu-yu Guo
b5f316de44 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Kaustabh Datta Choudhury
43c39611c3 Bug 1162003 - Enable run-by-dir mode for mochitest_chrome on Fx desktop debug builds. r=jmaher 2015-10-06 09:46:24 -04:00
Ben Kelly
6f5ac6af87 Bug 1210941 P4 Use LOAD_BYPASS_SERVICE_WORKER instead of ForceNoIntercept in nsDocShell. r=ehsan 2015-10-06 06:37:07 -07:00
Dragana Damjanovic
8bedf1ee9a Bug 1211269 - Store the information whether the channel is LOAD_REPLACE into history entry. r=bz 2015-10-05 12:33:00 +02:00
Michael Madsen
9cf001de2e Bug 1208124 - changed a check such that post data only depends on nsIUploadChannel and not nsIHttpChannel. r=bz 2015-09-29 19:50:46 +02:00
Carsten "Tomcat" Book
1955db09bc Merge m-c to mozilla-inbound 2015-10-02 13:37:27 +02:00
Carsten "Tomcat" Book
404e79482a merge mozilla-inbound to mozilla-central a=merge 2015-10-02 11:52:49 +02:00
Bobby Holley
f165d92e10 Bug 1210508 - Handle null OriginAttributes from JS-implemented nsILoadContext. r=me 2015-10-01 18:10:18 -07:00
Wes Kocher
5562cb27c2 Merge m-c to inbound a=merge 2015-09-30 14:10:21 -07:00
Wes Kocher
96c3ed29dc Merge inbound to central, a=merge 2015-09-30 13:49:27 -07:00
Dragana Damjanovic
291ca6cca2 Bug 1185256 - Save originURI to the history. r=bz 2015-09-30 08:54:39 +02:00
Gijs Kruitbosch
feb8238f8f Bug 1206879 - fire onlocationchange from pushState in frames when the URI changes, r=smaug 2015-09-29 13:50:55 -04:00
Tooru Fujisawa
6af73d29af Bug 1207499 - Part 3: Remove use of expression closure from docshell/. r=bz 2015-09-21 02:36:39 +09:00
Bill McCloskey
f18cb757c6 Bug 967873 - Proxy nsDocumentViewer::PermitUnload to the child process (r=Gijs) 2015-10-01 21:18:48 -07:00
Bill McCloskey
85d1163299 Bug 967873 - browser_onbeforeunload_navigation.js fix for e10s (r=Gijs) 2015-10-01 21:18:06 -07:00
Bill McCloskey
afe1d260d8 Bug 967873 - Test changes for async removeTab (r=Gijs) 2015-10-01 21:18:05 -07:00
Gijs Kruitbosch
b820b10ca9 Bug 636905 - part 3: flip prefs in tests to keep them working, r=jaws 2015-09-26 15:01:51 +01:00
Brian Grinstead
c6e35a38ee Bug 1034110 - Provide a way to observe mutations for ::before/::after pseudo elements;r=smaug
Adds a new chrome-only MutationObserverInit option called nativeAnonymousChildList
that will cause a mutation to fire when a native anonymous root is bound or unbound
2015-09-24 08:23:32 -07:00
Ehsan Akhgari
d4d0bcac1a Bug 1208903 - Eliminate a repeated condition in nsDocShell::EndPageLoad; r=baku
Found by Viva64.
2015-09-28 09:08:43 -04:00
Yoshi Huang
027c3bd555 Bug 1165466 - Fix up docshell and loadcontext inheriting code in nsIScriptSecurityManager. r=bholley 2015-09-23 16:10:21 +08:00
Wes Kocher
0fa7b5f27e Merge m-c to inbound, a=merge 2015-09-24 17:14:17 -07:00
Wes Kocher
4a23e18b0a Merge inbound to central, a=merge 2015-09-24 16:46:34 -07:00
Wes Kocher
612d2d83db Backed out 2 changesets (bug 1034110) for test_mutationobserver_anonymous.html bustage CLOSED TREE
Backed out changeset 7b145ea2fbde (bug 1034110)
Backed out changeset 3a8904e50016 (bug 1034110)
2015-09-24 11:29:11 -07:00
J. Ryan Stinnett
b6eaa634fb Bug 1201535 - Mark srcdoc as safe for loading in child. r=bz
When showing view source of a srcdoc frame in a tab, we load the frame content
via a page descriptor and use the URI "view-source:about:srcdoc".

Since we are creating a browser tab, the docshell's `InternalLoad` triggers the
browser's `shouldLoadURI` machinery that checks if we are in the correct process
for the given URI.  This machinery will unwrap "view-source:" to "about:srcdoc"
and check if such an about page can be loaded in the child.

Marking "about:srcdoc" as safe for the child to load allows the view source
content of the frame to be displayed as expected.
2015-09-24 12:39:08 -05:00
Bobby Holley
708ae67ade Bug 1072150 - Use the opt-out for various sloppy consumers. r=bz 2015-09-24 14:02:41 -07:00
Brian Grinstead
2d8c27349f Bug 1034110 - Provide a way to observe mutations for ::before/::after pseudo elements;r=smaug
Adds a new chrome-only MutationObserverInit option called nativeAnonymousChildList
that will cause a mutation to fire when a native anonymous root is bound or unbound
2015-09-24 08:23:32 -07:00
Kaustabh Datta Choudhury
c689a3001e Bug 1162003 - Enable run-by-dir mode for mochitest_chrome on Fx desktop opt builds. r=jmaher 2015-09-23 13:39:45 -04:00
Ehsan Akhgari
d0a7993b8d Bug 1204581 - Add a deprecation warning for the usage of AppCache when service worker fetch interception is enabled; r=mcmanus,baku 2015-09-24 10:09:10 -04:00
Chris Peterson
dd2fcb9b7d Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium 2015-09-22 21:39:03 -07:00