Xidorn Quan
7ec9ab4c5a
Bug 1376130 - Don't notify page-{shown,hidden} observers or dispatch pageshow/pagehide events when the document is an SVG used as image. r=smaug
...
MozReview-Commit-ID: 45L1MBYqTeK
2017-06-30 11:26:14 -07:00
Cameron McCormack
fa8acf4d55
Bug 1376805 - Disable stylo for about: pages other than about:blank. r=bholley
...
MozReview-Commit-ID: F3gSY2uDGJ7
2017-06-28 10:17:45 -07:00
Carsten "Tomcat" Book
372571d466
merge mozilla-inbound to mozilla-central a=merge
2017-06-27 10:56:41 +02:00
Bill McCloskey
ce42826bdf
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Masatoshi Kimura
a725dc3e13
Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
...
MozReview-Commit-ID: GF0YXDwfA14
2017-06-18 20:37:50 +09:00
Carsten "Tomcat" Book
911b7bbf48
merge mozilla-inbound to mozilla-central a=merge
2017-06-26 13:25:51 +02:00
Mats Palmgren
d2f98df8be
Bug 1375696 - Use LookupForAdd instead of Get+Put, and Lookup instead of GetWeak+Remove, to avoid unnecessary hashtable lookups. r=froydnj
...
MozReview-Commit-ID: EPbMZAsdS6B
2017-06-24 19:23:08 +02:00
Mats Palmgren
4fafc9a5bc
Bug 1375698 part 2 - Make mBoxObjectTable a nsRefPtrHashtable of BoxObject instead of nsInterfaceHashtable of nsPIBoxObject (that we then need to downcast). r=bz
...
MozReview-Commit-ID: AVfZZp21u2e
2017-06-24 19:23:08 +02:00
Mats Palmgren
57470d2324
Bug 1375698 part 1 - Call "new BoxObject" instead of do_CreateInstance(contractID) and remove some unnecessary error handling since "new" is infallible. r=bz
...
MozReview-Commit-ID: 32upaFJehsh
2017-06-24 19:23:07 +02:00
Cameron McCormack
542bcca28c
Bug 1291515 - Part 1: Introduce a pref for <style scoped>. r=bholley,dbaron
...
MozReview-Commit-ID: 1J9IvPrC0xh
2017-06-21 09:25:43 +08:00
Sebastian Hengst
9736fc0664
Backed out changeset 7235d05662b0 (bug 1373984) for Android bustage. r=backout on a CLOSED TREE
2017-06-25 18:30:13 +02:00
Masatoshi Kimura
cff1fdcb48
Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
...
MozReview-Commit-ID: GF0YXDwfA14
2017-06-18 20:37:50 +09:00
Wes Kocher
d214d1f5fa
Backed out changeset 77af189b5c49 (bug 1373984) for build bustage in nsHtml5Parser.cpp a=backout CLOSED TREE
...
MozReview-Commit-ID: 6kBmU71j2To
2017-06-25 05:10:14 -07:00
Masatoshi Kimura
d3e74dcb2d
Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
...
MozReview-Commit-ID: GF0YXDwfA14
2017-06-18 20:37:50 +09:00
Kirk Steuber
38e0db0da1
Bug 1375189 - Don't use aNodesWithProperties in nsNodeUtils::CloneAndAdopt if it is not needed r=bz
...
MozReview-Commit-ID: 9vu3HCQkDKf
2017-06-21 11:55:04 -07:00
Nicolas B. Pierron
3125921cda
Bug 1362114 - JSBC: Add telemetry to later tune the heuristics. r=mrbkap,francois
2017-06-20 09:53:10 +00:00
Carsten "Tomcat" Book
bbe9441993
Backed out changeset 9846de3bd954 (bug 1372405)
2017-06-20 08:27:02 +02:00
Bill McCloskey
f69608368b
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Ehsan Akhgari
0d67e76fe5
Bug 1373677 - Remove support for the moz-extremely-unstable-and-will-change-webcomponents permission; r=wchen
2017-06-19 22:12:24 -04:00
Carsten "Tomcat" Book
b607cb23ed
merge mozilla-inbound to mozilla-central a=merge
2017-06-19 13:37:20 +02:00
Christoph Kerschbaumer
453bb0b809
Bug 1370788 - Move XFO out of nsDSURIContentListener.cpp into dom/security. r=smaug
2017-06-19 06:59:44 +02:00
Masatoshi Kimura
bbe33d305d
Bug 1369020 - Remove nsContentUtils::ConvertStringFromEncoding and nsContentUtils::CheckForBOM. r=hsivonen
...
MozReview-Commit-ID: E0w8BsP1Rof
2017-06-16 21:11:03 +09:00
Xidorn Quan
a63d6abe88
Bug 1359217 part 1 - Make document nsIDocumentObserver::StyleRule* methods include the rule as parameter. r=bz
...
MozReview-Commit-ID: H8FgiwCv0Gr
2017-06-19 15:45:43 +10:00
Sebastian Hengst
c96841ece7
merge mozilla-inbound to mozilla-central. r=merge a=merge
...
MozReview-Commit-ID: 5wTyHWufcCh
2017-06-16 09:50:00 +02:00
Bill McCloskey
85355b4f89
Bug 1372733 - EventTargetFor should return an nsISerialEventTarget (r=bkelly)
...
MozReview-Commit-ID: Kchg4kqBERt
2017-06-15 20:16:25 -07:00
Cameron McCormack
d4b478fc05
Bug 1373155 - Disable Web Components in Servo-styled documents. r=wchen
...
MozReview-Commit-ID: 5IBBN2Gfazs
2017-06-15 19:39:58 +08:00
Henri Sivonen
1804c94f3b
Bug 1372994 - Clear up leftover ISO-8859-1 encoding names. r=emk
...
MozReview-Commit-ID: IBuUPa9H9Q2
2017-06-15 10:35:22 +03:00
Mats Palmgren
e8b6c25f3a
Bug 1372259 - Use LookupForAdd instead of Get+Put to avoid unnecessary hashtable lookups. r=froydnj
...
MozReview-Commit-ID: 5wTxn8HESyn
2017-06-14 16:11:21 +02:00
Mats Palmgren
957c6e246f
Bug 1372008 - Use mPreloadedPreconnects.LookupForAdd instead of Contains+Put to avoid unnecessary hashtable lookups. r=froydnj
...
MozReview-Commit-ID: 6TwXdVhYQYE
2017-06-14 01:54:26 +02:00
Ben Kelly
d7552a9f9d
Bug 1197401 Remove the disabled HTML imports implementation. r=wchen
2017-06-12 07:36:02 -07:00
Mats Palmgren
4339227f60
Bug 1370654 - Use mPendingLoads.GetOrInsert() to avoid a second hashtable lookup for Put(). Remove a redundant Get() before Remove(). r=froydnj
...
MozReview-Commit-ID: 36rxXpEwKcB
2017-06-08 12:48:32 +02:00
Christoph Kerschbaumer
e76e8e5e6a
Bug 1024557 - Ignore x-frame-options if CSP with frame-ancestors exists. r=smaug
2017-06-07 21:17:49 +02:00
Brad Werth
6e1c9dec3d
Bug 1369903 Part 1: Remove over-specified stylesheet calls in nsDocument. r=emilio
...
MozReview-Commit-ID: 6YHC0vvvrtn
2017-06-05 08:49:21 -07:00
Christoph Kerschbaumer
dafda3db17
Bug 1363975 - Have loadOneTab() provide the correct triggeringPrincipal. r=gijs,smaug
2017-05-31 20:59:02 +02:00
Jonathan Kew
116a1e3d84
Bug 1368654 - pt 1 - Implement memory reporter support for FrameProperties. r=mats
2017-05-31 19:52:47 +01:00
Carsten "Tomcat" Book
6b72a34215
Merge mozilla-central to autoland + + UPGRADE_NSS_RELEASE
2017-05-30 11:55:06 +02:00
Masayuki Nakano
61876e44c2
Bug 1367683 Optimize initializing nsRange r=smaug
...
nsRange::DoSetRange() adds/remove its root to/from mutation observer, initializes common ancestor, registers itself to the common ancestor, unregisters itself from old common ancestor, and notifies selection listeners of selection change.
However, those runtime cost is expensive but on the other hand, a lot of callers set both start and end of the range and that causes calling DoSetRange() twice.
This patch renames Set() to SetStartAndEnd() for easier to understand the meaning and make it call DoSetRange() only once.
MozReview-Commit-ID: FRV55tuBAgg
2017-05-30 13:18:25 +09:00
Ehsan Akhgari
bfc5e1dbb3
Bug 1361709 - Move FlushPendingLinkUpdatesFromRunnable to idle dispatch; r=smaug
2017-05-29 16:22:24 -04:00
Boris Zbarsky
f364d500c6
Bug 1364360 part 1. Make Element::GetScrollFrame follow the spec more closely in the quirks mode case. r=ehsan
2017-05-25 13:39:44 -04:00
Ting-Yu Lin
b8f0384e83
Bug 1363640 Part 2 - Move the logic in SupportsServoStyleBackend() to UpdateStyleBackendType(). r=heycam
...
SupportsServoStyleBackend() uses methods in nsIDocument, so it would be more
straightforward to do that in UpdateStyleBackendType().
Also, call StyloEnabled() before doing other logic so that the warning about
"no docshell" won't show up when stylo is built but disabled.
MozReview-Commit-ID: 9ZUYatPBv1r
2017-05-09 18:33:57 -07:00
Ting-Yu Lin
672280851d
Bug 1363640 Part 1 - Move IsContentDocument() and IsTopLevelContentDocument() from nsDocument to nsIDocument. r=heycam
...
In this way, the callers who have nsIDocument don't need to cast to nsDocument.
MozReview-Commit-ID: 8zVUjkbrlaG
2017-05-09 18:28:36 -07:00
Bill McCloskey
4a7e0b4811
Bug 1365184 - Fix docgroup mismatch during cycle collection (r=smaug)
...
MozReview-Commit-ID: Ld68RGU6lmB
2017-05-23 12:04:31 -07:00
Sebastian Hengst
09a5305d26
Backed out changeset 44635c073692 (bug 1345058) on suspicion of causing intermittent xpcshell failures in toolkit/components/url-classifier/tests/unit/test_bug1274685_unowned_list.js on OS X. r=backout
2017-05-19 13:13:18 +02:00
Henry Chang
53df2ddfd9
Bug 1345058 - Asynchronously decide if a flash document should be blocked. r=baku,bytesized
...
Technically speaking, we use the new async API 'nsIURIClassifier.asyncClassifyLocalWithTables'
to replace the old sync API. However, since we cannot guarantee the async call will be done when
we neet its result, we need a sync call as a fallback in this case. This is a sub-optimal
solution and we will be investigating if there's a better solution if the sync call
is used too frequently.
MozReview-Commit-ID: L1uQ2eaYr1e
2017-05-10 15:32:34 +08:00
Carsten "Tomcat" Book
ca52a53101
Backed out changeset 37d295d7eec9 (bug 1347791)
2017-05-17 08:11:07 +02:00
Alastor Wu
e20ed47b06
Bug 1347791 - part3 : move block/resume logic from back-end to front-end. r=baku,mikedeboer
...
Previous design allows us calling resume/block from both front-end and back-end,
it's not easy to know who called these operations.
So move all these logic to frond-end side, it's more clear than before.
One important thing is that we should block tab before loading the content.
If we block the tab after loading, the media might not be blocked because it had
already started (that is one situation I observed from test).
The value of block state would be stored in the outer window, before media want
to start, it would check this value to know whether it can start playing or not.
---
In addition, introduce new attribute "media-blocked".
The "media-blocked" attribute indicates that whether the tab is allowed to play autoplay media.
The "activemedia-blocked" attribute indicates whether the tab has blocked the autoplay media.
MozReview-Commit-ID: FnNh3zmItxo
2017-05-17 11:56:06 +08:00
Benjamin Smedberg
a69d5e3644
Bug 1335475 - Deny plugins from non-HTTP/HTTPS origins. r=bytesized,qdot
...
MozReview-Commit-ID: 3kPeycfMWVw
2017-03-07 09:34:03 -05:00
Daniel Holbert
b8f558366f
Bug 1364180: In nsDocument::ResetToURI(), clear mCachedRootElement immediately after that element is removed. r=bz
...
Previously, we cleared mCachedRootElement a bit later -- after removing *all*
of the children and calling nsNodeUtils::ContentRemoved() and UnbindFromTree on
each of them. This was problematic, because these cleanup functions can
involve calls to GetRootElement() -- and prior to this patch, any such
GetRootElement() calls would likely return the stale value in
mCachedRootElement.
Now, with this patch, we'll be clearing mCachedRootElement
sooner, so these GetRootElement() calls will return the correct current root
(which will likely be null in this case, since we're emptying the document of
children).
MozReview-Commit-ID: 8skGJyic1pC
2017-05-11 13:14:08 -07:00
Andrea Marchesini
b813058b9d
Bug 1363429 - Get rid of nsIDOMLocation, r=bz, r=honza, f=ochameau
2017-05-11 07:26:08 +02:00
Iris Hsiao
68dd07eb3d
Backed out changeset c56bd0d1e7c9 (bug 1363429) for build bustage, using-declaration causes a multiple declaration of 'nsIDocument::GetLocation'
2017-05-11 13:55:40 +08:00