Commit Graph
782 Commits
Author SHA1 Message Date
Carsten "Tomcat" Book 7e8280a552 Backed out changeset 7c3ddf34fc42 (bug 1377158) for stylo failures 2017-07-25 14:34:14 +02:00
KuoE0 0e8ef773ac Bug 1377158 - (Part 1) Make nsIDocumentLoaderFactory::createInstance() accept style backend type. r=heycam
MozReview-Commit-ID: L4kixMsCd8S
2017-07-12 16:30:32 +08:00
Daniel Holbert 00066ddb66 Bug 1349683: Give RevocableEventPtr a "move" assignment operator, and use it to reduce refcount churn. r=froydnj
MozReview-Commit-ID: 9JQXZJqebm2
2017-07-19 00:03:59 -07:00
Ed Lee 23383d68cd Bug 1382079 - Backed out changeset 5fc778386eb1 (Bug 1379762 part 3). r=bz
Revert "Bug 1379762 part 3.  Don't mess about with load blockers if our document is already in the COMPLETE readyState.  r=smaug"
This reverts commit 942614f701b47b4a650a0ec3d206d6c5921aba84.
2017-07-21 13:54:17 -07:00
Ryan Hunt 743715984e Bug 1379280 - Only do async keyboard scrolling for a selection, not a focused element. r=smaug
This commit changes async keyboard scrolling to be enabled only if the content to
scroll is from a selection. This works around the problem of detecting whether
an arbitrary element has key listeners that should prevent async key scrolling,
because when they have the focus we will have disabled async key scrolling.

MozReview-Commit-ID: 6HhSuGZNsMX
2017-07-13 15:53:26 -05:00
Boris Zbarsky c4bca142b7 Bug 1379762 part 3. Don't mess about with load blockers if our document is already in the COMPLETE readyState. r=smaug 2017-07-17 23:21:41 -04:00
Christoph Kerschbaumer d0b0191aa0 Bug 1377426 - Set CSP on freshly created nullprincipal when iframe is sandboxed. r=dveditz 2017-07-11 08:48:37 +02:00
Wes Kocher 6ca1412dc5 Merge inbound to central, a=merge 2017-07-10 18:43:02 -07:00
Boris Zbarsky 554cbc2b2a Bug 1371259 part 8. Get rid of nsIXPConnect::GetNativeOfWrapper. r=peterv
Most of these changes are just replacements of GetNativeOfWrapper with
UnwrapReflectorToISupports, which is all it did under the hood.

The other changes are as follows:

* In nsDOMClassInfo, we really care whether we have a window, so we can just
  UNWRAP_OBJECT to the Window interface, since Window is always on Web IDL
  bindings now.  Also, the weird compartment check hasn't been needed ever since
  GetNativeOfWrapper stopped returning things off the passed-in object's
  prototype chain (Firefox 22, bug 658909).
* The only use of do_QueryWrapper was to get a Window in nsDocument; again we
  can UNWRAP_OBJECT.
* In XPCJSRuntime, we again just want to check for a Window, so UNWRAP_OBJECT.
2017-07-10 16:05:25 -04:00
Cameron McCormack b5d0cd36b2 Bug 1377144 - Allow <style scoped> in about:reader documents. r=emilio
MozReview-Commit-ID: B2nkVYZXUFw
2017-07-10 15:59:20 +08:00
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