Commit Graph

178 Commits

Author SHA1 Message Date
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