Commit Graph

316 Commits

Author SHA1 Message Date
Xidorn Quan
790d8a4395 Bug 1189200 - Only clear pending fullscreen requests in inclusive descendants of the specified document in ClearPendingFullscreenRequests. r=smaug 2015-08-31 09:25:23 +10:00
Xidorn Quan
a93559edeb Bug 1199522 - Apply :fullscreen pseudo-class to all elements in the fullscreen element stack. r=smaug 2015-08-29 13:53:28 +10:00
Xidorn Quan
b001c876bc Bug 1198563 part 2 - Do no directly apply fullscreen state when window object reports in fullscreen when there are pending request before. r=smaug 2015-08-27 11:21:29 +10:00
Xidorn Quan
570d505e76 Bug 1198563 part 1 - Encapsulate iterating fullscreen request list code. r=smaug 2015-08-27 11:21:29 +10:00
Kartikaya Gupta
e9f00a8721 Bug 1180267 - Ensure that the desktop-mode viewport for Fennec is based on a 980 CSS pixel width rather than the screen size. r=snorp 2015-08-24 13:45:45 -04:00
Chris Lord
18d112b4b6 Bug 1181555 - Add 'experimental-webcomponents' permission. r=fabrice 2015-08-20 12:07:54 +01:00
Sebastian Hengst
edfba8b700 Backed out changeset e9d838084096 (bug 1181555) for Linux x64 opt and B2G Desktop Linux x64 opt Hazard analysis fail. r=backout 2015-08-22 21:53:48 +02:00
Chris Lord
013a3c6c8f Bug 1181555 - Add 'moz-extremely-unstable-and-will-change-webcomponents' permission. r=fabrice 2015-08-20 12:07:54 +01:00
Masayuki Nakano
d56a7cc348 Bug 895274 part.1 Rename WidgetEvent::message to WidgetEvent::mMessage r=smaug 2015-08-22 10:34:51 +09:00
William Chen
4c783cde73 Bug 1131470 - Part 3: Implement ScreenOrientation interface. r=baku 2015-08-18 14:55:21 -07:00
Nathan Froyd
c1906b331b Bug 968923 - part 6 - add use counters for deprecated operations; r=bz 2015-06-17 12:28:26 -04:00
Cameron McCormack
bc3d82ad01 Bug 968923 - part 3a - add core DOM use counter functionality; r=smaug
This patch gives ns{I,}Document the ability to track use counters and
also to send those to telemetry at document destruction time.  We push
things to telemetry lazily because we're can't definitively say whether
something has been used until the document is torn down.
2015-06-03 12:39:18 -04:00
Robert Longson
ae991f3a9c Bug 1194619 - fix comment r=dholbert 2015-08-14 19:22:22 +01:00
Aryeh Gregor
1d1b2d1359 Bug 874838 - Make CreateElem return Element. r=khuey 2015-08-13 07:50:00 -04:00
Francois Marier
6349d3c212 Bug 992096 - Implement Sub Resource Integrity [1/2]. r=baku,r=ckerschb
Code changes
2015-08-12 20:19:11 -07:00
Aryeh Gregor
f5961e4a6b Bug 874842 - Return Event instead of nsIDOMEvent 2015-08-12 14:39:31 +03:00
Xidorn Quan
64a348bc1f Bug 1191148 - Don't count fullscreen request handled if we don't change the document state. r=smaug 2015-08-06 15:37:48 +10:00
Xidorn Quan
071bdd5f2c Bug 1190669 part 3 - Introduce new fullscreen reason which exits fullscreen without fullscreen transition, and use it for ExitFullscreenInDocTree. r=smaug 2015-08-06 15:37:48 +10:00
Xidorn Quan
5b9c6c4c54 Bug 1190669 part 2 - Move the part which runs script from ExitFullscreenInDocTree to a runnable, and protect it with AddScriptRunner. r=smaug 2015-08-06 15:37:48 +10:00
Xidorn Quan
5f68d21816 Bug 1190669 part 1 - Remove helper function SetWindowFullScreen and its helper runnable. r=smaug
All of the callsites of this helper function has a synchronous event
dispatch which indicates the AddScriptRunner in that helper function
makes no sense.

Also it seems that most of the callsites are actually safe to run
script, except ExitFullscreenInDocTree() which may be called from
Element::UnbindFromTree(). It'll be fixed in the following patch.
2015-08-06 15:37:48 +10:00
Xidorn Quan
4e62bfa274 Bug 1191112 part 1 - Clear pending fullscreen requests on page close. r=smaug 2015-08-06 15:37:48 +10:00
Aryeh Gregor
a3c0771347 Bug 1190823 - Move OwningNonNull.h to xpcom/base/; r=froydnj 2015-08-05 15:28:27 +03:00
Nicholas Nethercote
f23a15f104 Bug 1189156 (part 2) - Don't use enumeration style for nsTHashtable::SizeOf{In,Ex}cludingThis(). r=erahm.
After this change, we have ShallowSizeOf{In,Ex}cludingThis(), which don't do
anything to measure children. (They can be combined with iteration to measure
children.)

And we still have the existing single-arg SizeOf{In,Ex}cluding() functions,
which work if the entry type itself defines SizeOfExcludingThis().
2015-07-29 01:50:52 -07:00
Christoph Kerschbaumer
0ea778f8c3 Bug 1182539 - Use channel->ascynOpen2 in dom/base/nsDocument.cpp (r=sicking) 2015-07-31 08:58:14 -07:00
Carsten "Tomcat" Book
e576d65c06 Backed out changeset 8e006947db44 (bug 1186780) 2015-07-27 08:00:29 +02:00
Kyle Huey
f96286d280 Bug 1186780: Replace EnumerateRead with new iterators in some DOM code. r=bkelly 2015-07-26 19:34:29 -07:00
Kartikaya Gupta
6b2369f993 Bug 1186004 - Add a pref to enable/disable APZ zooming behaviour. r=botond 2015-07-22 23:42:08 -04:00
Birunthan Mohanathas
b8b9e8e719 Bug 1182980 - Part 9: Use nsTHashtable::Iterator in rest of nsDocument. r=khuey 2015-07-22 09:42:01 -07:00
Birunthan Mohanathas
c8628e12b9 Bug 1182980 - Part 8: Use nsTHashtable::Iterator in nsIDocument::EnumerateActivityObservers. r=khuey 2015-07-22 09:42:01 -07:00
Birunthan Mohanathas
e4390db781 Bug 1182980 - Part 7: Use nsTHashtable::Iterator in nsIdentifierMapEntry::FireChangeCallbacks. r=khuey 2015-07-22 09:42:01 -07:00
Xidorn Quan
9fa68fd695 Bug 1160017 part 1 - Remove fullscreen permission code from nsDocument. r=smaug 2015-07-21 20:50:20 +10:00
Boris Zbarsky
af8251d70c Bug 909154. Remove the prefixed mozRequestAnimationFrame and its accoutrements. r=bkelly 2015-07-20 10:14:24 -04:00
Xidorn Quan
dc0f32b794 Bug 1184443 - Make async ExitFullscreen call ask the window to exit fullscreen first. r=smaug 2015-07-19 10:30:52 +10:00
Sam E. Giles
1351022b5e Bug 1177991 - document.adoptNode should throw a HierarchyRequestError when adopting a ShadowRoot. r=wchen 2015-07-17 11:12:02 -07:00
Sam E. Giles
638b5981f3 Bug 1177914 - throw a NotSupportedError when running document.importNode on a ShadowRoot or Document. r=wchen 2015-07-17 11:11:14 -07:00
Birunthan Mohanathas
e52329c788 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Christoph Kerschbaumer
9cf312cbbb Bug 1139297 - Implement CSP upgrade-insecure-requests directive - document changes (r=smaug) 2015-07-10 09:14:09 -07:00
Andrea Marchesini
00307929f0 Bug 1181528 - nsISimpleEnumerator.h is needed by nsDocument.cpp, r=smaug 2015-07-09 01:36:35 +01:00
Xidorn Quan
ee2b9ffbaa Bug 1181413 - Use enum to distinguish fullscreen request for Fullscreen Mode and Fullscreen API. r=smaug 2015-07-09 08:00:33 +10:00
Dragana Damjanovic
c7fc0a288e Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00
Emanuel Hoogeveen
31c0c961cd Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Xidorn Quan
dbbb094fdd Bug 1179123 - Avoid crash when calling ExitFullscreenInDocTree with a detached fullscreen document with its root exited fullscreen state. r=smaug 2015-07-04 15:12:13 +10:00
Juan Gomez
21d73728f3 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
Xidorn Quan
fe8c571389 Bug 1168705 part 4 - Dispatch other fullscreen events with next refresh driver tick. r=smaug 2015-07-02 19:12:31 +10:00
Xidorn Quan
20473f3420 Bug 1168705 part 3 - Make MozDOMFullscreen:{Request,Exit,Entered,Exited} be triggered synchronously. r=dao,smaug
MozDOMFullscreen:{Request,Exit} are simply used to redirect the request
to the parent process, hence there is no need to align them with refresh
driver tick or dispatch asynchronously.

MozDOMFullscreen:{Entered,Exited} are also used to notify the content
process about the change, hence dispatching them later could cause
unwanted delay on fullscreen change. Their handlers are also changed in
this patch to avoid recursive fullscreen change.
2015-07-02 19:12:31 +10:00
Xidorn Quan
c17236c616 Bug 1168705 part 2 - Move fullscreenchange event to be triggered after the related chrome events. r=smaug 2015-07-02 19:12:31 +10:00
Xidorn Quan
6af3e1136f Bug 1168705 part 1 - Add mechanism for dispatching events with refresh driver tick. r=roc,khuey 2015-07-02 19:12:31 +10:00
Kartikaya Gupta
c508a4e334 Bug 1178860 - Add dom.meta-viewport.enabled to gfxPrefs. r=dvander 2015-06-30 14:49:02 -04:00
Cameron McCormack
f1d0bf37f6 Bug 1161413 - Part 4: Move FontFaceSet ownership from nsPresContext to nsIDocument. r=smaug 2015-06-27 11:39:54 +10:00
Patrick McManus
2cbbb281b8 bug 1174152 - crossorigin attribute for link rel=preconnect r=hsivonen 2015-06-19 17:11:42 -04:00
Ryan VanderMeulen
55b2086097 Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage. 2015-06-25 19:48:42 -04:00
Juan Gomez
98461fc4a4 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-06-24 14:11:00 -04:00
Xidorn Quan
57713066cd Bug 1174966 part 5 - Re-dispatch pointer lock request after all fullscreen requests finish. r=smaug 2015-06-19 10:09:52 +10:00
Xidorn Quan
18659ee3a3 Bug 1174966 part 4 - Move pending fullscreen counter manipulation from nsCallRequestFullScreen to FullscreenRequest. r=smaug 2015-06-19 10:09:52 +10:00
Xidorn Quan
b9d94d30b0 Bug 1174966 part 3 - Merge FullScreenOptions and FullscreenRequest and makes the latter a single object in the whole lifetime of a request. r=smaug 2015-06-19 10:09:52 +10:00
Xidorn Quan
6f6102976b Bug 1174966 part 2 - Replace mAsyncFullscreenPending flag with mPendingFullscreenRequests counter. r=smaug 2015-06-19 10:09:52 +10:00
Xidorn Quan
75ad362d04 Bug 1174966 part 1 - Change type of mCancelledPointerLockRequests field from uint32_t to bit field. r=smaug 2015-06-19 10:09:52 +10:00
Carsten "Tomcat" Book
7c76048c28 Backed out changeset feb7cd25aafb (bug 1174152) for mulet timeout in test_rel_preconnect.html 2015-06-17 16:58:57 +02:00
Patrick McManus
1cd7ac366a bug 1174152 link rel=preconnect crossorigin=anonymous r=hsivonen 2015-05-06 10:09:27 -04:00
Nicholas Nethercote
c2df231328 Bug 1174625 - Overhaul PLDHashTable's iterator. r=froydnj.
This change splits PLDHashTable::Iterator::NextEntry() into two separate
functions, which allow you to get the current element and advance the iterator
separately, which means you can use a for-loop to iterate instead of a
while-loop.

As part of this change, the internals of PLDHashTable::Iterator were
significantly changed and simplified (and modelled after js::HashTable's
equivalent code). It's no longer duplicating code from PL_DHashTableEnumerator.
The chaos mode code was a casualty of this, but given how unreliable that code
has proven to be (see bug 1173212, bug 1174046) this is for the best. (We can
reimplement chaos mode once PLDHashTable::Iterator is back on more solid
footing again, if we think it's important.)

All these changes will make it much easier to add an alternative Iterator that
removes elements, which was turning out to be difficult with the prior code.

In order to make the for-loop header usually fit on a single line, I
deliberately renamed a bunch of things to have shorter names.

In summary, you used to write this:

  PLDHashTable::Iterator iter(&table);
  while (iter.HasMoreEntries()) {
    auto entry = static_cast<FooEntry*>(iter.NextEntry());
    // ... do stuff with |entry| ...
  }
  // iter's scope extends beyond here

and now you write this:

  for (auto iter = table.Iter(); !iter.Done(); iter.Next()) {
    auto entry = static_cast<FooEntry*>(iter.Get());
    // ... do stuff with |entry| ...
  }
  // iter's scope doesn't reach here
2015-06-11 21:19:53 -07:00
Olli Pettay
a578f63d48 Bug 1173215, don't set mChromeXHRDocURI when dealing with non-XHR documents, r=bz 2015-06-13 02:34:52 +03:00
Xidorn Quan
ab2cb7414f Bug 1168028 part 2 - Revert DOM fullscreen state after window finish resizing if we need to. r=smaug,dao 2015-06-12 13:24:45 +12:00
Wes Kocher
855aae2832 Backed out changeset d73a15153b3b (bug 1168028) for browser_domFullscreen_fullscreenMode.js failures CLOSED TREE 2015-06-10 16:03:44 -07:00
Xidorn Quan
0a01203568 Bug 1168028 - Revert DOM fullscreen state after window finish resizing if we need to. r=smaug,dao 2015-06-11 09:45:06 +12:00
Nicholas Nethercote
2a0b2fc05d Bug 1171832 - Remove PL_DHashTableEnumerator use from nsDocument. r=smaug. 2015-06-08 16:07:46 -07:00
Xidorn Quan
2c8852b27f Bug 1161802 part 7 - Put document into fullscreen state after window becomes fullscreen. r=smaug,dao 2015-06-10 23:13:12 +12:00
Xidorn Quan
a4b51308f4 Bug 1161802 part 6 - Extract FullscreenRoots::{Add,Remove} to call site of ShowWindowFullscreen. r=smaug 2015-06-10 23:13:12 +12:00
Xidorn Quan
db793f1919 Bug 1161802 part 5 - Make applying fullscreen state an independent method. r=smaug 2015-06-10 23:13:12 +12:00
Xidorn Quan
918608426d Bug 1161802 part 4 - Move bool parameters info FullScreenOptions for clearer call sites. r=smaug 2015-06-10 23:13:12 +12:00
Xidorn Quan
999e0b0187 Bug 1161802 part 3 - Make fullscren element ready check an independent method. r=smaug 2015-06-10 23:13:12 +12:00
Xidorn Quan
04610d35de Bug 1166960 - Remove redundant call to UnlockPointer and unnecessary check before calling that function. r=smaug 2015-06-10 13:14:57 +12:00
Nathan Froyd
ce0593c31a Bug 1171061 - use std::bitset for deprecation and document warnings in nsDocument; r=smaug 2015-06-02 16:01:37 -04:00
Eric Rahm
29f00ac208 Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-03 15:25:57 -07:00
Eric Rahm
f3d0db1203 Bug 1165515 - Part 3: Convert PR_LOG_TEST to MOZ_LOG_TEST. r=froydnj 2015-06-03 15:22:28 -07:00
Nicholas Nethercote
94baddf190 Bug 1170416 (part 5) - Remove PLDHashTable::IsInitialized(). r=froydnj.
|mOps| is always non-null now, and there's no longer any distinction between
and uninitialized and initialized table. Yay.
2015-05-20 21:23:55 -07:00
Nicholas Nethercote
265569e6b8 Bug 1170416 (part 3) - Remove the PLDHashTable2 typedef. r=froydnj. 2015-05-19 16:46:17 -07:00
Xidorn Quan
2b3a3835a4 Bug 1170328 - Mark nsIDocument::WarnOnceAbout() with const. r=smaug 2015-06-03 11:27:27 +12:00
Carsten "Tomcat" Book
e2f82674b8 Backed out 14 changesets (bug 1165515) for linux x64 e10s m2 test failures
Backed out changeset d68dcf2ef372 (bug 1165515)
Backed out changeset 7c3b45a47811 (bug 1165515)
Backed out changeset b668b617bef2 (bug 1165515)
Backed out changeset d0916e1283a2 (bug 1165515)
Backed out changeset ac4dc7489942 (bug 1165515)
Backed out changeset e9632ce8bc65 (bug 1165515)
Backed out changeset c16d215cc7e4 (bug 1165515)
Backed out changeset e4d474f3c51a (bug 1165515)
Backed out changeset d87680bf9f7c (bug 1165515)
Backed out changeset b3c0a45ba99e (bug 1165515)
Backed out changeset 9370fa197674 (bug 1165515)
Backed out changeset 50970d668ca1 (bug 1165515)
Backed out changeset ffa4eb6d24b9 (bug 1165515)
Backed out changeset 5fcf1203cc1d (bug 1165515)
2015-06-02 13:05:56 +02:00
Eric Rahm
18bd3de863 Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-01 22:17:33 -07:00
Eric Rahm
dca9287933 Bug 1165515 - Part 3: Convert PR_LOG_TEST to MOZ_LOG_TEST. r=froydnj 2015-06-01 22:17:19 -07:00
Wes Kocher
bd796581dc Backed out 14 changesets (bug 1165515) for b2g mochitest-6 permafail CLOSED TREE
Backed out changeset 9b97e2aa2ed9 (bug 1165515)
Backed out changeset 150606c022a2 (bug 1165515)
Backed out changeset 4e875a488349 (bug 1165515)
Backed out changeset 467e7feeb546 (bug 1165515)
Backed out changeset d6b6cc373197 (bug 1165515)
Backed out changeset 0615265b593c (bug 1165515)
Backed out changeset fafd1dce9f08 (bug 1165515)
Backed out changeset d1df869245f9 (bug 1165515)
Backed out changeset 6876a7c63611 (bug 1165515)
Backed out changeset b7841c94a9a3 (bug 1165515)
Backed out changeset e5e3617f7c73 (bug 1165515)
Backed out changeset 39be3db95978 (bug 1165515)
Backed out changeset 0ec74176f8de (bug 1165515)
Backed out changeset 5b928dd10d71 (bug 1165515)
2015-06-01 17:57:58 -07:00
Eric Rahm
ae32743ed2 Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-01 14:31:01 -07:00
Eric Rahm
aa2c33e0cf Bug 1165515 - Part 3: Convert PR_LOG_TEST to MOZ_LOG_TEST. r=froydnj 2015-06-01 14:31:00 -07:00
Botond Ballo
77646296c3 Bug 1166382 - Use the adjusted full zoom in nsDocument::GetViewportInfo(). r=tn 2015-05-29 14:28:05 -04:00
Ben Kelly
62ee5281ea Bug 1157619 P1 Network requests should not be intercepted when force-refreshed. r=smaug 2015-06-01 10:53:18 -04:00
Franziskus Kiefer
f9afc3bf7b Bug 1165501 - using most recent referrer policy found in the document. r=sstamm 2015-05-27 13:29:00 -07:00
Xidorn Quan
5cb22210df Bug 1167607 - Alter behavior of AsyncEventDispatcher for dispatching chrome only event on chrome node. r=smaug
This patch renames DispatchChromeOnly flag to OnlyChromeDispatch. With
this patch, if OnlyChromeDispatch flag is set, and the target is already
a chrome node, the dispatch path will start from the target. Previously,
even if the target is a chrome node, the dispatch path starts from the
parent target of the owner window of the current node.
2015-05-26 10:04:38 +12:00
David Major
27c83e71e4 Bug 1167189: Add an infallible version of nsContentUtils::GetNodeTextContent. r=jst 2015-05-22 14:16:20 -04:00
Patrick McManus
dadfe393c7 bug 1150136 - rel=preconnect from html parser r=hsivonen 2015-05-05 20:55:18 -04:00
Eric Rahm
ccf1ec07c6 Bug 1165515 - Part 1: Convert PR_LOG to MOZ_LOG. r=froydnj 2015-05-21 13:22:04 -07:00
Nicholas Nethercote
901ac4faf5 Bug 1166586 (part 1) - Remove all uses of PL_NewDHashTable() and PL_DHashTableDestroy(). r=froydnj.
They're not needed now that there is (temporarily) PLDHashTable2, which has an
initializing constructor and a destructor.
2015-05-04 22:59:24 -07:00
Xidorn Quan
ba78cb642d Bug 1053413 part 6 - Remove fullscreen-related observer notification sending from nsDocument. r=smaug 2015-05-21 09:52:26 +12:00
Xidorn Quan
572d9fa3d9 Bug 1053413 part 3 - Remove fullscreen-origin-change notification, and make browser element rely on the fullscreen events. r=smaug 2015-05-21 09:52:26 +12:00
Xidorn Quan
6525eb9c86 Bug 1053413 part 2 - Separate a MozDOMFullscreen:NewOrigin event from MozDOMFullscreen:Entered. r=dao,smaug
Change of fullscreen origin is now notified by the new specific event,
MozDOMFullscreen:NewOrigin. The event MozDOMFullscreen:Entered is only
triggered when the window first enter fullscreen by DOM fullscreen. It
is now only used to notify the parent to hide its chrome.
2015-05-21 09:52:26 +12:00
Xidorn Quan
d5c2d7afe5 Bug 1053413 part 1.1 - Rename Moz{Entered,Exited}DomFullscreen to MozDOMFullscreen:{Entered,Exited}. r=smaug 2015-05-21 09:52:26 +12:00
Eric Rahm
c5e63515bf Bug 1165518 - Part 2: Replace prlog.h with Logging.h. rs=froydnj 2015-05-19 11:15:34 -07:00
Nicholas Nethercote
0addd071a9 Back out all four patches from bug 1161377. r=me.
Due to Android startup regressions (bug 1163066) and plugin crashes (bug
1165155).
2015-05-14 21:48:43 -07:00
Xidorn Quan
92362298fc Bug 1157685 - Remove full-screen-api.content-only pref and its friends. r=smaug 2015-05-15 14:39:25 +12:00
Eric Rahm
0c231d41fa Bug 1163201 - Part 2: Wrap expensive calls in PR_LOG_TEST. r=froydnj 2015-05-14 10:13:23 -07:00
Eric Rahm
485ac2e37a Bug 1163201 - Part 1: Remove instances of #ifdef PR_LOGGING in dom/. r=froydnj
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-14 10:13:23 -07:00
Ms2ger
8e449ba7f9 Bug 1017758 - Use infallible getters for appId/isInBrowserElement/unknownAppId; r=bz 2015-05-13 17:59:08 +02:00
Josh Matthews
66eb7ff591 Bug 1135812 - Make picture element react to viewport changes. r=dbaron,johns 2015-05-11 18:07:49 -04:00
Nicholas Nethercote
ad27c3edd4 Bug 1161377 (part 2) - Remove PL_NewDHashTable() and PL_DHashTableDestroy(). r=froydnj.
They're not needed now that there is an initializing constructor and a
destructor.
2015-05-04 22:59:24 -07:00
Andrea Marchesini
a90c5be53e Bug 1156875 - patch 1 - URL.createObjectURL leaks in JS sandbox, r=bholley 2015-05-07 08:05:43 +01:00
Birunthan Mohanathas
d70c97a041 Bug 819090 - Convert nsDocument::mIdContentList to nsTArray. r=froydnj 2015-05-06 10:57:37 -07:00
Xidorn Quan
502aab52a4 Bug 947854 part 2 - Avoid exiting fullscreen mode when exit from DOM fullscreen. r=smaug,dao 2015-05-06 10:04:31 +12:00
Andrew McCreight
aeff7c99ee Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Seth Fowler
5b9a952683 Bug 1158557 - Don't throttle rAF for documents with live static clones. r=smaug 2015-05-01 12:37:27 -07:00
Nicholas Nethercote
29a54c9b3b Bug 1159972 - Remove the fallible version of PL_DHashTableInit(). r=froydnj.
It's no longer needed now that entry storage isn't allocated there. (The other
possible causes of failures in that function are less interesting and simply
crashing is a reasonable thing to do for them.)

This also makes PL_DNewHashTable() infallible, so I removed some
now-unnecessary checks of its result.
2015-04-29 16:38:29 -07:00
Boris Zbarsky
84a1df27d6 Bug 1157898 part 3. Fix the remaining consumers of rv.ErrorCode() in NS_ENSURE_* expressions to not do that. r=peterv 2015-04-27 09:18:52 -04:00
Boris Zbarsky
ef887403cb Bug 1157898 part 1. Make code of the form "return rv.ErrorCode();" where rv is an ErrorResult use StealNSResult instead. r=peterv
This patch was generated with the following command:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 's/return ([a-zA-Z0-9]+)\.ErrorCode\(\);/return \1.StealNSResult();/'
2015-04-27 09:18:51 -04:00
Seth Fowler
19622d34b7 Bug 1145439 (Part 1) - Throttle requestAnimationFrame for non-visible iframes. r=mstange,mchang 2015-04-21 09:44:40 -07:00
Brian Birtles
08fed93f82 Bug 1154615 part 2 - Rename PendingPlayerTracker to PendingAnimationTracker; r=jwatt
This patch also updates the method names on PendingAnimationTracker but leaves
a number of local variables which will be fixed in a subsequent patch.
2015-04-21 10:22:09 +09:00
Denis Volk
4ad62045e8 Bug 1095098 - move do_QueryObject templates into their own header; r=froydnj 2015-04-15 12:47:03 -04:00
Cameron McCormack
9fc8561680 Bug 1155030 - Fix asterix/asterisk misspelling. r=ehsan 2015-04-17 11:09:58 +10:00
Kershaw Chang
44691fbfd7 Bug 1020179 - Let PContent manage PContentPermissionRequest. r=fabrice, r=khuey 2015-04-13 21:08:00 -04:00
Brian Birtles
28a48770ea Bug 1152171 part 2 - Rename AnimationTimeline to DocumentTimeline; r=smaug
And then re-add AnimationTimeline as an abstract super-interface of
DocumentTimeline.
2015-04-10 10:34:22 +09:00
Ryan VanderMeulen
7739e3103c Backed out changeset 3366d180e8ee (bug 1145439) for test_scroll_event_ordering.html failures. 2015-04-09 22:59:10 -04:00
Seth Fowler
64b07ec589 Bug 1145439 - Throttle requestAnimationFrame for non-visible iframes. r=mstange,mchang 2015-04-09 17:52:23 -07:00
Vladimir Vukicevic
67d9e9155a Bug 1151905; remove unnecessary gfxVR.h includes; r=ehsan 2015-04-07 12:39:09 -04:00
Wes Kocher
53cbe34051 Backed out changeset b0de9cef013b (bug 1145439) for Gu orange 2015-04-03 14:11:11 -07:00
Seth Fowler
a8cbe4b241 Bug 1145439 - Throttle requestAnimationFrame for non-visible iframes. r=mstange,mchang 2015-04-03 11:51:11 -07:00
Mike Hommey
ccd2a9b975 Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd 2015-04-01 13:51:45 +09:00
Ehsan Akhgari
33bb32f549 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Bill McCloskey
e7aee957c0 Bug 1126089 - Allow messages to be sent after frame script unload event (r=smaug) 2015-03-19 06:43:46 -07:00
Phil Ringnalda
bc03d24e02 Backed out 3 changesets (bug 1126089) for ASan e10s bc1 failures and green-crashes
CLOSED TREE

Backed out changeset 9af9111e9c27 (bug 1126089)
Backed out changeset 288efd5e2ca0 (bug 1126089)
Backed out changeset 3bcebfd13538 (bug 1126089)
2015-03-18 21:51:34 -07:00
Bill McCloskey
d15acaca2d Bug 1126089 - Allow messages to be sent after frame script unload event (r=smaug) 2015-03-18 16:09:27 -07:00
William Chen
d336ec30e7 Bug 1130028 - Custom elements, set registered prototype in compartment of caller of registerElement. r=mrbkap 2015-03-02 09:48:30 -08:00
Daniel Holbert
2c24121797 Bug 1142841: Convert all nsRefPtr<nsIRunnable> to nsCOMPtr<nsIRunnable>. r=ehsan
This patch was generated by a script.  Here's the source of the script for
future reference:

find . \( -iname "*.cpp" -o -iname "*.h" \) | \
  xargs -n 1 sed -i "s/nsRefPtr<nsIRunnable>/nsCOMPtr<nsIRunnable>/g"
2015-03-17 09:29:17 -07:00
Albert Crespell
5cb6d620a6 Bug 1139425 - Service Worker Client id should return a DOMString uuid. r=baku 2015-03-13 07:15:25 +01:00
Ryan VanderMeulen
a12c6d2dfc Backed out changesets f63a2cf3fa11 and 7d9a91ee3d48 (bug 1126089) for mochitest-bc failures. 2015-03-13 13:42:57 -04:00
Bill McCloskey
12af381a9e Bug 1126089 - Allow messages to be sent after frame script unload event (r=smaug) 2015-03-13 08:24:20 -07:00
Jason Orendorff
3c188fc686 Bug 1133081, part 5 - Remove non-asserting PropertyDescriptor accessors in favor of the new PropDesc-inspired asserting accessors. r=efaust.
value() can't assert hasValue() because too many places have plausible reasons for calling it on a PropertyDescriptor they basically know nothing about. One such place is CompartmentChecker::check(Handle<JSPropertyDescriptor>). Another is DefinePropertyByDescriptor. Maybe this will change with time.

In some cases we do things like `desc.hasWritable() && desc.writable() != existing_desc.writable()`. It is OK to write it this way, even though we have not checked existing_desc.hasWritable(), because in these cases we already know existingDesc is a complete property descriptor.
2015-02-15 06:18:30 -06:00
Mantaroh Yoshinaga
46662b3fb2 Bug 1106905 - Modify mobile desktop mode implementation to use a desktop viewport. r=kats 2015-03-12 12:14:55 -04:00
Boris Zbarsky
7f7b76aa0c Bug 1140573 part 1. Drop the parent argument from JS_NewFunction. r=waldo 2015-03-09 12:50:03 -04:00
Jose Antonio Olivera Ortega
37600d8d77 Bug 1041339 - ServiceWorkers: Update implementation based on clarification of force-refresh. r=nsm 2015-03-04 02:54:00 +01:00
Andrea Marchesini
0c7f3a0a3a Bug 1134280 - Get rid of Tag() - patch 7 - Followup to fix bustage. CLOSED TREE 2015-03-03 11:50:16 +00:00
Andrea Marchesini
e5bca26bf2 Bug 1134280 - Get rid of Tag() - patch 2.3 - dom/base and docshell - Fix all the occurrences, m=smaug, r=surkov 2015-03-03 11:09:00 +00:00
Andrea Marchesini
454d9140a2 Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug 2015-03-03 11:08:59 +00:00
Olli Pettay
23489bab3a Bug 1138395 - Optimize nsDocument::mExpandoAndGeneration.expando out from the cc graphs when possible, r=mccr8 2015-03-02 17:56:36 +02:00
Boris Zbarsky
ee82815c4f Bug 1136292 part 2. Stop passing an explicit JS::NullPtr parent to JS_NewObjectWithGivenProto in nsDocument. r=peterv 2015-02-26 09:40:07 -05:00
Gabor Krizsanits
dbcdf470fd Bug 1134981 - Quick fix in registerElement. r=bz 2015-02-26 15:20:37 +01:00
Boris Zbarsky
8d06e45b3d Bug 1136388. Change nsIDocumentLoaderFactory and nsIURIContentListener to take MIME types as an XPCOM string, not a char*. r=smaug 2015-02-25 10:26:51 -05:00
Boris Zbarsky
2f91ccc894 Bug 1134559. DOMContentLoaded should not be cancelable. r=ms2ger 2015-02-19 14:36:02 -05:00
John Schoenick
1240556dea Bug 1067345 - Part 3 - Implement speculative load operations for <picture> and <img srcset> 2014-12-10 18:54:00 -05:00
Nicholas Nethercote
74cc61fdfd Bug 1131901 (part 1) - Make PL_DHashTableAdd() infallible by default, and add a fallible alternative. r=froydnj.
I kept all the existing PL_DHashTableAdd() calls fallible, in order to be
conservative, except for the ones in nsAtomTable.cpp which already were
followed immediately by an abort on failure.

--HG--
extra : rebase_source : 526d96ab65e4d7d71197b90d086d19fbdd79b7b5
2015-02-02 14:48:58 -08:00
Andrew McCreight
2b516fc573 Bug 1131199, part 2 - Make PLDHashtInitEntry infallible. r=froydnj
Also, drop the unused table argument.
2015-02-11 09:46:40 -08:00
William Chen
1ae95ff1e0 Bug 1087460 - Part 2: Call attached and detached callback when attached and detached to/from the composed document. r=smaug 2015-02-09 10:01:24 -08:00
Nicholas Nethercote
44179aabe3 Back out changesets 2fcef6b54be7, 2be07829fefc, 66dfe37b8532, df3fcd2be8fd, 0a436bce77a6 (bug 1050035) for causing intermittent crashes and assertion failures.
--HG--
extra : rebase_source : eb30be83c3143c6c203585a80a18f180025efaba
2015-02-10 14:39:49 -08:00
Nicholas Nethercote
6ee3666899 Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
--HG--
extra : rebase_source : 488e401ff87e31a2074c4108c4df0572d9536667
2015-02-09 14:34:50 -08:00