Commit Graph

310 Commits

Author SHA1 Message Date
Christoph Kerschbaumer
5c5459f2d8 Bug 1226437 - Speculative CSP should set speculative referrer policy instead of actual referrer policy. r=sicking 2015-11-20 09:35:32 -08:00
L. David Baron
2756fb2fc3 Bug 1226489 - Pass only a single rule to StyleRuleChanged. r=bzbarsky 2015-11-20 14:34:12 -08:00
Christoph Kerschbaumer
482919ca6a Bug 1226444 - Use helper function to identify preloads. r=sicking 2015-11-19 17:02:40 -08:00
Nigel Babu
0fb4d58a20 Backed out changeset 9c8f83fb5930 (bug 1190093) for Gij(11) bustage on a CLOSED TREE 2015-11-19 17:48:09 +05:30
Ross Lovas
845889859b Bug 1190093 - Stop throttling frame requests for loading pages by checking Hidden(), not isShowing. r=tnikkel 2015-11-19 03:43:34 -06:00
Birunthan Mohanathas
1df11ed177 Bug 1217307 - Remove some unnecessary null checks in dom/base/. r=njn 2015-11-19 09:13:49 +02:00
Cameron McCormack
63320edfe2 Bug 990250 - Fold nsIStyleSheet into CSSStyleSheet. r=dbaron 2015-11-17 17:04:09 +11:00
Christoph Kerschbaumer
251e771c6d Bug 663570 - MetaCSP Part 3: Upgrade insecure requests changes (r=bz) 2015-11-14 19:28:38 -08:00
Christoph Kerschbaumer
f830e615e5 Bug 663570 - MetaCSP Part 1: CSP parser changes (r=sicking) 2015-11-14 19:27:59 -08:00
Kyle Huey
662c429aaa Bug 1224061: Make Event::InitEvent infallible. r=smaug 2015-11-13 08:09:42 +08:00
Carsten "Tomcat" Book
cb0cf95b91 merge mozilla-inbound to mozilla-central a=merge 2015-11-12 12:00:55 +01:00
Victor Porof
4fd5b0be0b Bug 1218078 - Show onload and DOMContentLoaded markers in the netmonitor's frontend, r=smaug, jsantell, tromey 2015-11-11 23:11:40 +01:00
Nicholas Nethercote
228a925ff0 Bug 1222943 (part 1) - Change Touch::mRadius from nsIntPoint to LayoutDeviceIntPoint. r=kats.
This adds a three missing unit conversions for touch radii.
2015-11-09 21:37:31 -08:00
Christoph Kerschbaumer
bc174c3990 Bug 1188028 - Queue up CSP console messages till windowID is available (r=sicking) 2015-11-11 06:23:57 -08:00
Nicholas Nethercote
ff2a5e6251 Bug 1187782 (part 14) - Replace nsBaseHashtable::EnumerateRead() calls in dom/base/ with iterators. r=khuey. 2015-11-09 14:16:04 -08:00
Nicholas Nethercote
0d41ccc5ca Bug 1187782 (part 13) - Replace nsBaseHashtable::EnumerateRead() calls in dom/base/ with iterators. r=khuey. 2015-11-09 14:16:03 -08:00
Nicholas Nethercote
6a05b9ac9c Bug 1187782 (part 12) - Replace nsBaseHashtable::EnumerateRead() calls in dom/base/ with iterators. r=khuey. 2015-11-09 14:16:02 -08:00
Nicholas Nethercote
9b94d9505e Bug 1187782 (part 11) - Replace nsBaseHashtable::EnumerateRead() calls in dom/base/ with iterators. r=khuey. 2015-11-08 20:55:05 -08:00
Nicholas Nethercote
9eb460ce7b Bug 1187782 (part 10) - Replace nsBaseHashtable::EnumerateRead() calls in dom/base/ with iterators. r=khuey. 2015-11-08 20:54:58 -08:00
Nicholas Nethercote
31dad746c2 Bug 1187782 (part 9) - Replace nsBaseHashtable::EnumerateRead() calls in dom/base/ with iterators. r=khuey. 2015-11-04 21:42:17 -08:00
Nicholas Nethercote
46b28d0680 Bug 1187782 (part 6) - Replace nsBaseHashtable::EnumerateRead() calls in dom/base/ with iterators. r=khuey. 2015-11-03 16:15:52 -08:00
L. David Baron
49afe71e91 Bug 978833 patch 14 - Pass mozilla::css::Rule instead of nsIStyleRule to nsIDocument/nsIDocumentObserver style rule methods. r=heycam
This also fixes bug 980560.

This is needed for patch 15, which will make the rules passed to these
methods no longer implement nsIStyleRule.

TODO (bug 1221908): Given the amount that these parameters are used (not
at all), perhaps we should have a followup on removing them and
simplifying these notifications?
2015-11-05 16:44:10 +08:00
Cameron McCormack
ff09e791fd Bug 1220496 - Create PresHint/StyleAttr rule processors in nsStyleSet::Init and make DirtyRuleProcessors private. r=bzbarsky 2015-11-05 18:24:22 +11:00
Ben Kelly
31e57f37fa Bug 1221279 Don't crash while clearing imgLoader cache when disconnected document is destroyed. r=smaug 2015-11-04 08:26:46 -08:00
Christoph Kerschbaumer
9953e37cb1 Bug 1188028 - Use channel->ascynOpen2 in dom/security/nsCSPContext.cpp (r=sicking) 2015-07-27 11:57:56 -07:00
Ehsan Akhgari
56c6b6acba Bug 1202085 - Part 6: Clear the entries in the image cache belonging to a controlled document when it gets destroyed; r=seth 2015-10-30 16:03:13 -04:00
Seth Fowler
1cb1719455 Bug 1207355 (Part 1) - Stop requesting decodes in nsDocument. r=tn 2015-10-29 16:37:42 -07:00
Phil Ringnalda
0576fa76c9 Back out 8 changesets (bug 1207355) for OS X 10.10 reftest failures in generated-content/
CLOSED TREE

Backed out changeset aafd6db2fbb4 (bug 1207355)
Backed out changeset 9dd950b837fb (bug 1207355)
Backed out changeset e941e0e106a1 (bug 1207355)
Backed out changeset ecebca101fcb (bug 1207355)
Backed out changeset 08f2017137e1 (bug 1207355)
Backed out changeset 3dc69e37c9b4 (bug 1207355)
Backed out changeset bcdf51edb121 (bug 1207355)
Backed out changeset 1d4c00dbf49a (bug 1207355)
2015-10-28 22:57:43 -07:00
Seth Fowler
dac63f0f91 Bug 1207355 (Part 1) - Stop requesting decodes in nsDocument. r=tn 2015-10-28 16:40:42 -07:00
Nicholas Nethercote
a0b6805739 Bug 1187782 (part 5) - Replace nsBaseHashtable::EnumerateRead() calls in dom/base/ with iterators. r=khuey. 2015-10-27 15:13:04 -07:00
Wes Kocher
c76555dd46 Merge fx-team to central, a=merge 2015-10-27 12:35:17 -07:00
Victor Porof
0ceb9155f2 Bug 859042 - Show onload and DOMContentLoaded markers in the timeline, r=smaug, jsantell 2015-10-27 13:10:08 +01:00
Kyle Huey
3c530551ba Bug 1216401: Eviscerate nsIDOMWindow, move still needed methods to nsPIDOMWindow. r=bz 2015-10-26 14:37:32 -07:00
Birunthan Mohanathas
68c551a17a Bug 1217320 - Remove more XPIDL signature comments in .cpp files. r=froydnj
Comment-only, DONTBUILD.
2015-10-27 06:54:25 +02:00
Cameron McCormack
b14353f25e Bug 1216043 - Rename nsStyleSheet::sheetType and make it an enum class. r=dbaron
The only substantive change here, apart from a few variables changing in
size from uint16_t to uint8_t, is FontFaceSet's use of SheetType::Unknown
(0xFF) instead of 0 for FontFaceRecords for script-created FontFaces.
2015-10-20 10:16:20 +11:00
Nathan Froyd
9c5965b035 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
Eric Rahm
26e457ac2f Bug 1214764 - Convert NS_ENSURE to a plain return in nsDocument::IsScriptEnabled. r=bholley 2015-10-16 11:20:38 -07:00
Boris Zbarsky
83e427089a Backing out changeset f6759ed53f46 (bug 799937) due to causing extension breakage. 2015-10-14 11:07:06 -04:00
Aryeh Gregor
8416474647 Bug 799937 - Make createElement()'s result always in the HTML namespace (except for XUL documents); r=bz
The new expected failures in web-platform are in a test that doesn't
match the spec, which has already been synced upstream and will be
synced shortly.  For the same test in imptests, I chose to modify the
test instead, because it's easier and imptests is going to be removed.
2015-10-14 11:16:08 +05:30
Zack Weinberg
9ceb4413b1 Bug 1035091 part 1: change CSS parser and loader APIs to distinguish UA, user, and author sheets instead of just UA vs everyone else. r=heycam 2015-10-13 17:43:16 -04:00
Aryeh Gregor
6e09c7da53 Bug 1213818 - Align document.title for SVG documents with HTML spec; r=bz
This allows setting, and for getting, pays attention to only children of
the root element (instead of all descendants as in HTML).
2015-10-13 18:14:43 +03:00
Xidorn Quan
f11e2b5f53 Bug 1212299 part 1 - Forbid documents inside elements other than iframe from requesting fullscreen. r=smaug 2015-10-12 11:24:23 +11:00
Xidorn Quan
05457cb75d Bug 1187801 part 3 - Add iframe fullscreen flag and stop auto-rollback when this flag presents. r=smaug 2015-10-08 17:47:39 +11:00
Xidorn Quan
4107d0c383 Bug 1187801 part 2 - Put clearing fullscreen state on element into an independent function. r=smaug 2015-10-08 17:47:39 +11:00
Xidorn Quan
ffb87f6427 Bug 1187801 part 1 - Rewrite nsDocument::RestorePreviousFullScreenState() to unify logic of reverting element in parent document. r=smaug 2015-10-08 17:47:39 +11:00
Xidorn Quan
278fd74c67 Bug 1126230 part 6 - Add nsIDocument::GetFullscreenStack() method. r=smaug 2015-10-07 14:04:32 +11:00
Nicholas Nethercote
a3789f553d Bug 1209351 (part 2) - Optimize nsTHashTable::RemoveEntry() usage in dom/. r=bz. 2015-09-24 19:05:16 -07:00
Kartikaya Gupta
6bd94506f0 Bug 1208023 - Avoid using a bad initial-scale when computing the CSS viewport. r=botond 2015-10-02 23:08:23 -04:00
Botond Ballo
6f5d9f43e2 Bug 1205511 - Use nsPresContext::DevToCSSPixelScale() where appropriate. r=kats 2015-09-28 20:14:26 -04:00
Nigel Babu
4e04894b0f Backed out 9 changesets (bug 1126230) for Mulet Gij(25) and M(5) failures
Backed out changeset 8a9d8a556183 (bug 1126230)
Backed out changeset 441b55f015c2 (bug 1126230)
Backed out changeset 7bfa2a2d4e29 (bug 1126230)
Backed out changeset b55511536c65 (bug 1126230)
Backed out changeset ada76e419aac (bug 1126230)
Backed out changeset 745d659bef49 (bug 1126230)
Backed out changeset 7c303cc4c30b (bug 1126230)
Backed out changeset 8bf708acbad4 (bug 1126230)
Backed out changeset 590404aac357 (bug 1126230)
2015-10-02 13:39:20 +05:30