Commit Graph

3394 Commits

Author SHA1 Message Date
Marco Castelluccio
59f513cbed Bug 1413845 - Remove PluginPRLibrary as it is unused. r=jimm
--HG--
extra : rebase_source : 0eae0844e68ec1f1227c327903369d3ededa4058
2017-11-02 11:03:24 +01:00
sotaro
1d2a51a40b Bug 1408490 - Re-enable dom/plugins/test/mochitest/test_bug1092842.html r=jmaher 2017-11-02 21:31:48 +09:00
Joel Maher
b1044d6d3d Bug 1408490 - Disable dom/plugins/test/mochitest/test_bug1092842.html on windows debug for frequent failures. r=me, a=testonly 2017-10-31 08:46:57 -04:00
Chris Peterson
1df202b177 Bug 1412048 - Replace NS_RUNTIMEABORT("...") with MOZ_CRASH("..."). r=froydnj
And remove unreachable code after MOZ_CRASH().

MozReview-Commit-ID: 6ShBtPRKYlF

--HG--
extra : rebase_source : 0fe45a59411bda663828336e2686707b550144ae
extra : source : 8473fd7333d2abe1ea1cc176510c292a5b34df45
2017-10-24 23:30:31 -07:00
David Parks
1e144210c0 Bug 1410140 - Copy file dialog fields from NPAPI process. r=jimm
The OpenFileNameIPC object specifies information in an LPOPENFILENAMEW in an IPDL-friendly structure.  This properly copies the file name and filter fields.
2017-10-21 15:02:28 -07:00
Tom Ritter
2d9fdd1bcf Bug 1411142 Cast enums to int to silence warning about comparing enums of different types r=jld
MozReview-Commit-ID: LIbuzPuZ2mr

--HG--
extra : rebase_source : ee5d1f4bf6ef4d0d2e0a694988beeea88beddd80
2017-10-23 23:54:21 -05:00
Sylvestre Ledru
d60d69e2cb Bug 1411001 - Remove the +x permissions on cpp & h files r=froydnj
MozReview-Commit-ID: DjDkL20wRg0

--HG--
extra : rebase_source : a343d83d1f4e97e4ba56d0f57fec93079df0b5ea
2017-10-23 20:59:55 +02:00
Jed Davis
70736cfb1b Bug 1401790 - Remove ProcessArchitecture from IPC. r=billm,jimm
This was used to support cross-architecture NPAPI plugins on OS X, but
we stopped supporting that in 54 (bug 1339182).

MozReview-Commit-ID: 2BcWYD6mguY

--HG--
extra : rebase_source : 6e509a3cc1f356ccd24f1459c43bc8fb66d7b0f4
2017-10-04 20:31:12 -06:00
Gabriele Svelto
84b68b502d Bug 1393800 - Have mochitests expecting crashes wait for the crashes to be recorded before clean up; r=mconley
This patch includes a bunch of somewhat related fixes, these are:

- Ensuring that when a mochitest calls SimpleTest.expectChildProcessCrash()
  the harness will wait for the crashes to be recorded before deleting the
  dump files. This involves a message round-trip between the content and
  parent process so to minimize its performance impact on all the non-crashing
  tests it is done only when required.
- As an additional optimization, the SimpleTest harness will not send a
  message to the content process anymore whenever it receives an
  ipc:content-shutdown event, instead it does it only for abnormal shutdowns.
- Manually fixing remaining mochitests causing crashes to wait for crashes to
  be recorded before finishing and deleting the dump files.
- Modifying BrowserTestUtils.crashBrowser() so that it optionally does not
  delete the dump files, this is useful for tests that submit their dumps and
  thus delete them on their own.


MozReview-Commit-ID: 4SLJ8BjJ18n

--HG--
extra : source : b5452a41bb962c6929292c5c538e19ac28d84fe7
2017-08-25 12:47:09 +02:00
Tom Ritter
36dde53d4f Bug 1404035 Address unused result warnings in dom/ipc/ r=smaug
In come cases, we can fail the IPC message, but in one we can't really do anything.

MozReview-Commit-ID: 4vdKIRUOJNN

--HG--
extra : rebase_source : b32559b4d88017612c35346f83cb11cb5b522252
2017-09-28 12:46:37 -05:00
Tom Ritter
09e9d30178 Bug 1409258 Adjust the definition of NPEvent and resolve uint -> int narrowing in dom/plugins r=jimm
lParam is a long int (signed) while wparam is unsigned. Correct lParam to be an intptr

MozReview-Commit-ID: BeWJUM798O5

--HG--
extra : rebase_source : 901e0ebf4eaa9622b45a6e60de1a11bc6cf606fc
2017-10-17 12:04:51 -05:00
Kris Maglione
bb49a293fc Bug 1404198: Follow-up: Fix more OS-X build bustage on a CLOSED TREE r=bustage
--HG--
extra : amend_source : 2ab5881c9eae6b689a0c45c33b3faeb398b5eeaf
2017-10-16 14:56:50 -07:00
Kris Maglione
12085d8c3d Bug 1404198: Follow-up: Fix OS-X build bustage. r=bustage
MozReview-Commit-ID: EUSy85iEkCb

--HG--
extra : amend_source : af963cc82ac558bfde4e2538d853cceff0ba3b52
2017-10-16 14:30:31 -07:00
Kris Maglione
60d080b412 Bug 1404198: Part 2i - Switch to NS_NewTimer* in dom. r=njn
MozReview-Commit-ID: 8Oei6TuXNbu

--HG--
extra : rebase_source : 31c583c699790cbcf302064146d313ee8126ef0c
2017-10-15 23:15:40 -07:00
Kris Maglione
5fdcb5a5d2 Bug 1407056: Part 1 - Provide more consistent principal/origin URL to content policies. r=bz,ckerschb
We're currently fairly vague and inconsistent about the values we provide to
content policy implementations for requestOrigin and requestPrincipal. In some
cases they're the triggering principal, sometimes the loading principal,
sometimes the channel principal.

Our existing content policy implementations which require or expect a loading
principal currently retrieve it from the context node. Since no current
callers require the principal to be the loading principal, and some already
expect it to be the triggering principal (which there's currently no other way
to retrieve), I chose to pass the triggering principal whenever possible, but
use the loading principal to determine the origin URL.

As a follow-up, I'd like to change the nsIContentPolicy interface to
explicitly receive loading and triggering principals, or possibly just
LoadInfo instances, rather than poorly-defined request
origin/principal/context args. But since that may cause trouble for
comm-central, I'd rather not do it as part of this bug.

MozReview-Commit-ID: LqD9GxdzMte

--HG--
extra : rebase_source : 41ce439912ae7b895e0a3b0e660fa6ba571eb50f
2017-10-12 15:43:55 -07:00
Jonathan Watt
60fa0649f2 Bug 1406819 - Remove various bits of dead code from dom/. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D109
2017-10-11 10:09:13 +01:00
Tom Ritter
f49999833d Bug 1406380 Fix -Wreorder warnings r=njn
MozReview-Commit-ID: 7Zh2pvAMpXR

--HG--
extra : rebase_source : 5052112ad66a66cd2974c4140c3fd430dcaa3adc
2017-10-09 01:36:36 -05:00
Tom Ritter
349f097743 Bug 1403698 Address delete-non-virtual-dtor warnings r=froydnj
MozReview-Commit-ID: 44XiqegImiT

--HG--
extra : rebase_source : 52ddc3caa3243aaef9e2397b4a28e318da101a8c
2017-10-06 11:27:35 -05:00
Leo Khodel
c252244f67 Bug 1357575: Remove unused include prclist.h r=erahm
MozReview-Commit-ID: 751gsPAHKAt

--HG--
extra : rebase_source : 7140cd63ede88aa33dfef255689ee43ed98edefa
2017-10-04 16:42:36 -07:00
Alex Gaynor
5881f616ec Bug 1405312 - Remove dead code from nsPluginHost; r=jimm
MozReview-Commit-ID: BsZIoTeZrNL

--HG--
extra : rebase_source : dbc6a3edeb0c22fba76ce9b7f74ed02c69a26494
2017-10-03 09:53:08 -04:00
Benjamin Smedberg
28588c1731 Bug 1352567 - Remove NPAPI seekable and file streams from the dom/plugins/base code, r=jimm
MozReview-Commit-ID: 4qxEFjTKMVZ
2017-10-02 14:54:22 -07:00
Benjamin Smedberg
ce00e2cd37 Bug 1352567 - Remove plugin IPC code to support stream types other than NP_NORMAL (seekable and/or file streams), r=jimm
MozReview-Commit-ID: FWl2gcpKy6D
2017-10-02 14:54:22 -07:00
Benjamin Smedberg
3dbd8ee851 Bug 1352567 - Remove tests for plugin stream behavior except NP_NORMAL, r=jimm
MozReview-Commit-ID: 8ne3cKV1bxc
2017-10-02 14:54:21 -07:00
Nicholas Nethercote
78f521a734 Bug 1352573 (part 2) - Remove NPN_PluginThreadAsyncCall() and related machinery. r=bsmedberg.
* * *
[mq]: rm-checkGCRace

--HG--
extra : rebase_source : 4b9316ee05c1f62e80b20c7f9ab03bd8f33d4658
2017-08-03 22:12:51 +10:00
Kartikaya Gupta
8eaaf84f59 Bug 1403288 - Remove redundant reftest lines since border layers are enabled by default with webrender now. r=Gankro
MozReview-Commit-ID: L1iU7pV1CcX

--HG--
extra : rebase_source : 172e22c532e323c67ae7949ac5f5fe7595bfc20a
2017-09-26 15:02:39 -04:00
Chris Peterson
98b2f2fcd6 Bug 870698 - Part 7: Replace Insert(NS_LITERAL_CSTRING("")) with InsertLiteral(""). r=erahm
The NS_LITERAL_CSTRING macro creates a temporary nsLiteralCString to encapsulate the string literal and its length, but AssignLiteral() can determine the string literal's length at compile-time without nsLiteralCString.

MozReview-Commit-ID: DbTW5Bhd9E1

--HG--
extra : rebase_source : b27f666e5ca832d814fb6846208474e1ec66e5f4
extra : source : 9ff4e11402a9a43ed90298a9c354b0164cf9414f
2017-09-07 18:15:42 -07:00
Kyle Machulis
9b4ac7e03f Bug 1402102 - Remove nsIDOMHTMLObjectElement; r=bz
Removes the nsIDOMHTMLObjectElement XPCOM interface, replacing it with
HTMLObjectElement and FromContent conversion usage.

MozReview-Commit-ID: dmsjSO97uh

--HG--
extra : rebase_source : 9b2c25b8681f754bc34233afccdb6fc5d38f0804
2017-09-22 17:05:12 -07:00
Andrea Marchesini
cee83bc968 Bug 1398733 - nsILinkHandler::OnLinkClick and OnLinkClickSync should know the post data inputStream length, r=smaug 2017-09-22 08:11:18 +02:00
Nicholas Nethercote
e3c9cbb969 Bug 1401813 - Rename Null[C]String() as Void[C]String(). r=erahm.
XPCOM's string API doesn't have the notion of a "null string". But it does have
the notion of a "void string" (or "voided string"), and that's what these
functions are returning. So the names should reflect that.

--HG--
extra : rebase_source : 4e3f982e0873877174a08a25413595ff66f7d20e
2017-09-22 14:35:46 +10:00
Jon Coppeard
8bd8591183 Bug 1396613 - Make proxy objects override handler's objectMoved method rather than using class hook r=sfink r=mccr8 r=peterv 2017-09-19 12:31:30 +01:00
Jon Coppeard
1077972535 Bug 1396613 - Update the object moved hook to allow it to be called when tenuring nursery objects r=sfink r=mccr8 2017-09-19 12:31:30 +01:00
David Parks
08b210a4d2 Bug 1394024 - Handle null string when alerting plugin about Windows microphone change. r=jimm
Fixes crash when unplugging the only available microphone.

--HG--
extra : rebase_source : 89740b96576e912b42efe3465961452d39a16433
2017-09-12 14:14:14 -07:00
Ryan VanderMeulen
578923dcdc Bug 1367895 - Remove some obsolete nightly_only & release_or_beta test manifest annotations. r=mconley 2017-09-12 21:26:17 -04:00
Wes Kocher
05c4aba599 Merge m-c to autoland, a=merge CLOSED TREE
MozReview-Commit-ID: 2dRRh6JLTIL
2017-09-11 15:21:36 -07:00
Steve Fink
e58fb2d703 Bug 1389974 - Rooting fixes for nsJSNPRuntime.cpp, r=froydnj
--HG--
extra : rebase_source : 24af0cf16c2de4eb06ea81aab09fa71021ff3e16
extra : histedit_source : 65893418fbe37a5a7384c70c7b331c8a5314b8e9
2017-09-01 08:28:38 -07:00
Christoph Kerschbaumer
9048e3f216 Bug 1397655 - Update tests within dom/ to comply with new toplevel data: URI navigation policy. r=smaug 2017-09-10 13:24:07 +02:00
Chris Manchester
c0a229d4c3 Bug 1386876 - Replace all uses of DISABLE_STL_WRAPPING with a template, remove DISABLE_STL_WRAPPING. r=glandium
MozReview-Commit-ID: FMEtb5PY7iP

--HG--
extra : rebase_source : 3cdee7528846462c758e623d6bcd2e6e17dbabff
2017-09-11 11:33:26 -07:00
Masayuki Nakano
4ce89d8f61 Bug 1369072 - part3: nsXBLPrototypeHandler::DispatchXBLCommand() should use controller of visible window r=smaug
With previous change, KeyboardEvent is dispatched even when invisible window
has focus.  However, nsRootWindow::GetControllerForCommand() returns controller
for focused window even when the window is invisible because it uses
nsFocusManager::GetFocusedDescendant() to retrieve focused window.

Perhaps, we can assume that users won't expect to do something with invisible
window when they type some keys.  Then, nsRootWindow::GetControllerForCommand()
should return controller for visible ancestor window if focused window is
invisible.

This patch makes nsFocusManager::GetFocusedDescendant() can return only visible
descendants.  However, it already has a bool argument.  Therefore, it should
have a flag instead of adding new flag.  Most changes of this patch is replacing
its callers.

Then, nsRootWindow::GetControllerForCommand() and nsRootWindow::GetControllers()
should have a bool flag if it should return controller(s) for visible window.
This patch adds a bool flag for it.  Fortunately, the interface isn't scriptable.

Finally, this patch makes nsXBLPrototypeHandler::DispatchXBLCommand() and
EventStateManager::DoContentCommandEvent() retrieve controller for visible
window since they are always handles user input.

MozReview-Commit-ID: GygttTHuKRm

--HG--
extra : rebase_source : 1341273c4606298cb9b890b9312d9f5c8a75d144
2017-09-07 22:54:49 +09:00
David Parks
d986d4b92e Bug 1388903 - Part 2: Remove PrintDlg Window Parentage in NPAPI Process. r=jimm
By intercepting the call to PrintDlgW and zeroing out the parent window privided by the caller, we allow the call to run in the NPAPI sandbox.
2017-08-29 15:59:34 -07:00
Mike Hommey
e290647690 Bug 1395070 - Replace MOZ_MEMORY_WINDOWS with XP_WIN. r=njn
--HG--
extra : rebase_source : 1c63dca430aa6c81472463d27df41f2acdc2df88
2017-08-30 16:53:10 +09:00
Tom Ritter
8ceb4d1ed5 Bug 1393487 Silence unused variable warning because we do it on purpose in PluginPRLibrary.cpp r=jimm
MozReview-Commit-ID: 5AcehJFnFho

--HG--
extra : rebase_source : acac2a0d1ac67970cb98ea258f83097f655a5631
2017-08-25 16:49:12 -05:00
Tom Ritter
ae930caa79 Bug 1393535 Fix unused variable warnings in dom/ r=cpearce
MozReview-Commit-ID: 1Ql20AHx1Jz

--HG--
extra : rebase_source : 21105b4fc70953ecdccd4c1e7fe9c9d5564795c4
2017-08-24 11:52:36 -05:00
Andrew Swan
1e8af6f7ac Bug 1393156 Legacy extension test loose ends r=kmag
Change webextensions experiments test to use the shimmed certficiate DB
instead of the extensions.legacy.enabled pref.
In builds that don't honor the extensions.legacy.enabled pref, disable
test_legacy.js since that tests that flipping that preference works properly.
Finally, remove a now doubly-obsolete test of plugins embedded in xpis.

MozReview-Commit-ID: JiRdgCXyjKR

--HG--
extra : rebase_source : f0c7672b0755993bd20f9fc84e242eb76cb949ef
2017-08-26 08:55:20 -07:00
Jan de Mooij
a5de55dced Bug 1389510 part 3 - Remove getProperty/setProperty hooks from ClassOps. r=evilpie 2017-08-25 10:12:16 +02:00
Nicholas Nethercote
9160e1cba8 Bug 1390428 (part 6) - Remove nsXPIDLCString class members. r=erahm.
These are all straightforward except for InternalLoadEvent::mTypeHint, which
requires a bit of care to preserve existing behaviour.

--HG--
extra : rebase_source : 9b152122b011cf49b9acccdc98b4693548b8bdd2
2017-08-17 14:17:27 +10:00
Eric Rahm
a33f11e0f5 Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj
We should not be declaring forward declarations for nsString classes directly,
instead we should use nsStringFwd.h. This will make changing the underlying
types easier.

--HG--
extra : rebase_source : b2c7554e8632f078167ff2f609392e63a136c299
2017-08-16 16:48:52 -07:00
David Major
406287685a Bug 1391420: Set NO_PGO on a bunch of binaries that we don't ship. r=ted 2017-08-23 15:05:40 -04:00
Sebastian Hengst
142b3bf28b Backed out changeset 109e89a7d561 (bug 1391420) for busting Linux pgo builds. r=backout on a CLOSED TREE
--HG--
extra : amend_source : 6a4421254e4de31071785b73abdd1186638e31f2
2017-08-23 18:12:46 +02:00
David Major
8cb2cb650a Bug 1391420: Set NO_PGO on a bunch of binaries that we don't ship. r=ted 2017-08-23 11:10:39 -04:00
Wes Kocher
02a5ad9edd Merge m-c to inbound, a=merge
MozReview-Commit-ID: dovwD1TzZR
2017-08-21 17:10:59 -07:00