Andrea Marchesini
d0b50071c8
Bug 1341218 - nsNullPrincipal should serialize its URL, r=qdot
2017-02-23 14:30:23 +01:00
Jessica Jong
94e413bc23
Bug 1335356 - Part 2: Rename nsContentUtils::NameChanged to QNameChanged and use null prefix. r=smaug
2017-02-20 22:44:00 -05:00
Sebastian Hengst
c171511b3c
Backed out changeset a6267555a244 (bug 1341218) for various test failures, e.g. xpcshell test dom/push/test/xpcshell/test_service_parent.js. r=backout
2017-02-22 11:21:37 +01:00
Andrea Marchesini
0626b9d52e
Bug 1341218 - nsNullPrincipal should consider its URI in ::Write/::Read, r=qdot
2017-02-22 10:01:43 +01:00
Michael Layzell
01804ef221
Bug 1338241 - Part 2: Simplify the in large allocation process logic, r=smaug
...
MozReview-Commit-ID: 6aF2wlLgy42
2017-02-17 12:00:45 -05:00
Andrea Marchesini
3043646e52
Bug 1339871 - Splitting dom/file/File.{h,cpp}, r=smaug
...
--HG--
rename : dom/file/File.cpp => dom/file/BaseBlobImpl.cpp
rename : dom/file/File.h => dom/file/BaseBlobImpl.h
rename : dom/file/File.cpp => dom/file/Blob.cpp
rename : dom/file/File.h => dom/file/Blob.h
rename : dom/file/File.cpp => dom/file/BlobImpl.cpp
rename : dom/file/File.h => dom/file/BlobImpl.h
rename : dom/file/File.cpp => dom/file/EmptyBlobImpl.cpp
rename : dom/file/File.h => dom/file/EmptyBlobImpl.h
rename : dom/file/File.cpp => dom/file/FileBlobImpl.cpp
rename : dom/file/File.h => dom/file/FileBlobImpl.h
rename : dom/file/File.cpp => dom/file/MemoryBlobImpl.cpp
rename : dom/file/File.h => dom/file/MemoryBlobImpl.h
rename : dom/file/File.cpp => dom/file/StreamBlobImpl.cpp
rename : dom/file/File.h => dom/file/StreamBlobImpl.h
rename : dom/file/File.h => dom/file/StringBlobImpl.h
rename : dom/file/File.h => dom/file/TemporaryBlobImpl.h
2017-02-16 18:26:38 +01:00
Andrea Marchesini
d645509982
Bug 1340118 - Fix an wrong use of ErrorResult in nsContentUtils::TransferableToIPCTransferable, r=smaug
2017-02-16 18:25:22 +01:00
Wes Kocher
017c515285
Merge inbound to m-c a=merge
...
MozReview-Commit-ID: IKI0zVtF1n9
2017-02-15 16:18:13 -08:00
Ben Kelly
0e176007bb
Bug 1322111 P1 Add TYPE_INTERNAL_WORKER_IMPORT_SCRIPTS content policy type. r=ckerschb
2017-02-15 09:55:58 -05:00
Sylvestre Ledru
9a3ff09f1a
Bug 1338086 - Remove useless else blocks in order to reduce complexity in dom/base/ r=Ehsan
...
MozReview-Commit-ID: 5sCNbqC4ew3
--HG--
extra : rebase_source : ca9b4b02d3f438cf7e907bf0c32623d7ab9e6bc9
2017-02-09 15:44:02 +01:00
Wes Kocher
c8fa3242ab
Merge m-c to inbound, a=merge
...
MozReview-Commit-ID: Lt0WpWkto4h
2017-02-13 17:07:33 -08:00
Tomislav Jovanovic
cfdba143c5
Bug 1312260 - Part 1: Allow access to execCommand("paste") with permission r=bz
...
MozReview-Commit-ID: B1sfhsQWWQa
--HG--
extra : rebase_source : 533fc39c52733cc9d3f0eb7ff0558dab36f6263d
2017-02-09 15:09:22 +01:00
Masayuki Nakano
5442d350f3
Bug 1337739 Create an enum eKeyLocation* for avoiding to use nsIDOMKeyEvent::DOM_KEY_LOCATION_* r=smaug
...
Currently, we use alias NS_VK_* for WidgetKeyboardEvent::mKeyCode. Similarly, we should create alias enum for nsIDOMKeyEvent::DOM_KEY_LOCATION_*. Then, we can reduce the length and avoid to include nsIDOMKeyEvent in some cpp files.
MozReview-Commit-ID: 5cs4zQ061Lc
--HG--
extra : rebase_source : e6a6edd27718b9e3d4a40b07902d029791876999
2017-02-08 21:04:22 +09:00
Tim Huang
756cf900c9
Bug 1336802 - Part 2: Updating the whole code base to make sure nsILoadInfo get null check. r=smaug
...
--HG--
extra : rebase_source : 22149fd540fd02119afe9fe5c9a815d01cf959c1
2017-02-07 11:49:34 +08:00
Wes Kocher
7f456db28c
Merge m-c to autoland, a=merge
...
MozReview-Commit-ID: 2iqmlA6R1S4
2017-02-06 17:52:26 -08:00
Andrea Marchesini
869af55a16
Bug 1335678 - Revert patch for bug 1302566, r=ehsan
2017-02-06 16:37:15 +01:00
Tom Tung
e185f7bc4c
Bug 1220936 - Flush console report to innerWindowID by using nsIDocument and nsILoadGroup. r=bkelly.
2017-02-06 09:19:34 +08:00
Tomislav Jovanovic
22c41867ed
Bug 1335890 - Factor out nsContentUtils::SubjectPrincipal version that takes JSContext r=bz
...
MozReview-Commit-ID: CGRipgKUm7g
--HG--
extra : rebase_source : 33c2dbd7eaad80a3e523113aa8217ba1e086572a
2017-02-05 23:19:26 +01:00
Andrea Marchesini
1fd70e0029
Bug 1336020 - transferables should be arrays of objects, r=smaug
2017-02-03 11:00:38 +01:00
Carsten "Tomcat" Book
72823b1e95
merge mozilla-inbound to mozilla-central a=merge
2017-02-02 14:25:20 +01:00
Wes Kocher
f5eab47fb9
Merge m-c to autoland, a=merge
...
MozReview-Commit-ID: HVH8TbXbw7N
2017-02-01 16:30:50 -08:00
Eric Rahm
84dd992f72
Bug 1335477 - Stop warning if content type is emtpy. r=jya
2017-02-01 10:58:58 -08:00
Tomislav Jovanovic
460e6f68ee
Bug 1310318 - Part 1: Allow access to canvas drawWindow() with web extensions permission r=bz
...
MozReview-Commit-ID: 4ee3pRfduIj
--HG--
extra : rebase_source : 428cf25f732c27ffd34e1a47105a96919c3cb36e
extra : source : 1063bdd7940796e9c4e8634b82d55f417e289e28
2017-02-01 21:47:59 +01:00
Michael Layzell
086fc9186e
Bug 1331087 - Part 1: Disable the largeAllocation header by default outside of Win32 builds, r=ehsan
...
MozReview-Commit-ID: 4jUFLv4fMZa
2017-01-31 14:08:20 -05:00
Michael Layzell
59bf5ae02d
Bug 1334586 - Propagate reload flags when reloading pages with Large-Allocation headers, r=smaug
...
MozReview-Commit-ID: ESfCqSc0BJK
2017-01-31 14:08:20 -05:00
Michael Layzell
7a66b1dc95
Bug 1334210 - Handle Large-Allocation process exhaustion more smoothly, r=ehsan
...
MozReview-Commit-ID: KxnFTSXxWVi
2017-01-31 14:08:20 -05:00
Andrea Marchesini
6278ae48c8
Bug 1302566 - Get rid of nsContentUtils::IsInPrivateBrowsing, r=ehsan
2017-01-27 16:53:44 +01:00
Boris Zbarsky
4dafb92c93
Bug 1335368 part 4. Stop using IsCallerChrome in nsContentUtils::IsRequestFullScreenAllowed. r=bholley
2017-02-01 15:43:36 -05:00
Boris Zbarsky
80365681f6
Bug 1335368 part 3. Stop using IsCallerChrome in nsContentUtils::IsCutCopyAllowed(). r=smaug
2017-02-01 15:43:36 -05:00
Boris Zbarsky
4d33eb6307
Bug 1338725 part 1. Change the matcher functions used for nsContentList to take an Element argument, not nsIContent. r=baku
2017-02-13 16:06:45 -05:00
Andrea Marchesini
6cda1f7a20
Bug 1333077 - Remove 'temporary' attribute in File, r=qdot
2017-01-24 12:11:07 +01:00
Sebastian Hengst
e3d93fdf34
Backed out changeset 2e942ed64921 (bug 1302566) for mass test failures after asserting isPrivate == mRespectPrivacy at imgLoader.cpp:2072. r=backout on a CLOSED TREE
2017-01-23 13:25:19 +01:00
Andrea Marchesini
27afefa942
Bug 1302566 - Get rid of nsContentUtils::IsInPrivateBrowsing, r=ehsan
2017-01-23 12:36:01 +01:00
Ehsan Akhgari
b3e5ce4a2d
Bug 1319908 - Load the menu icons for the bookmarks menu with the correct content type and principal on OSX; r=baku
...
This patch makes nsMenuItemIconX also participate in the setup
introduced in bug 1277803.
2017-01-20 10:55:23 -05:00
Michael Layzell
d622591233
Bug 1331525 - Send the Large-Allocation success message to the correct document, r=ehsan
...
MozReview-Commit-ID: E44hlMI2EE3
2017-01-19 15:26:28 -05:00
Christoph Kerschbaumer
be82c7af85
Bug 1329032 - Extend loadURIWithOptions by a triggeringPrincipal. r=bz,gijs
2017-01-18 08:24:55 +01:00
Wes Kocher
cb7e0bda60
Backed out 2 changesets (bug 1329032) for failures a=backout
...
Backed out changeset 16c4f0df527d (bug 1329032)
Backed out changeset 54f7bfe3ca11 (bug 1329032)
MozReview-Commit-ID: ChGyTdJvT8N
2017-01-17 14:08:10 -08:00
Christoph Kerschbaumer
05287d4fa8
Bug 1329032 - Extend loadURIWithOptions by a triggeringPrincipal. r=bz,gijs
2017-01-17 21:52:01 +01:00
Andrea Marchesini
359ae91eac
Bug 1328653 - Merging all the various *OriginAttributes to just one, r=huseby
2017-01-12 17:38:48 +01:00
Bill McCloskey
8ebd98768a
Back out bug 1323207, part 2 - Assert early if we're painting at various points we enter JS (a=backout)
...
This reverts commit cc6bc31c9f3fb10877292b31c1cf26927856a837.
MozReview-Commit-ID: Dljoh4lYVZ9
2017-01-11 13:20:21 -08:00
Michael Layzell
f2c6e39bb7
Bug 1328620 - Rename LargeAllocationRelatedBrowsingContexts to reflect new content, r=smaug
...
MozReview-Commit-ID: AQVqIFKObsI
2017-01-06 16:48:47 -05:00
Cameron McCormack
babad063ff
Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky
...
MozReview-Commit-ID: D3fIngSHSsl
2017-01-05 15:31:56 +08:00
Thomas Nguyen
0aaea58b69
Bug 1304623 - Create a pref to control the default referrer policy - part 3. r=bkelly
...
MozReview-Commit-ID: 1A6IHPeNYBQ
2017-01-05 11:29:56 +08:00
Christoph Kerschbaumer
63fe5cb0bb
Bug 1182569 - Skip security check for plugins using newstream attribute. r=smaug
2017-01-03 20:59:54 +01:00
Michael Layzell
f24af1792b
Bug 1324359 - Rename and simplify the DocShell ProcessLock concept, r=smaug
...
MozReview-Commit-ID: JTp8Q2mWqpN
2017-01-03 17:00:25 -05:00
Ho-Pang
7bc745d410
Bug 1299209 - Part 2: Support setting pointerId in nsDOMWindowwUtils and nsContentUtils. f=sshih, r=smaug
...
--HG--
extra : rebase_source : 46affaf510908e28ad47df2e088574d33aa52be3
2016-12-20 23:06:00 -05:00
Catalin Badea
835fb3fcef
Bug 1181127 - Fix nsContentUtils::FormatLocalizedString NS_ASSERTION. r=bkelly
...
nsStringBundle::FormatStringFromName asserts that GetStringFromName
should be used when the error message has no parameters.
2016-12-19 04:38:53 +02:00
Andrew McCreight
02491ce187
Bug 1323207, part 2 - Assert early if we're painting at various points we enter JS. r=billm
...
nsContentUtils::IsPatternMatching is the most common by far, but the
other is a generic location that may cover a number of issues.
MozReview-Commit-ID: Kli39btsqdd
--HG--
extra : rebase_source : 9ffdafb1f6654a90ab5e93594ffcb11e987f2b5e
2016-12-14 16:28:57 -08:00
Sebastian Hengst
22179cd574
Backed out changeset 491237dbcb5d (bug 1323207)
2016-12-16 20:06:43 +01:00
Andrew McCreight
d8103c4981
Bug 1323207, part 2 - Assert early if we're painting at various points we enter JS. r=billm
...
nsContentUtils::IsPatternMatching is the most common by far, but the
other two are generic locations that may cover a number of issues.
MozReview-Commit-ID: Kli39btsqdd
--HG--
extra : rebase_source : 1a7eda2a711f079978b54012d9c7466bbd6de36f
2016-12-14 16:28:57 -08:00
Cameron McCormack
382ed70f19
Bug 1321284 - Part 4: Factor out AllChildrenIterator's getting of document level NAC to a utility method. r=bholley
...
MozReview-Commit-ID: 862Yi82D2Ij
--HG--
extra : rebase_source : d612e27061ec3ccec3c30792127a53bb7010d30c
2016-12-03 09:37:00 +08:00
Henri Sivonen
a36fff43c5
Bug 741776 - Treat JSON, WebVTT and AppCache manifests as UTF-8 when loaded as plain text. r=Ehsan
...
MozReview-Commit-ID: 5UvYqJVvX0r
--HG--
extra : rebase_source : 5a6f3dfd97fb06810fde9a4b8b650a7a922a7c20
2016-06-09 14:29:30 +03:00
Boris Zbarsky
23cc88e459
Bug 1319255 part 2. Stop doing casts to HTMLContentElement* simply based on tag. r=wchen
2016-11-22 22:41:51 -05:00
Boris Zbarsky
584dd93891
Bug 1316616 part 2. Add an nsContentUtils API for getting the CallerType of a JSContext. r=bholley
2016-11-18 16:13:06 -05:00
Wes Kocher
f9e9d69899
Merge inbound to m-c a=merge CLOSED TREE
2016-11-16 17:07:26 -08:00
Ehsan Akhgari
eac76d9772
Bug 1310845 - Remove support for mozapp iframes; r=fabrice,jryans,baku,mcmanus
...
This patch removes support for mozapp iframes, leaving support for
mozbrowser iframes intact. Some of the code has been rewritten in order
to phrase things in terms of mozbrowser only, as opposed to mozbrowser
or app. In some places, code that was only useful with apps has been
completely removed, so that the APIs consumed can also be removed. In
some places where the notion of appId was bleeding out of this API, now
we use NO_APP_ID. Other notions of appId which were restricted to this
API have been removed.
2016-11-16 09:13:38 -05:00
Andi-Bogdan Postelnicu
ae0295a290
Bug 1317241 - Replace string literals containing escaped characters with raw string literals in dom/. r=baku
...
MozReview-Commit-ID: FGjPRf0g3Yt
--HG--
extra : rebase_source : efe73faf1a5d3f26efea56e985bdbb586a6d1da8
2016-11-14 11:45:55 +02:00
Andi-Bogdan Postelnicu
aaf2063029
Bug 1317241 - Replace default bodies of special member functions with = default in dom/. r=baku
...
MozReview-Commit-ID: 12AHOhrpaNO
--HG--
extra : rebase_source : 7881277a13fe7389b95635ee9b94f1686f56d142
2016-11-14 11:40:37 +02:00
Andi-Bogdan Postelnicu
4df235170d
Bug 1317241 - Use auto type specifier where aplicable for variable declarations to improve code readability and maintainability in dom/. r=baku
...
MozReview-Commit-ID: CST7fV4h20h
--HG--
extra : rebase_source : 663d24e9c15d7b42023f1557b75fb8dabfc9b6a9
2016-11-14 11:35:58 +02:00
Andi-Bogdan Postelnicu
b43be84495
Bug 1317241 - Converts for(...; ...; ...) loops to use the new range-based loops in C++11 in dom/. r=baku
...
MozReview-Commit-ID: ysMKgcL3YQ
--HG--
extra : rebase_source : 37ac432e1bca84a6ab34ab2b84577b6702ba6413
2016-11-14 11:31:11 +02:00
Thomas Nguyen
b169621e2e
Bug 1264792 - Update request'referrer policy when redirect.r=bkelly,dragana.
...
MozReview-Commit-ID: 3V6W0fuRomZ
--HG--
extra : rebase_source : 4b708f9646ea42ef40c60ba0b7a86e14edf621e3
2016-11-14 15:15:32 +08:00
Sylvestre Ledru
30ee480275
Bug 1317430 - Avoid a unnecessary copy by passing a const & in dom/base/ r=smaug
...
MozReview-Commit-ID: A70LY4ekX8E
--HG--
extra : rebase_source : e370a9637d5c57507feb2dee164145a5992b5645
2016-11-14 23:15:46 +01:00
Michael Layzell
d53091c307
Bug 1314792 - Extract process changing logic into nsContentUtils::GetDocShellProcessLock, r=bkelly
...
MozReview-Commit-ID: FI0pIvHPN0h
2016-11-04 13:40:55 -04:00
Michael Layzell
209fba3a7f
Bug 1304140 - Part 1: Implement support for the Large-Allocation header behind the dom.largeAllocationHeader.enabled pref, r=smaug
...
MozReview-Commit-ID: 5KBIu6Fc3Ea
2016-10-31 16:38:54 -04:00
Shih-Chiang Chien
2e3eadd9df
Bug 1291971 - Part 6, enable receiver idlharness test. r=smaug.
...
MozReview-Commit-ID: BDZ8daA2gpj
--HG--
extra : rebase_source : 70595ad9e8e56856c464fa12c2c2eeadc9e48063
2016-10-20 11:27:55 +08:00
Andrea Marchesini
fa19ea68e4
Bug 1312412 - Introducing BlobImplString, r=smaug
2016-10-25 07:53:54 +02:00
Eric Rahm
1eb4ae7e0d
Bug 1309698 - Remove usage of nsISupportsArray from nsIDragService. r=smaug
2016-10-18 11:56:20 -07:00
John Dai
48b937b61e
Bug 1309140 - Rename CustomElementsRegistry to CustomElementRegistry. r=wchen, r=smaug
...
MozReview-Commit-ID: 3gYTaRVcV0y
--HG--
rename : dom/base/CustomElementsRegistry.cpp => dom/base/CustomElementRegistry.cpp
rename : dom/base/CustomElementsRegistry.h => dom/base/CustomElementRegistry.h
rename : dom/webidl/CustomElementsRegistry.webidl => dom/webidl/CustomElementRegistry.webidl
2016-10-12 15:26:02 +08:00
Eric Rahm
52edf921c1
Bug 1310017 - Remove nsISupportsArray usage from nsITransferable and nsIFormatConverter. r=smaug
...
This converts |nsITransferable.flavorsTransferableCanExport| and
|nsITransferable.flavorsTransferableCanImport| to return a |nsIArray|.
|nsIFormatConverter.getInputDataFlavors| and
|nsIFormatConverter.getOutputDataFlavors| are updated as well.
2016-10-16 12:43:56 -07:00
Tim Huang
372ec56ff4
Bug 1277803 - Part 1 : Add a new ContentPolicy TYPE_INTERNAL_IMAGE_FAVICON for indicating a favicon loading. r=ckerschb
2016-10-13 15:43:54 +08:00
Wes Kocher
2142de26c1
Backed out 8 changesets (bug 1277803) for browser-chrome test failures a=backout
...
Backed out changeset 477890efdb88 (bug 1277803)
Backed out changeset 49da326bfe68 (bug 1277803)
Backed out changeset 2d17a40a9077 (bug 1277803)
Backed out changeset b1cb0a195ca1 (bug 1277803)
Backed out changeset c7d82459d152 (bug 1277803)
Backed out changeset 3be9a06248af (bug 1277803)
Backed out changeset 8d119ca96999 (bug 1277803)
Backed out changeset be767a6f7ecd (bug 1277803)
2016-10-12 14:26:00 -07:00
Tim Huang
0ceca5575d
Bug 1277803 - Part 1 : Add a new ContentPolicy TYPE_INTERNAL_IMAGE_FAVICON for indicating a favicon loading. r=ckerschb
2016-10-12 17:32:03 +08:00
Gerald Squelart
f600196067
Bug 1176218 - p1. Constify nsContentTypeParser::Get... methods - r=froydnj
...
GetType() and GetParameter() don't actually modify the nsContentTypeParser
object, so we can make them const.
It makes it possible to pass the parser as a const-ref, which I think makes
sense as getters (even those doing some actual work) are usually const.
MozReview-Commit-ID: 9vmqKbmt8y8
--HG--
extra : rebase_source : d07371c8cdcf116952bffafad0cd6cda78f59b20
2016-10-04 16:19:15 +11:00
Phil Ringnalda
46dddfc99b
Backed out 8 changesets (bug 1277803) for frequent failures in browser_privatebrowsing_favicon.js
...
Backed out changeset a046eef2014c (bug 1277803)
Backed out changeset 61947b3073ba (bug 1277803)
Backed out changeset ef181cdd290f (bug 1277803)
Backed out changeset b6ea3bd24359 (bug 1277803)
Backed out changeset 835470de461d (bug 1277803)
Backed out changeset f4adcb16d1ec (bug 1277803)
Backed out changeset 58c23d794ba5 (bug 1277803)
Backed out changeset f29f88c5c1b9 (bug 1277803)
2016-10-07 18:41:27 -07:00
Tim Huang
b7324dcec9
Bug 1277803 - Part 1: Add a new ContentPolicy TYPE_INTERNAL_IMAGE_FAVICON for indicating a favicon loading. r=ckerschb
...
--HG--
extra : rebase_source : 75a1dadecd0ef86940ab309d673aeffbf72013af
2016-10-04 11:56:14 +08:00
Nathan Froyd
70d6d5515f
Bug 1305422 - part 5 - simplify Is8bit; r=baku
...
The implementation of Is8bit, with its multiply-nested loops, dates from
the time when string iterators could be fragmented into multiple pieces.
We no longer have such iterators, so we can write Is8bit much more
straightforwardly, with the single loop you would expect.
2016-09-29 22:33:58 -04:00
John Dai
67c1584d51
Bug 838954 - Backout newlines lost in .innerHTML serialization of <pre> when first character is a newline. r=smaug
2016-09-22 02:42:00 -04:00
Wes Kocher
4fec8fe947
Backed out changeset 7e898928c51b (bug 838954) for lint failures a=backout CLOSED TREE
2016-09-21 12:44:31 -07:00
John Dai
2e88ad8701
Bug 1275832 - Implement custom element name validation for custom elements. r=wchen
...
--HG--
extra : rebase_source : e3c3adef09a3b5ae6f8ecb508ef782a9b39998c0
2016-09-20 23:26:00 -04:00
Wes Kocher
b39fcf65f2
Backout revisions b80d560e0102 and fc593dd9a280 (bug 838954) a=backout
...
--HG--
extra : source : 7008e3ee291ec274025d72ebd157eef7588da291
2016-09-21 11:42:16 -07:00
Arthur Edelstein
dfebfaa34a
Bug 1268726 - isolate shared worker by first party domain. r=baku
...
Tor 15564: Isolate SharedWorker by first party domain
uplift/refactor by Dave Huseby <dhuseby@mozilla.com>
review tweaks
2016-09-19 21:13:00 -04:00
Andrea Marchesini
5994c71158
Bug 1301251 - Handle GetSpec() failure in nsContentUtils::GetWrapperSafeScriptFilename(), r=smaug
2016-09-19 15:50:22 +02:00
Jan de Mooij
a53986bf29
Bug 1302448 part 1 - Rename CycleCollectedJSRuntime to CycleCollectedJSContext. r=mccr8
...
--HG--
rename : xpcom/base/CycleCollectedJSRuntime.cpp => xpcom/base/CycleCollectedJSContext.cpp
rename : xpcom/base/CycleCollectedJSRuntime.h => xpcom/base/CycleCollectedJSContext.h
extra : rebase_source : 075214b5057f151520926715b6154e99ae80a0b3
2016-09-14 15:47:32 +02:00
Ho-Pang Hsu
bb6962b37c
Bug 1285804 - Part 1: Introduce a new message to nsIDOMWindowUtils::sendMouseEvent() for test automation. r=smaug, f=btseng
...
--HG--
extra : rebase_source : 60a0e28ee3c063e730844874cca6b7f002c35fe4
extra : histedit_source : 02a45d4783e7fbb8ad30847e5f49f7a0e62cfeac
2016-09-12 13:51:10 +08:00
Nicholas Nethercote
e4eb76b618
Bug 1297300 - Add missing checks to GetSpec() calls in dom/base/. r=bz.
...
--HG--
extra : rebase_source : 55e83aad222825b2dd1399fa42eee6b6c894d0ee
2016-09-08 14:17:58 +10:00
Carsten "Tomcat" Book
7c6c7db247
Merge mozilla-central to autoland
2016-09-07 17:26:11 +02:00
Jeremy Chen
e42a48e81d
Bug 1297306 - part5:create enum constructors for EnumTable. r=baku
...
Enable nsAttrValue::EnumTable to be initialized with enum. So, we could get rid
of the castings in EnumTable. Fix EnumTable initialization comment.
For those untyped enumerations, declare them with uint8_t, as to other typed
enumerations with type size larger than int16_t, force casting to int16_t.
Use {nullptr,0} instead of {0} to represent the last entry.
MozReview-Commit-ID: 7Dma3Apkmxj
--HG--
extra : rebase_source : b2289866c4c33d80c8e170727bf109d018d92f67
2016-09-07 10:20:17 +08:00
Wes Kocher
ee92002ede
Merge inbound to m-c a=merge
2016-09-02 13:17:30 -07:00
Edgar Chen
67946850ab
Bug 1275835 - Part 1: Move custom element codes from nsDocument to CustomElementsRegistry; r=wchen
...
MozReview-Commit-ID: 9gTSFrYW7o3
--HG--
extra : rebase_source : f123f21aadaa18641ddd7fa7fa67eb27a4152f83
2016-08-30 11:48:53 +08:00
Jimmy Wang
ff4e05f90e
Bug 1297539 - Add IPC message, PasteTransferable, to call PasteTransferable via a controller on the content process to handle the command content event, "pasteTransferable". New method nsContentUtils::IPCTransferableToTransferable since ContentParent::RecvSetClipboard and TabChild::RecvPasteTransferable both require the same setup to make a transferable. r=mrbkap
...
MozReview-Commit-ID: 3I443eBOPEO
--HG--
extra : rebase_source : 86dbafb500c68e9a1f9976a6016d4e42311a4de8
2016-08-30 21:30:45 -04:00
Aryeh Gregor
0c1d7143d1
Bug 984778 - Make hasFeature() and SVG requiredFeatures always return true; r=bz,longsonr
...
hasFeature() always returning true matches the current DOM spec. SVG 2
has removed requiredFeatures. Chrome has had both of these always
return true since 2014, and they seem to have had no problems.
Even requiredFeatures="" (empty string) now returns true, matching
Chrome.
MozReview-Commit-ID: 1LEu3iK4R94
2016-09-01 14:35:11 +03:00
Nicholas Nethercote
34dcc7b852
Bug 1299384 - Use MOZ_MUST_USE with NS_warn_if_impl(). r=erahm.
...
This change avoids lots of false positives for Coverity's CHECKED_RETURN
warning, caused by NS_WARN_IF's current use in both statement-style and
expression-style.
In the case where the code within the NS_WARN_IF has side-effects, I made the
following change.
> NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));
> -->
> Unused << NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));
In the case where the code within the NS_WARN_IF lacks side-effects, I made the
following change.
> NS_WARN_IF(!condWithoutSideEffects);
> -->
> NS_WARNING_ASSERTION(condWithoutSideEffects, "msg");
This has two improvements.
- The condition is not evaluated in non-debug builds.
- The sense of the condition is inverted to the familiar "this condition should
be true" sense used in assertions.
A common variation on the side-effect-free case is the following.
> nsresult rv = Fn();
> NS_WARN_IF_(NS_FAILED(rv));
> -->
> DebugOnly<nsresult rv> = Fn();
> NS_WARNING_ASSERTION(NS_SUCCEEDED(rv), "Fn failed");
--HG--
extra : rebase_source : 58788245021096efa8372a9dc1d597a611d45611
2016-09-02 17:12:24 +10:00
Stone Shih
4c774b11b2
Bug 1292070 - Part 2: Add API to synthesize mouse event with buttons. f=bevistseng, r=smaug
...
--HG--
extra : rebase_source : c676026e30c857b2a19854285f8bb40c47c58267
extra : histedit_source : c1ee981e9ab821a51d3abb96b1d2d334ffe8e0d2
2016-08-18 11:58:48 +08:00
Nicholas Nethercote
c2306345d5
Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm.
...
This patch removes checking of all the callback calls in memory reporter
CollectReport() functions, because it's not useful.
The patch also does some associated clean-up.
- Replaces some uses of nsIMemoryReporterCallback with the preferred
nsIHandleReportCallback typedef.
- Replaces aCallback/aCb/aClosure with aHandleRepor/aData for CollectReports()
parameter names, for consistency.
- Adds MOZ_MUST_USE/[must_use] in a few places in nsIMemoryReporter.idl.
- Uses the MOZ_COLLECT_REPORT macro in all suitable places.
Overall the patch reduces code size by ~300 lines and reduces the size of
libxul by about 37 KiB on my Linux64 builds.
--HG--
extra : rebase_source : e94323614bd10463a0c5134a7276238a7ca1cf23
2016-08-24 15:23:45 +10:00
Ryan VanderMeulen
833833b8c5
Merge inbound to m-c. a=merge
2016-08-22 09:40:41 -04:00
Xidorn Quan
33700e24af
Bug 1296625 - Replace query to ui.use_activity_cursor pref with a cached bool value. r=smaug
...
MozReview-Commit-ID: GeTr29JG4qy
--HG--
extra : rebase_source : 2a74d2ca0ffe8fee23230334e01b483cc3abc8f2
2016-08-20 00:43:01 +10:00
Bobby Holley
412f98cac5
Bug 1296509 - Optimize GetFlattenedTreeParent. r=smaug
...
We need to call it on some hot paths in stylo, and this allows us to do
quick inline check before delegating to the slow path.
2016-08-19 14:43:53 -07:00
Nicholas Nethercote
ca40b738e4
Bug 1294620 - Use infallible XPIDL attribute getters more. r=erahm.
...
This makes a lot of code more compact, and also avoids some redundant nsresult
checks.
The patch also removes a handful of redundant checks on infallible setters.
--HG--
extra : rebase_source : f82426e7584d0d5cddf7c2524356f0f318fbea7d
2016-08-12 15:19:29 +10:00
Wes Kocher
e9097643d5
Merge inbound to central, a=merge
2016-08-12 13:44:29 -07:00
Jan de Mooij
0ad12515f4
Bug 1292892 part 1 - Stop using JSRuntime outside SpiderMonkey. r=bz,terrence,fitzgen,kanru
2016-08-11 14:39:22 +02:00
Kershaw Chang
b542f5170c
Bug 1254488 - Run the the prohibits mixed security contexts algorithm and check a priori unauthenticated URL in PresentationRequest, r=smaug
2016-08-10 23:01:00 +02:00
Rob Wu
9069fff35f
Bug 1197451 - Add clipboardWrite permission r=billm
...
MozReview-Commit-ID: 6d1mQSVWRPe
--HG--
extra : rebase_source : 2f19bab5c9d6db25c60b2b19c06c7027384a04ca
2016-07-08 17:19:17 -07:00
John Dai
a14b337bab
Bug 838954 - Add a newline in .innerHTML serialization of <pre> when first character is a newline. r=smaug
2016-08-08 23:55:00 +02:00
Nicholas Nethercote
e7f10a07fd
Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
...
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.
As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.
--HG--
extra : rebase_source : 815d0018b0b13329bb5698c410f500dddcc3ee12
2016-08-08 12:18:10 +10:00
Thomas Wisniewski
30e540bdd6
Bug 1285036 - Part 7: Change SetRequestHeader() and related header code to follow the spec more closely. r=baku
2016-08-02 12:50:10 -04:00
Jonathan Kingston
556ed99119
Bug 1173199 - Create preference to disable MathML. r=heycam, r=huseby, r=smaug
...
If the mathml.disabled preference is true, treat <math> and other MathML
elements as generic XML elements.
This patch disables the rendering code of MathML however preserves the
namespace so to reduce the breakage.
Original patch by: Kathy Brade <brade@pearlcrescent.com>
MozReview-Commit-ID: A2f2Q2b4eqR
--HG--
extra : rebase_source : 3c8530816727c01b68a831d560bfe16e7b02bd9d
2016-06-28 15:24:48 +01:00
Stone Shih
f8f5ef1c1a
Bug 1285128 - Should not generate pointer events for those synthesized events that are not dispatched to DOM. r=smaug
2016-07-07 15:28:11 +08:00
Emilio Cobos Álvarez
11ac7c1d96
Bug 1288590: Rename nsAttrInfo to mozilla::dom::BorrowedAttrInfo. r=bholley
...
Unfortunately couldn't add all the debug checks that I'd want, since we can't
assert that is not safe to run script in quite a few places :(
MozReview-Commit-ID: 8m3Wm1WntZs
2016-07-27 11:18:33 -07:00
Emilio Cobos Álvarez
28ee86f5de
Bug 1288590: Use GetAttrInfoAt in nsContentUtils.cpp. r=bholley
...
MozReview-Commit-ID: 844XRlHiI7Y
2016-07-27 11:18:33 -07:00
Andrea Marchesini
60ab8339e0
Bug 1288736 - Add some missing rv.SuppressException(), r=smaug
2016-07-22 16:50:10 +02:00
Boris Zbarsky
1c93a0c837
Bug 1287442. Simplify nsContentUtils::GetDocShellForEventTarget a bit. r=smaug
2016-07-21 23:41:15 -04:00
Ryan VanderMeulen
7581b74fc1
Backed out 3 changesets (bug 1285036) for browser_net_resend.js failures on a CLOSED TREE.
...
Backed out changeset 1fd18c03c696 (bug 1285036)
Backed out changeset 6462cd2ea249 (bug 1285036)
Backed out changeset 6b51b69f723e (bug 1285036)
2016-07-21 14:56:01 -04:00
Thomas Wisniewski
c5442a2268
Bug 1285036 - Part 7: Change SetRequestHeader() and related header code to follow the spec more closely. r=baku
...
--HG--
extra : rebase_source : 614d9ae3a8d9c8a1748a30aab7c6dc2d0a497c79
2016-07-20 12:22:43 -04:00
Chris Peterson
b175c9fdd5
Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo
2016-07-20 22:03:25 -07:00
Carsten "Tomcat" Book
87a58ba2c4
Backed out changeset 16fefebdbb50 (bug 1285036) for static build bustage
2016-07-21 06:14:41 +02:00
Thomas Wisniewski
f24a7ca05d
Bug 1285036 - Part 7: Change SetRequestHeader() and related header code to follow the spec more closely. r=baku
2016-07-20 12:22:43 -04:00
Christoph Kerschbaumer
9ec95d3d9d
Bug 471020 - Implement X-Content-Type-Options: nosniff. r=dveditz,bz,mcmanus
2016-07-20 12:22:27 +02:00
Thomas Nguyen
d90a1c6522
Bug 1264164 - Support Referrer Policy HTTP header. r=jdm
...
MozReview-Commit-ID: GANRqgAZQ5C
2016-07-19 15:38:26 +08:00
Wes Kocher
c9783f64cb
Backed out 4 changesets (bug 471020) for frequent Windows w(2) failures CLOSED TREE a=merge
...
Backed out changeset d9675ab3d203 (bug 471020)
Backed out changeset 3ee328c56de0 (bug 471020)
Backed out changeset 000576e264bd (bug 471020)
Backed out changeset ffe60708c457 (bug 471020)
2016-07-18 16:07:28 -07:00
Kartikaya Gupta
eb68bbaaa8
Bug 970346 - Add a DocShell attribute to override the default touch event options to a tab. r=bz
...
MozReview-Commit-ID: 4BdhwQRBavd
2016-07-18 10:26:38 -04:00
Christoph Kerschbaumer
f897b7df7e
Bug 471020 - Implement X-Content-Type-Options: nosniff. r=dveditz,bz,mcmanus
2016-07-18 14:47:48 +02:00
Jimmy Wang
aa9a74f34c
Bug 1162050 - remove instances of eLegacyDragDrop and dragdrop. r=enn
...
MozReview-Commit-ID: Di41WT8zcZ1
--HG--
extra : rebase_source : b9502c06b5351d0c75d23b17319c77579ccbb5a1
2016-05-27 16:54:36 -04:00
Jimmy Wang
af06755ad8
Bug 1162050 - Remove instances of eLegacyDragGesture and draggesture. r=enn
...
MozReview-Commit-ID: 8kP1AY4peos
--HG--
extra : rebase_source : 0f64e55770c2b9cfd9737f8da53111bad007dca6
2016-05-27 14:32:59 -04:00
Carsten "Tomcat" Book
d2e362e983
Backed out changeset f8fe3acf2e78 (bug 1162050)
2016-07-11 11:18:48 +02:00
Carsten "Tomcat" Book
50ea69d1c5
Backed out changeset 342274a86c0d (bug 1162050)
2016-07-11 11:18:44 +02:00
Jimmy Wang
d89f7681bc
Bug 1162050 - remove instances of eLegacyDragDrop and dragdrop. r=enn
...
MozReview-Commit-ID: Di41WT8zcZ1
--HG--
extra : transplant_source : %1D%B5%C0%B3g%2C%EC8%DD%0E%DB%DD%10%A5%81%8F%90o%27%96
2016-05-27 16:54:36 -04:00
Jimmy Wang
209f78f925
Bug 1162050 - Remove instances of eLegacyDragGesture and draggesture. r=enn
...
MozReview-Commit-ID: 8kP1AY4peos
--HG--
extra : transplant_source : XY2kY%87%AE%2A%C8%E8MV%86L%22%0B%21%5C%90%1B
2016-05-27 14:32:59 -04:00
Thomas Wisniewski
5a46237c13
Bug 1285036 - Part 6: Add CString variants of ASCIIToLower/Upper() for the next patch. r=baku
2016-07-08 12:51:09 -04:00
Andrew Sutherland
d1659931b7
Bug 1267473 - Report to console if service worker script 404s. r=bkelly
...
Add an error message of the following form for when a register/update job
fails for network reasons:
Failed to register/update a ServiceWorker for scope
‘http://mochi.test:8888/tests/dom/workers/test/serviceworkers/network_error/’ :
Load failed with status 404 for script
‘http://mochi.test:8888/tests/dom/workers/test/serviceworkers/404.js’ .
A mochitest is added that verifies this.
To simplify the process of logging error messages, ServiceWorkerManager gains
a new LocalizeAndReportToAllClients method that always provides the SW scope as
the first argument to the localized string since all good error messages should
include it.
Its argument list takes an nsTArray<nsString> in order to reduce the potential
for use-after-free scenarios from the char16_t** signature that unfortunately
has rippled outwards from the nsIStringBundle interface. This potentially
results in more memory allocation and byte shuffling than is strictly
necessary, but we're also talking about rare error logging where it's
better to optimize for easily adding the messages without needing to get hung
up on the life-cycle of temporaries.
nsTArray gained a std::initializer_list in bug 1228641. It is explicit, so
inline argument usages may take a form along the lines of:
`nsTArray<nsString> { string1, string2, ... }`
This change did necessitate a change to nsContentUtils to add an nsTArray
variant of FormatLocalizedString since the existing public function was
slightly too clever. It used a template function to statically acquire the
number of arguments at compile time, which is not compatible with the dynamic
nsTArray usage. Since nsTArray may be useful to other consumers as well, I
placed the conversion logic in nsContentUtils.
2016-07-10 22:22:27 -04:00
Ryan VanderMeulen
64abd594e5
Backed out 6 changesets (bug 1285036) for bustage on a CLOSED TREE.
...
Backed out changeset f7174077bd92 (bug 1285036)
Backed out changeset 4ae182434a6a (bug 1285036)
Backed out changeset 0390a7afb12d (bug 1285036)
Backed out changeset b93efbaf1d7a (bug 1285036)
Backed out changeset 3036026722de (bug 1285036)
Backed out changeset 8e94b77f805b (bug 1285036)
2016-07-07 21:57:49 -04:00
Thomas Wisniewski
fccee69e2d
Bug 1285036 - Part 6: Add CString variants of ASCIIToLower/Upper() for the next patch. r=baku
2016-07-03 21:54:58 -04:00
Boris Zbarsky
0184b4df38
Bug 1282150 part 6. Get rid of GetSafeJSContext. r=bholley
2016-07-07 20:08:26 -04:00
Boris Zbarsky
e990418707
Bug 1282150 part 2. Get rid of GetDefaultJSContextForThread. r=bholley
2016-07-07 20:08:26 -04:00
Bill McCloskey
b8ababd5ee
Bug 1282153 - Remove retaining outparam to GetLayerManager (r=dvander)
2016-06-30 14:30:30 -07:00
Paul Roberts
6707fd2982
Bug 671389 - Export document sandbox flags to chrome JS. r=smaug
...
--HG--
extra : rebase_source : 91463b43748b72283644d25b56242c244cc2a6bf
2016-06-19 12:34:08 -07:00
Paul Roberts
ec18fc5ff7
Bug 671389 - Implement CSP sandbox directive. r=ckerschb r=smaug
...
--HG--
extra : rebase_source : d9c5f5868c2558a3696cd489674da6f243be11ad
2016-06-29 07:48:44 -07:00
Boris Zbarsky
edb18fcfaf
Bug 767938 part 5. Stop using the JSContext stack to get the current JSContext. r=bholley
2016-06-24 14:19:50 -04:00
Kershaw Chang
b3af0af713
Bug 1268810 - Set SANDBOXED_AUXILIARY_NAVIGATION flag to receiver page, r=smaug
2016-06-21 20:31:00 +02:00
Cervantes Yu
28706c5d87
Bug 1275398 - Use shmem for sending image data in IPCDataTransfer. r=nical
...
MozReview-Commit-ID: 9XETnSBXxEW
2016-06-16 00:57:46 +08:00
Cervantes Yu
3115f628a1
Bug 1272018 - Use shared memory to transfer drag image data. r=nical
...
MozReview-Commit-ID: K5r9LBQ1FO0
2016-06-15 13:49:13 +01:00
Gordon Su
4b24a929e8
Bug 1271126 - Fixed the ParseHTMLInteger function to handle INT32_MIN. r=smaug
2016-06-12 16:18:55 -04:00
Neil Deakin
ea192c61f5
Bug 1174798, propagate keyboard indicator state down to child processes, r=smaug
2016-06-09 07:59:31 -04:00
dimi
4f68c43631
Bug 1258033 - Part 2: navigator.doNotTrack should be determinded by preference and tracking protection. r=smaug
...
MozReview-Commit-ID: 7kxLZvptEvx
--HG--
extra : rebase_source : 96fd8f193daf3d53eb668d97db90d5a4317d7872
2016-06-02 10:22:18 +08:00
Olli Pettay
dfb20cda68
Bug 1276477, make document update less malloc heavy, r=baku
...
--HG--
extra : rebase_source : 5cf067fb8a874c144fcf7c1f85210a944ed75878
2016-05-30 18:47:32 +03:00
Nicholas Nethercote
62f0bd3e33
Bug 1272203 (part 3) - Use NotNull in nsContentUtils::GetSurfaceData(). r=froydnj.
...
This might not look compelling in isolation, but this use of NotNull would have
prevented the null dereference crash in bug 1268721.
2016-05-27 09:49:25 +10:00
Jonathan Watt
de83a13903
Bug 1275266 - Rename imgLoader::Singleton and imgLoader::PBSingleton to something less misleading, and document them. r=tnikkel
2016-05-19 13:31:15 +01:00
Shih-Chiang Chien
859a30461d
Bug 1234128 - Part 1, add mozpresentation attribute in browser element. r=smaug.
2016-05-24 14:19:22 +08:00
Olli Pettay
4b7dc9c164
Bug 1273511 - Optimize EventListenerManager::AddEventListenerByType, r=masayuki
...
--HG--
extra : rebase_source : b41e8d1df8ac6c1159348654b6827ea9239d8c5e
2016-05-20 12:15:05 +03:00
Boris Zbarsky
653b3eb5a3
Bug 1273282. Fix the handling of numeric entities in xml-stylesheet href values. r=peterv
2016-05-19 13:48:11 -04:00
Ryan VanderMeulen
9d4120d4eb
Backed out 3 changesets (bug 1234128) for Android crashtest failures.
...
Backed out changeset 11db59507360 (bug 1234128)
Backed out changeset 8a0848fb59ac (bug 1234128)
Backed out changeset 7cf300dda85a (bug 1234128)
CLOSED TREE
--HG--
rename : dom/presentation/tests/mochitest/file_presentation_non_receiver_inner_iframe.html => dom/presentation/tests/mochitest/file_presentation_non_receiver_inner_iframe_oop.html
rename : dom/presentation/tests/mochitest/file_presentation_non_receiver.html => dom/presentation/tests/mochitest/file_presentation_non_receiver_oop.html
rename : dom/presentation/tests/mochitest/file_presentation_receiver_inner_iframe.html => dom/presentation/tests/mochitest/file_presentation_receiver_inner_iframe_oop.html
2016-05-19 10:32:02 -04:00